Last change
on this file since 128 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 | #ifndef morpheo_behavioural_@DEFINE_Wrapper_@COMPONENT_h |
---|
2 | #define morpheo_behavioural_@DEFINE_Wrapper_@COMPONENT_h |
---|
3 | |
---|
4 | /* |
---|
5 | * $Id: Wrapper_New_Component.h 113 2009-04-14 18:39:12Z rosiere $ |
---|
6 | * |
---|
7 | * [ Description ] |
---|
8 | * |
---|
9 | */ |
---|
10 | |
---|
11 | #include "systemc.h" |
---|
12 | #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Execute_queue/include/Parameters.h" |
---|
13 | #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Execute_queue/include/Types.h" |
---|
14 | #include "Common/include/Environment.h" |
---|
15 | |
---|
16 | #ifdef MODELSIM_COSIMULATION |
---|
17 | |
---|
18 | namespace morpheo { |
---|
19 | namespace behavioural { |
---|
20 | @NAMESPACE_BEGIN |
---|
21 | |
---|
22 | class Wrapper_@COMPONENT : public sc_foreign_module |
---|
23 | { |
---|
24 | // ~~~~~[ Interface ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
25 | // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
26 | public : SC_CLOCK * in_CLOCK ; |
---|
27 | public : SC_IN (Tcontrol_t) * in_NRESET ; |
---|
28 | |
---|
29 | // -----[ Methods ]--------------------------------------------------- |
---|
30 | public : Wrapper_@COMPONENT |
---|
31 | (sc_module_name name_entity, |
---|
32 | std::string name_architecture, |
---|
33 | std::string name_library |
---|
34 | ) : |
---|
35 | sc_foreign_module (name_entity, name_library+"."+name_entity+"("+name_architecture+")") |
---|
36 | { |
---|
37 | // caller affect interface signal |
---|
38 | } |
---|
39 | |
---|
40 | public : ~Wrapper_@COMPONENT (void) |
---|
41 | { |
---|
42 | } |
---|
43 | }; |
---|
44 | |
---|
45 | @NAMESPACE_END |
---|
46 | }; // end namespace behavioural |
---|
47 | }; // end namespace morpheo |
---|
48 | |
---|
49 | #endif |
---|
50 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.