ForSyDe::SDF::unzip< T1, T2 > Class Template Reference

The unzip process with one input and two outputs. More...

#include <sdf_process_constructors.hpp>

Inheritance diagram for ForSyDe::SDF::unzip< T1, T2 >:
Collaboration diagram for ForSyDe::SDF::unzip< T1, T2 >:

Public Member Functions

 unzip (sc_module_name _name, unsigned int o1toks, unsigned int o2toks)
 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

SDF_in< std::tuple< std::vector< T1 >, std::vector< T2 > > > iport1
 port for the input channel
 
SDF_out< T1 > oport1
 port for the output channel 1
 
SDF_out< T2 > oport2
 port for the output channel 2
 

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<class T1, class T2>
class ForSyDe::SDF::unzip< T1, T2 >

The unzip process with one input and two outputs.

This process "unzips" a signal of tuples into two separate signals

Constructor & Destructor Documentation

template<class T1 , class T2 >
ForSyDe::SDF::unzip< T1, T2 >::unzip ( sc_module_name  _name,
unsigned int  o1toks,
unsigned int  o2toks 
)
inline

The constructor requires the module name.

It creates an SC_THREAD which reads data from its input ports, unzips them and writes the results using the output ports

Parameters
o1toksconsumption rate for the first output
o2toksconsumption rate for the second output

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