Design of Binary to Gray Code Converter Circuit

In this topic, you study how to design Binary to Gray Code Converter Circuit and draw the logic diagram.


Truth table

The conversion of 4-bit input Binary code (A B C D) into the Gray code output (W X Y Z) as shown in truth table 1. The 4-bit input so 16 (${2^4}$) combinations are possible and all of them are valid so no don’t care condition.

Table 1: Binary to Gray Code Code Converter.

Binary Code (Input) Gray Code (Output)
ABCDWXYZ
00000000
00010001
00100011
00110010
01000110
01010111
01100101
01110100
10001100
10011101
10101111
10111110
11001010
11011011
11101001
11111000

Drawing of K-map for each output

From this truth table, the K-maps are drawing shown in Figure 1, to obtain a minimized expression for each output.

Binary to Gray Code Conversion k-map 1

(a) k-map for W

Binary to Gray Code Conversion k-map 2

(b) k-map for X

Binary to Gray Code Conversion k-map 3

(c) k-map for Y

Binary to Gray Code Conversion k-map 4

(d) k-map for Z

Figure 1: k-maps for Binary to Gray Code Converter.

Minimized Expression for each output

The minimized expression for each output obtained from the K-map are given below as

$W = A$

$X = \bar A B + A \bar B = A \oplus B $

$Y = \bar B C + B \bar C = B \oplus C $

$Z = \bar C D  + C \bar D = C \oplus D $

Logic Circuit Diagram

Based on the above given minimized expression for each output, a logic circuit can be drawn as shown in Figure 2.

Binary to Gray Converter logic diagram

Figure 2: Binary to Gray Code Converter logic diagram.

Leave a Comment

Your email address will not be published. Required fields are marked *

error: Content is protected !!
Scroll to Top