ForSyDe::SY::delay< T > Class Template Reference
Process constructor for a delay element. More...
#include <sy_process_constructors.hpp>
Inheritance diagram for ForSyDe::SY::delay< T >:

Collaboration diagram for ForSyDe::SY::delay< T >:

Public Member Functions | |
delay (const sc_module_name &_name, const abst_ext< T > &init_val) | |
The constructor requires the module name. More... | |
std::string | forsyde_kind () const |
Specifying from which process constructor is the module built. | |
![]() | |
process (sc_module_name _name) | |
The constructor requires the module name. More... | |
Public Attributes | |
SY_in< T > | iport1 |
port for the input channel | |
SY_out< T > | oport1 |
port for the output channel | |
Additional Inherited Members | |
![]() | |
void | end_of_simulation () |
This hook is used to run the clean stage. | |
Detailed Description
template<class T>
class ForSyDe::SY::delay< T >
Process constructor for a delay element.
This class is used to build the most basic sequential process which is a delay element. Given an initial value, it inserts this value at the beginning of output stream and passes the rest of the inputs to its output untouched. The class is parameterized for its input/output data-type.
It is mandatory to include at least one delay element in all feedback loops since combinational loops are forbidden in ForSyDe.
Constructor & Destructor Documentation
template<class T >
|
inline |
The constructor requires the module name.
It creates an SC_THREAD which inserts the initial element, reads data from its input port, and writes the results using the output port.
- Parameters
-
_name process name init_val initial value
The documentation for this class was generated from the following file:
- src/forsyde/sy_process_constructors.hpp
Generated by Doxygen 1.8.11