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

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

Import Morpheo

File size: 1008 bytes
Line 
1#ifndef ACCESS_PORT_H
2#define ACCESS_PORT_H
3
4#include "address.h"
5#include "type_rsp_cache.h"
6#include <iostream>
7using namespace std;
8
9namespace hierarchy_memory          {
10namespace cache                     {
11namespace cache_multilevel          {
12namespace cache_onelevel            {
13
14  class access_port_t
15    {
16    public    : bool             valid;
17    public    : address_t        address;
18    public    : uint32_t         trdid;
19    public    : type_rsp_cache_t hit;
20    public    : uint32_t         num_associativity; // on hit  : update lru
21    public    : uint32_t         latence;           // on miss : wait
22
23      friend ostream& operator<< (ostream& output_stream, const access_port_t &x)
24      {
25        output_stream << x.valid             << " "
26                      << x.hit               << " "
27                      << x.address           << " "
28                      << x.trdid             << " "
29                      << x.num_associativity << " "
30                      << x.latence;
31
32        return output_stream;
33      }
34
35    };
36
37};};};};
38
39#endif //!ACCESS_PORT_H
Note: See TracBrowser for help on using the repository browser.