Line | |
---|
1 | #ifndef ACCESS_PORT_H |
---|
2 | #define ACCESS_PORT_H |
---|
3 | |
---|
4 | #include "address.h" |
---|
5 | #include "type_rsp_cache.h" |
---|
6 | #include <iostream> |
---|
7 | using namespace std; |
---|
8 | |
---|
9 | namespace hierarchy_memory { |
---|
10 | namespace cache { |
---|
11 | namespace cache_multilevel { |
---|
12 | namespace cache_onelevel { |
---|
13 | |
---|
14 | class access_port_t |
---|
15 | { |
---|
16 | public : bool valid; |
---|
17 | public : address_t address; |
---|
18 | public : uint32_t trdid; |
---|
19 | public : type_rsp_cache_t hit; |
---|
20 | public : uint32_t num_associativity; // on hit : update lru |
---|
21 | public : uint32_t latence; // on miss : wait |
---|
22 | |
---|
23 | friend ostream& operator<< (ostream& output_stream, const access_port_t &x) |
---|
24 | { |
---|
25 | output_stream << x.valid << " " |
---|
26 | << x.hit << " " |
---|
27 | << x.address << " " |
---|
28 | << x.trdid << " " |
---|
29 | << x.num_associativity << " " |
---|
30 | << x.latence; |
---|
31 | |
---|
32 | return output_stream; |
---|
33 | } |
---|
34 | |
---|
35 | }; |
---|
36 | |
---|
37 | };};};}; |
---|
38 | |
---|
39 | #endif //!ACCESS_PORT_H |
---|
Note: See
TracBrowser
for help on using the repository browser.