Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
21615 Discussions

State-machine encoding settings?

Altera_Forum
Honored Contributor II
1,075 Views

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
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
352 Views

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.
0 Kudos
Reply