-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproc.h
More file actions
62 lines (46 loc) · 1.68 KB
/
Copy pathproc.h
File metadata and controls
62 lines (46 loc) · 1.68 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
/**********************************************************************
*
* PA CWK2
* Ewan Leaver s0800696
*
**********************************************************************/
#include <vector>
#include <string> // std::string, std::stoi
#include "line.h"
class Processor {
private:
std::string name;
public:
int lineCount;
int lineSize;
std::vector<std::vector<double> > cache;
std::vector<Line> msiData;
std::vector<double> writeBuffer;
float readHits;
float readMisses;
float readAccesses;
float readRate;
float writeHits;
float writeMisses;
float writeAccesses;
float writeRate;
float totalHits;
float totalMisses;
float totalAccesses;
float totalRate;
float coherenceMisses;
float coherenceRate;
int invalidations;
double latency;
int bypassCount;
bool writing;
int writeStart;
int writeDuration;
// Methods
int getState(int);
void setState(int, int);
void load(int);
void store(int);
void stats();
void init(std::string,int,int);
};