ForSyDe::DT::mealyT< IT, ST, OT > Class Template Reference
Process constructor for a MealyT machine. More...
#include <dt_process_constructors.hpp>
Inheritance diagram for ForSyDe::DT::mealyT< IT, ST, OT >:
Collaboration diagram for ForSyDe::DT::mealyT< IT, ST, OT >:
Public Types | |
typedef std::function< void(unsigned int &, const ST &)> | p_functype |
Type of the partitioning function to be passed to the process constructor. | |
typedef std::function< void(ST &, const ST &, const std::vector< abst_ext< IT >> &)> | ns_functype |
Type of the next-state function to be passed to the process constructor. | |
typedef std::function< void(std::vector< abst_ext< OT >> &, const ST &, const std::vector< abst_ext< IT >> &)> | od_functype |
Type of the output-decoding function to be passed to the process constructor. | |
Public Member Functions | |
mealyT (sc_module_name _name, p_functype gamma, ns_functype _ns_func, od_functype _od_func, ST init_st) | |
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< IT > | iport1 |
port for the input channel | |
DT_out< OT > | 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 IT, class ST, class OT>
class ForSyDe::DT::mealyT< IT, ST, OT >
Process constructor for a MealyT machine.
This class is used to build a timed Mealy state machine. Given a partitioning function, a next-state function, an output decoding function, and an initial state, it creates a timed Mealy process.
Constructor & Destructor Documentation
template<class IT, class ST, class OT>
|
inline |
The constructor requires the module name.
It creates an SC_THREAD which reads data from its input port, applies the user-imlpemented functions to the input and current state and writes the results using the output port
- Parameters
-
_name The module name gamma The input partitioning function _ns_func The next_state function _od_func The output-decoding function init_st Initial state
The documentation for this class was generated from the following file:
- src/forsyde/dt_process_constructors.hpp
Generated by Doxygen 1.8.11