ECEN 4243 ALU project

Spring 2005

Due DATE CHANGED AGAIN, this time to Tuesday, 1 March 2005


ECEN 4243 Design Project Assignment1 the ALU

Create a 32 bit ALU with 5 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 5 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)
00000 y
00001 Reserved inst1 TBD; Cout==0; Res==1
00010 Reserved inst2 TBD; Cout==0; Res==2
00011 make 2's complement of y
00100 Reserved inst3 TBD; Cout==0; Res==3
00101 Cout==0; Res==32'hBA040105
01000 Reserved inst4 TBD; Cout==0; Res==4
01010 x and y
01100 x or y
01111 x minus y(2's complement Arithmetic)
10000 Reserved inst5 TBD; Cout==0; Res==5
10001 not y
10010 0
11000 x xor y
11011 x and not y
11101 x or not y
11110 x plus y
Note: all other select functions should generate all 0's on the results bus and a 1 on Cout (the high order carry out, that is overflow). 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. 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[4: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 ---