This content is not included in
your SAE MOBILUS subscription, or you are not logged in.
Model Style Guidelines for Production Code Generation
Technical Paper
2005-01-1280
ISSN: 0148-7191, e-ISSN: 2688-3627
Annotation ability available
Sector:
Language:
English
Abstract
Modern electronic control units (ECUs) are increasingly being developed using Model-Based Design with production code generation. With this approach, systems and software engineers model and simulate algorithms using block diagrams, state machines and data dictionaries. Code is then automatically generated from these models and placed into rapid prototyping or production microprocessors.
The model structure and code generation configuration options significantly impact the efficiency and clarity of the design and resulting code. While clarity and efficiency may not be much of an issue when performing initial rapid prototyping evaluations on high performance computers, it is a significant concern in formal software development processes targeting low-cost, low-performance mass production ECUs. This paper describes model style guidelines and the best practices for automatically designing and generating optimized fixed-point and floating-point code.
Recommended Content
Authors
Citation
Erkkinen, T., "Model Style Guidelines for Production Code Generation," SAE Technical Paper 2005-01-1280, 2005, https://doi.org/10.4271/2005-01-1280.Also In
Automotive Electronics on CD-ROM from the SAE 2005 World Congress
Number: SP-1980CD; Published: 2005-04-11
Number: SP-1980CD; Published: 2005-04-11
References
- The MathWorks, Inc. Natick, MA. www.mathworks.com
- MATLAB, Software Package The MathWorks, Inc. Natick, MA
- Simulink, Software Package The MathWorks, Inc. Natick, MA
- Stateflow, Software Package The MathWorks, Inc. Natick, MA
- Real-Time Workshop Embedded Coder, Software Package The MathWorks, Inc. Natick, MA
- “Controller Style Guidelines for Production Intent Using MATLAB®, Simulink® and Stateflow®,” MathWorks Automotive Advisory Board (MAAB) April 2001 www.mathworks.com/industries/auto/maab.html
- “Simulink Style Guide” Japan MathWorks Automotive Advisory Board (J-MAAB) March 2003 j-maab.cybernet.jp
- “Guidelines for the Use of the C Language in Vehicle Based Software” Motor Industry Software Reliability Association 0 9524156 9 0 April 1998 www.misra.org.uk
- “Checking Code and Models in Production Environments” Erkkinen Tom Hachmeister Damon MATLAB Digest July 2003 www.mathworks.com/company/newsletters/digest/july03/checking_code.html
- mint, Software Package Tarragon Ricardo West Sussex, UK
- “Logic Design Using Stateflow Truth Tables” Aberg Rob MATLAB News & Notes June 2004 www.mathworks.com/company/newsletters/news_notes/june04
- “ Strategy for Successful Enterprise-Wide Modeling and Simulation Using COTS ” Aberg Rob Gage Stacey American Institute of Aeronautic and Astronautics GN&CI Conference August 2004
- “Multi-Target Modeling for Embedded Software Development for Automotive Applications” Hodge Grantley et al Visteon Corp SAE Technical Paper No. 2004-01-0269 March 2004
- “Fixed-Point Modeling and Code Generation Tips” Nadarajah Siva Beals George MATLAB Central 2002 www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=2632&objectType=file