Shift right on a signed integer as arithmetic shift - MATLAB & Simulink (original) (raw)

Main Content

Description

Describe how your compiler for the hardware fills the sign bit in a right shift of a signed integer.

Category: Hardware Implementation

Settings

Default: On

On

Generates simple, efficient code whenever the Simulink® model performs arithmetic shifts on signed integers.

Off

Generates fully portable but less efficient code to implement right arithmetic shifts.

Tips

Dependency

Command-Line Information

Parameter: ProdShiftRightIntArith
Type: string
Value: 'on' | 'off'
Default: 'on'
Application Setting
Debugging No impact
Traceability No impact
Efficiency On
Safety precaution No recommendation for simulation without code generation.For simulation with code generation, select your Device vendor and Device type if they are available in the drop-down list. If yourDevice vendor and Device type are not available, set device-specific values by using Custom Processor.

See Also