source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_Testbench_get_label.cpp @ 2

Last change on this file since 2 was 2, checked in by kane, 17 years ago

Import Morpheo

File size: 671 bytes
Line 
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>
13using namespace std;
14
15namespace morpheo              {
16namespace 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.