Last change
on this file since 114 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.1 KB
|
Line | |
---|
1 | /* |
---|
2 | * $Id: Component_set_component.cpp 113 2009-04-14 18:39:12Z rosiere $ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/include/Component.h" |
---|
9 | |
---|
10 | namespace morpheo { |
---|
11 | namespace behavioural { |
---|
12 | |
---|
13 | #undef FUNCTION |
---|
14 | #define FUNCTION "Component::set_component" |
---|
15 | void Component::set_component (Component * component |
---|
16 | #ifdef POSITION |
---|
17 | ,uint32_t pos_x |
---|
18 | ,uint32_t pos_y |
---|
19 | ,uint32_t size_x |
---|
20 | ,uint32_t size_y |
---|
21 | #endif |
---|
22 | ,Tinstance_t instance |
---|
23 | ,std::string architecture |
---|
24 | ) |
---|
25 | { |
---|
26 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
27 | |
---|
28 | Entity * entity = component->_entity; |
---|
29 | |
---|
30 | Tcomponent_t * entry = new Tcomponent_t; |
---|
31 | |
---|
32 | entry->_component = component; |
---|
33 | entry->_instance = instance; |
---|
34 | entry->_architecture = architecture; |
---|
35 | entry->_entity = entity; |
---|
36 | |
---|
37 | _list_component->push_back(entry); |
---|
38 | |
---|
39 | #ifdef POSITION |
---|
40 | if (instance & INSTANCE_POSITION) |
---|
41 | entity->mapping( pos_x, pos_y, size_x, size_y); |
---|
42 | #endif |
---|
43 | |
---|
44 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
45 | }; |
---|
46 | |
---|
47 | }; // end namespace behavioural |
---|
48 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.