4-bit ALU design Using Multisim Workbench, design an ALU with 2 inputs A and B where both are 4 bits, 3 control inputs: M for mode selection, S0 and S1 for operation selection, and earry-in input. The ALU has also three outputs: 4-bit result L for logic operations, 7-bit result R for arithmetic operations and carry-out, as shown in the figure: L is connected to 4LEDs, while R and Cout are connected to two 7 -segment display to show the result. The detailed ALU operation in given in the table below: Control inputs M S1 S0 Operation 0 0 0 0 0 1 A OR B 0 1 1 A XOR B 0 1 0 2's complement of A 1
4-bit ALU design
Using Multisim Workbench, design an ALU with 2 inputs A and B where both are 4 bits, 3 control inputs: M for mode selection, S0 and S1 for operation selection, and carry-in input The ALU has also three outputs: 4-bit result L for logic operations, 7-bit result R for arithmetic operations and carry-out, as shown in the figure:
Ci
Input
Cout
A
B
Output
4-bit ALU
S1
so
M
L is connected to 4 LEDs, while R and Cout are connected to two 7-segment display to show the result. The detailed ALU operation in given in the table below: Control inputs Operation M S1 So 0 0 0 A AND B 0 To 1 A OR B 0 l 1 0 A XOR B 0 1 1 2s complement of A 1 0 0 1 0 Increment B 1 1 0 A + B 1 I AB
You are asked to show all the results to the teacher assistant