56
Automotive Tiger Team Cadence Confidential Distributed Model Based Development For Car Electronics Scenarios and Examples

Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Embed Size (px)

Citation preview

Page 1: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

Distributed Model Based Development For Car Electronics

Scenarios and Examples

Page 2: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

Outline

ï Examples of Distributed Systemsï Scenarios by Example

Page 3: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

Examples of Distributed Systems

Page 4: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

Adaptive Cruise Control (ACC) + Brake By Wire 

Source Renault

Page 5: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

Brake By Wire ñ Sensotronic Brake Control System (SBC)

Source Mercedes-Benz

Active Body Control

Electric Brakes

Block Diagram

BrakePedal

Brake4Brake3

Brake2Brake1

Windshield Wiper

SBCComputer

ABSABS

Front Wheel speed

Steering Wheel Sensors

Electronic Stability Program

SteeringAngle

Rotational Speed

Transversal Acceleration

Engine/Transmission Control Unit

Engine Torque

Gear Selection

Brake Pedal Speed

Delta Time

Engine Braking

Brake Pressure

Brake Cylinder Pressure

Page 6: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

Brake ProjectÖ From Centralized Redundancy..

Transversal Acceleration

Conceptual Block Diagram

Centralized Redundancy

ï Fault tolerant Pedal Moduleï Fault tolerant Electronic Brake Module (fail-safe)ï Fault tolerant Power Management Module (fail-safe)ï Phase Converter for each actuator 

ï 4 High End Microcontrollers (incl. RAM, ROM, IO), 4 for the Brake Module

ï 3 Low End Controller for the Pedal Module (incl. Sensor, Power Supply, RAM, ROM)

ï 8-16 Midrange Microcontroller/DSP for the Phase Converters, Power Management (incl. Power stages, sensors, RAM, ROM)

ï Totals:- 15-23 microcontrollers- 11 separate electronic control units- 9 communication links.- fault tolerant if 4 wheel braking is required after a

ï Total of 4 ECUs and 3 communication links must be operational to allow braking on one wheel (fault-tolerant)

Source Infineon-Delphi-Volvo-WindRiver

Dependencies

Page 7: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

Brake Project ..to Distributed Redundancy

Transversal Acceleration

Conceptual Block Diagram

Distributed Redundancy

ï Pedal Moduleï Power Management Module (fail-silent ECUs)ï Wheel Brake ECU for both brake control and the phase 

converter functionsï Totals:

- 11 microcontrollers (incl. resources)- 9 separate electronic control units- 8 communication links

ï 3 ECUs and 2 communication links must be operational to allow braking at one wheel

Source Infineon-Delphi-Volvo-WindRiver

Dependencies

Page 8: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

Brake Project: (variant of) Unidirectional Redundant Ring Structure

Transversal Acceleration

Unidirectional Redundant Ring Structure

ï 2 travel sensors and one force sensor to determine driver intent  (each sensor connected to a different wheel node)

ï Sensor values communicated over the network !Consistency checks 

ï Wheel node calculates the actuation commands for all four wheels

ï Commands communicated via network ! each of the four wheel nodes compares their own actuation commands with those calculated by the other wheel nodes

ï Voting mechanism in the network layer of each wheel node can then disable the power to individual actuators in case of a fault. 

ï If a node needs to be shut down the brake force is re-distributed to prevent the vehicle from yawing.

ï The advanced brake functions (ABS)  are executed in the two front wheel nodes.

ï If the front wheel nodes do not calculate the same output commands for these advanced brake functions, the function will be deactivated. This provides fail-safe operation

ï Redundant power supply.

Source Infineon-Delphi-Volvo-WindRiver

Actual Implementation

Page 9: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

Scenarios by Example

Page 10: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

Objectives 

1. To implement the SBC system on the Infineon-Delphi distributed redundancy architecture integrating the basic brake function with ABS, etcÖï Assumption1: designer has only the SBC spec ñ executable 

spec not yet available for the control algorithms (typical INTEGRATOR CASE!)

ï Assumption2: distributed architecture is defined (number of ECUs, Communication Protocols)

2. To add the ACC functionality (derivative design) to the existing SBC system (virtual) platform

Page 11: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

Scenarios/Design Steps for Objective 11.0: UML Description for SBC, ABS, etc

1.1: Functional Network Integration w/ coarse models/ un-Timed Validation (SBC + ABS + ..)

