Changeset 82 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Return_Address_Stack/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_Front_end/Front_end/Prediction_unit/Return_Address_Stack/SelfTest/src/test.cpp
r81 r82 7 7 */ 8 8 9 #define NB_ITERATION 16 10 #define CYCLE_MAX (1024*NB_ITERATION) 11 9 12 #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Return_Address_Stack/SelfTest/include/test.h" 10 13 #include "Common/include/Test.h" 11 14 #include "Behavioural/include/Allocation.h" 12 13 #define NB_ITERATION 1614 #define CYCLE_MAX (1024*NB_ITERATION)15 16 #define LABEL(str...) \17 { \18 msg (_("{%d} "),static_cast<uint32_t>(sc_simulation_time())); \19 msg (str); \20 msg (_("\n")); \21 } while(0)22 23 #define SC_START(cycle_offset) \24 do \25 { \26 uint32_t cycle_current = static_cast<uint32_t>(sc_simulation_time()); \27 if (cycle_offset != 0) \28 { \29 cout << "##########[ cycle "<< cycle_current+cycle_offset << " ]"; \30 cout << " (" << __LINE__ << ")" << endl; \31 } \32 \33 if (cycle_current > CYCLE_MAX) \34 { \35 TEST_KO("Maximal cycles Reached"); \36 } \37 \38 sc_start(cycle_offset); \39 \40 } while(0)41 15 42 16 void test (string name, … … 49 23 #endif 50 24 51 Return_Address_Stack * _Return_Address_Stack = new Return_Address_Stack (name.c_str(), 25 Return_Address_Stack * _Return_Address_Stack = new Return_Address_Stack 26 (name.c_str(), 52 27 #ifdef STATISTICS 53 28 _parameters_statistics, 54 29 #endif 55 _param); 30 _param, 31 USE_ALL); 56 32 57 33 #ifdef SYSTEMC
Note: See TracChangeset
for help on using the changeset viewer.