Searched refs:sc_time (Results 1 - 25 of 194) sorted by relevance

12345678

/gem5/src/systemc/ext/core/
H A Dsc_time.hh51 class sc_time class in namespace:sc_core
54 sc_time();
55 sc_time(double, sc_time_unit);
56 sc_time(const sc_time &);
59 sc_time(double, const char *);
62 sc_time(double, bool);
63 sc_time(sc_dt::uint64, bool);
65 sc_time &operator = (const sc_time
[all...]
H A Dsc_prim.hh34 #include "sc_time.hh"
70 void next_trigger(const sc_time &);
72 void next_trigger(const sc_time &, const sc_event &);
74 void next_trigger(const sc_time &, const sc_event_or_list &);
76 void next_trigger(const sc_time &, const sc_event_and_list &);
87 void wait(const sc_time &);
89 void wait(const sc_time &, const sc_event &);
91 void wait(const sc_time &, const sc_event_or_list &);
93 void wait(const sc_time &, const sc_event_and_list &);
/gem5/ext/systemc/src/sysc/kernel/
H A Dsc_time.h22 sc_time.h -- The time class.
44 const sc_time operator + ( const sc_time&, const sc_time& );
45 const sc_time operator - ( const sc_time&, const sc_time& );
46 const sc_time operator * ( const sc_time&, double );
47 const sc_time operato
75 class sc_time class in namespace:sc_core
157 sc_time::sc_time() function in class:sc_core::sc_time
162 sc_time::sc_time( const sc_time& t ) function in class:sc_core::sc_time
[all...]
H A Dsc_wait.h71 wait( const sc_time&,
79 wait( sc_time( v, tu, simc ), simc );
84 wait( const sc_time&,
94 wait( sc_time( v, tu, simc ), e, simc );
99 wait( const sc_time&,
109 wait( sc_time( v, tu, simc ), el, simc );
114 wait( const sc_time&,
124 wait( sc_time( v, tu, simc ), el, simc );
154 next_trigger( const sc_time&,
162 next_trigger( sc_time(
[all...]
/gem5/src/systemc/tests/systemc/kernel/sc_time/test08/
H A Dtest08.cpp45 sc_time t1( 1.2345, SC_NS );
/gem5/src/systemc/ext/tlm_core/2/quantum/
H A Dglobal_quantum.hh23 #include "../../../core/sc_time.hh"
36 // sc_time object is created. This means that after setting the
55 void set(const sc_core::sc_time &t) { m_global_quantum = t; }
56 const sc_core::sc_time &get() const { return m_global_quantum; }
65 sc_core::sc_time compute_local_quantum();
71 sc_core::sc_time m_global_quantum;
/gem5/src/systemc/core/
H A Dsc_time.cc40 #include "systemc/ext/core/sc_time.hh"
50 set(::sc_core::sc_time *time, double d, ::sc_core::sc_time_unit tu)
59 *time = sc_time::from_value(static_cast<uint64_t>(tmp));
66 sc_time::sc_time() : val(0) {} function in class:sc_core::sc_time
68 sc_time::sc_time(double d, sc_time_unit tu) function in class:sc_core::sc_time
74 sc_time::sc_time(const sc_time function in class:sc_core::sc_time
79 sc_time::sc_time(double d, const char *unit) function in class:sc_core::sc_time
97 sc_time::sc_time(double d, bool scale) function in class:sc_core::sc_time
103 sc_time::sc_time(sc_dt::uint64 v, bool scale) function in class:sc_core::sc_time
[all...]
H A Dsc_time_python.cc33 #include "systemc/ext/core/sc_time.hh"
43 pybind11::class_<sc_core::sc_time> sc_time(systemc, "sc_time");
44 sc_time
48 .def(pybind11::init<const sc_core::sc_time &>())
51 .def("value", &sc_core::sc_time::value)
52 .def("to_double", &sc_core::sc_time::to_double)
53 .def("to_seconds", &sc_core::sc_time::to_seconds)
54 .def("to_string", &sc_core::sc_time
[all...]
/gem5/ext/systemc/src/tlm_core/tlm_2/tlm_quantum/
H A Dtlm_global_quantum.h35 // sc_time object is created. This means that after setting the
58 void set(const sc_core::sc_time& t)
63 const sc_core::sc_time& get() const
75 sc_core::sc_time compute_local_quantum()
78 const sc_core::sc_time current = sc_core::sc_time_stamp();
79 const sc_core::sc_time g_quant = m_global_quantum;
92 sc_core::sc_time m_global_quantum;
/gem5/src/systemc/tests/systemc/1666-2011-compliance/sc_start_bug/
H A Dsc_start_bug.cpp44 sc_assert( sc_time_stamp() == sc_time(0, SC_NS) );
46 sc_assert( sc_time_stamp() == sc_time(15, SC_NS) );
52 sc_assert( sc_time_stamp() == sc_time(0, SC_NS) );
54 sc_assert( sc_time_stamp() == sc_time(30, SC_NS) );
66 sc_assert( sc_time_stamp() == sc_time(10, SC_NS) );
69 sc_assert( sc_time_stamp() == sc_time(15, SC_NS) );
72 sc_assert( sc_time_stamp() == sc_time(25, SC_NS) );
75 sc_assert( sc_time_stamp() == sc_time(30, SC_NS) );
/gem5/src/systemc/tests/systemc/1666-2011-compliance/sc_start_starvation/
H A Dsc_start_starvation.cpp56 sc_assert( sc_time_to_pending_activity() == sc_time(250, SC_NS) );
62 sc_assert( sc_time_to_pending_activity() == sc_time(150, SC_NS) );
76 sc_assert( sc_time_to_pending_activity() == sc_time(250, SC_NS) );
82 sc_assert( sc_time_stamp() == sc_time(100, SC_NS) );
86 sc_assert( sc_time_to_pending_activity() == sc_time(50, SC_NS) );
89 sc_assert( sc_time_stamp() == sc_time(110, SC_NS) );
90 sc_assert( sc_time_to_pending_activity() == sc_time(40, SC_NS) );
93 sc_assert( sc_time_stamp() == sc_time(110, SC_NS) );
97 sc_assert( sc_time_stamp() == sc_time(150, SC_NS) );
100 sc_assert( sc_time_to_pending_activity() == sc_time(10
[all...]
/gem5/src/systemc/tests/systemc/kernel/sc_time/test01/
H A Dtest01.cpp38 // test of sc_time's methods
47 sc_time t1;
51 sc_time t2 = sc_time::from_value( v );
55 sc_time t3 = sc_time::from_value( v );
59 sc_time t4 = sc_time::from_value( v );
63 sc_time t5 = sc_time
[all...]
/gem5/src/systemc/tlm_core/2/quantum/
H A Dglobal_quantum.cc21 #include "systemc/ext/core/sc_time.hh"
38 sc_core::sc_time
42 const sc_core::sc_time current = sc_core::sc_time_stamp();
43 const sc_core::sc_time g_quant = m_global_quantum;
44 return sc_core::sc_time::from_value(
/gem5/src/systemc/ext/channel/
H A Dsc_event_queue.hh40 #include "../core/sc_time.hh"
51 virtual void notify(const sc_time &) = 0;
67 virtual void notify(const sc_time &);
77 sc_time, std::vector<sc_time>, std::greater<sc_time> > _times;
H A Dsc_clock.hh33 #include "../core/sc_time.hh"
49 class sc_time;
57 sc_clock(const char *name, const sc_time &period,
58 double duty_cycle=0.5, const sc_time &start_time=SC_ZERO_TIME,
76 const sc_time &period() const;
78 const sc_time &start_time() const;
82 static const sc_time &time_stamp();
96 sc_time _period;
98 sc_time _startTime;
/gem5/ext/systemc/src/tlm_utils/
H A Dtlm_quantumkeeper.h47 static void set_global_quantum(const sc_core::sc_time& t)
52 static const sc_core::sc_time& get_global_quantum()
71 virtual void inc(const sc_core::sc_time& t)
81 virtual void set(const sc_core::sc_time& t)
110 void set_and_sync(const sc_core::sc_time& t)
135 virtual sc_core::sc_time get_current_time() const
145 virtual sc_core::sc_time get_local_time() const
160 virtual sc_core::sc_time compute_local_quantum()
166 sc_core::sc_time m_next_sync_point;
167 sc_core::sc_time m_local_tim
[all...]
/gem5/src/systemc/ext/tlm_utils/
H A Dtlm_quantumkeeper.h23 #include "../core/sc_time.hh"
44 set_global_quantum(const sc_core::sc_time &t)
49 static const sc_core::sc_time &
65 virtual void inc(const sc_core::sc_time &t) { m_local_time += t; }
70 virtual void set(const sc_core::sc_time &t) { m_local_time = t; }
94 set_and_sync(const sc_core::sc_time &t)
116 virtual sc_core::sc_time
125 virtual sc_core::sc_time
139 virtual sc_core::sc_time
146 sc_core::sc_time m_next_sync_poin
[all...]
/gem5/src/systemc/tests/systemc/kernel/sc_time/test19/
H A Dtest19.cpp22 test19.cpp -- Test sc_time string/tuple conversions
31 void check_time( const sc_time& t, sc_time_unit tu, const std::string & str )
49 sc_time u = sc_time::from_string( str.c_str() );
54 u = sc_time( tp.to_double(), tp.unit_symbol() );
73 check_time( sc_time( 10, SC_NS), SC_NS, "10 ns" );
74 check_time( sc_time( 100, SC_NS), SC_NS, "100 ns" );
75 check_time( sc_time(1000, SC_NS), SC_US, "1 us" );
76 check_time( sc_time( 0.1, SC_US), SC_NS, "100 ns" );
77 check_time( sc_time(
[all...]
/gem5/src/systemc/tests/systemc/tmp/others/sc_start_starvation/
H A Dsc_start_starvation.cpp40 sc_assert( sc_time_stamp() == sc_time(100, SC_NS) );
43 sc_assert( sc_time_stamp() == sc_time(110, SC_NS) );
46 sc_assert( sc_time_stamp() == sc_time(110, SC_NS) );
54 sc_assert( sc_time_stamp() == sc_time(150, SC_NS) ); // FAILS. Does not see ev2
57 sc_assert( sc_time_stamp() == sc_time(150, SC_NS) );
60 sc_assert( sc_time_stamp() == sc_time(200, SC_NS) );
64 sc_assert( sc_time_stamp() == sc_time(250, SC_NS) );
68 sc_assert( sc_time_stamp() == sc_time(250, SC_NS) );
72 sc_assert( sc_time_stamp() == sc_time(260, SC_NS) );
75 sc_start(sc_time(10
[all...]
/gem5/ext/systemc/src/sysc/communication/
H A Dsc_event_queue.cpp37 const sc_time* t1 = static_cast<const sc_time*>( p1 );
38 const sc_time* t2 = static_cast<const sc_time*>( p2 );
76 void sc_event_queue::notify (const sc_time& when)
79 sc_time* t = new sc_time( when+sc_time_stamp() );
91 sc_time* t = m_ppq.extract_top();
/gem5/src/systemc/tests/systemc/communication/sc_clock/test03/
H A Dtest03.cpp47 sc_time t1( 8, SC_NS );
48 sc_time t2( 2, SC_NS );
/gem5/src/systemc/tests/systemc/communication/sc_clock/test04/
H A Dtest04.cpp47 sc_time t1( 8, SC_NS );
48 sc_time t2( 2, SC_NS );
/gem5/src/systemc/channel/
H A Dsc_event_queue.cc32 #include "systemc/ext/core/sc_time.hh"
50 notify(sc_time(d, tu));
54 sc_event_queue::notify(const sc_time &t)
65 sc_time, std::vector<sc_time>, std::greater<sc_time> >();
/gem5/src/systemc/tests/systemc/misc/memory_explosion/test01/
H A Dtest01.cpp67 e1.notify(sc_time(5,sc_ns));
85 e2.notify(sc_time(1,sc_ns));
88 e3.notify(sc_time(10,sc_ns));
103 sc_time clk_time(10.0, sc_ns);
109 sc_time sim_time(10.,sc_ms);
/gem5/src/systemc/tests/systemc/tmp/compliance_1666_2011/section_5.3.4.2/test01/
H A Dtest01.cpp64 sc_assert( sc_time_stamp() == sc_time(100, SC_NS) );
67 sc_assert( sc_time_stamp() == sc_time(110, SC_NS) );
70 // sc_assert( sc_time_stamp() == sc_time(120, SC_NS) );
71 sc_assert( sc_time_stamp() == sc_time(110, SC_NS) );
74 sc_assert( sc_time_stamp() == sc_time(150, SC_NS) );
77 sc_assert( sc_time_stamp() == sc_time(150, SC_NS) );

Completed in 21 milliseconds

12345678