Shift Arithmetic

Shift bits or binary point of signal (HDL Coder)

Description

The Shift Arithmetic block is available with Simulink®.

For information about the simulation behavior and block parameters, see Shift Arithmetic.

You can generate HDL code when Bits to shift: Source is Dialog or Input port.

HDL Architecture

The generated VHDL code uses the shift_right function and sll operator.

The generated Verilog code uses the >>> and <<< shift operators.

HDL Block Properties

ConstrainedOutputPipeline

Number of registers to place at the outputs by moving existing delays within your design. Distributed pipelining does not redistribute these registers. The default is 0. See also ConstrainedOutputPipeline.

InputPipeline

Number of input pipeline stages to insert in the generated code. Distributed pipelining and constrained output pipelining can move these registers. The default is 0. See also InputPipeline.

OutputPipeline

Number of output pipeline stages to insert in the generated code. Distributed pipelining and constrained output pipelining can move these registers. The default is 0. See also OutputPipeline.

Complex Data Support

This block supports code generation for complex signals.

Restrictions

When Bits to shift: Source is Input port, binary point shifting is not supported.

Was this topic helpful?