ForSyDe::CT::source Class Reference
Process constructor for a source process. More...
#include <ct_process_constructors.hpp>
Inheritance diagram for ForSyDe::CT::source:
Collaboration diagram for ForSyDe::CT::source:
Public Types | |
typedef std::function< void(CTTYPE &, const sc_time &)> | functype |
Type of the function to be passed to the process constructor. | |
Public Member Functions | |
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... | |
Public Attributes | |
CT_out | oport1 |
port for the output channel | |
Additional Inherited Members | |
Protected Member Functions inherited from ForSyDe::process | |
void | end_of_simulation () |
This hook is used to run the clean stage. | |
Detailed Description
Process constructor for a source process.
This class is used to build a souce process which only has an output. Given a function, the process generates a source process which generates a continuous signal made out of a single SubSignal. The start and end times of the signals should aso be mentioned.
Constructor & Destructor Documentation
|
inline |
The constructor requires the module name.
It creates an SC_THREAD which runs the user-imlpemented function and writes the result using the output port
- Parameters
-
_name The module name _func function to be passed end_time End time
The documentation for this class was generated from the following file:
- src/forsyde/ct_process_constructors.hpp
Generated by Doxygen 1.8.11