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.

    ShiftRegister

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

ShiftRegister_0

NameLabelDescriptionData TypeValid 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'
'int32'
'int16'
'int8'
'uint32'
'uint16'
'uint8'
'inherit'

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
1

Ports

NameTypeDescriptionIO TypeNumber

Port 1

explicit

output

1

Port 2

explicit

input

1

Port 3

activation

input

externalActivation

Advanced Properties

NameValueDescription

always active

no

direct-feedthrough

no

zero-crossing

no

mode

no

continuous-time state

no

discrete-time state

yes