1.2: Control Algorithms/Plants 

Development and Un-Timed Validation

1.3: Functional Network w/ finer models/un-Timed Validation (SBC + 

ABS + ..)

1.4: Functional Network w/ finer models/ Timed Validation (SBC + 

ABS + ..)Sw (re)-Distribution Protocol (re)- Configuration

SBC Virtual Prototype Sign-off

System Architect

Product Marketing Manager

Algorithm Developer

System Integrator

System Integrator

Page 12: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

Scenarios/Design Steps for Objective 1

1.5: System Aware ECU SW RT Validation

1.6: Protocol Configuration Detailed 

Analysis

1.7: Export (SW to Target, Comm Layer, 

etc.)

4: Functional Network Finer Timed 

Validation (SBC + ABS + ..)

Sw Real Time Validation

SBC Virtual Prototype Sign-off

Cycle Accurate Validation

SBC Physical Prototype Ready for Testing

SW Developer

System Integrator

System Integrator

System Integrator

Page 13: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

Scenarios/Design Steps for Objective 22.0: UML Description 

for ACC

2.1: Functional Network Integration w/ coarse ACC model/ un-Timed Validation (SBC Virtual 

Platform + ACC)

2.2: ACC Control Algorithms/Plants 

Development and Un-Timed Validation

2.3: Functional Network w/ Finer ACC model/ un-Timed Validation (SBC Virtual Platform + 

ACC)

2.4: Functional Network w/ Finer ACC 

model/ Timed Validation (SBC Virtual Platform + 

ACC)Sw (re)-Distribution Protocol (re)- Configuration

SBC + ACC Virtual Prototype Sign-off

System Architect

Product Marketing Manager

Algorithm Developer

System Integrator

System Integrator

Page 14: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

Scenarios/Design Steps for Objective 2

2.5: System Aware ACC ECU SW RT 

Validation

2.6: Protocol Configuration Detailed 

Analysis

2.7: Export (SW to Target, Comm Layer, 

etc.)

4: Functional Network Finer Timed 

Validation (SBC + ABS + ..)

Sw Real Time Validation

SBC + ACC Virtual Prototype Sign-off

Cycle Accurate Validation

SBC + ACC Physical Prototype Ready for Testing

SW Developer

System Integrator

System Integrator

System Integrator

Page 15: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

Scenarios/Design Steps for Objective 11.0: UML Description for SBC, ABS, etc

1.1: Functional Network Integration w/ coarse models/ un-Timed Validation (SBC + ABS + ..)

1.2: Control Algorithms/Plants 

Development and Un-Timed Validation

1.3: Functional Network w/ finer models/un-Timed Validation (SBC + 

ABS + ..)

1.4: Functional Network w/ finer models/ Timed Validation (SBC + 

ABS + ..)Sw (re)-Distribution Protocol (re)- Configuration

SBC Virtual Prototype Sign-off

System Architect

Product Marketing Manager

Algorithm Developer

System Integrator

System Integrator

Page 16: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

1.1: Functional Network Integration with Coarse Grain Models 

BrakePedal

Windshield Wiper ABS

Wheel_1 speed

Steering Wheel Sensors

Steering Angle

Rotational Speed

Engine Torque

Gear  Selection

Brake Pedal Speed

Delta Time

Engine Braking

Brake1 Pressure

Brake1 Cylinder Pressure

Engine/Transmission Control Algorithm

Electronic Stability Program

Transversal Acceleration

Wheel1 Sensors

Wheel2 SensorsABSSBC

Function

Brake1

Brake2

Brake3

Brake4

Page 17: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

1.1: Functional Network Integration with Coarse Grain Models 

BrakePedal

Windshield Wiper ABS

Wheel_1 speed

Steering Wheel Sensors

Steering Angle

Rotational Speed

Engine Torque

Gear  Selection

Brake Pedal Speed

Delta Time

Engine Braking

Brake1 Pressure

Brake1 Cylinder Pressure

Engine/Transmission Control Algorithm

Electronic Stability Program

Transversal Acceleration

Wheel1 Sensors

Wheel2 SensorsABSSBC

Function

Brake1

Brake2

Brake3

Brake4

Coarse Grain C/C++ Plant Model

Coarse Grain C/C++ Plant Model

Coarse Grain C/C++ Plant Model

Coarse Grain C/C++ Plant Model

Coarse Grain C/C++ Plant Model

