Please answer preliminary questions #1 and #2
1.Purpose
An arithmetic and logic unit (ALU is a combinational circuit that performs various Boolean and arithmetic operations on a pair of n-bit operands.This lab is to implement a 4-bit ALU that can perform some of the most common operations of MIPS arithmetic and logical instructions.
2.Objective
In this lab,the ALU has two inputs,A and B,each is 4-bit.It also has 2-bit select inputs for selecting the operations and l-bit select Mode for selecting the unit, either arithmetic or logic,as shown in Table 1.The ALU would have an output Y,which is 4- bit, and Y is converted to 7-segment display. For the results from arithmetic operations, you may need to use another 7-segment display to show tens digit if the value is over 10 or to indicate negative sign if the value is less then 0. Besides, you may need to assign one LED light to reflect the situation when overflow occurs.
Logic Operations F M=0 00 AANDB 01 AORB 10 AXORB 11 NOTA
Arithmetic Operations M=1 A+B A+1 A-B A+A
Table 1.ALU specifications
3.Preliminary Work
l.Design the circuit and draw the circuit diagram of fully functional 4-bit ALU with Logic Operations and Arithmctic Operations followed the specifications in Table l.You may need to use 2:1 multiplexer and 4:1 multiplexer and an adder in your design
2.Implement your design in VHDL codes.In your implementation,you need to build either a ripple-carry adder or a carry-lookahead adder as a component of the ALU
1of2