Last change
on this file since 61 was
57,
checked in by rosiere, 17 years ago
|
- VHDL - RegisterFile_Multi_Banked (only partial_crossbar)
- SystemC - modif Component, interface and co -> ajout du type Tusage_T pour instancier un coposant mais ne demander que le VHDL ou le systemC.
- Séminaire interne
|
File size:
935 bytes
|
Rev | Line | |
---|
[31] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
[42] | 8 | #include "Behavioural/include/Component.h" |
---|
[31] | 9 | |
---|
| 10 | namespace morpheo { |
---|
| 11 | namespace behavioural { |
---|
| 12 | |
---|
[43] | 13 | #undef FUNCTION |
---|
| 14 | #define FUNCTION "Component::set_component" |
---|
[42] | 15 | void Component::set_component (Component * component |
---|
| 16 | #ifdef POSITION |
---|
[57] | 17 | ,uint32_t pos_x |
---|
| 18 | ,uint32_t pos_y |
---|
| 19 | ,uint32_t size_x |
---|
| 20 | ,uint32_t size_y |
---|
[42] | 21 | #endif |
---|
[57] | 22 | ,Tinstance_t instance |
---|
[42] | 23 | ) |
---|
[31] | 24 | { |
---|
[43] | 25 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
| 26 | |
---|
[42] | 27 | Entity * entity = component->_entity; |
---|
[38] | 28 | |
---|
[57] | 29 | Tcomponent_t * entry = new Tcomponent_t; |
---|
| 30 | |
---|
| 31 | entry->_instance = instance; |
---|
| 32 | entry->_entity = entity; |
---|
[31] | 33 | |
---|
[57] | 34 | _list_component->push_back(entry); |
---|
| 35 | |
---|
[42] | 36 | #ifdef POSITION |
---|
[57] | 37 | if (instance & INSTANCE_POSITION) |
---|
| 38 | entity->mapping( pos_x, pos_y, size_x, size_y); |
---|
[42] | 39 | #endif |
---|
[43] | 40 | |
---|
| 41 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
[31] | 42 | }; |
---|
| 43 | |
---|
| 44 | }; // end namespace behavioural |
---|
| 45 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.