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:
706 bytes
|
Line | |
---|
1 | #ifdef VHDL_TESTBENCH |
---|
2 | /* |
---|
3 | * $Id$ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "Behavioural/include/Interfaces.h" |
---|
10 | #include "Behavioural/include/Entity.h" |
---|
11 | |
---|
12 | namespace morpheo { |
---|
13 | namespace behavioural { |
---|
14 | |
---|
15 | void Interfaces::testbench (Vhdl_Testbench * & vhdl_testbench) |
---|
16 | { |
---|
17 | log_printf(FUNC,Behavioural,"testbench","Begin"); |
---|
18 | |
---|
19 | if (_list_interface->empty()== false) |
---|
20 | { |
---|
21 | list<Interface*>::iterator i = _list_interface->begin(); |
---|
22 | |
---|
23 | while (i != _list_interface->end()) |
---|
24 | { |
---|
25 | (*i)->testbench(vhdl_testbench); |
---|
26 | ++i; |
---|
27 | } |
---|
28 | } |
---|
29 | |
---|
30 | log_printf(FUNC,Behavioural,"testbench","End"); |
---|
31 | }; |
---|
32 | |
---|
33 | }; // end namespace behavioural |
---|
34 | }; // end namespace morpheo |
---|
35 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.