85737 - Compliance Design of Automotive Systems M

Academic Year 2020/2021

  • Docente: Carlo Concari
  • Credits: 6
  • SSD: ING-IND/32
  • Language: English
  • Teaching Mode: Traditional lectures
  • Campus: Bologna
  • Corso: Second cycle degree programme (LM) in Advanced Automotive Electronic Engineering (cod. 9238)

Learning outcomes

The aim of the course is to provide the theoretical basis and the practical skills to design embedded hardware compliant with security standard (Hardware safety integrity requirements for the complete SIF and architectural constraints). In particular Power Supply Management and Computing Redundancy, will be deeply analyzed. In addition, high performance modular programming with respect to automotive and safety standards (AUTOSAR, ADSIL, SIL) and the automatic code generation using Matlab/Simulink will be considered.

Course contents

Embedded hardware for compliant systems (2 hr)
Sensing, control, actuation, redundancy, power supply, insulation.

Structured approach to firmware design (2 hr)
V-model, levels of abstraction, validation, verification, documentation.

Implementation: the building system (7 hr)
Source code, preprocessor, compiler, assembly language, machine code, internal operation of the CPU, registers, stack, assembler, linker, optimization.

Software testing and documentation (3 hr)
Unit testing, static and dynamic code analysis, code coverage, process documentation, inline documentation, Doxygen, authoring tools.

Version control systems (3 hr)
Concurrent development, centralized vs. distributed VCSs, SVN, GIT, repositories, update, commit, branching, tagging, merging.

Standards (1 hr)
Standardization organizations, operation, stage codes.

Safety standards (2 hr)
Introduction to safety standards, safety integrity levels, good programming practices.

Coding standards (2 hr)
Motivation, MISRA C, CERT C, Barr Group, rule examples.

Communication protocols (2 hr)
CAN, CANopen, J1939, introduction to industrial communication protocols.

Fixed point ALUs (6 hr)
Fixed point numeric formats, fixed point arithmetic, normalized fractional format, calculations with normalized quantities, examples (Ohm’s law, magnetic flux observer for IMs), TDL calculation structures, µC vs. DSP, fixed point numeric saturation.

Real time computation (3 hr)
Numerical approximation of functions and differential calculus, optimization.

Bootloaders (1 hr)
MCU vs. FPGA and SoC, MCU booting sequence, interrupt vector table relocation, OpenBLT.

Watchdogs (1 hr)
Timeout watchdog, windowed watchdog, hardware watchdog, independence, best practices.

Memory management and protection (1 hr)
Paging, alignment, MMU/MPU, virtual memory, error checking and management.

Lab: tutorial on automatic code generation (3 hr)

Lab: tutorial on unit testing and code analysis (3 hr)

Lab: xIL (3 hr)
Model in the loop, software in the loop, processor in the loop, hardware in the loop, rapid control prototyping.

Lab: project description and assignment (3 hr)

Lab: project design (3 hr)

Lab: project development (3 hr)

Readings/Bibliography

Lecture notes, standards, and documentation of the software used.

Teaching methods

Lectures, laboratory activity in teams.

Assessment methods

Report on the laboratory activity and oral examination.
At the end of the laboratory activities each team of students must deliver a written report. After receiving an evaluation of their report, the students can individually take the oral examination.
The result of the oral examination accounts for 2/3 of the final mark, while the laboratory activity accounts for 1/3.

Teaching tools

Video projector, PC, MATLAB/Simulink, hardware-in-the-loop system.

Office hours

See the website of Carlo Concari