CSCI 232 Lab 5
ALUs & Registers
Date Due: 29 February 2012
In this
project you will experiment with performing arithmetic, logical, and shift
operations using a register. You will be
using the 4 of the 10 switches on the CADET to simulate one register’s output,
another 4 to simulate a second register’s output, and the final two to control
which operation you wish to perform on the two outputs. The result of the specified operation should
be stored in a register you build with D flip flops. The output of these flip flops should be
displayed on the LEDs. The operations to
perform are:
Bit pattern of switches 9 and 10 |
Operation to perform |
00 |
Add the two
inputs |
01 |
Subtract
the two inputs (2’s complement) |
10 |
Shift input
1 one bit to the right |
11 |
Or the two
inputs |
Input 1 (4
switches)
You should
first design your circuit using LogicWorks using a
minimum number of gates. After showing me
your circuit and getting it approved, you should wire your circuit on a CADET
working in teams of two or less, and demonstrate your circuit to me.