ForSyDe::UT::delayn< T > Class Template Reference

Process constructor for a n-delay element. More...

#include <ut_process_constructors.hpp>

Inheritance diagram for ForSyDe::UT::delayn< T >:
Collaboration diagram for ForSyDe::UT::delayn< T >:

Public Member Functions

 delayn (const sc_module_name &_name, const T &init_val, const unsigned int &n)
 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

UT_in< T > iport1
 port for the input channel
 
UT_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::UT::delayn< T >

Process constructor for a n-delay element.

This class is used to build a sequential process similar to dalay but with an extra initial variable which sets the number of delay elements (initial tokens). Given an initial value, it inserts the initial value n times at the the beginning of output stream and passes the rest of the inputs to its output untouched. The class is parameterized for its input/output data-type.

Constructor & Destructor Documentation

template<class T >
ForSyDe::UT::delayn< T >::delayn ( const sc_module_name &  _name,
const T &  init_val,
const unsigned int &  n 
)
inline

The constructor requires the module name.

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

Parameters
_nameprocess name
init_valinitial value
nnumber of delay elements

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