UCR EE/CS120B: Digital Systems
I. Introduction
In this lab you are basically building a 2-bit ALU. You are required to
write a behavioral description of an ALU. Note: when constructing the
ALU, do not use LE's, AE's, and FA's as shown in the book. All you
really need are case statements, etc ... The ALU should take in two
2-bit numbers have the following functionality:
The output of the ALU will consist of one 2-bit result and a
carry/borrow bit. You are also required to write a testbench for
this design. You will have to feed values into your design and
demonstrate that it is correct. In order for certain elements to
function correctly, (i.e. wait statements and internal signal tracing)
you may be required to use Active-VHDL.
II. Active VHDL
III. Download VHDL
After you have verified the results using ALDEC, check out an XS40 board from the T.A. and download your code. You will need to use the decoder you previously designed to display the result of your ALU in decimal form on the 7-segment display present on the XS40 board. Verify the results.