Coarse Grain C/C++ Control Algorithm  

Model

Coarse Grain C/C++ Control Algorithm  

Model Coarse Grain C/C++ Control Algorithm  

Model

Coarse Grain C/C++ Control Algorithm  

Model

Page 18: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

Simulation and Signal Probing

1.1: Functional Network Validation with token-level (messages) un-timed Simulation  

BrakePedal

Windshield Wiper ABS

Wheel_1 speed

Steering Wheel Sensors

Steering Angle

Rotational Speed

Engine Torque

Gear  Selection

Brake Pedal Speed

Delta Time

Engine Braking

Brake1 Pressure

Brake1 Cylinder Pressure

Engine/Transmission Control Algorithm

Electronic Stability Program

Transversal Acceleration

Wheel1 Sensors

Wheel2 SensorsABSSBC

Function

Brake1

Brake2

Brake3

Brake4

Simulation w/ Probing

Page 19: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

Simulation Finished….

1.1: Functional Network Validation with token-level un-timed Simulation 

BrakePedal

Windshield Wiper ABS

Wheel_1 speed

Steering Wheel Sensors

Steering Angle

Rotational Speed

Engine Torque

Gear  Selection

Brake Pedal Speed

Delta Time

Engine Braking

Brake1 Pressure

Brake1 Cylinder Pressure

Engine/Transmission Control Algorithm

Electronic Stability Program

Transversal Acceleration

Wheel1 Sensors

Wheel2 SensorsABSSBC

Function

Brake1

Brake2

Brake3

Brake4

Page 20: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

Display Simulation Results…

1.1: Functional Network Validation with token-level un-timed Simulation 

BrakePedal

Windshield Wiper ABS

Wheel_1 speed

Steering Wheel Sensors

Steering Angle

Rotational Speed

Engine Torque

Gear  Selection

Brake Pedal Speed

Delta Time

Engine Braking

Brake1 Pressure

Brake1 Cylinder Pressure

Engine/Transmission Control Algorithm

Electronic Stability Program

Transversal Acceleration

Wheel1 Sensors

Wheel2 SensorsABSSBC

Function

Brake1

Brake2

Brake3

Brake4

Page 21: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

Scenarios/Design Steps for Objective 11.0: UML Description for SBC, ABS, etc

1.1: Functional Network Integration w/ coarse models/ un-Timed Validation (SBC + ABS + ..)

1.2: Control Algorithms/Plants 

Development and Un-Timed Validation

1.3: Functional Network w/ finer models/un-Timed Validation (SBC + 

ABS + ..)

1.4: Functional Network w/ finer models/ Timed Validation (SBC + 

ABS + ..)Sw (re)-Distribution Protocol (re)- Configuration

SBC Virtual Prototype Sign-off

System Architect

Product Marketing Manager

Algorithm Developer

System Integrator

System Integrator

Page 22: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

1.2: Control Algorithmsí/Plantsí  Development and un-timed validation

BrakePedal

Windshield Wiper ABS

Wheel_1 speed

Steering Wheel Sensors

Steering Angle

Rotational Speed

Engine Torque

Gear  Selection

Brake Pedal Speed

Delta Time

Engine Braking

Brake1 Pressure

Brake1 Cylinder Pressure

Engine/Transmission Control Algorithm

Electronic Stability Program

Transversal Acceleration

Wheel1 Sensors

Wheel2 SensorsABSSBC

Function

Brake1

Brake2

Brake3

Brake4

Coarse Grain C/C++ Plant Model

Coarse Grain C/C++ Control Algorithm  

Model

Export of Plant Model Interface to 

Mathworks/Simulink (not available in the 

current offer)

Plant Development and Un-Timed Validation

Export of Control  Algorithm Interface to Ascet-SD (not available in the current offer)

Control Algorithm Development and Un-Timed Validation

Page 23: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

Scenarios/Design Steps for Objective 11.0: UML Description for SBC, ABS, etc

1.1: Functional Network Integration w/ coarse models/ un-Timed Validation (SBC + ABS + ..)

1.2: Control Algorithms/Plants 

Development and Un-Timed Validation

1.3: Functional Network w/ finer models/un-Timed Validation (SBC + 

ABS + ..)

1.4: Functional Network w/ finer models/ Timed Validation (SBC + 

ABS + ..)Sw (re)-Distribution Protocol (re)- Configuration

SBC Virtual Prototype Sign-off

