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.

[SOLVED] Why State machines are preferred ?

Status
Not open for further replies.

verylsi

Full Member level 2
Joined
Mar 12, 2012
Messages
123
Helped
16
Reputation
32
Reaction score
16
Trophy points
1,308
Activity points
2,130
Hello All,

I have some doubts regarding state machine implementation in VHDL.

State machines are faster and are considered as a better coding technique.
I want to know then what makes state machines better than a simple if-else or case logic?

Is it because of its encoding techniques?
or are the synthesized differently in FPGAs than other logics ?
please throw some light on it.

Thanks in advance..
 

Bad state machines would be worse than well written code without vhdl coded state machines. And vice-versa
It has nothing to do with speed or better coding technique. Bad code is bad code.

I dont know where you get the idea that state machines are "faster" - faster than what?

At the end of the day, its just a load of LUTs and registers in an FPGA, however you code. But Id rather have it easier to read than get a 2% fmax increase.
 
  • Like
Reactions: verylsi

    verylsi

    Points: 2
    Helpful Answer Positive Rating
well the state machine gives the programmer an idea of how the chip would behave in different states and it would be very helpful in any HDL coding...
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top