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

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

Import Morpheo

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