System Architect

Product Marketing Manager

Algorithm Developer

System Integrator

System Integrator

Page 24: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

BrakePedal

Windshield Wiper ABS

Wheel_1 speed

Steering Wheel Sensors

Steering Angle

Rotational Speed

Engine Torque

Gear  Selection

Brake Pedal Speed

Delta Time

Engine Braking

Brake1 Pressure

Brake1 Cylinder Pressure

Engine/Transmission Control Algorithm

Electronic Stability Program

Transversal Acceleration

Wheel1 Sensors

Wheel2 SensorsABSSBC

Function

Brake1

Brake2

Brake3

Brake4

1.3: Functional Network Integration with Finer Grain Models

Import of Plant Model from Mathworks/Simulink

Import of Control Algorithm Model from 

Ascet-SD (From Target Link in the 

future)

Page 25: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

BrakePedal

Windshield Wiper ABS

Wheel_1 speed

Steering Wheel Sensors

Steering Angle

Rotational Speed

Engine Torque

Gear  Selection

Brake Pedal Speed

Delta Time

Engine Braking

Brake1 Pressure

Brake1 Cylinder Pressure

Engine/Transmission Control Algorithm

Electronic Stability Program

Transversal Acceleration

Wheel1 Sensors

Wheel2 SensorsABSSBC

Function

Brake1

Brake2

Brake3

Brake4

1.3: Functional Network Integration with Finer Grain Models

Refinement from C++ Models to Hierarchical Finer Grain Detailed Models

ASCET-SD Project

ASCET-SD Process

White Box C Process code

Matworks/Simulink Plant Model

Black Box C++

ASCET-SD Module

Page 26: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

Simulation with Finer Grain Models Finished….

1.3: Functional Network Validation with token-level un-timed Simulation 

BrakePedal

Windshield Wiper ABS

Wheel_1 speed

Steering Wheel Sensors

Steering Angle

Rotational Speed

Engine Torque

Gear  Selection

Brake Pedal Speed

Delta Time

Engine Braking

Brake1 Pressure

Brake1 Cylinder Pressure

Engine/Transmission Control Algorithm

Electronic Stability Program

Transversal Acceleration

Wheel1 Sensors

Wheel2 SensorsABSSBC

Function

Brake1

Brake2

Brake3

Brake4

Page 27: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

Display Simulation ResultsÖ  Distributed Algorithm Still OK☺

1.3: Functional Network Validation with token-level un-timed Simulation 

BrakePedal

Windshield Wiper ABS

Wheel_1 speed

Steering Wheel Sensors

Steering Angle

Rotational Speed

Engine Torque

Gear  Selection

Brake Pedal Speed

Delta Time

Engine Braking

Brake1 Pressure

Brake1 Cylinder Pressure

Engine/Transmission Control Algorithm

Electronic Stability Program

Transversal Acceleration

Wheel1 Sensors

Wheel2 SensorsABSSBC

Function

Brake1

Brake2

Brake3

Brake4

Page 28: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

Scenarios/Design Steps for Objective 11.0: UML Description for SBC, ABS, etc

1.1: Functional Network Integration w/ coarse models/ un-Timed Validation (SBC + ABS + ..)

1.2: Control Algorithms/Plants 

Development and Un-Timed Validation

1.3: Functional Network w/ finer models/un-Timed Validation (SBC + 

ABS + ..)

1.4: Functional Network w/ finer models/ Timed Validation (SBC + 

ABS + ..)Sw (re)-Distribution Protocol (re)- Configuration

SBC Virtual Prototype Sign-off

System Architect

Product Marketing Manager

Algorithm Developer

System Integrator

System Integrator

Page 29: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

1.4: Functional Network Validation with token-level timed Simulation

BrakePedal

Windshield Wiper ABS

Wheel_1 speed

Steering Wheel Sensors

Steering Angle

Rotational Speed

Engine Torque

Gear  Selection

Brake Pedal Speed

Delta Time

Engine Braking

Brake1 Pressure

Brake1 Cylinder Pressure

Engine/Transmission Control Algorithm

Electronic Stability Program

Transversal Acceleration

Wheel1 Sensors

Wheel2 SensorsABSSBC

Function

Brake1

Brake2

Brake3

Brake4

RF Base Brake

RR Base Brake

LF Base Brake

LR Base Brake

Engine Control

Transmission Control

Plant1

