sc_core::sc_clock Class Reference

#include <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 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
sc_signal_in_if< bool > & signal ()
const sc_signal_in_if< bool > & signal () const

Static Public Member Functions

static const sc_timetime_stamp ()
static void start (const sc_time &duration)
static void start (double v, sc_time_unit tu)
static void start (double duration=-1)
static void stop ()

Protected Member Functions

void before_end_of_elaboration ()
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

Private Member Functions

 sc_clock (const sc_clock &)
sc_clockoperator= (const sc_clock &)

Friends

class sc_clock_posedge_callback
class sc_clock_negedge_callback

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 
)

sc_core::sc_clock::~sc_clock (  )  [virtual]

sc_core::sc_clock::sc_clock ( const sc_clock  )  [private]


Member Function Documentation

void sc_core::sc_clock::write ( const bool &   )  [virtual]

Reimplemented from sc_core::sc_signal< bool >.

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

double sc_core::sc_clock::duty_cycle (  )  const [inline]

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

sc_time sc_core::sc_clock::start_time (  )  const [inline]

const sc_time & sc_core::sc_clock::time_stamp (  )  [static]

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

Reimplemented from sc_core::sc_signal< bool >.

sc_signal_in_if<bool>& sc_core::sc_clock::signal (  )  [inline]

const sc_signal_in_if<bool>& sc_core::sc_clock::signal (  )  const [inline]

static void sc_core::sc_clock::start ( const sc_time duration  )  [inline, static]

static void sc_core::sc_clock::start ( double  v,
sc_time_unit  tu 
) [inline, static]

static void sc_core::sc_clock::start ( double  duration = -1  )  [inline, static]

static void sc_core::sc_clock::stop (  )  [inline, static]

void sc_core::sc_clock::before_end_of_elaboration (  )  [protected, virtual]

Reimplemented from sc_core::sc_prim_channel.

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

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

void sc_core::sc_clock::report_error ( const char *  id,
const char *  add_msg = 0 
) const [protected]

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]

Reimplemented from sc_core::sc_signal< bool >.

sc_clock& sc_core::sc_clock::operator= ( const sc_clock  )  [private]


Friends And Related Function Documentation

friend class sc_clock_posedge_callback [friend]

friend class sc_clock_negedge_callback [friend]


Member Data Documentation

sc_time sc_core::sc_clock::m_period [protected]

double sc_core::sc_clock::m_duty_cycle [protected]

sc_time sc_core::sc_clock::m_start_time [protected]

bool sc_core::sc_clock::m_posedge_first [protected]

sc_time sc_core::sc_clock::m_posedge_time [protected]

sc_time sc_core::sc_clock::m_negedge_time [protected]

sc_event sc_core::sc_clock::m_next_posedge_event [protected]

sc_event sc_core::sc_clock::m_next_negedge_event [protected]


The documentation for this class was generated from the following files:
Generated on Wed Apr 25 13:53:29 2007 for SystemC by  doxygen 1.5.1