﻿ Gray en Coding Verilog example. Gray to binary to decimal conversion table. Any number from 0 to 100. One bit is allowed to transition between two consecutive numbers. Asynchronous interface, clock crossing, pointers of async fifo reads counters.
Custom Search
Chip Designing for ASIC/ FPGA Design engineers and Students
FULLCHIPDESIGN
Digital-logic Design...  Dream for many students… start learning front-end…
@TYH :- 4G LTE Long Term Evolution Tutorial, CloudComputing
Get Noticed:- Submit your own content to be published on fullchipdesign.com

Send it to fullchip@gmail.com

Gray Coding in Digital Design

Some implementation in digital design requires Gray encoding where only one bit is allowed to transition between two consecutive numbers.

Decimal to binary to gray codes from 0-100 are discussed below.

Binary to Gray code mapping for 0 to 10

# Decimal =    0 : Binary = 10'b0000000000 : Gray = 10'b0000000000

# Decimal =    1 : Binary = 10'b0000000001 : Gray = 10'b0000000001

# Decimal =    2 : Binary = 10'b0000000010 : Gray = 10'b0000000011

# Decimal =    3 : Binary = 10'b0000000011 : Gray = 10'b0000000010

# Decimal =    4 : Binary = 10'b0000000100 : Gray = 10'b0000000110

# Decimal =    5 : Binary = 10'b0000000101 : Gray = 10'b0000000111

# Decimal =    6 : Binary = 10'b0000000110 : Gray = 10'b0000000101

# Decimal =    7 : Binary = 10'b0000000111 : Gray = 10'b0000000100

# Decimal =    8 : Binary = 10'b0000001000 : Gray = 10'b0000001100

# Decimal =    9 : Binary = 10'b0000001001 : Gray = 10'b0000001101

# Decimal =  10 : Binary = 10'b0000001010 : Gray = 10'b0000001111

Resources
Clock Domain Crossing Discussion with
rtl & testbench example. Rate change (asynchronous) FIFO design and fifo depth calculation. \$assertkillPipeline vs. Parallel processing.
Binary Numbers 1s_complement 2s_complement Binary Subtraction Binary Sub. Ex's Sign_magnitude SignM EX Gray Coding BCD coding Digital gates NAND NOR & XNOR Theorems Boolean Functions BFunc Examples Minterm Maxterm Sum of Minterms Prdt of Maxterms 2 var K-map 3 var K-map 4 var K-map 5 var K-map Prime Implicant PI example K-map Ex's KMap minimization 2 var EX
Digital Logic fundamentals topics @ fcd
Digital basics tutorial, Binary number discussion, 1 and 2 complement discussion, Binary arithmetic, Signed Magnitude, overflow, examples
Digital logic gates basic (AND, OR, XOR, NOT) and derived (NAND, NOR and XNOR). Drive XOR from NAND gates. Drive XOR from NOR gates
Discussion of Boolean Algebra with examples.
Interview Questions. Main, FPGA, Digital Fundamentals

LTE Long Term Evolution topics.