sc_core::sc_clock Class Reference

The clock channel. More...

#include <sysc/communication/sc_clock.h>

Inheritance diagram for sc_core::sc_clock:
Inheritance graph
[legend]
Collaboration diagram for sc_core::sc_clock:
Collaboration graph
[legend]

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_timeperiod () 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_timetime_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]

Definition at line 95 of file sc_clock.h.

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]

Definition at line 155 of file sc_clock.h.

virtual const char* sc_core::sc_clock::kind (  )  const [inline, virtual]

Reimplemented from sc_core::sc_signal< bool, SC_ONE_WRITER >.

Definition at line 109 of file sc_clock.h.

void sc_core::sc_clock::negedge_action (  )  [inline, protected]

Definition at line 196 of file sc_clock.h.

const sc_time& sc_core::sc_clock::period (  )  const [inline]

Definition at line 91 of file sc_clock.h.

void sc_core::sc_clock::posedge_action (  )  [inline, protected]

Definition at line 183 of file sc_clock.h.

bool sc_core::sc_clock::posedge_first (  )  const [inline]

Definition at line 101 of file sc_clock.h.

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]

Definition at line 104 of file sc_clock.h.

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

friend class sc_clock_negedge_callback [friend]

Definition at line 50 of file sc_clock.h.

friend class sc_clock_posedge_callback [friend]

Definition at line 49 of file sc_clock.h.


Member Data Documentation

double sc_core::sc_clock::m_duty_cycle [protected]

Definition at line 160 of file sc_clock.h.

Definition at line 164 of file sc_clock.h.

Definition at line 167 of file sc_clock.h.

Definition at line 166 of file sc_clock.h.

Definition at line 159 of file sc_clock.h.

Definition at line 162 of file sc_clock.h.

Definition at line 163 of file sc_clock.h.

Definition at line 161 of file sc_clock.h.


The documentation for this class was generated from the following file:

Generated on 30 Sep 2016 for SystemC by  doxygen 1.6.1