Last change
on this file since 132 was
113,
checked in by rosiere, 15 years ago
|
1) Add modelsim simulation systemC
2) Modelsim cosimulation systemC / VHDL is not finish !!!! (cf execute_queue and write_unit)
3) Add multi architecture
5) Add template for comparator, multiplier and divider
6) Change Message
Warning) Various test macro have change, many selftest can't compile
|
-
Property svn:keywords set to
Id
|
File size:
1.4 KB
|
Line | |
---|
1 | /* |
---|
2 | * $Id: top.h 113 2009-04-14 18:39:12Z rosiere $ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | * Test "Counter" |
---|
7 | */ |
---|
8 | |
---|
9 | #ifdef SYSTEMC |
---|
10 | #include "systemc.h" |
---|
11 | #endif |
---|
12 | |
---|
13 | #define NB_ITERATION 1024 |
---|
14 | #define CYCLE_MAX (1024*NB_ITERATION) |
---|
15 | |
---|
16 | #include "Common/include/Test.h" |
---|
17 | #include "Common/include/Time.h" |
---|
18 | #include "Behavioural/Generic/Counter/include/Counter.h" |
---|
19 | |
---|
20 | using namespace std; |
---|
21 | using namespace morpheo; |
---|
22 | using namespace morpheo::behavioural; |
---|
23 | using namespace morpheo::behavioural::generic; |
---|
24 | using namespace morpheo::behavioural::generic::counter; |
---|
25 | |
---|
26 | SC_MODULE(top) |
---|
27 | { |
---|
28 | #ifdef SYSTEMC |
---|
29 | private: sc_clock * in_CLOCK ; |
---|
30 | private: sc_signal<Tcontrol_t> * in_NRESET; |
---|
31 | private: sc_signal<Tdata_t> ** in_COUNTER_DATA ;// [param->_nb_port] |
---|
32 | private: sc_signal<Tcontrol_t> ** in_COUNTER_ADDSUB;// [param->_nb_port] |
---|
33 | private: sc_signal<Tdata_t> ** out_COUNTER_DATA ;// [param->_nb_port] |
---|
34 | #endif |
---|
35 | |
---|
36 | private: std::string name ; |
---|
37 | private: morpheo::behavioural::generic::counter::Parameters * param; |
---|
38 | #ifdef STATISTICS |
---|
39 | private: morpheo::behavioural::Parameters_Statistics * param_stat; |
---|
40 | #endif |
---|
41 | private: Counter * component; |
---|
42 | |
---|
43 | private: void usage (string exec); |
---|
44 | private: void allocation (void); |
---|
45 | private: void deallocation (void); |
---|
46 | public : void test (void); |
---|
47 | |
---|
48 | #ifdef MTI_SYSTEMC |
---|
49 | SC_CTOR(top::top); |
---|
50 | #else |
---|
51 | public : top (sc_module_name module_name,int argc, char * argv[]); |
---|
52 | #endif |
---|
53 | public : ~top(void); |
---|
54 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.