sc_core::sc_clock Class Reference
The clock channel.
More...
#include <sysc/communication/sc_clock.h>
List of all members.
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 | register_port (sc_port_base &, const char *if_type) |
virtual void | write (const bool &) |
const sc_time & | period () const |
double | duty_cycle () const |
bool | posedge_first () const |
sc_time | start_time () const |
virtual const char * | kind () const |
Static Public Member Functions |
static const sc_time & | time_stamp () |
Protected Member Functions |
void | before_end_of_elaboration () |
| This function is not supported by the out-of-order simulation in the current release.
|
void | posedge_action () |
void | negedge_action () |
void | report_error (const char *id, const char *add_msg=0) const |
void | init (const sc_time &, double, const sc_time &, bool) |
bool | is_clock () const |
Protected Attributes |
sc_time | m_period |
double | m_duty_cycle |
sc_time | m_start_time |
bool | m_posedge_first |
sc_time | m_posedge_time |
sc_time | m_negedge_time |
sc_event | m_next_posedge_event |
sc_event | m_next_negedge_event |
Friends |
class | sc_clock_posedge_callback |
class | sc_clock_negedge_callback |
Detailed Description
The clock channel.
Definition at line 43 of file sc_clock.h.
Constructor & Destructor Documentation
sc_core::sc_clock::sc_clock |
( |
|
) |
|
sc_core::sc_clock::sc_clock |
( |
const char * |
name_ |
) |
[explicit] |
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 | |
|
) |
| | |
sc_core::sc_clock::sc_clock |
( |
const char * |
name_, |
|
|
double |
period_v_, |
|
|
sc_time_unit |
period_tu_, |
|
|
double |
duty_cycle_ = 0.5 | |
|
) |
| | |
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 | |
|
) |
| | |
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 | |
|
) |
| | |
virtual sc_core::sc_clock::~sc_clock |
( |
|
) |
[virtual] |
Member Function Documentation
void sc_core::sc_clock::before_end_of_elaboration |
( |
|
) |
[protected, virtual] |
This function is not supported by the out-of-order simulation in the current release.
Reimplemented from sc_core::sc_prim_channel.
double sc_core::sc_clock::duty_cycle |
( |
|
) |
const [inline] |
void sc_core::sc_clock::init |
( |
const sc_time & |
, |
|
|
double |
, |
|
|
const sc_time & |
, |
|
|
bool |
| |
|
) |
| | [protected] |
bool sc_core::sc_clock::is_clock |
( |
|
) |
const [inline, protected] |
virtual const char* sc_core::sc_clock::kind |
( |
|
) |
const [inline, virtual] |
void sc_core::sc_clock::negedge_action |
( |
|
) |
[inline, protected] |
const sc_time& sc_core::sc_clock::period |
( |
|
) |
const [inline] |
void sc_core::sc_clock::posedge_action |
( |
|
) |
[inline, protected] |
bool sc_core::sc_clock::posedge_first |
( |
|
) |
const [inline] |
virtual void sc_core::sc_clock::register_port |
( |
sc_port_base & |
, |
|
|
const char * |
if_type | |
|
) |
| | [virtual] |
void sc_core::sc_clock::report_error |
( |
const char * |
id, |
|
|
const char * |
add_msg = 0 | |
|
) |
| | const [protected] |
sc_time sc_core::sc_clock::start_time |
( |
|
) |
const [inline] |
static const sc_time& sc_core::sc_clock::time_stamp |
( |
|
) |
[static] |
virtual void sc_core::sc_clock::write |
( |
const bool & |
|
) |
[virtual] |
Friends And Related Function Documentation
Member Data Documentation
The documentation for this class was generated from the following file: