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:
881 bytes
|
Line | |
---|
1 | /* |
---|
2 | * $Id: top.cpp 113 2009-04-14 18:39:12Z rosiere $ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/@DIRECTORY/SelfTest/include/top.h" |
---|
9 | #include "Behavioural/include/Selftest.h" |
---|
10 | |
---|
11 | #define NB_PARAMS 0 |
---|
12 | |
---|
13 | #ifdef MTI_SYSTEMC |
---|
14 | SC_MODULE_EXPORT(top); |
---|
15 | #endif |
---|
16 | |
---|
17 | #ifdef MTI_SYSTEMC |
---|
18 | SC_CTOR(top::top) |
---|
19 | #else |
---|
20 | top::top (sc_module_name module_name, int argc, char * argv[]) |
---|
21 | #endif |
---|
22 | { |
---|
23 | #ifdef MTI_SYSTEMC |
---|
24 | // accessing command-line arguments with modelsim |
---|
25 | int argc; |
---|
26 | const char * const * argv; |
---|
27 | |
---|
28 | argc = sc_argc (); |
---|
29 | argv = sc_argv (); |
---|
30 | #endif |
---|
31 | |
---|
32 | if (argc != 2+NB_PARAMS) |
---|
33 | usage (argc, argv); |
---|
34 | |
---|
35 | uint32_t x=1; |
---|
36 | SELFTEST0(name,string,argv,x); |
---|
37 | |
---|
38 | _param = new morpheo::behavioural::@NAMESPACE_USE::Parameters |
---|
39 | ( |
---|
40 | true |
---|
41 | ); |
---|
42 | |
---|
43 | // msg(_("%s"),_param.print(0).c_str()); |
---|
44 | |
---|
45 | // Allocation component |
---|
46 | allocation (); |
---|
47 | |
---|
48 | #ifdef MTI_SYSTEMC |
---|
49 | SC_THREAD(test); |
---|
50 | #endif |
---|
51 | } |
---|
52 | |
---|
53 | top::~top (void) |
---|
54 | { |
---|
55 | deallocation (); |
---|
56 | delete _param; |
---|
57 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.