Fugure shows a barrel rotator. Redesign it so that it will allow left or right logical shift of from 0 to 5 positions; according to the value of a 4-bit signed integer, where the right shifts are specied by +ve numbers and left shifts by -ve numbers.
Here, y is the input and x is the output. Also there is a small correction.. the tristate buers should be pointing to northeast and not southwest as shown in gure.