Last change
on this file since 117 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
|
File size:
1.2 KB
|
Rev | Line | |
---|
[76] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
[113] | 6 | * Test "@COMPONENT" |
---|
[76] | 7 | */ |
---|
| 8 | |
---|
| 9 | #ifdef SYSTEMC |
---|
| 10 | #include "systemc.h" |
---|
| 11 | #endif |
---|
| 12 | |
---|
[83] | 13 | #define NB_ITERATION 1 |
---|
| 14 | #define CYCLE_MAX (1024*NB_ITERATION) |
---|
| 15 | |
---|
| 16 | #include "Common/include/Test.h" |
---|
| 17 | #include "Common/include/Time.h" |
---|
| 18 | #include "Behavioural/@DIRECTORY/include/@COMPONENT.h" |
---|
| 19 | |
---|
[76] | 20 | using namespace std; |
---|
| 21 | using namespace morpheo; |
---|
| 22 | using namespace morpheo::behavioural; |
---|
| 23 | @NAMESPACE_USING |
---|
| 24 | using namespace morpheo::behavioural::@NAMESPACE_USE; |
---|
| 25 | |
---|
[113] | 26 | SC_MODULE(top) |
---|
| 27 | { |
---|
| 28 | #ifdef SYSTEMC |
---|
| 29 | private: sc_clock * in_CLOCK ; |
---|
| 30 | private: sc_signal<Tcontrol_t> * in_NRESET; |
---|
| 31 | #endif |
---|
| 32 | |
---|
| 33 | private: std::string name; |
---|
| 34 | private: Tusage_t _usage; |
---|
| 35 | private: morpheo::behavioural::@NAMESPACE_USE::Parameters * _param; |
---|
| 36 | #ifdef STATISTICS |
---|
| 37 | private: morpheo::behavioural::Parameters_Statistics * _param_stat; |
---|
| 38 | #endif |
---|
| 39 | private: @COMPONENT * component; |
---|
| 40 | |
---|
| 41 | private: void usage |
---|
| 42 | ( |
---|
| 43 | #ifdef MTI_SYSTEMC |
---|
| 44 | int argc, const char * const * argv |
---|
| 45 | #else |
---|
| 46 | int argc, char * argv[] |
---|
| 47 | #endif |
---|
| 48 | ); |
---|
| 49 | private: void allocation (void); |
---|
| 50 | private: void deallocation (void); |
---|
| 51 | public : void test (void); |
---|
| 52 | |
---|
| 53 | #ifdef MTI_SYSTEMC |
---|
| 54 | SC_CTOR(top::top); |
---|
| 55 | #else |
---|
| 56 | public : top (sc_module_name module_name,int argc, char * argv[]); |
---|
| 57 | #endif |
---|
| 58 | public : ~top(void); |
---|
| 59 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.