ShiftRegister
This block implements a FIFO shift register. A shift is performed with every activation of the block. The Register Initial Condition parameter is a matrix that contains in its columns the values originally present in the shift register.
Library
Dynamical
Description
The ShiftRegister block implements a FIFO shift register. A shift is performed at every activation of the block. The Register Initial Condition parameter is a matrix that contains in its columns the values originally present in the shift register.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
K | Register length | Scalar | ||
z0 | Register initial condition | Contains the initial state of the register, stored as [sampleN, sampleN-1, ..., sample1] where N is the register length. | Matrix | |
type | Input/Output datatype | Defines the data type. Supported data types are: inherit, double, int8, int16, int32, uint8, unit16, uint32. | String | 'double' |
externalActivation | External activation | This parameter specifies whether the block receives an external activation or inherits its activation through its regular input ports. When External Activation is used, an additional activation port is added to the block. Default is OFF. | Number | 0 |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
Port 1 | explicit | output | 1 | |
Port 2 | explicit | input | 1 | |
Port 3 | activation | input | externalActivation |
Advanced Properties
Name | Value | Description |
---|---|---|
always active | no | |
direct-feedthrough | no | |
zero-crossing | no | |
mode | no | |
continuous-time state | no | |
discrete-time state | yes |