TargetLink: Professional Production Code Generation for Automotive Systems
In the demanding world of automotive engineering, transitioning from a conceptual model to functional hardware requires precision and reliability. TargetLink, developed by dSPACE GmbH, is a specialized software solution designed for automatic code generation. By leveraging a subset of Simulink and Stateflow models, TargetLink bridges the gap between high-level system design and the deployment of production-ready code on physical processors.
To function, TargetLink requires an existing MATLAB and Simulink model. It is capable of generating standard ANSI-C as well as production code that is highly optimized for specific processors. Furthermore, it supports the creation of AUTOSAR-compliant code, ensuring that software components meet the standardized architecture required across the modern automotive sector.
[ไม่มีภาพประกอบ]
Key Facts
- Developer: dSPACE GmbH.
- Core Function: Automatic production code generation from Simulink/Stateflow models.
- Compatibility: Requires MATLAB/Simulink; runs on Windows.
- Standards Support: Generates ANSI-C and AUTOSAR-compliant code.
- Certifications: Certified by TÜV SÜD for ISO DIS 26262 and IEC 61508.
- Data Management: Uses a central Data Dictionary to manage code generation information.
The Code Generation Process
TargetLink streamlines the development workflow by automating the translation of models into executable code. A critical component of this process is the Data Dictionary, a central data container where all relevant information for the code generation is managed, ensuring consistency across the project.
Simulation and Testing Modes
To ensure the generated code behaves exactly as intended, TargetLink utilizes Simulink for testing. It supports three distinct simulation modes to validate the software at different stages of development:
- Model-in-the-loop (MIL): Also known as floating-point simulation, this mode is used to verify the initial model design using floating-point variables.
- Software-in-the-loop (SIL): In this stage, the generated code is executed on a PC system. Variables are typically converted to plain or fixed-point numbers to more closely mimic target hardware.
- Processor-in-the-loop (PIL): The generated code runs directly on the target hardware or an evaluation board. This mode uses real-time frames to send simulation results, memory consumption, and runtime data back to the PC for analysis.
Safety and Industry Standards
For safety-critical applications, adherence to rigorous standards is non-negotiable. In late 2007, the Motor Industry Software Reliability Association (MISRA) published official modeling guidelines specifically for TargetLink to enhance functional safety.
The reliability of the tool is further validated by third-party certification. In 2009, TÜV SÜD certified TargetLink for use in the development of safety-critical systems, confirming its compliance with ISO DIS 26262 and IEC 61508 standards.
| Feature | Details |
|---|---|
| Developer | dSPACE GmbH |
| Stable Release | 3.5 (2013) |
| Operating System | Windows |
| License Type | Proprietary |
| Output Formats | ANSI-C, Processor-optimized code, AUTOSAR |
| Safety Certifications | ISO DIS 26262, IEC 61508 |
Frequently Asked Questions
What is TargetLink used for?
TargetLink is used for the automatic generation of production-quality code from Simulink and Stateflow models, primarily for use in the automotive industry.
Does TargetLink work independently?
No, TargetLink requires an existing MATLAB and Simulink model to operate.
What is the difference between SIL and PIL simulation?
Software-in-the-loop (SIL) runs the generated code on a PC, while Processor-in-the-loop (PIL) runs the code on the actual target hardware or an evaluation board to measure real-time performance and memory usage.
Is TargetLink suitable for safety-critical systems?
Yes, it is certified by TÜV SÜD for ISO DIS 26262 and IEC 61508, and it follows official MISRA modeling guidelines for functional safety.
What is the Data Dictionary in TargetLink?
The Data Dictionary is a central data container used to manage all the information necessary for the code generation process.