Last change
on this file since 88 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:
794 bytes
|
Rev | Line | |
---|
[2] | 1 | #ifndef TAG_H |
---|
| 2 | #define TAG_H |
---|
| 3 | |
---|
| 4 | #include <iostream> |
---|
| 5 | using namespace std; |
---|
| 6 | |
---|
| 7 | namespace hierarchy_memory { |
---|
| 8 | namespace cache { |
---|
| 9 | namespace cache_multilevel { |
---|
| 10 | namespace cache_onelevel { |
---|
| 11 | |
---|
| 12 | class tag_t |
---|
| 13 | { |
---|
| 14 | public : bool valid ; |
---|
| 15 | public : uint32_t address ; |
---|
| 16 | public : uint32_t trdid ; |
---|
| 17 | public : uint32_t index_lru; |
---|
| 18 | |
---|
| 19 | friend ostream& operator<< (ostream& output_stream, const tag_t &x) |
---|
| 20 | { |
---|
| 21 | output_stream << x.valid << " " |
---|
| 22 | << hex << setw(8) << setfill('0') << x.address << " " << dec |
---|
| 23 | << x.trdid << " " |
---|
| 24 | << x.index_lru; |
---|
| 25 | |
---|
| 26 | return output_stream; |
---|
| 27 | } |
---|
| 28 | |
---|
| 29 | }; |
---|
| 30 | |
---|
| 31 | };};};}; |
---|
| 32 | |
---|
| 33 | #endif //!TAG_H |
---|
Note: See
TracBrowser
for help on using the repository browser.