source: trunk/IPs/systemC/hierarchy_memory/cache/tag.h @ 2

Last change on this file since 2 was 2, checked in by kane, 17 years ago

Import Morpheo

File size: 794 bytes
Line 
1#ifndef TAG_H
2#define TAG_H
3
4#include <iostream>
5using namespace std;
6
7namespace hierarchy_memory          {
8namespace cache                     {
9namespace cache_multilevel          {
10namespace cache_onelevel            {
11
12class tag_t
13{
14public    : bool            valid    ;
15public    : uint32_t        address  ;
16public    : uint32_t        trdid    ;
17public    : 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.