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:
862 bytes
|
Rev | Line | |
---|
[29] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/include/Interfaces.h" |
---|
| 9 | |
---|
| 10 | namespace morpheo { |
---|
| 11 | namespace behavioural { |
---|
| 12 | |
---|
[31] | 13 | Interface * Interfaces::set_interface (string name , |
---|
| 14 | direction_t direction , |
---|
| 15 | localisation_t localisation) |
---|
[29] | 16 | { |
---|
[31] | 17 | Interface * interface = new Interface (name, direction, localisation); |
---|
| 18 | |
---|
[38] | 19 | _list_interface->push_back (interface); |
---|
[31] | 20 | |
---|
[38] | 21 | return interface; |
---|
[29] | 22 | }; |
---|
| 23 | |
---|
[31] | 24 | Interface * Interfaces::set_interface (string name , |
---|
| 25 | direction_t direction , |
---|
| 26 | localisation_t localisation, |
---|
| 27 | string comment ) |
---|
| 28 | { |
---|
| 29 | Interface * interface = set_interface(name, direction, localisation); |
---|
| 30 | |
---|
| 31 | interface->set_comment (comment); |
---|
[29] | 32 | |
---|
[31] | 33 | return interface; |
---|
| 34 | }; |
---|
| 35 | |
---|
| 36 | |
---|
[29] | 37 | }; // end namespace behavioural |
---|
| 38 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.