Generator Input

MLDesigner provides automated ANSI C code generation for two generator input model types: FSM modules and single FSM models.

Basically, an FSM module is a module of the discret event (DE) domain. But the entire module functionality is represented by interconnected FSM instances or lower level FSM modules.

Likewise any other MLDesigner module, an FSM module may possess input and output interface ports and supports internal memories and parameter arguments.

In case automated code generation is used to produce ANSI C code for a single FSM model, the code generator internally creates a corresponding FSM module. Such a special FSM module just includes one instance of the selected FSM model and the same input/output interface. Accordingly, each FSM instance port is connected to its associated module interface port.