ForSyDe::SY::pipewrap< T0, T1 > Class Template Reference
Process constructor for a pipe wrapper with one input and one output. More...
#include <sy_wrappers.hpp>
Inheritance diagram for ForSyDe::SY::pipewrap< T0, T1 >:
Collaboration diagram for ForSyDe::SY::pipewrap< T0, T1 >:
Public Member Functions | |
pipewrap (const sc_module_name &_name, const int &offset, const std::string &pipe_path) | |
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 | |
SY_in< T1 > | iport1 |
port for the input channel | |
SY_out< T0 > | 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
template<typename T0, typename T1>
class ForSyDe::SY::pipewrap< T0, T1 >
Process constructor for a pipe wrapper with one input and one output.
This class is used to build pipe wrapper with one input and one output. It uses the Unix pipe to communicate and synchronize with an external simulator. The class is parameterized for input and output data-types.
Constructor & Destructor Documentation
template<typename T0 , typename T1 >
|
inline |
The constructor requires the module name.
It creates an SC_THREAD which reads data from its input port, provides it to the external model, collects the produced outputs and writes them using the output port
- Parameters
-
_name process name offset The offset between the input and output. Positive: read from the model first. Negative: write to the model first. pipe_path name of the folder containing forsyde_in1 and forsyde_out pipes
The documentation for this class was generated from the following file:
- src/forsyde/sy_wrappers.hpp
Generated by Doxygen 1.8.11