Last change
on this file since 91 was
81,
checked in by rosiere, 16 years ago
|
- Finish Environment (and test)
- Continue predictor_unit
- Add external tools
- svn keyword "Id" set
|
-
Property svn:keywords set to
Id
|
File size:
1.4 KB
|
Rev | Line | |
---|
[80] | 1 | #ifndef ENVIRONMENT_CACHE_TYPES_H |
---|
| 2 | #define ENVIRONMENT_CACHE_TYPES_H |
---|
[78] | 3 | |
---|
[80] | 4 | namespace environment { |
---|
[78] | 5 | namespace cache { |
---|
| 6 | |
---|
| 7 | // ===================================================== |
---|
| 8 | // =====[ CACHE ]======================================= |
---|
| 9 | // ===================================================== |
---|
| 10 | |
---|
| 11 | typedef enum |
---|
| 12 | { |
---|
| 13 | INSTRUCTION_CACHE , |
---|
| 14 | DATA_CACHE |
---|
| 15 | } cache_t; |
---|
| 16 | |
---|
| 17 | // ===================================================== |
---|
| 18 | // =====[ DIRECTION ]=================================== |
---|
| 19 | // ===================================================== |
---|
| 20 | |
---|
| 21 | typedef enum |
---|
| 22 | { |
---|
| 23 | READ , |
---|
| 24 | WRITE , |
---|
| 25 | NONE |
---|
| 26 | } direction_req_cache_t; |
---|
| 27 | |
---|
| 28 | // ===================================================== |
---|
| 29 | // =====[ REQUEST ]===================================== |
---|
| 30 | // ===================================================== |
---|
| 31 | |
---|
| 32 | typedef enum |
---|
| 33 | { |
---|
| 34 | CACHED , // address can be in the cache |
---|
| 35 | UNCACHED , // Always miss (not address in cache) |
---|
| 36 | INVALIDATE , // The direction is not used |
---|
| 37 | PREFETCH , // The direction is not used |
---|
| 38 | FLUSH // The direction is not used |
---|
| 39 | } type_req_cache_t; |
---|
| 40 | |
---|
| 41 | // ===================================================== |
---|
| 42 | // =====[ RESPONS ]===================================== |
---|
| 43 | // ===================================================== |
---|
| 44 | |
---|
| 45 | typedef enum |
---|
| 46 | { |
---|
| 47 | HIT_CACHE , |
---|
| 48 | HIT_BYPASS , |
---|
| 49 | HIT_WRITE_BUFFER , |
---|
| 50 | MISS |
---|
| 51 | } type_rsp_cache_t; |
---|
| 52 | |
---|
| 53 | }; |
---|
| 54 | }; |
---|
| 55 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.