Sr. No.
|
Name of the Pin
|
Direction
|
Width
|
Description
|
1
|
d_in
|
Input
|
8
|
data input
|
2
|
Shift_by
|
Input
|
3
|
shift amount
|
3
|
Rst_a
|
Input
|
1
|
Reset signal
|
4
|
Clk
|
Input
|
1
|
Clock signal
|
5
|
Shift_lt_rt
|
Input
|
1
|
‘0’=shift left
‘1’=shift right
|
6
|
P_load
|
Input
|
1
|
‘1’=receive input data
‘0’=discard input data
|
7
|
D_out
|
Output
|
8
|
Parallel data output
|
Barrel shifter takes parallel data input and give shifted output either in left or right direction by a specific shift amount. When shift_by input is “000” it will place input data at the output without shifting. For specifying shifting direction shift_lt_rt pin is used. When it is ‘0’ the block will perform left shift operation and when it is ‘1’, it will perform right operation. Find out Test Bench here.