Last change
on this file since 40 was
40,
checked in by rosiere, 17 years ago
|
Interface et Signal, c'est deux classes enregistres la valeurs des signaux à chaque cycle ... étape préparatoire avan le changement de la classe Vhdl_Testbench
|
File size:
865 bytes
|
Rev | Line | |
---|
[38] | 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 | |
---|
[40] | 15 | void Interface::testbench_cycle (void) |
---|
| 16 | { |
---|
| 17 | // note : if defined(VHDL_TESTBENCH) then defined(SYSTEMC) |
---|
| 18 | _list_cycle->push_back(toString(sc_simulation_time())); |
---|
| 19 | } |
---|
| 20 | |
---|
[38] | 21 | void Interface::testbench (Vhdl_Testbench * & vhdl_testbench) |
---|
| 22 | { |
---|
| 23 | log_printf(FUNC,Behavioural,"testbench","Begin"); |
---|
| 24 | |
---|
| 25 | if (_list_signal->empty()== false) |
---|
| 26 | { |
---|
| 27 | list<Signal*>::iterator i = _list_signal->begin(); |
---|
| 28 | |
---|
| 29 | while (i != _list_signal->end()) |
---|
| 30 | { |
---|
| 31 | (*i)->testbench(vhdl_testbench); |
---|
| 32 | ++i; |
---|
| 33 | } |
---|
| 34 | } |
---|
| 35 | |
---|
| 36 | log_printf(FUNC,Behavioural,"testbench","End"); |
---|
| 37 | }; |
---|
| 38 | |
---|
| 39 | }; // end namespace behavioural |
---|
| 40 | }; // end namespace morpheo |
---|
| 41 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.