source: trunk/IPs/systemC/Environment/Cache/include/Cache_OneLevel_Access_Port.h @ 80

Last change on this file since 80 was 80, checked in by rosiere, 16 years ago

Oups, Environnement is french :P

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