You are on page 1of 2

CS302 spring 2012 Assignment No.

1
Due Date:
Your assignment must be uploaded/submitted before or on 13th April 2012.

Total Marks: 20 Rules for Marking:


It should be clear that your assignment will not get any credit if: o o o o The assignment is submitted after due date. The submitted assignment file is corrupted. The assignment is copied. The assignment material is directly copied from internet.

Note:
Your answer must follow the below given specifications. You will be assigned no marks if you do not follow these instructions. Font style: Times New Roman Font color: Black Font size: 12 Bold for heading only. Font in Italic is not allowed at all. No formatting or bullets are allowed to use.

Objective: The objective of this assignment is to prepare students to familiar with conversion between binary and gray codes as gray code has unique property of being one bit difference. Furthermore it will enhance ones ability to differentiate the operations of different logic gates.

Q1

Marks 5+5=10 (a) Convert the binary number 11000110 to Gray code (b)Convert The Gray code 10101111 to binary

Q2 Fill the empty columns in the table by performing each operation against each row. Marks 10 A
0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1

B
0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1

C
0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1

D
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1

AND
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1

OR
0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

NAND
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0

NOR
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

You might also like