Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Bit Shift

Logical or arithmetic shift of input signal

Library

HDL Coder / HDL Operations

Description

The Bit Shift block performs a logical or arithmetic shift on the input signal.

Parameters

Shift Mode

Default: Shift Left Logical

Specifies the type and direction of shift:

  • Shift Left Logical (default)

  • Shift Right Logical

  • Shift Right Arithmetic

Shift Length

Specifies the number of bits to be shifted. Specify a value greater than or equal to zero. The default is 0.

Ports

The block has the following ports:

Input
  • Supported data types: Fixed-point, integer (signed or unsigned), Boolean

  • Minimum bit width: 2

  • Maximum bit width: 128

Output

Has the same data type and bit width as the input signal.

Introduced in R2014a

Was this topic helpful?