28 #ifndef __SYSTEMC_EXT_CHANNEL_SC_CLOCK_HH__ 29 #define __SYSTEMC_EXT_CHANNEL_SC_CLOCK_HH__ 31 #include "../core/sc_time.hh" 57 bool posedge_first=
true);
60 double duty_cycle=0.5);
63 double duty_cycle,
double start_time_v,
67 sc_clock(
const char *name,
double period,
double duty_cycle=0.5,
68 double start_time=0.0,
bool posedge_first=
true);
72 virtual void write(
const bool &);
75 double duty_cycle()
const;
76 const sc_time &start_time()
const;
77 bool posedge_first()
const;
80 static const sc_time &time_stamp();
82 virtual const char *
kind()
const {
return "sc_clock"; }
85 virtual void before_end_of_elaboration();
88 friend class ::sc_gem5::ClockTick;
124 #endif //__SYSTEMC_EXT_CHANNEL_SC_CLOCK_HH__
const std::string & name()
::sc_gem5::ClockTick * _gem5DownEdge
::sc_gem5::ClockTick * _gem5UpEdge
sc_clock(const sc_clock &)
const sc_time SC_ZERO_TIME
sc_out< bool > sc_out_clk
sc_inout< bool > sc_inout_clk
virtual const char * kind() const