Professional Documents
Culture Documents
Apparatus
Part 2: subtraction
Part 3: magnitude comparison
Procedures:
A B S C
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
Part 5:(b) full adder with XOR and NAND only
A B Ci S Co
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
)Part 6:(c
9+5=14 ➔ 1001+0101=1110
9+13=22>15
10+6=16>15
-comment on sum and Co for the subtraction operations when A>B and
A<B:
But if A<B the Co will = 1 ➔ A=9, B=13 ,,,, 9+13=22>15 has CARRY
Subtraction: if A>B the Co will = 1 ➔ A=9, B=5 ,,,, 9-5=4<15 has carry
A B output proof
1001 0110 A>B 9>6
1100 1110 A<B 12<14
0011 0101 A<B 3<5
0101 0101 A=B 5=5
Part 9:(f)
-the logic circuit has an additional input called the control input, which
determines the addition 0 or subtraction 1.