This project follows classical technique for code generation from Simulink models for an embedded system application. Commercially available tools for code generation are Embedded Coder from Mathworks and TargetLink from dSpace. Flex and Bison are used in this project for code generation. Flex and bison are widely used code-generation tools and are free.
Model parser generated from Flex and Bison has the capability to parse model file and extract all the information related to blocks and lines in the model. Block information extracted by parser is used in creating tree of blocks records which represent block hierarchy and their interrelation in model. Tree generated by parser can be used for performing Static Analysis of Model, Automatic Test Case Generation or Code Generation. Technique used in this project for code generation from Simulink model has few limitations too.
For more information please refer document "C-code Generation from Simulink Models using Flex and Bison.pdf".
Downloads:
0 This Week