Changeset 131 for trunk/IPs/systemC/processor/Morpheo/Common/include
- Timestamp:
- Jul 8, 2009, 8:40:08 PM (15 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Common/include
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Common/include/Systemc.h
r113 r131 36 36 37 37 #ifdef MTI_SYSTEMC 38 # define simulation_run(x) do{ if (x>0) wait(TIME_PERIOD*x,TIME_UNIT); else for (int i=0; i<1000; ++i) wait(SC_ZERO_TIME); } while(0)38 # define simulation_run(x) do{ if (x>0) wait(TIME_PERIOD*x,TIME_UNIT); else for (int i=0; i<1000; ++i) wait(SC_ZERO_TIME); } while(0) 39 39 #else 40 # define simulation_run(x) do{ sc_start(x); } while(0) 40 # ifdef SYSTEMCASS_SPECIFIC 41 # define simulation_run(x) do{ sc_time t (x,TIME_UNIT); sc_start(t); } while(0) 42 # else // systemc 43 # define simulation_run(x) do{ if(x==0) {sc_start(SC_ZERO_TIME);} else {sc_time t (x,TIME_UNIT); sc_start(t);}} while(0) 44 # endif 41 45 #endif 42 46 43 47 #define simulation_cycle() sc_simulation_time()/TIME_PERIOD 44 48 // #define simulation_cycle() sc_time_stamp()/TIME_PERIOD 45 49 }; 46 50 #endif -
trunk/IPs/systemC/processor/Morpheo/Common/include/Test.h
r113 r131 119 119 TEST_KO("Maximal cycles Reached"); \ 120 120 } \ 121 121 \ 122 122 simulation_run(cycle_offset); \ 123 123 \
Note: See TracChangeset
for help on using the changeset viewer.