Project | Library | Model Name | Kind |
sca_basic_libraries | sources_tdf | const_src_tdf | TDF Module |
Parameters
Name | Type | Default | Description |
const_val | T | {T}(0) | constant value |
sampling_time | sca_core::sca_time | sc_core::SC_ZERO_TIME | sampling time |
Ports
Name | Interface | Type | Description |
tdf_o | sca_tdf::sca_out | T | const output |
Description
constant source
Long Description
Timed dataflow (TDF) module of a constant source source with an arbitrary outport. The type of the outport is defined by the template parameter T. For this type the assignment operator must be defined.
The parameter const_val (default: (T)(0) ) specifies the output value. This value will be written to the outport in each module activation.
The parameter sampling_time (default: sc_core::SC_ZERO_TIME) specifies the timestep of the source (used by set_timestep in set_attributes). If the parameter sampling_time is sc_core::SC_ZERO_TIME no timestep will be set by the module - in this case the timestep will be derived from the connected modules (see SystemC-AMS LRM / users guide).
This module contains an AC implementation which sets the output to zero. The module accepts dynamic timesteps (accept_attribute_changes() is called in set_attributes).