- Timestamp:
- May 1, 2008, 6:48:45 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/SelfTest/src/test.cpp
r81 r82 7 7 */ 8 8 9 #include "Behavioural/Generic/Queue/SelfTest/include/test.h"10 #include "Common/include/Test.h"11 12 9 #define NB_ITERATION 1 13 10 #define CYCLE_MAX (2048*NB_ITERATION) 14 11 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) 12 #include "Behavioural/Generic/Queue/SelfTest/include/test.h" 13 #include "Common/include/Test.h" 41 14 42 15 void test (string name, … … 49 22 #endif 50 23 51 Queue * _Queue = new Queue (name.c_str(), 24 Queue * _Queue = new Queue 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 … … 121 96 for (uint32_t iteration=0; iteration<NB_ITERATION; iteration ++) 122 97 { 123 LABEL("Iteration "+toString(iteration));98 LABEL("Iteration %d",iteration); 124 99 125 100 while (data_out <= nb_request)
Note: See TracChangeset
for help on using the changeset viewer.