Project | Library | Model Name | Kind |
sca_basic_libraries | arithmetic_sc | delay_sc | SystemC Module |
Parameters
Name | Type | Default | Description |
delay | sc_core::sc_time | sc_core::SC_ZERO_TIME | time delay |
init_val | T | {T}(0) | initial value |
Ports
Name | Interface | Type | Description |
sc_i | sc_core::sc_in | T | input |
sc_o | sc_core::sc_out | T | delayed output |
Description
SystemC delay
Long Description
Discrete event module of a time based delay. The module sets the parameter delay (default: sc_core::SC_ZERO_TIME) as delay time to initialize the internal transport delay channel (sc_transport). During the initialization phase the outport as well as the internal transport delay signal are set to the value of the parameter init_val (default: T(0)). Until the delay time is reach the init_val is seen at the output. After that delay time the delayed input values are propagated to the outport.
The ports are of the type of the template parameter T. For the type T the assignment operator and a cast from an integer must be available.