Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 27 lines (18 sloc) 0.38 kb
fa15031 Pavan Kumar Sunkara Added memory get function to check cache
authored
1 #ifndef ACCESS_H_
2 #define ACCESS_H_
12de838 Pavan Kumar Sunkara Finished memory class
authored
3
5649cdc Finished implemeting Cache with Sets and Blocks
SIddardha G authored
4 #include "Memory.h"
5 #include "Cache.h"
12de838 Pavan Kumar Sunkara Finished memory class
authored
6
dfc4fc3 Pavan Kumar Sunkara Started classes
authored
7 class Access {
fa15031 Pavan Kumar Sunkara Added memory get function to check cache
authored
8 public:
8a94054 Pavan Kumar Sunkara Many changes which are listed below
authored
9 Access(int cache_size, int block_size, int assoc, int data_numbers);
12de838 Pavan Kumar Sunkara Finished memory class
authored
10
fa15031 Pavan Kumar Sunkara Added memory get function to check cache
authored
11 void write(int value);
12 int get(int addr);
8a94054 Pavan Kumar Sunkara Many changes which are listed below
authored
13 void print(char* str);
4691547 Pavan Kumar Sunkara Cold & Conflict misses done
authored
14
fa15031 Pavan Kumar Sunkara Added memory get function to check cache
authored
15 void restart_cache(void);
dfc4fc3 Pavan Kumar Sunkara Started classes
authored
16
fa15031 Pavan Kumar Sunkara Added memory get function to check cache
authored
17 ~Access(void);
fa2404c Made classes for Set and Block
SIddardha G authored
18
fa15031 Pavan Kumar Sunkara Added memory get function to check cache
authored
19 private:
20 Memory* memory;
21 Cache* cache;
22
23 int accesses;
dfc4fc3 Pavan Kumar Sunkara Started classes
authored
24 };
12de838 Pavan Kumar Sunkara Finished memory class
authored
25
fa15031 Pavan Kumar Sunkara Added memory get function to check cache
authored
26 #endif /* ACCESS_H_ */
Something went wrong with that request. Please try again.