Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Which is better encoding, One Hot or Gray Encoding?

Status
Not open for further replies.

spartanthewarrior

Full Member level 2
Joined
Jun 13, 2007
Messages
122
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Activity points
2,142
Better Encoding

Hi All,

Can any body tell me which is better Encoding

1) One Hot 2) Gray Encoding

In which condition these encodings are best and why?
 

Better Encoding

One hot encoding makes datapath short. circuit fast.
Gary Encoding makes register toggle rate less, and power saving.
 

Re: Better Encoding

Hi,

Can you tell me

How One hot encoding makes datapath short. circuit fast?
 

Re: Better Encoding

try to figure out why the decode of the current state of the one-hot encoded FSM would be faster than the decode of the Gray encoded FSM. Write a snipet of Verilog/VHDL and it will be evident.
 

Re: Better Encoding

Gray Coding: Each state in state machine is assigned using gray coding, so that only one bit changes at a time.
Advantage: 1) this coding overcomes problems in binary coding like transition to dead, unwanted.
2) This coding is used in 1) Glitch free circuits 2) Asyn FIFO design 3) high speed decoding circuit
Disadvantage: Control logic is quite Complex.2) number of flip flop = number of flip flops in binary state machine

One Hot-Encoding: It takes one F/F for each state.
Advantage: Fast and control logic is simple, used in FPGA
Disadvantage: More hardware


Among this gray coding is the best.

Santu
 

Re: Better Encoding

Hi ,

Can any body tell me

Why we use "Gray" encoding in Glitch Free Circuits.

How "One - Hot" encoding make data path short.
 

Re: Better Encoding

What I beleive is

Both the encodings are having there own advantages and disadvantages
and depends on the application too.

Gray Encoding:- Minimizes glitches in Circuits and Usefull in Async FIFO.

One-Hot:-Minimizes decoding logic and is useful in saving area.

Added after 2 minutes:

Sorry friends one - hot encoding doesn't saves area it speed's up the decoding logic
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top