OpenCores
URL https://opencores.org/ocsvn/tv80/tv80/trunk

Subversion Repositories tv80

[/] [tv80/] [trunk/] [sc_env/] [env_memory.h] - Blame information for rev 91

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 91 ghutchis
#include "systemc.h"
2
 
3
#ifndef ENV_MEMORY_H
4
#define ENV_MEMORY_H
5
#define AM_ASZ 16
6
#define AM_DEPTH (1<<16)
7
 
8
SC_MODULE(env_memory) {
9
 
10
  sc_in<bool > clk;
11
  sc_in<uint32_t> wr_data;
12
  sc_in<bool> mreq_n;
13
  sc_in<bool> rd_n;
14
  sc_in<bool> wr_n;
15
  sc_in<uint32_t> addr;
16
  sc_out<uint32_t> rd_data;
17
 
18
  unsigned char *memory;
19
 
20
  void event();
21
 
22
  SC_CTOR(env_memory) {
23
        memory = new unsigned char[AM_DEPTH];
24
    SC_METHOD(event);
25
    sensitive_pos << clk;
26
  }
27
};
28
 
29
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.