fsm2sv
fsm2sv copied to clipboard
Extend support for state transition with no input
In case of a state without transition condition but with mealy outputs; the parsing is failed.
As an example, you can see the DEFAULT state on following code.
transitions:
- DEFAULT:
- 2NDSTATE, <mealy_out0 = 3b'101, mealy_out1 = 1b'1, >
- <moore_out0 = 2b'01>
- 2NDSTATE:
- (COND), 3RDSTATE, <mealy_out0 = 3b'001, mealy_out1 = 1b'1, >
- <moore_out0 = 2b'11>
This commit extends FSM transition Case3, transition with no input, by adding the mealy outputs.