Code Converter and Parity Converter
Code Converter and Parity Converter
The Code Converter circuit has the ability to convert one type of binary code to another type of
binary code. There are various forms of binary codes, which includes Gray Code, Binary Coded
Decimal, excess-3 codes, etc. Each type of binary code is utilized for a different type of digital
application. In this lab we learned about the conversion of gray code to binary numbers and
implemented this conversion circuit on the ELVIS II board. In the Gray Code system (which is a
binary number system) the difference between two subsequent numbers only a single bit. For 3-
bit values, the gray code sequence is: 000, 001, 011, 010, 110, 111, 101, 100. From this we can
see that 101 in gray code is in 6th decimal number position so its binary equivalent is equal to
110. Then for 100 gray code is equivalent to 111 binary number and so on. A code converter can
A parity bit generator is used for detecting errors to make sure that the data is accurate. The
parity generator is a combinational circuit which generates an additional bit which acts as a
check bit which is inserted to a block of data. There are two types of parity bit: even parity bit
and odd parity bit. In the case of the even parity bit, the parity generator generates an additional
‘0’ bit when there are even number of 1s in the block of data and the parity bit generated is ‘1’ if
there are odd number of 1s in the data block. On the other hand, in the case of the odd parity bit,
the parity generator generates an additional ‘1’ bit when there are even number of 1s in the data
block, and the parity bit generated is ‘0’ when there are odd number of 1s in the data block.