ForSyDe::SY::pipewrap2< T0, T1, T2 > 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::pipewrap2< T0, T1, T2 >:
Collaboration diagram for ForSyDe::SY::pipewrap2< T0, T1, T2 >:

Public Member Functions

 pipewrap2 (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_in< T2 > iport2
 port for the second 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, typename T2>
class ForSyDe::SY::pipewrap2< T0, T1, T2 >

Process constructor for a pipe wrapper with one input and one output.

This class is used to build pipe wrapper with two inputs 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 , typename T2 >
ForSyDe::SY::pipewrap2< T0, T1, T2 >::pipewrap2 ( const sc_module_name &  _name,
const int &  offset,
const std::string &  pipe_path 
)
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
_nameprocess name
offsetThe offset between the input and output. Positive: read from the model first. Negative: write to the model first.
pipe_pathname of the folder containing forsyde_in1 and forsyde_out pipes

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