Laboratory 2 Aim: To design, simulate
(using XILINX) and implement a 4-function, 4-bit ALU, which
processes two, 4-bit input operands X and Y. The functions of the
ALU are described below.
Control Input S0 |
Control Input S1 |
Function F |
0 |
0 |
X AND Y |
0 |
1 |
X EXOR Y |
1 |
0 |
X+Y+Cin |
1 |
1 |
X+Y'+Cin |
Note: Cin
denotes a carry input. The hardware should generate a Cout (carry
out) signal.
Material needed: MSI chips 7483 and 74157 and SSI chips 7486,
7402 and 7408.
Prelab:
-
Draw a block diagram (in terms of
functional blocks) of the ALU.
-
Describe your design approach.
-
Draw a neat logic diagram.
-
Draw a schematic diagram (in terms of
chips) of your final hardware.
Demo: Build the ALU performing the above
four functions and demonstrate its operations to the LAB instructor.
Credit will be given for simple modular designs and flexibility of
design for adding other functions.
|