Also called: Logic Shifter, Combinational Logic Shifter.
FunctionRotates the input a specified number of bits in a specified direction. Notation"SHFT" = Rotate input by a number of bits in the specified direction. CommentsMinimize MAX_SHIFT to conserve resources and maximize speed. |
Name |
Description |
WIDTH |
Width of the D, Y and Q ports. |
MAX_SHIFT |
Maximum number of bits to shift (Minimize to conserve resources). |
MAX_SHIFT_BITS |
The Width of Bits2Shift, also the number of bits in MAX_SHIFT. |
Name |
Variants |
Registered |
No, Yes |
Direction |
Left, Right, Both |
Enable |
UnUsed, Used |
Name |
Width |
Condition |
Description |
D |
WIDTH |
None |
Data to be shifted. |
Bits2Shift |
MAX_SHIFT_BITS |
None |
Number of bits to shift. |
Enable |
|
Registered = No |
if(Enable) Y = D SHFT Bits2Shift; else Y=D |
ClockEn |
|
Registered = Yes |
if (ClockEn) Q = D SHFT Bits2Shift |
ShiftLeft |
|
Direction = Both |
if(ShiftLeft) SHFT = Left; else SHFT = Right |
Name |
Width |
Condition |
Description |
Y |
WIDTH |
Registered = No |
D ROL Bits2Shift |
Q |
WIDTH |
Registered = Yes |
D ROL Bits2Shift |