Plant2

RF ABS

LF ABS

Plant3

Functional Network

Page 30: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

1.4: Functional Network Validation with token-level timed Simulation

Plant3: BrakesWheels

LF ABS

RF ABSRF Base 

BrakeRR Base 

Brake

LF Base Brake

LR Base Brake

Plant2: Steering Wheel

Engine Control

Transmission Control

Plant1: WindshieldBrake Pedal

RF_Wheel_speed

Steering Angle

Rotational Speed

Engine Torque

Gear  Selection

Brake Pedal Speed

Delta Time

Engine Braking

Brake1 Pressure

Brake1 Cylinder Pressure

Electronic Stability Program

Transversal Acceleration

LF_Wheel_speed

Brake4 Pressure

Brake3 Pressure

Brake2 PressureBrake2 Cylinder Pressure

Brake4 Cylinder Pressure

Brake3 Cylinder Pressure

Functional Network

Page 31: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

1.4: Functional Network Validation with token-level timed Simulation

Architectural Model

Page 32: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

1.4: Functional Network Validation with token-level timed Simulation

Architectural Model

ECU1 ECU3

ECU2ECU4

ECU5 ECU6 ECU7

ECU8 ECU9

Page 33: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

1.4: Functional Network Validation with token-level timed Simulation

Architectural Model (Communication Cycle, ECU’s)

ECU1 ECU3ECU2 ECU4

ECU5 ECU6 ECU7 ECU8 ECU9

UCM Communication Cycle is Configured as Time-

Triggered Communication (no arbitration)

UCM Communication Cycle as High Speed CAN (arbitration)

UCM Bus Controllers Configured with Periodic Frame Activation Policy 

UCM Bus Controllers Configured with Dynamic Asynchronous Frame Activation Policy 

ParentChild

(UCM Enabled)

StaticPriorityScheduler

ECUport1

LocalBus1

ParentRTOS_1

ParentChild

(UCM Enabled)

StaticPriorityScheduler

ParentRTOS_2

LocalBus2

UCM BusController

HostDataBus

UCMsideData

SimpleCPU

HostDataBus

Child(UCM Enabled)

LocalTransferMemory

Hos tDataBus

HostDataBus2

(UCM Enabled)

SimpleCPU

Hos tDataBus

Child(UCM Enabled)

ECUBusBridge(UCM Enabled)

BusOut

BusIn

Page 34: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

1.4: Functional Network Validation with token-level timed Simulation

Mapping of SW and Zero-Time Communications: Automatic Configuration of Buses and SW Tasks

Functional Network

Architectural Model

UCM TransferSW->Memory

Mapping of RF ABS to ECU2 

Mapping of Engine Control Communication w/ SBC to 

HIGH Speed CAN 

UCM TransferSW->Memory

Mapping of RF to RR SBC Communication to Time-Triggered Dependable Bus

   E C U 1   E C U 2   E C U 3  

B M 1   W r i t e   R e a d     N o   A c c e s s  B M 2   R e a d   W r i t e / R e a d   R e a d  B M 3   N o   A c c e s s   R e a d   W r i t e  B M 4   N o   A c c e s s   R e a d   W r i t e / R e a d   

Communication Matrix CAN Bus

   E C U 1   E C U 2   E C U 3  

B M 1   W r i t e   R e a d     N o   A c c e s s  B M 2   R e a d   W r i t e / R e a d   R e a d  B M 3   N o   A c c e s s   R e a d   W r i t e  B M 4   N o   A c c e s s   R e a d   W r i t e / R e a d   

Communication Matrix TT Bus

ParentChild

(UCM Enabled)

StaticPriorityScheduler

ECUport1

LocalBus1

ParentRTOS_1

ParentChild

(UCM Enabled)

StaticPriorityScheduler

ParentRTOS_2

LocalBus2

UCM BusController

HostDataBus

UCMsideData

SimpleCPU

HostDataBus

Child(UCM Enabled)

LocalTrans ferMemory

HostDataBus

HostDataBus2

(UCM Enabled)

SimpleCPU

Hos tDataBus

Child(UCM Enabled)

ECUBusBridge(UCM Enabled)

BusOut

BusIn

SW Tasks

Page 35: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

1.4: Functional Network Validation with token-level timed Simulation

Coarse Grain Analysis via Simulation…are the signals still OK?

Functional Network

Architectural Model

UCM TransferSW->Memory

