Skip to content

Shift Left

Bitwise left shift on an integer signal: out = in << shift. Equivalent to multiplying by 2^shift (overflow bits past the MSB are discarded).

Category: Digital Logic / Bits

Keywords: shl, <<, shift, left shift, left-shift, bit, bitwise, multiply

Ports

NameDirectionValue typeNotes
ininputint
outoutputint

Parameters

NameLabelTypeDefaultUnitsDescription
shiftShiftint1Number of bit positions to shift left. out = in << shift. Equivalent to multiplying by 2^shift; bits shifted past the MSB are discarded.

Implemented in C++ class SimCompCtlShl (components/control/CSim_comp_ctl_shl/sim_comp_ctl_shl.h).

Released under the MIT License.