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

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

Import Morpheo

File size: 741 bytes
Line 
1#ifndef ADDRESS_H
2#define ADDRESS_H
3
4#include <iomanip>
5#include <iostream>
6using namespace std;
7
8namespace 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.