ForSyDe::CT::sine Class Reference

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

#include <ct_lib.hpp>

Inheritance diagram for ForSyDe::CT::sine:
Collaboration diagram for ForSyDe::CT::sine:

Public Member Functions

 sine (sc_module_name name_, const sc_time &endT, const sc_time &period, const CTTYPE &ampl)
 
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 coasine source.

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

Constructor & Destructor Documentation

ForSyDe::CT::sine::sine ( sc_module_name  name_,
const sc_time &  endT,
const sc_time &  period,
const CTTYPE ampl 
)
inline
Parameters
name_The Process name
endTThe end time of the generated signal
periodThe signal period (1/f)
amplThe signal amplitude

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