Changeset 82 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/SelfTest/src/test.cpp
- Timestamp:
- May 1, 2008, 6:48:45 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/SelfTest/src/test.cpp
r81 r82 7 7 */ 8 8 9 #define NB_ITERATION 1 10 #define CYCLE_MAX (10240*NB_ITERATION) 11 9 12 #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/SelfTest/include/test.h" 10 13 #include "Common/include/Test.h" 11 12 #define NB_ITERATION 113 #define CYCLE_MAX (10240*NB_ITERATION)14 15 #define LABEL(str) \16 { \17 cout << "{"+toString(static_cast<uint32_t>(sc_simulation_time()))+"} " << str << endl; \18 } while(0)19 20 static uint32_t cycle = 0;21 22 #define SC_START(cycle_offset) \23 do \24 { \25 /*cout << "SC_START (begin)" << endl;*/ \26 \27 uint32_t cycle_current = static_cast<uint32_t>(sc_simulation_time()); \28 if (cycle_current != cycle) \29 { \30 cycle = cycle_current; \31 cout << "##########[ cycle "<< cycle << " ]" << endl; \32 } \33 \34 if (cycle_current > CYCLE_MAX) \35 { \36 TEST_KO("Maximal cycles Reached"); \37 } \38 sc_start(cycle_offset); \39 /*cout << "SC_START (end )" << endl;*/ \40 } while(0)41 14 42 15 void test (string name, … … 49 22 #endif 50 23 51 Register_unit * _Register_unit = new Register_unit (name.c_str(), 24 Register_unit * _Register_unit = new Register_unit 25 (name.c_str(), 52 26 #ifdef STATISTICS 53 27 _parameters_statistics, 54 28 #endif 55 _param); 29 _param, 30 USE_ALL); 56 31 57 32 #ifdef SYSTEMC … … 406 381 for (uint32_t iteration=0; iteration<NB_ITERATION; iteration ++) 407 382 { 408 LABEL("Iteration "+toString(iteration));383 LABEL("Iteration %d",iteration); 409 384 410 385 LABEL("(GPR) Write default value");
Note: See TracChangeset
for help on using the changeset viewer.