ECEN 4243 ALU project

Spring 2004

Due Wednesday, 24 March 2004


ECEN 4243 Design Project Assignment1 the ALU

Create a 32 bit ALU with 4 select lines. All busses are to be numbered with 0 as the least significant bit. The input signals for the ALU are:
x and y are 32 bit busses.
Cin is a one bit carry in.
sel is a 4 bit function select bus.

The output signals are:
res is a 32 bit result bus
Cout is a one bit Carry out.


selALU function
(i.e. value on result bus)
0000 y
0001 not y
0010 0
0011 make 2's complement of y
1000 x xor y
1010 x and y
1100 x or y
1011 x and not y
1101 x or not y
1110 x plus y
1111 x minus y(2's complement Arithmetic)
Note: all other select functions are reserved. There are no don't care function select inputs. Fully decode each function select code into the appropriate control signals.
The project is to be submitted to the automatic grader. This is proj1 for the automatic grader. There are a few specific details that must be true of your uploaded files and the top module. The top level module is alu32 and the file containing the list of your module files is alu32.ver. The top level module must be defined with the following terminals:
module alu32(x,y, Cin, sel, res, Cout);
input[31:0] x,y;
input[3:0] sel;
input Cin;
output[31:0] res;
output Cout;

When you upload the files there are two filenames to enter, your local filename (which can be anything) and the upload filename, which for the module files must end in .v and for the list of files must be alu32.ver.


[ECEN4243] [Announcements] [Schedule] [Syllabus] [Assignments]

Feel free to email comments and suggestions to acken@okstate.edu Today is --98765-- And the time is ?

Last updated: -22--02--2003-

Red Stars purple red stars --white 9gray 8violet 7black 0black 0brown 1brown 1red 2orange 3 ---