Go to the documentation of this file.
61 name += std::string(to ?
"_posedge_action" :
"_negedge_action");
104 double duty_cycle,
const sc_time &start_time,
105 bool posedge_first) :
107 _period(period), _dutyCycle(duty_cycle), _startTime(start_time),
108 _posedgeFirst(posedge_first)
112 "increase the period: clock '" +
113 std::string(
name) +
"'";
119 "increase the period or increase the duty cycle: clock '" +
120 std::string(
name) +
"'";
126 "increase the period or decrease the duty cycle: clock '" +
127 std::string(
name) +
"'";
142 double duty_cycle,
double start_time_v,
145 sc_time(start_time_v, start_time_tu), posedge_first)
149 double start_time,
bool posedge_first) :
151 sc_time(start_time, true), posedge_first)
167 panic(
"write() called on sc_clock.");
double duty_cycle() const
ProcessMemberFuncWrapper<::sc_core::sc_clock > funcWrapper
const char SC_ID_CLOCK_PERIOD_ZERO_[]
void deschedule(ScEvent *event)
static const sc_time & time_stamp()
const char SC_ID_CLOCK_HIGH_TIME_ZERO_[]
const sc_time SC_ZERO_TIME
const sc_time & start_time() const
const sc_time & period() const
::sc_core::sc_time _period
#define SC_REPORT_ERROR(msg_type, msg)
const char SC_ID_CLOCK_LOW_TIME_ZERO_[]
virtual void before_end_of_elaboration()
const char * sc_gen_unique_name(const char *seed)
const std::string & name()
ClockTick(::sc_core::sc_clock *clock, bool to, ::sc_core::sc_time _period)
const char * name() const
void schedule(ScEvent *event, const ::sc_core::sc_time &delay)
virtual void write(const bool &)
bool posedge_first() const
::sc_gem5::ClockTick * _gem5UpEdge
const sc_time & sc_time_stamp()
::sc_gem5::ClockTick * _gem5DownEdge
#define panic(...)
This implements a cprintf based panic() function.
Generated on Wed Sep 30 2020 14:02:14 for gem5 by doxygen 1.8.17