ForSyDe::DT::comb4< T0, T1, T2, T3, T4 > Class Template Reference

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

#include <dt_process_constructors.hpp>

Inheritance diagram for ForSyDe::DT::comb4< T0, T1, T2, T3, T4 >:
Collaboration diagram for ForSyDe::DT::comb4< T0, T1, T2, T3, T4 >:

Public Types

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

Public Member Functions

 comb4 (sc_module_name _name, functype _func)
 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

DT_in< T1 > iport1
 port for the input channel 1
 
DT_in< T2 > iport2
 port for the input channel 2
 
DT_in< T3 > iport3
 port for the input channel 3
 
DT_in< T4 > iport4
 port for the input channel 4
 
DT_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, typename T4>
class ForSyDe::DT::comb4< T0, T1, T2, T3, T4 >

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

similar to comb with four inputs

Constructor & Destructor Documentation

template<typename T0, typename T1, typename T2, typename T3, typename T4>
ForSyDe::DT::comb4< T0, T1, T2, T3, T4 >::comb4 ( sc_module_name  _name,
functype  _func 
)
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

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