Last change
on this file since 80 was
80,
checked in by rosiere, 16 years ago
|
Oups, Environnement is french :P
|
File size:
1.1 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 | { |
---|
| 19 | } |
---|
| 20 | |
---|
| 21 | public : Access (uint32_t num_port , |
---|
| 22 | type_rsp_cache_t hit , |
---|
| 23 | uint32_t latence , |
---|
| 24 | uint32_t last_nb_level) |
---|
| 25 | { |
---|
| 26 | this->num_port = num_port ; |
---|
| 27 | this->hit = hit ; |
---|
| 28 | this->latence = latence ; |
---|
| 29 | this->last_nb_level = last_nb_level; |
---|
| 30 | } |
---|
| 31 | |
---|
| 32 | friend std::ostream& operator<< (std::ostream& output, const Access & x) |
---|
| 33 | { |
---|
| 34 | output << "[" << x.num_port << "] " |
---|
| 35 | << x.hit << " " |
---|
| 36 | << x.latence << " " |
---|
| 37 | << x.last_nb_level; |
---|
| 38 | return output; |
---|
| 39 | } |
---|
| 40 | };//Access |
---|
| 41 | |
---|
| 42 | }; |
---|
| 43 | |
---|
| 44 | }; |
---|
| 45 | }; |
---|
| 46 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.