UCM TransferSW->Memory

Page 36: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

1.4: Functional Network Validation with token-level timed Simulation

Finer Grain Analysis via Simulation

Functional Network

Architectural Model

UCM TransferSW->Memory

UCM TransferSW->Memory

Communication Protocol Configuration Validation: Bus Schedule OK? Traffic? Frame 

Packaging? Transmission Delay? 

Bus Probing

Transition from idle to Queued

Transition from Accessing to Idle

Transition from Blocked to Accessing

Page 37: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

1.4: Functional Network Validation with token-level timed Simulation

Finer Grain Analysis via Simulation

Functional Network

Architectural Model

UCM TransferSW->Memory

UCM TransferSW->Memory

SW Task Scheduling Validation: Task Priorities? Cooperative? Preemptive?

ParentChild

(UCM Enabled)

StaticPriorityScheduler

ECUport1

LocalBus1

ParentRTOS_1

ParentChild

(UCM Enabled)

StaticPriorityScheduler

ParentRTOS_2

LocalBus2

UCM BusController

HostDataBus

UCMsideData

SimpleCPU

HostDataBus

Child(UCM Enabled)

LocalTrans ferMemory

HostDataBus

HostDataBus2

(UCM Enabled)

SimpleCPU

Hos tDataBus

Child(UCM Enabled)

ECUBusBridge(UCM Enabled)

BusOut

BusIn

ParentChild

(UCM Enabled)

StaticPriorityScheduler

ECUport1

LocalBus1

ParentRTOS_1

ParentChild

(UCM Enabled)

StaticPriorityScheduler

ParentRTOS_2

LocalBus2

UCM BusController

HostDataBus

UCMsideData

SimpleCPU

HostDataBus

Child(UCM Enabled)

LocalTrans ferMemory

HostDataBus

HostDataBus2

(UCM Enabled)

SimpleCPU

Hos tDataBus

Child(UCM Enabled)

ECUBusBridge(UCM Enabled)

BusOut

BusIn

ParentChild

(UCM Enabled)

StaticPriorityScheduler

ECUport1

LocalBus1

ParentRTOS_1

ParentChild

(UCM Enabled)

StaticPriorityScheduler

ParentRTOS_2

LocalBus2

UCM BusController

HostDataBus

UCMsideData

SimpleCPU

HostDataBus

Child(UCM Enabled)

LocalTrans ferMemory

HostDataBus

HostDataBus2

(UCM Enabled)

SimpleCPU

Hos tDataBus

Child(UCM Enabled)

ECUBusBridge(UCM Enabled)

BusOut

BusIn

RTOS Probing

RTOS Probing

RTOS Probing

Gantt Charts

ECU1 10ms Task Activated

ECU1 10 ms Task Running

ECU1 10 ms Task Done

Page 38: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

Scenarios/Design Steps for Objective 11.0: UML Description for SBC, ABS, etc

1.1: Functional Network Integration w/ coarse models/ un-Timed Validation (SBC + ABS + ..)

1.2: Control Algorithms/Plants 

Development and Un-Timed Validation

1.3: Functional Network w/ finer models/un-Timed Validation (SBC + 

ABS + ..)

1.4: Functional Network w/ finer models/ Timed Validation (SBC + 

ABS + ..)Sw (re)-Distribution Protocol (re)- Configuration

SBC Virtual Prototype Sign-off

System Architect

Product Marketing Manager

Algorithm Developer

System Integrator

System Integrator

Page 39: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

Scenarios/Design Steps for Objective 1

1.5: System Aware ECU SW RT Validation

1.6: Protocol Configuration Detailed 

Analysis

1.7: Export (SW to Target, Comm Layer, 

etc.)

4: Functional Network Finer Timed 

Validation (SBC + ABS + ..)

Sw Real Time Validation

SBC Virtual Prototype Sign-off

Cycle Accurate Validation

SBC Physical Prototype Ready for Testing

SW Developer

System Integrator

System Integrator

System Integrator

Page 40: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

1.5: System Aware ECU SW RT Validation

ECU1 SW Real Time Validation: Simulation with Probing of ECU1 Traffic

Functional Network

Architectural Model

UCM TransferSW->Memory

UCM TransferSW->Memory

ECU1 TT Bus Probing

ECU1 Can Bus Probing

ECU1 TT Bus Controller Collected Input Trace

ECU1 CAN Bus Controller Collected Input Trace

