Main Content

Serial-In Parallel-Out Shift Register

Discrete-time serial-in, parallel-out shift register

  • Serial-In Parallel-Out Shift Register block

Libraries:
Simscape / Electrical / Control / General Control

Description

The Serial-In Parallel-Out Shift Register block implements a serial-in parallel-out shift register in discrete time. You can use a shift register to convert between serial and parallel interfaces or to implement a circuit delay or hardware stack.

This block outputs a vector of last N samples of the input signal. If the input signal is a vector, the block outputs the last N samples of each input signal.

Ports

Input

expand all

Serial input signal.

Data Types: single | double

Output

expand all

Parallel output signal.

Data Types: single | double

Parameters

expand all

Number of register stages or samples.

Initial value of the N-1 samples preceding simulation start time. The value must be a scalar or a vector of the same size as the input signal.

Time between consecutive block executions. During execution, the block produces outputs and, if appropriate, updates its internal state. For more information, see What Is Sample Time? and Specify Sample Time.

For inherited discrete-time, specify -1. For discrete-time, specify a positive integer. For continuous-time, specify 0.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2018b