Design a 4-bit combinational circuit shifter with two selectionvariables S1 and S0, and one 4-bit data input
Question:
Design a 4-bit combinational circuit shifter with two selectionvariables S1 and S0, and one 4-bit data input A(A3A2A1A0). The circuit generates the four shiftoperations shown in the table below. Note that the selection variable S1 selects the shift type(circular or arithmetic) and the selection variable S0 selects the shift direction (left or right). Draw thelogic diagram for this circuit using SIX 2×1 Multiplexers ONLY.
S1 S0 Operation Description
0 0 A ? cil A Circular shift-left A
0 1 A ? cir A Circular shift-right A
1 0 A ? ashl A Arithmetic shift-left A
1 1 A ? ashr A Arithmetic shift-right A
Fundamentals Of Digital Logic With Verilog Design
ISBN: 9780073380544
3rd Edition
Authors: Stephen Brown, Zvonko Vranesic