Page 41: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

1.5: System Aware ECU SW RT Validation

ECU1 SW Real Time Validation: Export of ECU1 SW Task Configuration/RT Constraints

Functional Network

Architectural Model

UCM TransferSW->Memory

UCM TransferSW->Memory

ParentChild

(UCM Enabled)

StaticPriorityScheduler

ECUport1

LocalBus1

ParentRTOS 1

ParentChild

(UCM Enabled)

StaticPriorityScheduler

ParentRTOS 2

LocalBus2

UCM BusController

HostDataBus

UCMsideData

SimpleCPU

HostDataBus

Child(UCM Enabled)

LocalTransferMemory

HostDataBus

HostDataBus2

(UCM Enabled)

SimpleCPU

HostDataBus

Child(UCM Enabled)

ECUBusBridge(UCM Enabled)

BusOut

BusIn

ECU1

Event Driven

Periodic 50 ms

Page 42: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

1.5: System Aware ECU SW RT Validation

LF Base Brake Model

LF ABS Model

Event Driven

Periodic 50 ms

SW Debugger/Cycle Accurate Timing Estimator

dSpace TLETAS ASCET-SD

RT Constraints

Automatic Code Generation of Instrumented Application SW

Application SW Validation vs. RT constraints

ECU1 TT Bus Controller/CAN Bus Controller Traffic Traces

ECU1

Page 43: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

Scenarios/Design Steps for Objective 1

1.5: System Aware ECU SW RT Validation

1.6: Protocol Configuration Detailed 

Analysis

1.7: Export (SW to Target, Comm Layer, 

etc.)

4: Functional Network Finer Timed 

Validation (SBC + ABS + ..)

Sw Real Time Validation

SBC Virtual Prototype Sign-off

Cycle Accurate Validation

SBC Physical Prototype Ready for Testing

SW Developer

System Integrator

System Integrator

System Integrator

Page 44: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

1.6: Protocol Configuration Detailed Analysis

Export of Bus Configuration

Functional Network

Architectural Model

UCM TransferSW->Memory

UCM TransferSW->Memory

FramesFrame1

Frame2

Frame3

Frame4

   E C U 1   E C U 2   E C U 3  

B M 1   W r i t e   R e a d     N o   A c c e s s  B M 2   R e a d   W r i t e / R e a d   R e a d  B M 3   N o   A c c e s s   R e a d   W r i t e  B M 4   N o   A c c e s s   R e a d   W r i t e / R e a d   

Telg2

Telg3

Communication Matrix

Telg1Communication Cycle 

Layout/(static) Bus Schedule Telg4

Page 45: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

1.6: Protocol Configuration Detailed Analysis

Export CAN Bus Configuration

XML DB

Co-Simulation with CANoE

Page 46: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

Scenarios/Design Steps for Objective 1

1.5: System Aware ECU SW RT Validation

1.6: Protocol Configuration Detailed 

Analysis

1.7: Export (SW to Target, Comm Layer, 

etc.)

4: Functional Network Finer Timed 

Validation (SBC + ABS + ..)

Sw Real Time Validation

SBC Virtual Prototype Sign-off

Cycle Accurate Validation

SBC Physical Prototype Ready for Testing

SW Developer

System Integrator

System Integrator

System Integrator

Page 47: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

Scenarios/Design Steps for Objective 22.0: UML Description 

for ACC

2.1: Functional Network Integration w/ coarse ACC model/ un-Timed Validation (SBC Virtual 

Platform + ACC)

2.2: ACC Control Algorithms/Plants 

Development and Un-Timed Validation

2.3: Functional Network w/ Finer ACC model/ un-Timed Validation (SBC Virtual Platform + 

ACC)

2.4: Functional Network w/ Finer ACC 

model/ Timed Validation (SBC Virtual Platform + 

ACC)Sw (re)-Distribution Protocol (re)- Configuration

SBC + ACC Virtual Prototype Sign-off

System Architect

Product Marketing Manager

Algorithm Developer

System Integrator

System Integrator

Page 48: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

2.1: Functional Network Validation with token-level timed Simulation

Derivative Design: Adding ACC…do they work together?

ACC

Page 49: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

Scenarios/Design Steps for Objective 22.0: UML Description 

for ACC

2.1: Functional Network Integration w/ coarse ACC model/ un-Timed Validation (SBC Virtual 

Platform + ACC)

