This content is not included in
your SAE MOBILUS subscription, or you are not logged in.
Fixed-Point ECU Development with Model-Based Design
Technical Paper
2008-01-0744
ISSN: 0148-7191, e-ISSN: 2688-3627
Annotation ability available
Sector:
Language:
English
Abstract
When developing production software for fixed-point Engine Control Units (ECUs), it is important to consider the transition from floating-point to fixed-point algorithms. Systems engineers frequently design algorithms in floating-point math, usually double precision. This represents the ideal algorithm behavior without much concern for its final realization in production software and hardware. Software engineers and suppliers in mass production environments, however, are concerned with production realities and often need to convert these algorithms to fixed-point math for their integer-only hardware.
A key task is to design scale factors that maximize code efficiency by minimizing the bytes used, while also minimizing quantization effects such that the fixed-point algorithms match the floating-point results within an acceptable numerical margin. This floating- to fixed-point conversion task is tedious, labor intensive, error-prone, and often requires multiple iterations between system and software engineers.
Model-Based Design simplifies fixed-point development by providing tools and workflows that help the conversion process. System engineers doing on-target rapid prototyping for fixed-point ECUs often benefit from automated scaling and workflow assistance to support their initial fixed-point design. Production software engineers benefit from automated scaling as well, but they also require fine grain control over fixed data specification in their modeling environment to work with accumulator word sizes and target-specific optimizations. In addition to providing automated scaling and fine grain data modeling features, Model-Based Design capabilities for fixed-point verification and validation continue to evolve. One example is bit-accurate, fixed-point simulation with automated comparison to embedded software results using processor-in-the-loop testing.
This paper presents Model-Based Design capabilities and tools that support development and verification of fixed-point ECU software used in mass production vehicles.
Recommended Content
Authors
Topic
Citation
Erkkinen, T., "Fixed-Point ECU Development with Model-Based Design," SAE Technical Paper 2008-01-0744, 2008, https://doi.org/10.4271/2008-01-0744.Also In
References
- “A Seamless Implementation of Model-Based Design Applied to a New Fuel Control Feature for an Existing Engine ECU” Erkkinen Thomas The MathWorks Zwaanenburg Koos ETAS SAE Technical Paper No. 2006-01-0612 April 2006
- “Controller Style Guidelines for Production Intent Using MATLAB®, Simulink® and Stateflow®- Version 2,” MathWorks Automotive Advisory Board (MAAB) July 2007 www.mathworks.com/industries/auto/maab.html
- IEC 61508-3:1998 International Standard IEC 61508 Functional safety of electrical/electronic/ programmable electronic safety-related systems- Part 3: Software requirements 1st 1998
- “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” Reddy Vinod Nadarajah Siva Beals George MATLAB Central 2008 www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=7197&objectType=file
- Real-Time Workshop® Embedded Coder Supported Hardware The MathWorks http://www.mathworks.com/products/rtwembedded/supportedio.html