ALU Help

Thread Starter

spidermanthehulk

Joined Oct 17, 2009
1
Hi All I'm a new member to this site and I hope getting help in my H.W....
Here it's the problem.

design a 4-bit Arithmetic Logic Unit that accepts 2 4-bit inputs, A and B, 4 control signals, s3s2s1s0, and carry in, ci, and produce a 4-bit output, F, and carry out, co, (when appropriate), such that F could be one of the following 15 outputs depending on the control signals.




Output F


Operation


0
Clear
A+1
Increment
A+B
Add
A+B+ci
Add with carry
A+B`+ci
Sub with borrow
A+B`+1
Sub
A-1
Decrement
A
Transfer
AÙB
AND
AÚB
OR
AÅB
XOR
A`
Complement
Shr A
Shift right A
Shl A
Shift left A
AL*BL
Multiply lower nibbles














Available Material:
Available ICs: 1-bit Binary Adder, 4-to-1 MUX, 2-to-1 MUX, 2-input (AND, OR, NAND and XOR) gates and Inverters.

thanks in advance.
 
Top