ForSyDe::DT::vsource< T > Class Template Reference
Process constructor for a source process with vector input. More...
#include <dt_process_constructors.hpp>
Inheritance diagram for ForSyDe::DT::vsource< T >:

Collaboration diagram for ForSyDe::DT::vsource< T >:

Public Member Functions | |
vsource (sc_module_name _name, const std::vector< std::tuple< unsigned int, T >> &in_vec) | |
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 | |
DT_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::DT::vsource< T >
Process constructor for a source process with vector input.
This class is used to build a souce process which only has an output. Given the test bench vector, the process iterates over the emenets of the vector and outputs the values on the given times and absents otherwise.
Constructor & Destructor Documentation
template<class T >
|
inline |
The constructor requires the module name.
It creates an SC_THREAD which writes the result using the output port.
- Parameters
-
_name The module name in_vec Initial vector
The documentation for this class was generated from the following file:
- src/forsyde/dt_process_constructors.hpp
Generated by Doxygen 1.8.11