Forum Discussion

Tim10's avatar
Tim10
Icon for New Contributor rankNew Contributor
7 years ago

State Machine Wizard

I used the State Machine Wizard to create a machine with 9 states. Looking through the generated code I saw this: reg [8:0] fstate; reg [8:0] reg_fstate; parameter State1=0,State2=1,State3=2,State4...