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
|
inline |
- Parameters
-
name_ The Process name endT The end time of the generated signal period The signal period (1/f) highS The signal high swing lowS The signal low swing dutyCycle The duty cycle (0 to 1)
The documentation for this class was generated from the following file:
- src/forsyde/ct_lib.hpp
Generated by Doxygen 1.8.11