_ C0=1, C1=1 B0=1, B1=1 D3 CO=1, C1=0 D2 12 B0=1, B1=0 CO=0, C1=1 D1 B0=0, B1=1 C0=0, C1=0 DO 80 C A B F2 8-bit ALU Figure 1: 8-bit data-path FO F2 F1 FO Functionality 0 0 0 ADD the value on the A bus to the value on the B bus 0 0 1 AND the value on the A bus to the value on the B bus 0 1 0 0 1 1 LEFT SHIFT the value on the B bus by the number of bits specified on the A bus RIGHT SHIFT the value on the B bus by the number of bits specified on the A bus INCREMENT the value on the A bus by 1 1 0 0 1 0 1 IF DO = 1 THEN B ELSE O 1 1 0 SET output of the ALU to 0 1 1 1 SET the output of the ALU to the value on the B bus Table 1: ALU functions
Show an image of the completed 8 BIT ALU The most important and possible most difficult component to implement is the arithmetic logic unit. The
functions of the ALU are shown in Table 1. The ALU should have 5 inputs (A-input, B-input, F0-input, F1-input, Finput) and 1 output (C-output). You will need to determine how many bits each input and output should have.
Remember, you are designing an 8-bit microprocessor! To achieve the specified ALU functions, think about
which digital logic component(s) you can use to accomplish the task. For example, to add the value on the A-bus
8-bit ALU
to the value on the B-bus, you can simply use an 8-bit adder. Explore the components in Logisim! Additionally,
you can think about using a multiplexer to determine which ALU function will be performed
Step by step
Solved in 1 steps