Chargement…
Chargement…
Combinational barrel shifter: shifts i_data left by the number of positions selected by i_shift (0 to 3). Vacant bits on the right are filled with '0'.
Behaviour (truth table):
i_shift | o_data |
|---|---|
"00" | i_data |
"01" | i_data(2 downto 0) & '0' |
"10" | i_data(1 downto 0) & "00" |
"11" | i_data(0) & "000" |
*No clock, no reset: 100% combinational.*
i_datai_shifto_data