scc 2025.09
SystemC components library
scc::sc_clock_ext Struct Reference

A clock source with construction time configurable start delay. More...

#include <sc_clock_ext.h>

Inheritance diagram for scc::sc_clock_ext:
Collaboration diagram for scc::sc_clock_ext:

Public Member Functions

 sc_clock_ext (const char *name_, const sc_core::sc_time &period_, double duty_cycle_=0.5, const sc_core::sc_time &start_time_=sc_core::SC_ZERO_TIME, bool posedge_first_=true)

Public Attributes

cci::cci_param< sc_core::sc_time > period
 The period of the generated clock.
cci::cci_param< double > duty_cycle
 The duty cycle of the generated clock.
cci::cci_param< sc_core::sc_time > initial_delay
 The start time of the generated clock.

Protected Member Functions

void end_of_elaboration () override
void period_write_callback (const cci::cci_param_write_event< int > &ev)

Static Protected Member Functions

static std::string get_cci_name (const char *base, const char *name)

Detailed Description

A clock source with construction time configurable start delay.

The sc_clock_ext class extends the sc_core::sc_clock class to provide additional functionality, such as configuration via CCI. It allows users to specify the period, duty cycle, and start time of the generated clock .

Definition at line 36 of file sc_clock_ext.h.

Constructor & Destructor Documentation

◆ sc_clock_ext()

scc::sc_clock_ext::sc_clock_ext ( const char * name_,
const sc_core::sc_time & period_,
double duty_cycle_ = 0.5,
const sc_core::sc_time & start_time_ = sc_core::SC_ZERO_TIME,
bool posedge_first_ = true )
inline

Definition at line 56 of file sc_clock_ext.h.

Member Function Documentation

◆ end_of_elaboration()

void scc::sc_clock_ext::end_of_elaboration ( )
inlineoverrideprotected

Definition at line 68 of file sc_clock_ext.h.

◆ get_cci_name()

std::string scc::sc_clock_ext::get_cci_name ( const char * base,
const char * name )
inlinestaticprotected

Definition at line 81 of file sc_clock_ext.h.

◆ period_write_callback()

void scc::sc_clock_ext::period_write_callback ( const cci::cci_param_write_event< int > & ev)
inlineprotected

Definition at line 80 of file sc_clock_ext.h.

Member Data Documentation

◆ duty_cycle

cci::cci_param<double> scc::sc_clock_ext::duty_cycle

The duty cycle of the generated clock.

This parameter allows users to specify the duty cycle of the generated clock.

Definition at line 48 of file sc_clock_ext.h.

◆ initial_delay

cci::cci_param<sc_core::sc_time> scc::sc_clock_ext::initial_delay

The start time of the generated clock.

This parameter allows users to specify the start time of the generated clock.

Definition at line 54 of file sc_clock_ext.h.

◆ period

cci::cci_param<sc_core::sc_time> scc::sc_clock_ext::period

The period of the generated clock.

This parameter allows users to specify the period of the generated clock.

Definition at line 42 of file sc_clock_ext.h.


The documentation for this struct was generated from the following file:
  • /home/eyck/Projects/MINRES/SystemC-Components/src/sysc/scc/sc_clock_ext.h