Forum Discussion
Altera_Forum
Honored Contributor
12 years agoI just posted a similar question about this earlier on. The thing with one-hot state machines is that you'll need a register for each state. So if you have large state-machines (say, 32 states) that would, as a binary state, only require 5 bits. Yet if it's encoded as one-hot, it will require a bit for each state, effectively turning it into 32 registers.
So if you can achieve the same result with multiple, smaller state-machines that utilize the LUT's better, you could potentially save logic. The more inputs your states require, the bigger your register usage gets as well. Last but not least, it's a lot easier to maintain a (few) smaller state-machines than one gigantic monster. -Mux