- Timestamp:
- May 1, 2008, 6:48:45 PM (16 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Sort
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Sort/SelfTest/src/test.cpp
r81 r82 7 7 */ 8 8 9 #define NB_ITERATION 1024 10 #define CYCLE_MAX (128*NB_ITERATION) 11 9 12 #include "Behavioural/Generic/Sort/SelfTest/include/test.h" 10 13 #include "Common/include/Test.h" 11 14 #include "Common/include/BitManipulation.h" 12 15 #include "Behavioural/include/Allocation.h" 13 14 #define NB_ITERATION 102415 #define CYCLE_MAX (128*NB_ITERATION)16 17 #define LABEL(str...) \18 { \19 msg (_("{%d} "),static_cast<uint32_t>(sc_simulation_time())); \20 msg (str); \21 msg (_("\n")); \22 } while(0)23 24 #define SC_START(cycle_offset) \25 do \26 { \27 /*cout << "SC_START (begin)" << endl;*/ \28 \29 uint32_t cycle_current = static_cast<uint32_t>(sc_simulation_time()); \30 if (cycle_offset != 0) \31 { \32 cout << "##########[ cycle "<< cycle_current+cycle_offset << " ]" << endl; \33 } \34 \35 if (cycle_current > CYCLE_MAX) \36 { \37 TEST_KO("Maximal cycles Reached"); \38 } \39 \40 sc_start(cycle_offset); \41 \42 /*cout << "SC_START (end )" << endl;*/ \43 } while(0)44 45 16 46 17 class entry_t … … 62 33 Sort * _Sort = new Sort (name.c_str(), 63 34 #ifdef STATISTICS 64 35 _parameters_statistics, 65 36 #endif 66 _param); 37 _param, 38 USE_ALL); 67 39 68 40 #ifdef SYSTEMC -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Sort/include/Sort.h
r81 r82 91 91 #endif 92 92 Parameters * param, 93 morpheo::behavioural::Tusage_t usage =USE_ALL93 morpheo::behavioural::Tusage_t usage 94 94 ); 95 95 public : ~Sort (void); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Sort/include/Types.h
r81 r82 16 16 namespace sort { 17 17 18 typedef uint32_t Taddress_t;18 // typedef uint32_t Taddress_t; 19 19 typedef uint32_t Tdata_t; 20 20
Note: See TracChangeset
for help on using the changeset viewer.