Last change
on this file since 39 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:
554 bytes
|
Rev | Line | |
---|
[31] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/include/Interfaces.h" |
---|
| 9 | |
---|
| 10 | namespace morpheo { |
---|
| 11 | namespace behavioural { |
---|
| 12 | |
---|
| 13 | Interface * Interfaces::find_interface (string name) |
---|
| 14 | { |
---|
| 15 | if (_list_interface->empty()== false) |
---|
| 16 | { |
---|
[38] | 17 | list<Interface*>::iterator i = _list_interface->begin(); |
---|
[31] | 18 | |
---|
| 19 | while (i != _list_interface->end()) |
---|
| 20 | { |
---|
[38] | 21 | if ((*i)->_name == name) |
---|
| 22 | return (*i); |
---|
[31] | 23 | ++i; |
---|
| 24 | } |
---|
| 25 | } |
---|
| 26 | |
---|
| 27 | return NULL; |
---|
| 28 | }; |
---|
| 29 | |
---|
| 30 | }; // end namespace behavioural |
---|
| 31 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.