Open Ended Experiment: Digital Electronics and Computer Organization
Open Ended Experiment: Digital Electronics and Computer Organization
Open Ended Experiment: Digital Electronics and Computer Organization
DIGITAL ELECTRONICS
AND COMPUTER ORGANIZATION
CSE 207
BACHELOR OF TECHNOLOGY
COMPUTER SCIENCE AND ENGINEERING
SOFTWARE USED
OrCAD
IC’s USED
74151A
7404
THEORY
Binary number system is default way to store numbers, but in many applications
binary numbers are difficult to use and a variation of binary numbers is needed.
Gray Code system is a binary number system in which every successive pair of
numbers differs in only one bit.
To convert binary number into gray code the first digit is taken as it is and the
next digits are the result of exclusive-or of the digit with the previous digit of the
binary number.
The Gray code eliminates this problem since only one bit changes its value during
any transition between two numbers.
Gray code does the cycling through various states with minimal effort and used in
K-maps, error correction, communication etc.
TRUTH TABLE
B3 B2 B1 B0 G3 G2 G1 G0
0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 1
0 0 1 0 0 0 1 1
0 0 1 1 0 0 1 0
0 1 0 0 0 1 1 0
0 1 0 1 0 1 1 1
0 1 1 0 0 1 0 1
0 1 1 1 0 1 0 0
1 0 0 0 1 1 0 0
1 0 0 1 1 1 0 1
Output for G3
B3’ 0 1 2 3 4 5 6 7
B3 8 9 10 11 12 13 14 15
OUTPUT B3 B3 B3 B3 B3 B3 B3 B3
Output for G2
B3’ 0 1 2 3 4 5 6 7
B3 8 9 10 11 12 13 14 15
OUTPUT B3 B3 B3 B3 1 1 1 1
Output for G1
B3’ 0 1 2 3 4 5 6 7
B3 8 9 10 11 12 13 14 15
OUTPUT 0 0 1 1 1 1 B3 B3
Output for G0
B3’ 0 1 2 3 4 5 6 7
B3 8 9 10 11 12 13 14 15
OUTPUT 0 1 1 B3 B3 1 1 B3
CIRCUIT
OUTPUT
RESULT
The BCD to GRAY CODE converter using 8:1 multiplexer is stimulated and output waveform is
verified.