ForSyDe::UT::zip< T1, T2 > Class Template Reference

The zip process with two inputs and one output. More...

#include <ut_process_constructors.hpp>

Inheritance diagram for ForSyDe::UT::zip< T1, T2 >:
Collaboration diagram for ForSyDe::UT::zip< T1, T2 >:

Public Member Functions

 zip (const sc_module_name &_name, const unsigned int &i1toks, const unsigned int &i2toks)
 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

UT_in< T1 > iport1
 port for the input channel 1
 
UT_in< T2 > iport2
 port for the input channel 2
 
UT_out< std::tuple< std::vector< T1 >, std::vector< T2 > > > 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<class T1, class T2>
class ForSyDe::UT::zip< T1, T2 >

The zip process with two inputs and one output.

This process "zips" two incoming signals into one signal of tuples.

Constructor & Destructor Documentation

template<class T1 , class T2 >
ForSyDe::UT::zip< T1, T2 >::zip ( const sc_module_name &  _name,
const unsigned int &  i1toks,
const unsigned int &  i2toks 
)
inline

The constructor requires the module name.

It creates an SC_THREAD which reads data from its input port, zips them together and writes the results using the output port


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