Forum Discussion
ATsao3
New Contributor
8 months agoState machine question in Arria X device
Hello all, In my design, there has a state machine having 28 states. The function is all good in RTL simulation. After full compilation and program to the device. There will be some state doesn't ...
sstrell
Super Contributor
8 months agoNot sure what you mean by "4W_HEADER1(33 clk)" vs. "4W_HEADER1(1 clk)". I see a state "4W_HEADER1" but that's it.
Other than that, I'd try using parameter instead of localparam. I don't know if that affects the way Quartus "detects" state machines, but it's worth a try.
You should also break up those super deep else/if statements. Pull that logic out of the main next state logic and use case statements and intermediate signal(s) instead in separate processes. Are you having timing issues?