ForSyDe::UT::constant< T > Class Template Reference
Process constructor for a constant source process. More...
#include <ut_process_constructors.hpp>
Inheritance diagram for ForSyDe::UT::constant< T >:

Collaboration diagram for ForSyDe::UT::constant< T >:

Public Member Functions | |
constant (const sc_module_name &_name, const T &init_val, const unsigned long long &take=0) | |
The constructor requires the module name. More... | |
std::string | forsyde_kind () const |
Specifying from which process constructor is the module built. | |
![]() | |
process (sc_module_name _name) | |
The constructor requires the module name. More... | |
Public Attributes | |
UT_out< T > | oport1 |
port for the output channel | |
Additional Inherited Members | |
![]() | |
void | end_of_simulation () |
This hook is used to run the clean stage. | |
Detailed Description
template<class T>
class ForSyDe::UT::constant< T >
Process constructor for a constant source process.
This class is used to build a souce process with constant output. Its main purpose is to be used in test-benches.
This class can directly be instantiated to build a process.
Constructor & Destructor Documentation
template<class T >
|
inline |
The constructor requires the module name.
It creates an SC_THREAD which runs the user-imlpemented function and writes the result using the output port
- Parameters
-
_name The module name init_val The constant output value take number of tokens produced (0 for infinite)
The documentation for this class was generated from the following file:
- src/forsyde/ut_process_constructors.hpp
Generated by Doxygen 1.8.11