Appearance
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
| Name | Direction | Value type | Notes |
|---|---|---|---|
in | input | int | |
out | output | int |
Parameters
| Name | Label | Type | Default | Units | Description |
|---|---|---|---|---|---|
shift | Shift | int | 1 | — | Number 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).