Accumulator
This block implements an accumulator with the option to reset the state.
Library
Dynamical
Description
This block implements an accumulator with the option to reset the state. It could be configured with or without direct feed through. If direct feed through is selected, the current value of the accumulator is copied on the output synchronously when the block is activated. Otherwise, the old value is copied. When the clk port is activated dX is added to the internal state. When the reset port is activated, the internal state is set to X0.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
x0 | Initial value | The value of the state when the simulation starts. | Matrix | |
feed | Feedthrough | If set, the current value of the state is copied on the output, otherwise the old value is copied. | Number | 0 |