R32V2020 Shift/Rotate operations
Jump to navigation
Jump to search
Contents
Shift, Rotate, Swap Operations
ls1 - Shift Left by one
- Uses r1 for count
- Provides future possibilities for different shifts
rs1 - Shift Right by one
- Uses r1 for count
- Provides future possibilities for different shifts
lr1 - Rotate Left by one
- Uses r1 for count
- Provides future possibilities for different shifts
rr1 - Rotate Right by one
- Wraps around but that would shift off with rs1
- Uses r1 for count
- Provides future possibilities for different shifts
ra1 - Arithmetic shift right
- Extendeds sign bit
- Uses r1 for count
- Provides future possibilities for different shifts
ens - Swap Endian order of a long
- Swap around the endian-ness of a long
Wish List
- Implement larger shift in future builds?
- Implement barrel shifter
- Large mux or by hot decoder and multiplier
- To left shift by n, do 2^n and multiply
- Need space tradeoof
- Large mux or by hot decoder and multiplier
- Implement barrel shifter