/gem5/src/systemc/tests/systemc/1666-2011-compliance/proc_ctrl_elab/ |
H A D | proc_ctrl_elab.cpp | 314 sc_assert( sc_time_stamp() == sc_time(10, SC_NS) );
320 sc_assert( sc_time_stamp() == sc_time(20, SC_NS) );
326 sc_assert( sc_time_stamp() == sc_time(10, SC_NS) );
332 sc_assert( sc_time_stamp() == sc_time(60, SC_NS) );
338 sc_assert( sc_time_stamp() == sc_time(10, SC_NS) );
351 sc_assert( sc_time_stamp() == sc_time(40, SC_NS) );
355 sc_assert( sc_time_stamp() == sc_time(50, SC_NS) );
361 sc_assert( sc_time_stamp() == sc_time(0, SC_NS) );
368 sc_assert( sc_time_stamp() == sc_time(60, SC_NS) );
374 sc_assert( sc_time_stamp() == sc_time(1 [all...] |
/gem5/src/systemc/tests/systemc/compliance_1666/test203b/ |
H A D | test203b.cpp | 23 sc_assert(sc_time_stamp() == sc_time(0, SC_NS)); 25 sc_assert(sc_time_stamp() == sc_time(3, SC_NS)); 33 sc_assert(sc_time_stamp() == sc_time(3, SC_NS)); 35 sc_assert(sc_time_stamp() == sc_time(13, SC_NS)); 42 sc_assert(sc_time_stamp() == sc_time(33, SC_NS)); 46 wait(delay * sc_time(1, SC_NS));
|
/gem5/src/systemc/tests/systemc/compliance_1666/test234/ |
H A D | test234.cpp | 42 sc_assert(sc_time_stamp() == sc_time(1, SC_NS));
44 sc_assert(sc_time_stamp() == sc_time(11, SC_NS));
46 sc_assert(sc_time_stamp() == sc_time(111, SC_NS));
60 sc_assert(sc_time_stamp() == sc_time(1, SC_NS));
62 sc_assert(sc_time_stamp() == sc_time(11, SC_NS));
64 sc_assert(sc_time_stamp() == sc_time(111, SC_NS));
|
/gem5/ext/systemc/src/sysc/communication/ |
H A D | sc_prim_channel.h | 110 void wait( const sc_time& t ) 114 { sc_core::wait( sc_time( v, tu, simcontext() ), simcontext() ); } 116 void wait( const sc_time& t, const sc_event& e ) 120 { sc_core::wait( sc_time( v, tu, simcontext() ), e, simcontext() ); } 122 void wait( const sc_time& t, const sc_event_or_list& el ) 126 { sc_core::wait( sc_time( v, tu, simcontext() ), el, simcontext() ); } 128 void wait( const sc_time& t, const sc_event_and_list& el ) 132 { sc_core::wait( sc_time( v, tu, simcontext() ), el, simcontext() ); } 155 void next_trigger( const sc_time& t ) 159 {sc_core::next_trigger( sc_time( [all...] |
/gem5/ext/systemc/src/sysc/kernel/ |
H A D | sc_method_process.h | 92 void next_trigger( const sc_time&, sc_simcontext* ); 93 void next_trigger( const sc_time&, const sc_event&, sc_simcontext* ); 94 void next_trigger( const sc_time&, const sc_event_or_list&, sc_simcontext* ); 95 void next_trigger( const sc_time&, const sc_event_and_list&, sc_simcontext* ); 121 friend void next_trigger( const sc_time&, 123 friend void next_trigger( const sc_time&, const sc_event&, 125 friend void next_trigger( const sc_time&, const sc_event_or_list&, 127 friend void next_trigger( const sc_time&, const sc_event_and_list&, 153 void next_trigger( const sc_time& ); 154 void next_trigger( const sc_time [all...] |
H A D | sc_simcontext.h | 36 #include "sysc/kernel/sc_time.h" 93 extern void sc_start( const sc_time& duration, 98 sc_start( sc_time((double)duration,unit), p ); 104 sc_start( sc_time(duration,unit), p ); 119 void sc_start( const sc_time&, sc_starvation_policy ); 122 sc_time sc_get_time_resolution(); 124 sc_time sc_get_default_time_unit(); 127 sc_time sc_time_to_pending_activity( const sc_simcontext* ); 143 friend class sc_time; 160 friend void sc_start( const sc_time [all...] |
H A D | sc_thread_process.h | 85 void wait( const sc_time&, sc_simcontext* ); 86 void wait( const sc_time&, const sc_event&, sc_simcontext* ); 87 void wait( const sc_time&, const sc_event_or_list&, sc_simcontext* ); 88 void wait( const sc_time&, const sc_event_and_list&, sc_simcontext* ); 111 friend void wait( const sc_time&, sc_simcontext* ); 112 friend void wait( const sc_time&, const sc_event&, sc_simcontext* ); 113 friend void wait( const sc_time&, const sc_event_or_list&, sc_simcontext* ); 114 friend void wait( const sc_time&, const sc_event_and_list&, sc_simcontext*); 155 void wait( const sc_time& ); 156 void wait( const sc_time [all...] |
/gem5/ext/systemc/src/tlm_utils/ |
H A D | peq_with_get.h | 20 // 12-Jan-2009 John Aynsley Bug fix. sc_time argument to notify should be const 38 typedef std::pair<const sc_core::sc_time, transaction_type*> pair_type; 45 void notify(transaction_type& trans, const sc_core::sc_time& t) 64 sc_core::sc_time now = sc_core::sc_time_stamp(); 88 std::multimap<const sc_core::sc_time, transaction_type*> m_scheduled_events;
|
/gem5/src/systemc/ext/core/ |
H A D | sc_main.hh | 36 #include "sc_time.hh" 55 void sc_start(const sc_time &, sc_starvation_policy p=SC_RUN_TO_TIME); 59 sc_start(sc_time(d, t), p); 75 const sc_time &sc_time_stamp(); 81 sc_time sc_time_to_pending_activity();
|
/gem5/src/systemc/tests/systemc/kernel/sc_start/time_overflow/ |
H A D | time_overflow.cpp | 43 sc_start(sc_max_time() - sc_time(10,SC_NS) );
|
/gem5/src/systemc/tests/systemc/misc/parsing/T_1_1_2_1/ |
H A D | T_1_1_2_1.cpp | 49 sc_time period = clock2.period();
|
/gem5/src/systemc/ext/tlm_utils/ |
H A D | peq_with_get.h | 20 // 12-Jan-2009 John Aynsley Bug fix. sc_time argument to notify should be const 32 #include "../core/sc_time.hh" 42 typedef std::pair<const sc_core::sc_time, transaction_type *> pair_type; 48 notify(transaction_type &trans, const sc_core::sc_time &t) 70 sc_core::sc_time now = sc_core::sc_time_stamp(); 93 std::multimap<const sc_core::sc_time, transaction_type *>
|
/gem5/src/systemc/python/ |
H A D | systemc.py | 31 from _m5.systemc import sc_time 43 __all__ = [ 'sc_main', 'sc_time', 'sc_main_result' ]
|
/gem5/src/systemc/core/ |
H A D | sc_main.cc | 66 sc_start(sc_time::from_value(MaxTick - now), SC_EXIT_ON_STARVATION); 77 sc_start(const sc_time &time, sc_starvation_policy p) 129 const sc_time & 132 static sc_time tstamp(1.0, SC_SEC); 133 tstamp = sc_time::from_value(::sc_gem5::scheduler.getCurTick()); 168 sc_time 171 return sc_time::from_value(::sc_gem5::scheduler.timeToPending());
|
H A D | sc_prim.cc | 108 sc_prim_channel::next_trigger(const sc_time &t) 120 sc_prim_channel::next_trigger(const sc_time &t, const sc_event &e) 132 sc_prim_channel::next_trigger(const sc_time &t, const sc_event_or_list &eol) 145 sc_prim_channel::next_trigger(const sc_time &t, const sc_event_and_list &eal) 194 sc_prim_channel::wait(const sc_time &t) 206 sc_prim_channel::wait(const sc_time &t, const sc_event &e) 218 sc_prim_channel::wait(const sc_time &t, const sc_event_or_list &eol) 230 sc_prim_channel::wait(const sc_time &t, const sc_event_and_list &eal)
|
/gem5/src/systemc/tests/systemc/1666-2011-compliance/event_list/ |
H A D | event_list.cpp | 135 sc_time start; 146 sc_assert( sc_time_stamp() - start == sc_time(20, SC_NS) ); 159 sc_assert( sc_time_stamp() - start == sc_time(21, SC_NS) ); 170 sc_assert( sc_time_stamp() - start == sc_time(24, SC_NS) ); 181 sc_assert( sc_time_stamp() - start == sc_time(200, SC_NS) ); 191 sc_assert( sc_time_stamp() - start == sc_time(202, SC_NS) ); 199 sc_assert( sc_time_stamp() - start == sc_time(500, SC_NS) ); 206 sc_assert( sc_time_stamp() - start == sc_time(1000, SC_NS) ); 215 sc_assert( sc_time_stamp() - start == sc_time(1002, SC_NS) ); 226 sc_assert( sc_time_stamp() - start == sc_time(200 [all...] |
/gem5/src/systemc/tests/include/ |
H A D | SimpleLTTarget2.h | 56 sc_core::sc_time& t) 69 t += sc_core::sc_time(10, sc_core::SC_NS); 77 t += sc_core::sc_time(100, sc_core::SC_NS); 87 sc_core::sc_time& t) 133 dmi_data.set_read_latency(sc_core::sc_time(100, sc_core::SC_NS)); 134 dmi_data.set_write_latency(sc_core::sc_time(10, sc_core::SC_NS));
|
H A D | SimpleLTTarget1.h | 56 m_invalidate_dmi_time = sc_core::sc_time(25, sc_core::SC_NS); 60 sync_enum_type nb_transport_fw(transaction_type& trans, phase_type& phase, sc_core::sc_time& t) 68 void b_transport(transaction_type& trans, sc_core::sc_time &t) 81 t+= sc_core::sc_time(10, sc_core::SC_NS); 89 t += sc_core::sc_time(100, sc_core::SC_NS); 132 dmi_data.set_read_latency(sc_core::sc_time(100, sc_core::SC_NS)); 133 dmi_data.set_write_latency(sc_core::sc_time(10, sc_core::SC_NS)); 155 sc_core::sc_time m_invalidate_dmi_time;
|
/gem5/util/tlm/examples/slave_port/ |
H A D | sc_target.cc | 77 Target::b_transport(tlm::tlm_generic_payload& trans, sc_time& delay) 115 sc_time& delay) 126 sc_time delay; 174 sc_time delay; 178 delay = sc_time(10.0, SC_NS); // Accept delay 186 delay = delay + sc_time(40.0, SC_NS); // Latency 260 sc_time delay; 264 delay = sc_time(10.0, SC_NS);
|
/gem5/src/systemc/tests/systemc/1666-2011-compliance/child_proc_control/ |
H A D | child_proc_control.cpp | 117 sc_assert(sc_time_stamp() == sc_time(10, SC_NS)); 121 sc_assert(sc_time_stamp() == sc_time(60, SC_NS)); 160 case 1: sc_assert(sc_time_stamp() == sc_time( 0, SC_NS)); c0[i] = 1; break; 161 case 2: sc_assert(sc_time_stamp() == sc_time(10, SC_NS)); c2[i] = 1; break; 172 case 2: sc_assert(sc_time_stamp() == sc_time(10, SC_NS)); 174 case 7: sc_assert(sc_time_stamp() == sc_time(60, SC_NS)); 183 case 3: sc_assert(sc_time_stamp() == sc_time(20, SC_NS)); c3[i] = 1; break; 184 case 6: sc_assert(sc_time_stamp() == sc_time(50, SC_NS)); c4[i] = 1; break;
|
/gem5/src/systemc/tests/systemc/1666-2011-compliance/odds_and_ends/ |
H A D | odds_and_ends.cpp | 122 sc_assert( sc_time_stamp() == sc_time(10, SC_NS) || sc_time_stamp() == sc_time(20, SC_NS) ); 129 sc_assert( sc_time_stamp() == sc_time(10, SC_NS) || sc_time_stamp() == sc_time(20, SC_NS) ); 144 sc_assert( sc_time_stamp() == sc_time(105, SC_NS) ); 151 sc_assert( sc_time_stamp() == sc_time(125, SC_NS) ); 173 sc_assert( sc_time_stamp() == sc_time(10, SC_NS) ); 180 sc_assert( sc_time_stamp() == sc_time(10, SC_NS) );
|
/gem5/src/systemc/tests/systemc/communication/sc_clock/test02/ |
H A D | test02.cpp | 47 sc_time t1( 8, SC_NS ); 48 sc_time t2( 2, SC_NS );
|
/gem5/src/systemc/tests/systemc/compliance_1666/test202/ |
H A D | test202.cpp | 33 sc_assert(clk.period() == sc_time(20, SC_NS));
35 sc_assert(clk.start_time() == sc_time(5, SC_NS));
|
/gem5/src/systemc/tests/tlm/static_extensions/ext2gp2ext/ |
H A D | SimpleLTTarget_ext.h | 47 sc_core::sc_time invalidate_dmi_time = sc_core::sc_time(25, sc_core::SC_NS)) : 63 sync_enum_type myNBTransport(transaction_type& trans, phase_type& phase, sc_core::sc_time& t) 89 t += sc_core::sc_time(10, sc_core::SC_NS); 97 t += sc_core::sc_time(100, sc_core::SC_NS); 161 dmi_data.set_read_latency(sc_core::sc_time(100, sc_core::SC_NS)); 162 dmi_data.set_write_latency(sc_core::sc_time(10, sc_core::SC_NS)); 183 sc_core::sc_time m_invalidate_dmi_time;
|
/gem5/src/systemc/tests/tlm/static_extensions/gp2ext/ |
H A D | SimpleLTTarget_ext.h | 47 sc_core::sc_time invalidate_dmi_time = sc_core::sc_time(25, sc_core::SC_NS)) : 63 sync_enum_type myNBTransport(transaction_type& trans, phase_type& phase, sc_core::sc_time& t) 89 t += sc_core::sc_time(10, sc_core::SC_NS); 97 t += sc_core::sc_time(100, sc_core::SC_NS); 161 dmi_data.set_read_latency(sc_core::sc_time(100, sc_core::SC_NS)); 162 dmi_data.set_write_latency(sc_core::sc_time(10, sc_core::SC_NS)); 183 sc_core::sc_time m_invalidate_dmi_time;
|