| Authors | Patrick Lehmann |
|---|---|
| Date Proposed | 2017-04-02 |
| Last Updated | 2017-04-02 |
| Focus | simulation and synthesis |
| LCS | TBD |
statemachine statement shall support the following features:
statemachine myFSM is
configuration (
Clock => clk,
SyncReset => rst,
-- ASyncReset => rst_a
InitialState => IDLE,
Reset state => IDLE
);
default (
LeaveIdle => ‘0’,
Working => ‘0’,
ErrorRaised => ‘0’
);
state IDLE is
goto WORKING;
on exit to (all)
LeaveIdle <= ‘1’;
end on exit;
end state;
state WORKINK is
Working <= ‘1’;
goto ERROR when (err = ‘1’);
end state;
state ERROR is
on entry from (WORKING)
ErrorRaised <= ‘1’;
end on entry;
end state;
end statemachine;