ForSyDe::SDF::comb3< T0, T1, T2, T3 > Class Template Reference

Process constructor for a combinational process with two inputs and one output. More...

#include <sdf_process_constructors.hpp>

Inheritance diagram for ForSyDe::SDF::comb3< T0, T1, T2, T3 >:
Collaboration diagram for ForSyDe::SDF::comb3< T0, T1, T2, T3 >:

Public Types

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

Public Member Functions

 comb3 (sc_module_name _name, functype _func, unsigned int o1toks, unsigned int i1toks, unsigned int i2toks, unsigned int i3toks)
 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< T1 > iport1
 port for the input channel 1
 
SDF_in< T2 > iport2
 port for the input channel 2
 
SDF_in< T3 > iport3
 port for the input channel 3
 
SDF_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, typename T3>
class ForSyDe::SDF::comb3< T0, T1, T2, T3 >

Process constructor for a combinational process with two inputs and one output.

similar to comb with two inputs

Constructor & Destructor Documentation

template<typename T0, typename T1, typename T2, typename T3>
ForSyDe::SDF::comb3< T0, T1, T2, T3 >::comb3 ( sc_module_name  _name,
functype  _func,
unsigned int  o1toks,
unsigned int  i1toks,
unsigned int  i2toks,
unsigned int  i3toks 
)
inline

The constructor requires the module name.

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

Parameters
_nameprocess name
_funcfunction to be passed
o1toksconsumption rate for the first output
i1toksconsumption rate for the first input
i2toksconsumption rate for the second input
i3toksconsumption rate for the third input

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