Last change
on this file since 117 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:
930 bytes
|
Line | |
---|
1 | #ifndef ENVIRONMENT_CACHE_CACHE_ONELEVEL_ACCESS_PORT_H |
---|
2 | #define ENVIRONMENT_CACHE_CACHE_ONELEVEL_ACCESS_PORT_H |
---|
3 | |
---|
4 | #include <iostream> |
---|
5 | #include "Types.h" |
---|
6 | #include "Cache_OneLevel_Address.h" |
---|
7 | |
---|
8 | namespace environment { |
---|
9 | namespace cache { |
---|
10 | namespace cache_onelevel { |
---|
11 | |
---|
12 | class Access_Port |
---|
13 | { |
---|
14 | public : bool valid; |
---|
15 | public : Address address; |
---|
16 | public : uint32_t trdid; |
---|
17 | public : type_rsp_cache_t hit; |
---|
18 | public : uint32_t num_associativity; // on hit : update lru |
---|
19 | public : uint32_t latence; // on miss : wait |
---|
20 | |
---|
21 | friend std::ostream& operator<< (std::ostream& output, const Access_Port &x) |
---|
22 | { |
---|
23 | output << x.valid << " " |
---|
24 | << x.hit << " " |
---|
25 | << x.address << " " |
---|
26 | << x.trdid << " " |
---|
27 | << x.num_associativity << " " |
---|
28 | << x.latence; |
---|
29 | |
---|
30 | return output; |
---|
31 | } |
---|
32 | }; |
---|
33 | |
---|
34 | }; |
---|
35 | }; |
---|
36 | }; |
---|
37 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.