Last change
on this file since 41 was
41,
checked in by rosiere, 17 years ago
|
Vhdl_Testbench : Modification du testbench. Maintenant complétement encapsuler dans la classe "Interfaces".
Suppression de la class Vhdl_Testbench dans un avenir proche :D
Suppression du répertoire Configuration.old
|
File size:
908 bytes
|
Line | |
---|
1 | #ifdef VHDL_TESTBENCH |
---|
2 | /* |
---|
3 | * $Id$ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "Behavioural/include/Interface.h" |
---|
10 | #include "Behavioural/include/Entity.h" |
---|
11 | |
---|
12 | namespace morpheo { |
---|
13 | namespace behavioural { |
---|
14 | |
---|
15 | string Interface::testbench_test_ok (Vhdl * & vhdl) |
---|
16 | { |
---|
17 | log_printf(FUNC,Behavioural,"testbench_test_ok","Begin"); |
---|
18 | |
---|
19 | string test_name = testbench_test_ok_name(vhdl); |
---|
20 | |
---|
21 | vhdl->set_body(test_name + " <= '1' when true"); |
---|
22 | // set all condition |
---|
23 | if (_list_signal->empty()== false) |
---|
24 | { |
---|
25 | list<Signal*>::iterator i = _list_signal->begin(); |
---|
26 | |
---|
27 | while (i != _list_signal->end()) |
---|
28 | { |
---|
29 | (*i)->testbench_test_ok(vhdl); |
---|
30 | ++i; |
---|
31 | } |
---|
32 | } |
---|
33 | vhdl->set_body("else '0';"); |
---|
34 | vhdl->set_body(""); |
---|
35 | |
---|
36 | log_printf(FUNC,Behavioural,"testbench_test_ok","End"); |
---|
37 | |
---|
38 | return test_name; |
---|
39 | }; |
---|
40 | |
---|
41 | }; // end namespace behavioural |
---|
42 | }; // end namespace morpheo |
---|
43 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.