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

Subversion Repositories async_sdm_noc

[/] [async_sdm_noc/] [trunk/] [common/] [tb/] [anaproc.h] - Blame information for rev 37

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 wsong0210
/*
2
 Asynchronous SDM NoC
3
 (C)2011 Wei Song
4
 Advanced Processor Technologies Group
5
 Computer Science, the Univ. of Manchester, UK
6
 
7
 Authors:
8
 Wei Song     wsong83@gmail.com
9
 
10
 License: LGPL 3.0 or later
11
 
12
 The SystemC to keep a module of the simulation analysis object.
13
 
14
 History:
15
 27/02/2011  Initial version. <wsong83@gmail.com>
16
 28/05/2011  Clean up for opensource. <wsong83@gmail.com>
17
 
18
*/
19
 
20
#ifndef ANA_PROC_H_
21
#define ANA_PROC_H_
22
 
23
#include "define.h"
24
#include <systemc.h>
25
 
26
class AnaProc : public sc_module {
27
 
28
 public:
29
  SC_CTOR(AnaProc)
30
  {
31
    ANA->analyze_delay("delay.ana");
32
    ANA->analyze_throughput("throughput.ana");
33
    SC_THREAD(run_proc);
34
  }
35
 
36
  void run_proc() {
37
     while(1){
38
        wait(SIM_TIME, SC_NS);
39
     }
40
  }
41
 
42
};
43
 
44
 
45
 
46
#endif

powered by: WebSVN 2.1.0

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