04-06-2012, 07:31 PM
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 one’s ability to differentiate the operations of different logic gates.
Q1 Marks 5+5=10
(a) Convert the binary [B]number[/B] 11000110 to Gray code
(b) Convert The Gray code 10101111 to binary
Q2 Fill the empty columns in the table by [B]performing each operation against each row. Marks 10[/B]
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 one’s ability to differentiate the operations of different logic gates.
Q1 Marks 5+5=10
(a) Convert the binary [B]number[/B] 11000110 to Gray code
(b) Convert The Gray code 10101111 to binary
Q2 Fill the empty columns in the table by [B]performing each operation against each row. Marks 10[/B]
A
B
C
D
AND
OR
NAND
NOR
0
0
0
0
0
0
0
1
0
0
1
0
0
0
1
1
0
1
0
0
0
1
0
1
0
1
1
0
0
1
1
1
1
0
0
0
1
0
0
1
1
0
1
0
1
0
1
1
1
1
0
0
1
1
0
1
1
1
1
0
1
1
1
1
B
C
D
AND
OR
NAND
NOR
0
0
0
0
0
0
0
1
0
0
1
0
0
0
1
1
0
1
0
0
0
1
0
1
0
1
1
0
0
1
1
1
1
0
0
0
1
0
0
1
1
0
1
0
1
0
1
1
1
1
0
0
1
1
0
1
1
1
1
0
1
1
1
1