Last change
on this file since 29 was
29,
checked in by rosiere, 17 years ago
|
Changement de classes de gestions des Interfaces.
-> simplification pour les déclarations de ports, application pour le composant Select_Priority_Fixed.
-> !!! essayer de supprimer la redondance dans les fichierx xxx_vhdl_testbench_transition.cpp
|
File size:
792 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 | { |
---|
| 17 | if (not _list_interface.empty()) |
---|
| 18 | { |
---|
| 19 | list<Interface>::iterator i = _list_interface.begin(); |
---|
| 20 | |
---|
| 21 | while (i != _list_interface.end()) |
---|
| 22 | { |
---|
| 23 | (*i).set_port (vhdl); |
---|
| 24 | ++i; |
---|
| 25 | } |
---|
| 26 | } |
---|
| 27 | }; |
---|
| 28 | |
---|
| 29 | void Interfaces::set_port (Vhdl_Testbench * & vhdl_testbench) |
---|
| 30 | { |
---|
| 31 | if (not _list_interface.empty()) |
---|
| 32 | { |
---|
| 33 | list<Interface>::iterator i = _list_interface.begin(); |
---|
| 34 | |
---|
| 35 | while (i != _list_interface.end()) |
---|
| 36 | { |
---|
| 37 | (*i).set_port (vhdl_testbench); |
---|
| 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.