I want to design ALU with 2 select lines , 2 inputs ( n bits ) that do the following:
this is a homework and I want to know what to do, writ to me the steps for design it.
the first thing I thought to do is to build a table with S0,S1,C, then I have 8 rows, and the output will be F. its ok? now what should I do?
thanks!
EDIT
S0 S1 C | operation
0 0 0 | S = A+B
0 0 1 | S = A+B+1
0 1 0 | S = A transfer?
0 1 1 | S = A+1(inc)
1 0 0 | S = B`
1 0 1 | S = B`+1
1 1 0 | s = A+B`(negate)
1 1 1 | S = A+B`+1