ForSyDe::SY::hold< T > Class Template Reference

Process constructor for a hold process. More...

#include <sy_process_constructors.hpp>

Inheritance diagram for ForSyDe::SY::hold< T >:
Collaboration diagram for ForSyDe::SY::hold< T >:

Public Member Functions

 hold (const sc_module_name &_name, const T &def_val)
 The constructor requires the process name and a default value. 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

SY_in< T > iport1
 port for the input channel
 
SY_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::SY::hold< T >

Process constructor for a hold process.

The process constructor hold creates a process that fills an absent- extended signal with values by replacing absent values by the preceding present value. Only in cases, where no preceding value exists, the absent value is replaced by a default value.

Constructor & Destructor Documentation

template<class T >
ForSyDe::SY::hold< T >::hold ( const sc_module_name &  _name,
const T &  def_val 
)
inline

The constructor requires the process name and a default value.

It creates an SC_THREAD which fills the signal result using the output port

Parameters
_nameprocess name
def_valdefault value

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