Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
11 years ago

State-machine encoding settings?

Hi all,

Since I'm messing around with ancient parts (epf10k10/epm7xxx) resources are at a premium. I've managed to shave off quite a few LE's by switching to lpm functions so now it's down to optimizing code to make as efficient use as possible of the CLB's. So, with that said.... State machines seem to favor one-hot encoding, which is all nice and well but that means that anything over 8-states or so begins to hurt. badly. So while I've tried to break down my FSM's to less than 8 states, I'd love to see alternatives.

Thoughts?

-Mux

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    We don't know the function to be implemented, so detail suggestions are hardly possible.

    Generally, I would set up a simple test design, compile it with different encoding settings (or possibly testing other design alternatives) and analyse the synthesized gate level logic to understand how the resource usages comes up.