Class toastoven with a hierarchical state machine used in the following examples of code generation Statesmith is a cross platform, free/open source tool for generating state machines in multiple programming languages The generated code is human readable, has zero dependencies and is suitable for use with tiny bare metal microcontrollers, video games, apps, web, computers. When the model meets the design requirements, you then generate vhdl ®, verilog ® or systemverilog code that implements the design The state machine is defined using a basic json string, and includes convenience timers. This section focuses primarily on working with state machine diagrams, while section generating code for state machines will cover generating code from state machines.
Hsmcpp is a c++ library providing implementation of state machine design pattern (also known as statecharts) It allows you to easily add hierarchical (hsm) or finite state machine (fsm) to your project Code generation tool written in python for c++ hierarchical state machines The basic idea is to design your state machine graphically in plantuml and then use the plantuml input file also as an input file for flohsm.py to generate c++ code. Frame supports the notion of states inheriting behavior from other states A state machine that supports hierarchy is known as a hierarchical state machine (hsm).
WATCH