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

Process constructor for a strict source process with vector input. More...

#include <sy_process_constructors_strict.hpp>

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

Public Member Functions

 svsource (const sc_module_name &_name, const std::vector< T > &in_vec)
 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

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::svsource< T >

Process constructor for a strict source process with vector input.

This class is used to build a souce process which only has an output. Given the test bench vector, the process iterates over the emenets of the vector and outputs one value on each evaluation cycle.

Constructor & Destructor Documentation

template<class T >
ForSyDe::SY::svsource< T >::svsource ( const sc_module_name &  _name,
const std::vector< T > &  in_vec 
)
inline

The constructor requires the module name.

It creates an SC_THREAD which writes the result using the output port.

Parameters
_nameprocess name
in_vecInitial vector

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