Design and implement an Arithmetic and Logic Unit (ALU) shown in Figure 1 using
ID: 2990986 • Letter: D
Question
Design and implement an Arithmetic and Logic Unit (ALU) shown in Figure 1 using
the schematic capture feature of Xilinx ISE tool. The ALU should perform the
following below operations on the values stored in the 4-bit registers R1 and R2. Test
the design using two sets of input values and for all possible operations. Clearly show
all the design steps to your instructor for full credit.
a. OP 1: Reset the value of R3 to 0
b. OP 2: Compare R1 and R2. If R1 > R2, R1 should be stored in R3 else store R2.
c. OP 3: Subtract R1 and R2 and store the result in R3
d. OP 4: Add R1 and R2 and store the result in R3.
Use only one comparator and one add/sub circuit block to perform the above
operations. Neglect the carry out for addition and subtraction operation. The control
block (CTRL) uses the output of the comparator and the operation select inputs to
generate the control signals for the 4 x 4-to-1 multiplexer and the add/sub block.
Explanation / Answer
ALU was designed to perform arithmetic and logical operations for controller. Arithmetic
operations performed are 8-bit addition and subtraction. Logical operations performed are AND, OR, XOR
and NOT. ALU also calculates 1
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.