A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
Code conversion using verilog code VHDL
1. Experiment 7
Name: Shyamveer Singh
Reg: 11205816
Roll no:B54
Aim: Write a verilog code for the code conversion, binary to gray,
Theory:BINARY code is a way of representing the text or the data generated
by the computers and other devices .
In binary coding the text or the data is represented in a stream of bits of 1's and
0's .
GRAY CODES are non weighted codes , that is they can not be provided a
weight to calculate their equivalent in decimal . Gray codes are often called
reflected binary code , the reason is clear if you compare the column of gray
code with the binary code .
Excess 3 code are simply addition a 3 in binary in BCD number system.
Truth Table:
No. Binary Gray
D C B A G3 G2 G1 G0
0 0 0 0 0 0 0 0 0
1 0 0 0 1 0 0 0 1
2 0 0 1 0 0 0 1 1
3 0 0 1 1 0 0 1 0
4 0 1 0 0 0 1 1 0
5 0 1 0 1 0 1 1 1
6 0 1 1 0 0 1 0 1
7 0 1 1 1 0 1 1 0
8 1 0 0 0 1 1 0 0
9 1 0 0 1 1 1 0 1
10 1 0 1 0 1 1 1 1