Last change
on this file since 40 was
38,
checked in by rosiere, 17 years ago
|
Interface et vhdl_testbench : l'appel aux fonction add_input et add_ouput est maintenant réalisé par la classe Interface (et autre).
2 remarques :
- tester avec des sous composants (en particulier les sorties d'un est directement relié au sortie d'un autre)
- Signal_testbench.cpp -> l'optimisé (par exemple pointeur de fonction afin d'éviter le test et le switch)
|
File size:
553 bytes
|
Rev | Line | |
---|
[31] | 1 | #ifdef POSITION |
---|
| 2 | /* |
---|
| 3 | * $Id$ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/include/Position.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | |
---|
[38] | 14 | void Position::set_component (Position * position, |
---|
| 15 | uint32_t pos_x , |
---|
| 16 | uint32_t pos_y , |
---|
| 17 | uint32_t size_x , |
---|
| 18 | uint32_t size_y ) |
---|
[31] | 19 | { |
---|
[38] | 20 | Entity * entity = position->_entity; |
---|
| 21 | |
---|
[31] | 22 | _list_component->push_back(entity); |
---|
| 23 | |
---|
[38] | 24 | entity->mapping( pos_x, pos_y, size_x, size_y); |
---|
[31] | 25 | }; |
---|
| 26 | |
---|
| 27 | }; // end namespace behavioural |
---|
| 28 | }; // end namespace morpheo |
---|
| 29 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.