Changeset 88 for trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_fifo_testbench_test.cpp
- Timestamp:
- Dec 10, 2008, 7:31:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_fifo_testbench_test.cpp
r81 r88 13 13 14 14 std::string Interface_fifo::testbench_test (Vhdl * & vhdl, 15 16 15 std::string counter_name, 16 std::string reset_name ) 17 17 { 18 18 log_printf(FUNC,Behavioural,"testbench_test","Begin"); … … 27 27 vhdl->set_body(""); 28 28 29 test_name = testbench_test_name (vhdl);29 test_name = testbench_test_name (vhdl); 30 30 std::string test_name_tmp = test_name+"_tmp"; 31 31 std::string test_name_ok = testbench_test_ok (vhdl); … … 54 54 vhdl->set_body(test_name + " <= '1' when ("+reset_name+" = '0') else "+test_name_tmp+";"); 55 55 56 #ifdef VHDL_TESTBENCH_ASSERT57 if (_list_cycle->empty()== false)58 {59 vhdl->set_body("");60 vhdl->set_body("-- Assert ...");61 vhdl->set_body("");56 // #ifdef VHDL_TESTBENCH_ASSERT 57 // if (_list_cycle->empty()== false) 58 // { 59 // vhdl->set_body(""); 60 // vhdl->set_body("-- Assert ..."); 61 // vhdl->set_body(""); 62 62 63 uint32_t j = 0;64 std::list<uint32_t>::iterator i = _list_cycle->begin();63 // uint32_t j = 0; 64 // std::list<uint32_t>::iterator i = _list_cycle->begin(); 65 65 66 while (i != _list_cycle->end())67 {68 vhdl->set_body("assert not (("+counter_name+" = "+toString(*i)+" and "+test_name+" = '1')) report \"***** <"+_name+"> Test number "+toString(j)+" is OK *****\" severity NOTE;");69 vhdl->set_body("assert not (("+counter_name+" = "+toString(*i)+" and "+test_name+" = '0')) report \"@@@@@ <"+_name+"> Test number "+toString(j)+" is KO !!! @@@@@\" severity NOTE;");70 j++;71 ++i;72 }66 // while (i != _list_cycle->end()) 67 // { 68 // vhdl->set_body("assert not (("+counter_name+" = "+toString(*i)+" and "+test_name+" = '1')) report \"***** <"+_name+"> Test number "+toString(j)+" is OK *****\" severity NOTE;"); 69 // vhdl->set_body("assert not (("+counter_name+" = "+toString(*i)+" and "+test_name+" = '0')) report \"@@@@@ <"+_name+"> Test number "+toString(j)+" is KO !!! @@@@@\" severity NOTE;"); 70 // j++; 71 // ++i; 72 // } 73 73 74 vhdl->set_body("");75 }76 #endif74 // vhdl->set_body(""); 75 // } 76 // #endif 77 77 } 78 78 … … 80 80 81 81 return test_name; 82 83 82 }; 84 83
Note: See TracChangeset
for help on using the changeset viewer.