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.

FSM Encoding algorithm

Status
Not open for further replies.

yaser123

Member level 1
Joined
Jan 9, 2003
Messages
34
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
qaemshahr
Activity points
184
fsm encoding algorithm

hi all
what's difference b/w One-Hot Encoded Finite state machin and Binary-Encded FSM?and why does former is suitable for FPGA and later for CPLD desogn?
tnx ahead
 

fsm one hot

onehot encoding: The number of FFs used is the same as number of states in the FSM. say a 31 state fsm will be having 31 flops after synthesis.

only one flop will be active ("hot") in a state.

Adv. Low power(since only one toggle when state changes), simple decoding logic.

Binary encoding will take n flops for 2^n states.
so 31 state FSM will take 5 flops.
Disadv. decoding logic is complex.

popular method is onehot.
FPGA has lot of registers compared to CPLD. so onehot is more suitable for FPGA

Hope it helps
 

one hot fsm

One Hot is also a bit faster than binary if the number of fsm stages are big . Can be explained by the point that whizkid has put . Decoding is simple , suppose there is a fsm with 31 stages then for binary encoding a lot of levels of decode logic is present but for one hot encoding decode logic is very less .
On Area One Hot takes a bit of a more area since flipflops generally have more area consumption than combination logic .This can't be generallised and denpends on the number of transisitons in your statemachine , but usally this is the case
 

fsm encoding

tnx friends
but how a bout other algorithm like compact , johnson...?
tnx again
 

two hot encoding

check this attacehd powerpoint slide....
 

two-hot encoding

I would suggest to check manual for any synthesizer. For example, you can get Leonardo Spectrum guide here: **broken link removed**

It has very clear and comprehensive description of different FSM encoding styles, including One Hot, Two Hot, Gray, Binary etc.

Check section "Enumerated Types" for details.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top