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

Subversion Repositories tv80

[/] [tv80/] [trunk/] [sc_env/] [app_localcfg/] [it_cfg_monitor.h] - Blame information for rev 104

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 104 ghutchis
/*
2
 * it_cfg_monitor.h
3
 *
4
 *  Created on: Feb 15, 2011
5
 *      Author: hutch
6
 */
7
 
8
#ifndef IT_CFG_MONITOR_H_
9
#define IT_CFG_MONITOR_H_
10
 
11
#include <stdint.h>
12
#include "systemc.h"
13
#include <stdlib.h>
14
 
15
SC_MODULE(it_cfg_monitor)
16
{
17
  private:
18
  int delay_cnt;
19
 
20
  public:
21
  sc_in<bool>   clk;
22
  sc_in<bool>   reset_n;
23
 
24
  sc_in<bool>      cfgo_irdy;
25
  sc_out<bool>     cfgo_trdy;
26
  sc_in<uint32_t>  cfgo_addr;
27
  sc_in<bool>      cfgo_write;
28
  sc_in<uint32_t>  cfgo_wr_data;
29
  sc_out<uint32_t> cfgo_rd_data;
30
 
31
 
32
  void event();
33
 
34
  SC_CTOR(it_cfg_monitor) {
35
    SC_METHOD(event);
36
    sensitive << clk.pos();
37
    delay_cnt = -1;
38
  }
39
};
40
 
41
#endif /*IT_CFG_monitor_H_*/

powered by: WebSVN 2.1.0

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