Binary -to -Gray, Gray -to -Binary code converte
1 Stars     1916 Views    

Author: YASH WAGHELA CSE

Forked from: Rohit Kumar Chaurasia /Binary -to -Gray, Gray -to -Binary code converte

Project access type: Public

Description:

Implement 4-bit Binary -to -Gray, Gray -to -Binary code converter.   

sample input

 Input:  For circuit 1: Binary code (B3B2B1B0) = 0101 

Input:  For circuit 2: Gray code (G3G2G1G0)= 0111  

expected output 

Output: For circuit 1: Gray code (G3G2G1G0)= 0111 Output: For circuit 2: Binary code (B3B2B1B0) = 0101 2 Theory Gray Code: Gray code is a binary numeral system where two successive values differ in only one bit.   

Binary to Gray:  Binary to gray code converter is a combinational circuit that converts a binary number into a gray code. The circuit diagram of Binary to Gray Converter is shown in the following figure:    

Gray to Binary: Gray to binary code converter is a combinational circuit that converts a gray code into binary code. The circuit diagram of Gray to binary code converter is shown in the following figure:

Created: May 07, 2021

Updated: Aug 26, 2023


Comments

You must login before you can post a comment.