-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcore.h
More file actions
39 lines (25 loc) · 636 Bytes
/
core.h
File metadata and controls
39 lines (25 loc) · 636 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
// Created by Ignacio Mora on 2019-09-11.
//
#ifndef PROYECTO1ARQUIII_CORE_H
#define PROYECTO1ARQUIII_CORE_H
#include <thread>
#include <chrono>
#include "include/random.hpp"
#include "program.h"
#include "cache_controller.h"
using Random = effolkronium::random_static;
class Core {
public:
Core(bool* clk, int num_core, Program* program, CacheBus* cache_bus, Memory* memory);
void run();
private:
Program* program;
int num_core;
CacheController* cache_controller;
bool running;
bool* clk;
bool last_clk_state;
bool waiting_for_execution = false;
};
#endif //PROYECTO1ARQUIII_CORE_H