Last change
on this file since 38 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:
802 bytes
|
Rev | Line | |
---|
[29] | 1 | #ifdef VHDL |
---|
| 2 | /* |
---|
| 3 | * $Id$ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/include/Interfaces.h" |
---|
| 10 | |
---|
| 11 | |
---|
| 12 | namespace morpheo { |
---|
| 13 | namespace behavioural { |
---|
| 14 | |
---|
| 15 | void Interfaces::set_port (Vhdl * & vhdl) |
---|
| 16 | { |
---|
[31] | 17 | if (not _list_interface->empty()) |
---|
[29] | 18 | { |
---|
[38] | 19 | list<Interface*>::iterator i = _list_interface->begin(); |
---|
[29] | 20 | |
---|
[31] | 21 | while (i != _list_interface->end()) |
---|
[29] | 22 | { |
---|
[38] | 23 | (*i)->set_port (vhdl); |
---|
[29] | 24 | ++i; |
---|
| 25 | } |
---|
| 26 | } |
---|
| 27 | }; |
---|
| 28 | |
---|
| 29 | void Interfaces::set_port (Vhdl_Testbench * & vhdl_testbench) |
---|
| 30 | { |
---|
[31] | 31 | if (not _list_interface->empty()) |
---|
[29] | 32 | { |
---|
[38] | 33 | list<Interface*>::iterator i = _list_interface->begin(); |
---|
[29] | 34 | |
---|
[31] | 35 | while (i != _list_interface->end()) |
---|
[29] | 36 | { |
---|
[38] | 37 | (*i)->set_port (vhdl_testbench); |
---|
[29] | 38 | ++i; |
---|
| 39 | } |
---|
| 40 | } |
---|
| 41 | }; |
---|
| 42 | |
---|
| 43 | }; // end namespace behavioural |
---|
| 44 | }; // end namespace morpheo |
---|
| 45 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.