Home.Verilog.Digital Design.Digital Basics.Python.RF Basics.
Previous.
Next.
Custom Search

Feedback ? Send it to admin@fullchipdesign.com or join me at fullchip@gmail.com

Legal Disclaimer

Chip Designing for ASIC/ FPGA Design engineers and Students
FULLCHIPDESIGN
Digital-logic Design...  Dream for many students… start learning front-end…
Try navigation bar on top to explore the contents @ fullchipdesign

Legal Disclaimer

Custom Search
Binary Numbers.

1s_complement.

2s_complement.

Binary Subtraction.

Examples.

Sign_magnitude.

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.

Binary codes

Gray Coding:

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

Example:

Check out Verilog code to implement Gray encoding

Binary to Gray code mapping:-

# binary number= 6'b000000 : gray en-coded bin number = 6'b000000

# binary number= 6'b000001 : gray en-coded bin number = 6'b000000

# binary number= 6'b000010 : gray en-coded bin number = 6'b000001

# binary number= 6'b000011 : gray en-coded bin number = 6'b000011

# binary number= 6'b000100 : gray en-coded bin number = 6'b000010

# binary number= 6'b000101 : gray en-coded bin number = 6'b000110

# binary number= 6'b000110 : gray en-coded bin number = 6'b000111

# binary number= 6'b000111 : gray en-coded bin number = 6'b000101

# binary number= 6'b001000 : gray en-coded bin number = 6'b000100

# binary number= 6'b001001 : gray en-coded bin number = 6'b001100

# binary number= 6'b001010 : gray en-coded bin number = 6'b001101

# binary number= 6'b001011 : gray en-coded bin number = 6'b001111

# binary number= 6'b001100 : gray en-coded bin number = 6'b001110

# binary number= 6'b001101 : gray en-coded bin number = 6'b001010

# binary number= 6'b001110 : gray en-coded bin number = 6'b001011

# binary number= 6'b001111 : gray en-coded bin number = 6'b001001

# binary number= 6'b010000 : gray en-coded bin number = 6'b001000

# binary number= 6'b010001 : gray en-coded bin number = 6'b011000

# binary number= 6'b010010 : gray en-coded bin number = 6'b011001

# binary number= 6'b010011 : gray en-coded bin number = 6'b011011