Professional Documents
Culture Documents
Spring 2012 - CS302 - 1
Spring 2012 - CS302 - 1
1
Due Date:
Your assignment must be uploaded/submitted before or on 13th April 2012.
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