Searched refs:sc_time (Results 26 - 50 of 194) sorted by relevance

12345678

/gem5/src/systemc/tests/systemc/tmp/others/OLD_sc_start_starvation/
H A DOLD_sc_start_starvation.cpp31 sc_assert( sc_time_stamp() == sc_time(100, SC_NS) );
34 sc_assert( sc_time_stamp() == sc_time(110, SC_NS) );
37 sc_assert( sc_time_stamp() == sc_time(110, SC_NS) );
40 sc_assert( sc_time_stamp() == sc_time(150, SC_NS) ); // FAILS - time = 200 NS
43 sc_assert( sc_time_stamp() == sc_time(150, SC_NS) );
/gem5/ext/systemc/src/sysc/communication/
H A Dsc_clock.h61 const sc_time& period_,
63 const sc_time& start_time_ = SC_ZERO_TIME,
93 const sc_time& period() const
106 sc_time start_time() const
109 static const sc_time& time_stamp();
124 static void start( const sc_time& duration )
128 { sc_start( sc_time(v, tu) ); }
150 void init( const sc_time&, double, const sc_time&, bool );
156 sc_time m_perio
[all...]
H A Dsc_event_queue.h68 virtual void notify (const sc_time& when) =0;
95 virtual void notify (const sc_time& when);
111 void cancel (const sc_time& when);
118 unsigned pending(const sc_time& when) const;
126 sc_ppq<sc_time*> m_ppq;
135 notify( sc_time(when,base) );
/gem5/src/systemc/tests/systemc/misc/unit/control/wait/
H A Dwait.cpp40 using sc_core::sc_time;
54 if (sc_core::sc_time_stamp() < sc_time(2000, SC_US)) {
58 if (sc_core::sc_time_stamp() < sc_time(3000, SC_US)) {
59 sc_time delay(10, SC_US);
64 if (sc_core::sc_time_stamp() < sc_time(4000, SC_US)) {
78 sc_time delay(10, SC_US);
88 SC_WAIT_UNTIL(sc_core::sc_time_stamp() > sc_time(1000, SC_US));
109 sc_core::sc_start(sc_time(15, SC_US));
114 sc_core::sc_start(sc_time(10, SC_US));
117 sc_core::sc_start(sc_time(1
[all...]
/gem5/src/systemc/tests/systemc/1666-2011-compliance/method_with_reset/
H A Dmethod_with_reset.cpp138 wait(sc_time(200, SC_NS) - sc_time_stamp());
166 wait(sc_time(300, SC_NS) - sc_time_stamp());
214 wait(sc_time(500, SC_NS) - sc_time_stamp());
247 wait(sc_time(600, SC_NS) - sc_time_stamp());
269 case 5: sc_assert( sc_time_stamp() == sc_time( 40, SC_NS) ); f0=1; break;
270 case 15: sc_assert( sc_time_stamp() == sc_time(200, SC_NS) ); f3=1; break;
271 case 17: sc_assert( sc_time_stamp() == sc_time(220, SC_NS) ); f4=1; break;
277 case 8: sc_assert( sc_time_stamp() == sc_time( 70, SC_NS) ); f1=1; break;
278 case 10: sc_assert( sc_time_stamp() == sc_time( 90, SC_NS) ); f2=1; break;
279 case 22: sc_assert( sc_time_stamp() == sc_time(30
[all...]
/gem5/src/systemc/tests/systemc/1666-2011-compliance/proc_ctrl_timeout/
H A Dproc_ctrl_timeout.cpp105 wait(sc_time(100, SC_NS) - sc_time_stamp());
123 wait(sc_time(200, SC_NS) - sc_time_stamp());
141 wait(sc_time(300, SC_NS) - sc_time_stamp());
161 wait(sc_time(400, SC_NS) - sc_time_stamp());
199 wait(sc_time(500, SC_NS) - sc_time_stamp());
217 case 0: sc_assert( sc_time_stamp() == sc_time(0, SC_NS) ); f1=1; break;
227 case 1: sc_assert( sc_time_stamp() == sc_time(10, SC_NS) ); f5=1; break;
238 case 0: sc_assert( sc_time_stamp() == sc_time(0, SC_NS) ); f2=1; break;
239 case 1: sc_assert( sc_time_stamp() == sc_time(10, SC_NS) ); f6=1; break;
250 case 0: sc_assert( sc_time_stamp() == sc_time(
[all...]
/gem5/src/systemc/ext/tlm_core/1/analysis/
H A Dwrite_if.hh39 virtual void write(const T &t, const sc_core::sc_time &time) = 0;
H A Danalysis_triple.hh29 sc_core::sc_time start_time;
31 sc_core::sc_time end_time;
/gem5/ext/systemc/src/tlm_core/tlm_1/tlm_analysis/
H A Dtlm_analysis_triple.h30 sc_core::sc_time start_time;
32 sc_core::sc_time end_time;
/gem5/src/systemc/tests/systemc/1666-2011-compliance/proc_ctrl/
H A Dproc_ctrl.cpp40 using sc_core::sc_time;
200 case 0: sc_assert( sc_time_stamp() == sc_time(0, SC_NS) ); f1=1; break;
201 case 3: sc_assert( sc_time_stamp() == sc_time(35, SC_NS) ); f3=1; break;
202 case 4: sc_assert( sc_time_stamp() == sc_time(55, SC_NS) ); f4=1; break;
203 case 8: sc_assert( sc_time_stamp() == sc_time(95, SC_NS) ); f8=1; break;
204 case 12: sc_assert( sc_time_stamp() == sc_time(135, SC_NS) ); f11=1; break;
205 case 14: sc_assert( sc_time_stamp() == sc_time(155, SC_NS) ); f12=1; break;
216 case 1: sc_assert( sc_time_stamp() == sc_time(10, SC_NS) ); f2=1; break;
217 case 5: sc_assert( sc_time_stamp() == sc_time(75, SC_NS) ); f5=1; break;
218 case 6: sc_assert( sc_time_stamp() == sc_time(8
[all...]
/gem5/src/systemc/tests/systemc/compliance_1666/test205/
H A Dtest205.cpp13 sc_assert(sc_time_stamp() == sc_time(0, SC_NS));
15 sc_assert(sc_time_stamp() == sc_time(3, SC_NS));
23 sc_assert(sc_time_stamp() == sc_time(4, SC_NS));
25 sc_assert(sc_time_stamp() == sc_time(7, SC_NS));
43 sc_assert(sc_time_stamp() == sc_time(8, SC_NS));
45 sc_assert(sc_time_stamp() == sc_time(11, SC_NS));
/gem5/src/systemc/ext/tlm_core/2/interfaces/
H A Ddmi.hh23 #include "../../../core/sc_time.hh"
61 sc_core::sc_time get_read_latency() const { return m_dmi_read_latency; }
62 sc_core::sc_time get_write_latency() const { return m_dmi_write_latency; }
84 void set_read_latency(sc_core::sc_time t) { m_dmi_read_latency = t; }
85 void set_write_latency(sc_core::sc_time t) { m_dmi_write_latency = t; }
119 sc_core::sc_time m_dmi_read_latency;
120 sc_core::sc_time m_dmi_write_latency;
/gem5/src/systemc/tests/systemc/1666-2011-compliance/method_suspends_itself/
H A Dmethod_suspends_itself.cpp317 wait(sc_time(400, SC_NS) - sc_time_stamp());
341 case 1: sc_assert( sc_time_stamp() == sc_time(10, SC_NS) ); f0=1; break;
342 case 2: sc_assert( sc_time_stamp() == sc_time(20, SC_NS) ); f1=1; break;
343 case 4: sc_assert( sc_time_stamp() == sc_time(35, SC_NS) ); count = 5; f2=1; break;
344 case 5: sc_assert( sc_time_stamp() == sc_time(40, SC_NS) ); f3=1; break;
345 case 6: sc_assert( sc_time_stamp() == sc_time(50, SC_NS) ); f4=1; break;
346 case 7: sc_assert( sc_time_stamp() == sc_time(60, SC_NS) ); f5=1; break;
347 case 8: sc_assert( sc_time_stamp() == sc_time(70, SC_NS) ); f6=1; break;
348 case 10: sc_assert( sc_time_stamp() == sc_time(85, SC_NS) ); count = 11; f7=1; break;
349 case 11: sc_assert( sc_time_stamp() == sc_time(9
[all...]
/gem5/src/systemc/tests/systemc/1666-2011-compliance/throw_it/
H A Dthrow_it.cpp112 wait(sc_time(200, SC_NS) - sc_time_stamp());
131 wait(sc_time(300, SC_NS) - sc_time_stamp());
148 wait(sc_time(400, SC_NS) - sc_time_stamp());
154 wait(sc_time(400, SC_NS) - sc_time_stamp());
166 wait(sc_time(500, SC_NS) - sc_time_stamp());
175 wait(sc_time(600, SC_NS) - sc_time_stamp());
209 wait(sc_time(700, SC_NS) - sc_time_stamp());
221 case 0: sc_assert( sc_time_stamp() == sc_time( 0, SC_NS) ); f2=1; break;
222 case 12: sc_assert( sc_time_stamp() == sc_time(405, SC_NS) ); f13=1; break;
223 case 17: sc_assert( sc_time_stamp() == sc_time(51
[all...]
/gem5/src/systemc/tests/systemc/1666-2011-compliance/sync_reset/
H A Dsync_reset.cpp226 wait(sc_time(300, SC_NS) - sc_time_stamp());
241 wait(sc_time(405, SC_NS) - sc_time_stamp());
262 case 1: sc_assert( sc_time_stamp() == sc_time(0, SC_NS) ); f0=1; break;
263 case 2: sc_assert( sc_time_stamp() == sc_time(20, SC_NS) ); f1=1; break;
264 case 3: sc_assert( sc_time_stamp() == sc_time(30, SC_NS) ); f2=1; break;
265 case 7: sc_assert( sc_time_stamp() == sc_time(70, SC_NS) ); f3=1; break;
266 case 15: sc_assert( sc_time_stamp() == sc_time(140, SC_NS) ); f4=1; break;
267 case 18: sc_assert( sc_time_stamp() == sc_time(170, SC_NS) ); f5=1; break;
268 case 19: sc_assert( sc_time_stamp() == sc_time(175, SC_NS) ); f6=1; break;
269 case 20: sc_assert( sc_time_stamp() == sc_time(17
[all...]
/gem5/src/systemc/tests/systemc/1666-2011-compliance/proc_ctrl_priority/
H A Dproc_ctrl_priority.cpp110 wait(sc_time(100, SC_NS) - sc_time_stamp());
130 wait(sc_time(200, SC_NS) - sc_time_stamp());
182 wait(sc_time(300, SC_NS) - sc_time_stamp());
221 wait(sc_time(400, SC_NS) - sc_time_stamp());
238 wait(sc_time(500, SC_NS) - sc_time_stamp());
294 wait(sc_time(700, SC_NS) - sc_time_stamp());
303 case 0: sc_assert( sc_time_stamp() == sc_time(0, SC_NS) ); f1=1; break;
304 case 6: sc_assert( sc_time_stamp() == sc_time(50, SC_NS) ); f5=1; break;
305 case 9: sc_assert( sc_time_stamp() == sc_time(110, SC_NS) ); f7=1; break;
306 case 10: sc_assert( sc_time_stamp() == sc_time(12
[all...]
/gem5/src/systemc/channel/
H A Dsc_clock.cc50 ::sc_core::sc_time _period;
57 ::sc_core::sc_time _period) :
97 sc_clock(sc_gen_unique_name("clock"), sc_time(1.0, SC_NS),
102 sc_clock(name, sc_time(1.0, SC_NS), 0.5, SC_ZERO_TIME, true)
105 sc_clock::sc_clock(const char *name, const sc_time &period,
106 double duty_cycle, const sc_time &start_time,
139 sc_clock(name, sc_time(period_v, period_tu), duty_cycle, SC_ZERO_TIME,
146 sc_clock(name, sc_time(period_v, period_tu), duty_cycle,
147 sc_time(start_time_v, start_time_tu), posedge_first)
152 sc_clock(name, sc_time(perio
[all...]
/gem5/src/systemc/tests/tlm/cancel_all/
H A Dcancel_all.cpp31 m_peq.notify( *trans, phase, sc_time(rand() % 100, SC_NS) );
43 m_peq.notify( *trans, phase, sc_time(rand() % 100, SC_NS) );
54 sc_time t = sc_time_stamp();
61 sc_assert( t >= sc_time(0, SC_NS) && t <= sc_time(50, SC_NS) );
68 sc_assert( t >= sc_time(50, SC_NS) && t <= sc_time(100, SC_NS) );
100 m_peq.notify( *trans, sc_time(rand() % 100, SC_NS) );
112 m_peq.notify( *trans, sc_time(rand() % 100, SC_NS) );
129 sc_time
[all...]
/gem5/src/systemc/tests/systemc/1666-2011-compliance/async_reset_port/
H A Dasync_reset_port.cpp95 if (count == 2) { sc_assert(sc_time_stamp() == sc_time( 15, SC_NS)); f1 = 1; }
97 if (count == 18) { sc_assert(sc_time_stamp() == sc_time(135, SC_NS)); f16 = 1; }
98 if (count == 19) { sc_assert(sc_time_stamp() == sc_time(145, SC_NS)); f25 = 1; }
102 if (count == 16) { sc_assert(sc_time_stamp() == sc_time(125, SC_NS)); f10 = 1; }
103 if (count == 20) { sc_assert(sc_time_stamp() == sc_time(155, SC_NS)); f31 = 1; }
109 if (count == 4) { sc_assert(sc_time_stamp() == sc_time( 35, SC_NS)); f2 = 1; }
111 if (count == 18) { sc_assert(sc_time_stamp() == sc_time(135, SC_NS)); f17 = 1; }
112 if (count == 19) { sc_assert(sc_time_stamp() == sc_time(145, SC_NS)); f26 = 1; }
116 if (count == 16) { sc_assert(sc_time_stamp() == sc_time(125, SC_NS)); f11 = 1; }
117 if (count == 20) { sc_assert(sc_time_stamp() == sc_time(15
[all...]
/gem5/src/systemc/tests/systemc/1666-2011-compliance/async_reset/
H A Dasync_reset.cpp132 wait(sc_time(20, SC_NS) - sc_time_stamp());
144 wait(sc_time(30, SC_NS) - sc_time_stamp());
168 wait(sc_time(40, SC_NS) - sc_time_stamp());
180 wait(sc_time(50, SC_NS) - sc_time_stamp());
203 wait(sc_time(60, SC_NS) - sc_time_stamp());
239 wait(sc_time(100, SC_NS) - sc_time_stamp());
346 case 4: sc_assert( sc_time_stamp() == sc_time(20, SC_NS) ); f2=1; break;
347 case 7: sc_assert( sc_time_stamp() == sc_time(30, SC_NS) ); f3=1; break;
348 case 8: sc_assert( sc_time_stamp() == sc_time(31, SC_NS) ); f4=1; break;
349 case 9: sc_assert( sc_time_stamp() == sc_time(3
[all...]
/gem5/src/systemc/tests/systemc/1666-2011-compliance/include_descendants/
H A Dinclude_descendants.cpp106 wait(sc_time(110, SC_NS) - sc_time_stamp());
110 wait(sc_time(210, SC_NS) - sc_time_stamp());
129 sc_assert( sc_time_stamp() == sc_time(10, SC_NS) );
132 sc_assert( sc_time_stamp() == sc_time(40, SC_NS) );
138 sc_assert( sc_time_stamp() == sc_time(60, SC_NS) );
149 sc_assert( sc_time_stamp() == sc_time(10, SC_NS) );
152 sc_assert( sc_time_stamp() == sc_time(40, SC_NS) );
158 sc_assert( sc_time_stamp() == sc_time(60, SC_NS) );
175 sc_assert( sc_time_stamp() == sc_time(110, SC_NS) );
186 case 9: sc_assert( sc_time_stamp() == sc_time(10
[all...]
/gem5/ext/systemc/src/sysc/kernel/
H A Dsc_time.cpp22 sc_time.cpp --
35 #include "sysc/kernel/sc_time.h"
76 // CLASS : sc_time
83 sc_time::sc_time( double v, sc_time_unit tu ) function in class:sc_core::sc_time
96 sc_time::sc_time( double v, sc_time_unit tu, sc_simcontext* simc ) function in class:sc_core::sc_time
109 sc_time::sc_time( double v, bool scale ) function in class:sc_core::sc_time
116 "deprecated constructor: sc_time(doubl
136 sc_time::sc_time( value_type v, bool scale ) function in class:sc_core::sc_time
[all...]
/gem5/src/systemc/tests/systemc/tmp/others/sc_writer_bug/
H A Dsc_writer_bug.cpp17 sc_time delay;
19 M(sc_module_name _name, sc_time _delay)
32 wait(sc_time(1, SC_NS));
48 m1 = new M("m1", sc_time(1, SC_PS));
49 m2 = new M("m2", sc_time(2, SC_PS));
/gem5/ext/systemc/src/tlm_core/tlm_2/tlm_2_interfaces/
H A Dtlm_dmi.h61 sc_core::sc_time get_read_latency (void) const {return m_dmi_read_latency;}
62 sc_core::sc_time get_write_latency (void) const {return m_dmi_write_latency;}
72 void set_read_latency (sc_core::sc_time t) {m_dmi_read_latency = t;}
73 void set_write_latency (sc_core::sc_time t) {m_dmi_write_latency = t;}
108 sc_core::sc_time m_dmi_read_latency;
109 sc_core::sc_time m_dmi_write_latency;
/gem5/src/systemc/tests/systemc/1666-2011-compliance/disable_enable/
H A Ddisable_enable.cpp96 case 0: sc_assert(sc_time_stamp() == sc_time( 0, SC_NS)); f0 = 1; break;
97 case 5: sc_assert(sc_time_stamp() == sc_time(20, SC_NS)); f4 = 1; break;
98 case 6: sc_assert(sc_time_stamp() == sc_time(30, SC_NS)); f5 = 1; break;
107 case 1: sc_assert(sc_time_stamp() == sc_time( 0, SC_NS)); f1 = 1; break;
108 case 2: sc_assert(sc_time_stamp() == sc_time(10, SC_NS)); f2 = 1; break;
109 case 4: sc_assert(sc_time_stamp() == sc_time(10, SC_NS)); f3 = 1; break;

Completed in 26 milliseconds

12345678