ForSyDe::DDE::mealy2< IT1, IT2, ST, OT > Class Template Reference

Process constructor for a Mealy machine with two inputs. More...

#include <dde_process_constructors.hpp>

Inheritance diagram for ForSyDe::DDE::mealy2< IT1, IT2, ST, OT >:
Collaboration diagram for ForSyDe::DDE::mealy2< IT1, IT2, ST, OT >:

Public Types

typedef std::function< void(ST &, const ST &, const ttn_event< IT1 > &, const ttn_event< IT2 > &)> ns_functype
 Type of the next-state function to be passed to the process constructor.
 
typedef std::function< void(abst_ext< OT > &, const ST &, const ttn_event< IT1 > &, const ttn_event< IT2 > &)> od_functype
 Type of the output-decoding function to be passed to the process constructor.
 

Public Member Functions

 mealy2 (const sc_module_name &_name, const ns_functype &_ns_func, const od_functype &_od_func, const ST &init_st, const sc_time &delay_time)
 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

DDE_in< IT1 > iport1
 port for the input channel
 
DDE_in< IT2 > iport2
 port for the input channel
 
DDE_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<typename IT1, typename IT2, typename ST, typename OT>
class ForSyDe::DDE::mealy2< IT1, IT2, ST, OT >

Process constructor for a Mealy machine with two inputs.

This class is used to build a finite state machine of type Mealy with two inputs. Given an initial state, a next-state function, and an output decoding function it creates a Mealy process.

Constructor & Destructor Documentation

template<typename IT1, typename IT2, typename ST, typename OT>
ForSyDe::DDE::mealy2< IT1, IT2, ST, OT >::mealy2 ( const sc_module_name &  _name,
const ns_functype _ns_func,
const od_functype _od_func,
const ST &  init_st,
const sc_time &  delay_time 
)
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
_nameprocess name
_ns_funcThe next_state function
_od_funcThe output-decoding function
init_stInitial state
delay_timeThe constant delay for output

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