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:
969 bytes
|
Rev | Line | |
---|
[2] | 1 | #ifdef VHDL_TESTBENCH |
---|
| 2 | |
---|
| 3 | /* |
---|
| 4 | * $Id$ |
---|
| 5 | * |
---|
| 6 | * [ Description ] |
---|
| 7 | * |
---|
| 8 | */ |
---|
| 9 | |
---|
| 10 | #include "Behavioural/include/Vhdl_Testbench.h" |
---|
| 11 | |
---|
| 12 | #include <sstream> |
---|
| 13 | using namespace std; |
---|
| 14 | |
---|
| 15 | namespace morpheo { |
---|
| 16 | namespace behavioural { |
---|
| 17 | |
---|
[41] | 18 | // uint32_t Vhdl_Testbench::get_output (void) |
---|
| 19 | // { |
---|
| 20 | // list<string>::iterator i = _list_output.begin(); |
---|
[2] | 21 | |
---|
[41] | 22 | // uint32_t counter = 0; |
---|
[2] | 23 | |
---|
[41] | 24 | // if (i != _list_output.end()) |
---|
| 25 | // { |
---|
| 26 | // _vhdl->set_body (""); |
---|
| 27 | // _vhdl->set_body ("with testbench_counter select"); |
---|
| 28 | // _vhdl->set_body ("\ttestbench_test <="); |
---|
[2] | 29 | |
---|
[41] | 30 | // while (i != _list_output.end()) |
---|
| 31 | // { |
---|
| 32 | // list<string>::iterator j = i; |
---|
| 33 | // ++i; |
---|
[2] | 34 | |
---|
[41] | 35 | // if (i != _list_output.end()) |
---|
| 36 | // _vhdl->set_body ("\t\""+*j+"\" when "+toString(counter++)+","); |
---|
| 37 | // else |
---|
| 38 | // _vhdl->set_body ("\t\""+*j+"\" when others;"); |
---|
| 39 | // } |
---|
| 40 | // } |
---|
[2] | 41 | |
---|
[41] | 42 | // return counter; |
---|
| 43 | // }; |
---|
[2] | 44 | |
---|
| 45 | }; // end namespace behavioural |
---|
| 46 | }; // end namespace morpheo |
---|
| 47 | |
---|
| 48 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.