2.2: ACC Control Algorithms/Plants 

Development and Un-Timed Validation

2.3: Functional Network w/ Finer ACC model/ un-Timed Validation (SBC Virtual Platform + 

ACC)

2.4: Functional Network w/ Finer ACC 

model/ Timed Validation (SBC Virtual Platform + 

ACC)Sw (re)-Distribution Protocol (re)- Configuration

SBC + ACC Virtual Prototype Sign-off

System Architect

Product Marketing Manager

Algorithm Developer

System Integrator

System Integrator

Skipped these two Steps in slides yet they do exist!!

Page 50: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

2.4: Functional Network Validation with token-level timed Simulation

Coarse Grain Analysis via Simulation…Existing Architecture is sufficient?

Functional Network

Architectural Model

UCM TransferSW->Memory

UCM TransferSW->Memory

Page 51: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

Scenarios/Design Steps for Objective 2

2.5: System Aware ACC ECU SW RT 

Validation

2.6: Protocol Configuration Detailed 

Analysis

2.7: Export (SW to Target, Comm Layer, 

etc.)

4: Functional Network Finer Timed 

Validation (SBC + ABS + ..)

Sw Real Time Validation

SBC + ACC Virtual Prototype Sign-off

Cycle Accurate Validation

SBC + ACC Physical Prototype Ready for Testing

SW Developer

System Integrator

System Integrator

System Integrator

These  three Steps are left to the reader as exercise☺

Page 52: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

Backup Slides

Page 53: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

Brake Project ñ High Level Objectives 

Source Infineon-Delphi-Volvo-WindRiver

Transversal Acceleration

ï Distributing vehicle control over multiple subsystems from different vendorsï Enabling vehicle control by defining open interfaces between chassis control systems

ï Providing a fault-tolerant safety architecture based on system distributionï Enhancing the OSEK operating system to create a distributed operating system

ï Distributed Approach is focused on the base brake function: most critical for safe and reliable brake system 

ï Shift from Fail-Safe to Fail-Silent:- Fail-Safe: In case of an error within the electronic control, the performance of the mechanical system is reduced, while still providing minimum functionality

- Fail-Silent: When one task or node fails, another is already running and the system employs the alternative

Page 54: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

Brake Project ñ Main Features 

Source Infineon-Delphi-Volvo-WindRiver

Transversal Acceleration

ï Dynamic allocation of control tasks to multiple electronic control unitsï Time-triggered scheduling of the tasks enabling task encapsulationï ìSilent Stateî Operating system:

- time-triggered concept- deterministic system behavior- complete separation of tasks (task encapsulation): in case of faulty task, the operating system enters a "silent state" (fail silent)

ï ìFault Tolerantî Communication System: - no central master and ECU local redundancy ! Reduced Number of ECUs- Local redundancy achieved by inherent redundancy of a braking system

ï Definition of Open Interface Standards:- between the brake actuatorís control circuitry and the brakeís electronic control unit- to the communication system- between upper control layers

Page 55: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

Brake Project ñ Challenges 

Source Infineon-Delphi-Volvo-WindRiver

Transversal Acceleration

ï Global time synchronization between component ECUs and processes to ensure accurate calculation of vehicle states from sensor inputs

ï Deterministic actuation of wheel brakes with the respect to brake demandsï Composability of brake system elementsï Encapsulation of sub-systems and faultsï Acceptable vehicle performance in the presence of fault through redundancy, including:

- Dynamic reconfiguration and redistribution of brake function- Optimization to minimize number of redundant subsystems- Extended and optimized degraded modes to achieve full potential of vehicle performance

Page 56: Scenarios and Examples Berkeleyembedded.eecs.berkeley.edu/research/hsc/class.F02/ee249/lectures/... · Brake By Wire æ Sensotronic Brake Control System (SBC) Source Mercedes-Benz

Automotive Tiger TeamCadence Confidential

Brake Project ñ Communication Medium 

Source Infineon-Delphi-Volvo-WindRiver

Transversal Acceleration

ï Connects and correlates the distributed control units in the control path ï Encapsulates the distributed control units to prevent fault propagation (time and value domain) 

ï Requirements:- Application level features- Synchronized and distributed global time synchronisation- Failure tolerance- Encapsulation at the protocol and at the physical level- Compatibility with other systems already in production

Need open standard for deterministic failure-tolerant communication         protocol (FlexRay)