ForSyDe::UT::comb< T0, T1 > Class Template Reference

Process constructor for a combinational process (actor) with one input and one output. More...

#include <ut_process_constructors.hpp>

Inheritance diagram for ForSyDe::UT::comb< T0, T1 >:
Collaboration diagram for ForSyDe::UT::comb< T0, T1 >:

Public Types

typedef std::function< void(std::vector< T0 > &, const std::vector< T1 > &)> functype
 Type of the function to be passed to the process constructor.
 

Public Member Functions

 comb (const sc_module_name &_name, const functype &_func, const unsigned int &i1toks)
 The constructor requires the module name ad the number of tokens to be produced. 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
 
UT_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::UT::comb< T0, T1 >

Process constructor for a combinational process (actor) with one input and one output.

This class is used to build combinational processes with one input and one output. The class is parameterized for input and output data-types.

Constructor & Destructor Documentation

template<typename T0, typename T1>
ForSyDe::UT::comb< T0, T1 >::comb ( const sc_module_name &  _name,
const functype _func,
const unsigned int &  i1toks 
)
inline

The constructor requires the module name ad the number of tokens to be produced.

It creates an SC_THREAD which reads data from its input port, applies the user-imlpemented function to it and writes the results using the output port

Parameters
_nameprocess name
_funcfunction to be passed
i1toksconsumption rate for the first input

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