Based on the 4 bit opcode, the ALU performs 16 different operations on the 2 bit inputs A & B and stores the result in 8 bit output ALU_out
Provide A, B inputs. Select opcode based on the operation to perform. Check output at ALU_out
# | Input | Output |
---|---|---|
0 | A1 | ALU_out |
1 | A2 | ALU_out |
2 | B1 | ALU_out |
3 | B2 | ALU_out |
4 | opcode | ALU_out |
5 | opcode | ALU_out |
6 | opcode | ALU_out |
7 | opcode | ALU_out |