To actually use and validate an optimized LTI system, it has to be translated into code that can be assembled or compiled for a given processor architecture. C is by far the most common language for that purpose. Thus, putting all together, ltitop must support C code generation for a given realization or diagram.
Definition of Done
In the following, it is assumed that #9 was implemented.
[ ] Write a function to extract a Python AST for an entire diagram.
[ ] Collate block ASTs as function definitions.
[ ] Drop repeated function definitions.
[ ] Capture block connections via function calls.
[ ] Write a function to transform a Python AST into a pycparse C-AST.
Description
To actually use and validate an optimized LTI system, it has to be translated into code that can be assembled or compiled for a given processor architecture. C is by far the most common language for that purpose. Thus, putting all together,
ltitop
must support C code generation for a given realization or diagram.Definition of Done
In the following, it is assumed that #9 was implemented.
pycparse.c_generator.CGenerator
to generate C code.