ForSyDe::CT::square Class Reference

Helper function to construct a square source. More...

#include <ct_lib.hpp>

Inheritance diagram for ForSyDe::CT::square:
Collaboration diagram for ForSyDe::CT::square:

Public Member Functions

 square (sc_module_name name_, const sc_time &endT, const sc_time &period, const CTTYPE &highS, const CTTYPE &lowS, const double &dutyCycle=0.5)
 
std::string forsyde_kind () const
 Specifying from which process constructor is the module built.
 
- Public Member Functions inherited from ForSyDe::CT::source
 source (sc_module_name _name, functype _func, const sc_time &end_time)
 The constructor requires the module name. More...
 
std::string forsyde_kind () const
 Specifying from which process constructor is the module built.
 
- Public Member Functions inherited from ForSyDe::process
 process (sc_module_name _name)
 The constructor requires the module name. More...
 

Additional Inherited Members

- Public Types inherited from ForSyDe::CT::source
typedef std::function< void(CTTYPE &, const sc_time &)> functype
 Type of the function to be passed to the process constructor.
 
- Public Attributes inherited from ForSyDe::CT::source
CT_out oport1
 port for the output channel
 
- Protected Member Functions inherited from ForSyDe::process
void end_of_simulation ()
 This hook is used to run the clean stage.
 

Detailed Description

Helper function to construct a square source.

This class is used to cretae a continuous-time signal source which produces a square wave.

Constructor & Destructor Documentation

ForSyDe::CT::square::square ( sc_module_name  name_,
const sc_time &  endT,
const sc_time &  period,
const CTTYPE highS,
const CTTYPE lowS,
const double &  dutyCycle = 0.5 
)
inline
Parameters
name_The Process name
endTThe end time of the generated signal
periodThe signal period (1/f)
highSThe signal high swing
lowSThe signal low swing
dutyCycleThe duty cycle (0 to 1)

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