|
gem5 [DEVELOP-FOR-25.0]
|
#include <sc_clock.hh>
Public Member Functions | |
| sc_clock () | |
| sc_clock (const char *name) | |
| sc_clock (const char *name, const sc_time &period, double duty_cycle=0.5, const sc_time &start_time=SC_ZERO_TIME, bool posedge_first=true) | |
| sc_clock (const char *name, double period_v, sc_time_unit period_tu, double duty_cycle=0.5) | |
| sc_clock (const char *name, double period_v, sc_time_unit period_tu, double duty_cycle, double start_time_v, sc_time_unit start_time_tu, bool posedge_first=true) | |
| sc_clock (const char *name, double period, double duty_cycle=0.5, double start_time=0.0, bool posedge_first=true) | |
| virtual | ~sc_clock () |
| virtual void | write (const bool &) |
| const sc_time & | period () const |
| double | duty_cycle () const |
| const sc_time & | start_time () const |
| bool | posedge_first () const |
| virtual const char * | kind () const |
Public Member Functions inherited from sc_core::sc_signal< bool > | |
| sc_signal () | |
| sc_signal (const char *name) | |
| sc_signal (const char *name, const bool &initial_value) | |
| virtual | ~sc_signal () |
| sc_signal< bool, SC_ONE_WRITER > & | operator= (const bool &t) |
| sc_signal< bool, SC_ONE_WRITER > & | operator= (const sc_signal< bool, SC_ONE_WRITER > &s) |
| sc_signal () | |
| sc_signal (const char *name) | |
| sc_signal (const char *name, const bool &initial_value) | |
| virtual | ~sc_signal () |
| sc_signal< bool, SC_ONE_WRITER > & | operator= (const bool &t) |
| sc_signal< bool, SC_ONE_WRITER > & | operator= (const sc_signal< bool, SC_ONE_WRITER > &s) |
| sc_signal () | |
| sc_signal (const char *name) | |
| sc_signal (const char *name, const bool &initial_value) | |
| virtual | ~sc_signal () |
| sc_signal< bool, SC_ONE_WRITER > & | operator= (const bool &t) |
| sc_signal< bool, SC_ONE_WRITER > & | operator= (const sc_signal< bool, SC_ONE_WRITER > &s) |
Public Member Functions inherited from sc_gem5::ScSignalBaseT< bool, SC_ONE_WRITER > | |
| ScSignalBaseT (const char *_name) | |
| ScSignalBaseT (const char *_name, const bool &initial_value) | |
| virtual | ~ScSignalBaseT () |
| virtual void | register_port (sc_core::sc_port_base &port, const char *iface_type_name) |
| virtual const bool & | read () const |
| operator const bool & () const | |
| virtual const sc_core::sc_event & | default_event () const |
| virtual const sc_core::sc_event & | value_changed_event () const |
| virtual void | print (std::ostream &os=std::cout) const |
| virtual void | dump (std::ostream &os=std::cout) const |
| virtual bool | event () const |
| virtual sc_core::sc_writer_policy | get_writer_policy () const |
Public Member Functions inherited from sc_core::sc_object | |
| const char * | name () const |
| const char * | basename () const |
| virtual const std::vector< sc_object * > & | get_child_objects () const |
| virtual const std::vector< sc_event * > & | get_child_events () const |
| sc_object * | get_parent_object () const |
| bool | add_attribute (sc_attr_base &) |
| sc_attr_base * | get_attribute (const std::string &) |
| sc_attr_base * | remove_attribute (const std::string &) |
| void | remove_all_attributes () |
| int | num_attributes () const |
| sc_attr_cltn & | attr_cltn () |
| const sc_attr_cltn & | attr_cltn () const |
| sc_simcontext * | simcontext () const |
Public Member Functions inherited from sc_core::sc_signal_in_if< bool > | |
| virtual const sc_event & | posedge_event () const =0 |
| virtual const sc_event & | negedge_event () const =0 |
| virtual bool | posedge () const =0 |
| virtual bool | negedge () const =0 |
Public Member Functions inherited from sc_core::sc_interface | |
| virtual | ~sc_interface () |
Static Public Member Functions | |
| static const sc_time & | time_stamp () |
Private Member Functions | |
| sc_clock (const sc_clock &) | |
| sc_clock & | operator= (const sc_clock &) |
| void | tickUp () |
| void | tickDown () |
Private Attributes | |
| sc_time | _period |
| double | _dutyCycle |
| sc_time | _startTime |
| bool | _posedgeFirst |
| ::sc_gem5::ClockTick * | _gem5UpEdge |
| ::sc_gem5::ClockTick * | _gem5DownEdge |
Friends | |
| class | ::sc_gem5::ClockTick |
Additional Inherited Members | |
Protected Attributes inherited from sc_gem5::ScSignalBaseT< bool, SC_ONE_WRITER > | |
| bool | m_cur_val |
| bool | m_new_val |
| WriteChecker< WRITER_POLICY > | _checker |
Protected Attributes inherited from sc_gem5::ScSignalBase | |
| InternalScEvent | _valueChangedEvent |
| uint64_t | _changeStamp |
| sc_core::sc_port_base * | _gem5WriterPort |
Protected Attributes inherited from sc_gem5::ScSignalBaseBinary | |
| std::vector< sc_gem5::Reset * > | _resets |
| InternalScEvent | _posedgeEvent |
| InternalScEvent | _negedgeEvent |
| uint64_t | _posStamp |
| uint64_t | _negStamp |
Definition at line 49 of file sc_clock.hh.
| sc_core::sc_clock::sc_clock | ( | ) |
Definition at line 93 of file sc_clock.cc.
References sc_clock(), sc_core::sc_gen_unique_name(), sc_core::SC_NS, and sc_core::SC_ZERO_TIME.
Referenced by operator=(), sc_clock(), sc_clock(), sc_clock(), sc_clock(), sc_clock(), and sc_clock().
|
explicit |
Definition at line 98 of file sc_clock.cc.
References name(), sc_clock(), sc_core::SC_NS, and sc_core::SC_ZERO_TIME.
| sc_core::sc_clock::sc_clock | ( | const char * | name, |
| const sc_time & | period, | ||
| double | duty_cycle = 0.5, | ||
| const sc_time & | start_time = SC_ZERO_TIME, | ||
| bool | posedge_first = true ) |
Definition at line 102 of file sc_clock.cc.
References _dutyCycle, _gem5DownEdge, _gem5UpEdge, _period, _posedgeFirst, _startTime, duty_cycle(), name(), period(), posedge_first(), sc_core::SC_ID_CLOCK_HIGH_TIME_ZERO_, sc_core::SC_ID_CLOCK_LOW_TIME_ZERO_, sc_core::SC_ID_CLOCK_PERIOD_ZERO_, SC_REPORT_ERROR, sc_core::sc_signal< bool >::sc_signal(), sc_core::SC_ZERO_TIME, and start_time().
| sc_core::sc_clock::sc_clock | ( | const char * | name, |
| double | period_v, | ||
| sc_time_unit | period_tu, | ||
| double | duty_cycle = 0.5 ) |
Definition at line 134 of file sc_clock.cc.
References duty_cycle(), name(), sc_clock(), and sc_core::SC_ZERO_TIME.
| sc_core::sc_clock::sc_clock | ( | const char * | name, |
| double | period_v, | ||
| sc_time_unit | period_tu, | ||
| double | duty_cycle, | ||
| double | start_time_v, | ||
| sc_time_unit | start_time_tu, | ||
| bool | posedge_first = true ) |
Definition at line 140 of file sc_clock.cc.
References duty_cycle(), name(), posedge_first(), and sc_clock().
| sc_core::sc_clock::sc_clock | ( | const char * | name, |
| double | period, | ||
| double | duty_cycle = 0.5, | ||
| double | start_time = 0.0, | ||
| bool | posedge_first = true ) |
Definition at line 147 of file sc_clock.cc.
References duty_cycle(), name(), period(), posedge_first(), sc_clock(), and start_time().
|
virtual |
Definition at line 153 of file sc_clock.cc.
References _gem5DownEdge, _gem5UpEdge, and sc_gem5::scheduler.
|
inlineprivate |
Definition at line 91 of file sc_clock.hh.
References sc_clock(), and sc_core::sc_signal< bool >::sc_signal().
|
protectedvirtual |
Reimplemented from sc_core::sc_prim_channel.
Definition at line 181 of file sc_clock.cc.
References _dutyCycle, _gem5DownEdge, _gem5UpEdge, _period, _posedgeFirst, _startTime, and sc_gem5::scheduler.
| double sc_core::sc_clock::duty_cycle | ( | ) | const |
Definition at line 170 of file sc_clock.cc.
References _dutyCycle.
Referenced by sc_clock(), sc_clock(), sc_clock(), and sc_clock().
|
inlinevirtual |
Reimplemented from sc_gem5::ScSignalBase.
Definition at line 82 of file sc_clock.hh.
Definition at line 92 of file sc_clock.hh.
References sc_clock().
| const sc_time & sc_core::sc_clock::period | ( | ) | const |
Definition at line 169 of file sc_clock.cc.
References _period.
Referenced by sc_clock(), and sc_clock().
| bool sc_core::sc_clock::posedge_first | ( | ) | const |
Definition at line 172 of file sc_clock.cc.
References _posedgeFirst.
Referenced by sc_clock(), sc_clock(), and sc_clock().
| const sc_time & sc_core::sc_clock::start_time | ( | ) | const |
Definition at line 171 of file sc_clock.cc.
References _startTime.
Referenced by sc_clock(), and sc_clock().
|
inlineprivate |
Definition at line 109 of file sc_clock.hh.
References sc_gem5::ScSignalBaseT< bool, SC_ONE_WRITER >::m_new_val, and sc_core::sc_prim_channel::request_update().
|
inlineprivate |
Definition at line 103 of file sc_clock.hh.
References sc_gem5::ScSignalBaseT< bool, SC_ONE_WRITER >::m_new_val, and sc_core::sc_prim_channel::request_update().
|
static |
Definition at line 175 of file sc_clock.cc.
References sc_core::sc_time_stamp().
|
virtual |
Reimplemented from sc_gem5::ScSignalBaseT< bool, SC_ONE_WRITER >.
Definition at line 164 of file sc_clock.cc.
References panic.
|
friend |
Definition at line 88 of file sc_clock.hh.
|
private |
Definition at line 95 of file sc_clock.hh.
Referenced by before_end_of_elaboration(), duty_cycle(), and sc_clock().
|
private |
Definition at line 100 of file sc_clock.hh.
Referenced by before_end_of_elaboration(), sc_clock(), and ~sc_clock().
|
private |
Definition at line 99 of file sc_clock.hh.
Referenced by before_end_of_elaboration(), sc_clock(), and ~sc_clock().
|
private |
Definition at line 94 of file sc_clock.hh.
Referenced by before_end_of_elaboration(), period(), and sc_clock().
|
private |
Definition at line 97 of file sc_clock.hh.
Referenced by before_end_of_elaboration(), posedge_first(), and sc_clock().
|
private |
Definition at line 96 of file sc_clock.hh.
Referenced by before_end_of_elaboration(), sc_clock(), and start_time().