ForSyDe::DDE::delay< T > Class Template Reference

Process constructor for a delay element. More...

#include <dde_process_constructors.hpp>

Inheritance diagram for ForSyDe::DDE::delay< T >:
Collaboration diagram for ForSyDe::DDE::delay< T >:

Public Member Functions

 delay (sc_module_name _name, abst_ext< T > init_val, 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< T > iport1
 port for the input channel
 
DDE_out< T > 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 T>
class ForSyDe::DDE::delay< T >

Process constructor for a delay element.

This class is used to build a delay element. Given an initial null- extended value and a delay time, it inserts this value as the first event in time zero in the output and delays the rest of the events by the delay time.

It is mandatory to include at least one delay element in all feedback loops since combinational loops are forbidden in ForSyDe.

Constructor & Destructor Documentation

template<class T >
ForSyDe::DDE::delay< T >::delay ( sc_module_name  _name,
abst_ext< T >  init_val,
sc_time  delay_time 
)
inline

The constructor requires the module name.

It creates an SC_THREAD which inserts the initial element, reads data from its input port, and writes the results using the output port.

Parameters
_nameprocess name
init_valinitial value
delay_timedelay time

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