source: trunk/IPs/systemC/Environment/Cache/include/Cache_OneLevel_Address.h @ 143

Last change on this file since 143 was 143, checked in by rosiere, 14 years ago

1) change environment.sh
2) add lot of include

  • Property svn:keywords set to Id
File size: 735 bytes
Line 
1#ifndef ENVIRONMENT_CACHE_CACHE_ONELEVEL_ADDRESS_H
2#define ENVIRONMENT_CACHE_CACHE_ONELEVEL_ADDRESS_H
3
4#include <iostream>
5#include <iomanip>
6#include <stdint.h>
7
8namespace environment {
9namespace cache {
10namespace cache_onelevel {
11
12  class Address
13  {
14  public    : uint32_t        tag;
15  public    : uint32_t        familly;
16  public    : uint32_t        offset;
17   
18    friend std::ostream& operator<< (std::ostream& output, const Address &x)
19    {
20      output << std::hex
21             << std::setw(8) << std::setfill('0') << x.tag     << " "
22             << std::setw(8) << std::setfill('0') << x.familly << " "
23             << std::setw(8) << std::setfill('0') << x.offset
24             << std::dec;
25     
26      return output;
27    }
28  };
29
30};
31};
32};
33#endif
Note: See TracBrowser for help on using the repository browser.