Last change
on this file since 90 was
81,
checked in by rosiere, 17 years ago
|
- Finish Environment (and test)
- Continue predictor_unit
- Add external tools
- svn keyword "Id" set
|
-
Property svn:keywords set to
Id
|
File size:
741 bytes
|
Line | |
---|
1 | #ifndef ADDRESS_H |
---|
2 | #define ADDRESS_H |
---|
3 | |
---|
4 | #include <iomanip> |
---|
5 | #include <iostream> |
---|
6 | using namespace std; |
---|
7 | |
---|
8 | namespace hierarchy_memory { |
---|
9 | namespace cache { |
---|
10 | namespace cache_multilevel { |
---|
11 | namespace cache_onelevel { |
---|
12 | |
---|
13 | class address_t |
---|
14 | { |
---|
15 | public : uint32_t tag; |
---|
16 | public : uint32_t familly; |
---|
17 | public : uint32_t offset; |
---|
18 | |
---|
19 | friend ostream& operator<< (ostream& output_stream, const address_t &x) |
---|
20 | { |
---|
21 | output_stream << hex |
---|
22 | << setw(8) << setfill('0') << x.tag << " " |
---|
23 | << setw(8) << setfill('0') << x.familly << " " |
---|
24 | << setw(8) << setfill('0') << x.offset |
---|
25 | << dec; |
---|
26 | |
---|
27 | return output_stream; |
---|
28 | } |
---|
29 | }; |
---|
30 | |
---|
31 | };};};}; |
---|
32 | |
---|
33 | #endif //!ADDRESS_H |
---|
Note: See
TracBrowser
for help on using the repository browser.