Last change
on this file since 86 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.2 KB
|
Rev | Line | |
---|
[80] | 1 | #ifndef ENVIRONMENT_CACHE_CACHE_MULTILEVEL_ACCESS_H |
---|
| 2 | #define ENVIRONMENT_CACHE_CACHE_MULTILEVEL_ACCESS_H |
---|
[78] | 3 | |
---|
| 4 | #include "Types.h" |
---|
| 5 | |
---|
[80] | 6 | namespace environment { |
---|
[78] | 7 | namespace cache { |
---|
| 8 | namespace cache_multilevel { |
---|
| 9 | |
---|
| 10 | class Access |
---|
| 11 | { |
---|
| 12 | public : uint32_t num_port ; |
---|
| 13 | public : type_rsp_cache_t hit ; // result of access |
---|
| 14 | public : uint32_t latence ; // Latence of access |
---|
| 15 | public : uint32_t last_nb_level; // if access is not a hit : last level of cache before a error |
---|
| 16 | |
---|
| 17 | public : Access () |
---|
| 18 | { |
---|
[81] | 19 | this->num_port = 0; |
---|
| 20 | this->hit = MISS; |
---|
| 21 | this->latence = 0; |
---|
| 22 | this->last_nb_level = 0; |
---|
[78] | 23 | } |
---|
| 24 | |
---|
| 25 | public : Access (uint32_t num_port , |
---|
| 26 | type_rsp_cache_t hit , |
---|
| 27 | uint32_t latence , |
---|
| 28 | uint32_t last_nb_level) |
---|
| 29 | { |
---|
| 30 | this->num_port = num_port ; |
---|
| 31 | this->hit = hit ; |
---|
| 32 | this->latence = latence ; |
---|
| 33 | this->last_nb_level = last_nb_level; |
---|
| 34 | } |
---|
| 35 | |
---|
| 36 | friend std::ostream& operator<< (std::ostream& output, const Access & x) |
---|
| 37 | { |
---|
| 38 | output << "[" << x.num_port << "] " |
---|
| 39 | << x.hit << " " |
---|
| 40 | << x.latence << " " |
---|
| 41 | << x.last_nb_level; |
---|
| 42 | return output; |
---|
| 43 | } |
---|
| 44 | };//Access |
---|
| 45 | |
---|
| 46 | }; |
---|
| 47 | |
---|
| 48 | }; |
---|
| 49 | }; |
---|
| 50 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.