fsm2sv icon indicating copy to clipboard operation
fsm2sv copied to clipboard

Extend support for state transition with no input

Open canerbulduk opened this issue 2 years ago • 1 comments

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.

canerbulduk avatar Nov 14 '22 11:11 canerbulduk