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

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

#include <dde_process_constructors.hpp>

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

Public Member Functions

 vsource (sc_module_name _name, const std::vector< T > &values, const std::vector< sc_time > &offsets)
 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_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::vsource< T >

Process constructor for a 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::DDE::vsource< T >::vsource ( sc_module_name  _name,
const std::vector< T > &  values,
const std::vector< sc_time > &  offsets 
)
inline

The constructor requires the module name.

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

Parameters
_namethe module name
valuesevent values
offsetsevent offsets

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