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 | |
---|
| 18 | void Vhdl_Testbench::get_label (void) |
---|
| 19 | { |
---|
| 20 | for (list<label_t>::iterator i = _list_label.begin(); i != _list_label.end(); i++) |
---|
| 21 | { |
---|
| 22 | _vhdl->set_body(""); |
---|
| 23 | _vhdl->set_body("assert (not (testbench_counter = " + toString(i->_cycle)+"))"); |
---|
| 24 | _vhdl->set_body("report \"***** "+i->_label+" *****\""); |
---|
| 25 | _vhdl->set_body("severity NOTE;"); |
---|
| 26 | } |
---|
| 27 | }; |
---|
| 28 | |
---|
| 29 | }; // end namespace behavioural |
---|
| 30 | }; // end namespace morpheo |
---|
| 31 | |
---|
| 32 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.