# CS302 Digital Logic Design Assignment 1 Solution Spring 2013

Question 1                                                                                                                                          [5 Marks]

Convert the decimal numbers “129” and “478” into their equivalents in the followings:

1. a.      Binary
2. b.      BCD

(Show complete conversion steps)

Question 2                                                                                                                                          [5Marks]

1. a.      Perform binary addition of “129”  and “478”
2. b.      Perform BCD addition of “129”  and “478”

Solution:

 X = NOT(A XOR B) Y = B XOR C X AND Y 1 0 0 1 1 1 0 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 0 0

Question 3                                                                                                                                          [10Marks]

Fill the empty columns in the table by performing each operation against each row.

 A B C X = NOT(A XOR B) Y = B XOR C X AND Y 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1

Solution:

 A B C (A XOR B) X =NOT(A XOR B) Y =B XOR C X AND Y 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 1 1 1 1 0 0 1 1 0 0 0 0 1 1 0 1 1 0 0 1 1 0 0 1 0 0 0 0 1 0