next up previous
Next: Multiplication in VHDL and Up: CS161L Fall 2005 Previous: CS161L Fall 2005

32-bit Partitioned ALU

Design and implement a partitioned 32-bit ALU as shown in Fig. 1

Figure 1: A Partitioned 32-bit ALU
\includegraphics[height=2in]{part_alu.eps}

The ALU has at least the following features:

In addition, you are required to write a testbench, which has at least the following testcases:

Hints:
The most confusing part will be the overflow checking. What is overflow? When will that happen?

Refer to Fig 3.3 on page 172 of the textbook.

In-lab lecture notes:

References:
1. Weijun Zhang, VHDL Tutorial: Learn by Example, http://www.cs.ucr.edu/content/esd/labs/tutorial/
2. J. Bhasker, VHDL Primer 3rd Ed., Prentice Hall 1999


next up previous
Next: Multiplication in VHDL and Up: CS161L Fall 2005 Previous: CS161L Fall 2005
Yan Luo
2005-01-20