-
Notifications
You must be signed in to change notification settings - Fork 0
/
core.h
50 lines (41 loc) · 1.03 KB
/
core.h
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
50
/*
* =====================================================================================
*
* Filename: core.h
*
* Description: Dummy core for generating requests
*
* Version: 1.0
* Created: 05/31/2014 10:32:03 PM
* Revision: none
* Compiler: gcc
*
* Author: Rakesh Ramesh (Doctoral Candidate), [email protected]
* Execution:
*
* =====================================================================================
*/
#ifndef _CORE_H_
#define _CORE_H_
#include "request.h"
#include "controller.h"
class Core {
private:
Controller *controller;
unsigned long int clock;
// Config
float mem_intensity;
float type1_intensity;
float type2_intensity;
float type12_intensity;
unsigned int num_ranks;
unsigned int num_banks;
// Stats
unsigned int num_access;
public:
Core(Controller *controller_, float mem_intensity_, float type1_intensity_, float type2_intensity_,
unsigned int num_ranks_, unsigned int num_banks_);
~Core();
void clockTick();
};
#endif