Project | Library | Model Name | Kind |
sca_basic_libraries | sources_sc | const_src_sc | SystemC Module |
Parameters
Name | Type | Default | Description |
const_val | T | {T}(0) | constant value |
Ports
Name | Interface | Type | Description |
sc_o | sc_core::sc_out | T | constant output |
Description
constant source
Long Description
Discrete event module of a constant 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 once at module construction.