-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorcs_engine.hpp
executable file
·49 lines (46 loc) · 1.66 KB
/
orcs_engine.hpp
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
40
41
42
43
44
45
46
47
48
49
// ============================================================================
class orcs_engine_t {
private:
public:
/// Program input
std::vector<std::string> arg_trace_file_name;
/// Control the Global Cycle
uint64_t global_cycle;
// =======================================
// Number of cores
// =======================================
uint32_t number_of_cores;
// =======================================
// output File name
// =======================================
char *output_file_name;
bool simulator_alive;
/// Components modeled
trace_reader_t *trace_reader;
//==================
//Processor
//==================
processor_t *processor;
//==================
//Branch Predictor
//==================
branch_predictor_t *branchPredictor;
//cache Manager and cache
cache_manager_t *cacheManager;
//Memory Controller and EMC
memory_controller_t *memory_controller;
// ====================================================================
/// Statistics related
// ====================================================================
/// Time statistics
struct timeval stat_timer_start, stat_timer_end;
// ====================================================================
/// Methods
// ====================================================================
orcs_engine_t();
void allocate();
bool get_simulation_alive();
uint64_t get_global_cycle() {
return this->global_cycle;
};
};