# VU Assignment No. 1, Semester ,Spring2013,Digital Logic And Design – CS302

Assignment No. 1

SemesterSpring2013
Digital Logic and Design – CS302

Bc120202130

IMRAN IQBAL

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

1. a.      Binary

(129)10 =(10000001)2

(478)10=(111011110)2

1. b.      BCD

(129)10

1=0001

2=0010

9=1001

478=

4 = 0100

7=0111

8=1000

Question 2

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

010000001

111011110

1001011111

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

129= 0001 0010  1001

478= 0100 0111  1000

607= 0101 1001 10001

0101 1001   10001

0000  0000    0110

0101 1001  1  0111

0101   1001 0111

0000   0001 0000

0101   1010 0111

0000   0110 0000

0101 10000 0111

0101 0000 0111

0001 0000 0000

0110 0000 0111

Question 3

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 1 0 0 0 0 1 1 1 1 0 1 0 0 1 0 0 1 1 0 0 0 1 0 0 0 0 0 1 0 1 0 1 0 1 1 0 1 1 1 1 1 1 1 0 0

## VU Assignment No. 1, Semester ,Spring2013,Digital Logic And Design – CS302

Education In Pakistan © 2016