Top Banner
Senses for Safety Driver assistance systems help save lives Reusing SystemC models in heterogeneous environments by Coside coupling and export Chassis & Safety | Advanced Driver Assistance Systems
21

Senses for Safety Driver assistance systems help save lives. Dokumente... · Senses for Safety Driver assistance systems help save ... •UVM-SystemC PCU Testbench •SystemVerilog

Jun 23, 2018

Download

Documents

vokien
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Senses for Safety Driver assistance systems help save lives. Dokumente... · Senses for Safety Driver assistance systems help save ... •UVM-SystemC PCU Testbench •SystemVerilog

Senses for Safety

Driver assistance systems help save lives

Reusing SystemC models in heterogeneous environments byCoside coupling and export

Chassis & Safety | Advanced Driver Assistance Systems

Page 2: Senses for Safety Driver assistance systems help save lives. Dokumente... · Senses for Safety Driver assistance systems help save ... •UVM-SystemC PCU Testbench •SystemVerilog

2C&S IC Solutions

Division Chassis & Safety / BU ADAS / 19 October 2017

Dr.-Ing. Sacha Loitz © Continental AG

Public

Outline

SystemC to SystemC coupling2SystemC to Verilog-AMS export3Conclusion4

Modelling Overview1

Page 4: Senses for Safety Driver assistance systems help save lives. Dokumente... · Senses for Safety Driver assistance systems help save ... •UVM-SystemC PCU Testbench •SystemVerilog

4C&S IC Solutions

Division Chassis & Safety / BU ADAS / 19 October 2017

Dr.-Ing. Sacha Loitz © Continental AG

Public

› Motor

› Valve block

› Electronic Control Unit (ECU)

› Microcontroller (MCU)

› Mixed-Signal IC (PCU)

Example product

Page 5: Senses for Safety Driver assistance systems help save lives. Dokumente... · Senses for Safety Driver assistance systems help save ... •UVM-SystemC PCU Testbench •SystemVerilog

5C&S IC Solutions

Division Chassis & Safety / BU ADAS / 19 October 2017

Dr.-Ing. Sacha Loitz © Continental AG

Public

› MCU standalone

› OS and driver development

› MCU + PCU communication interface

› MCU Abstraction

› MCU + PCU + simple model of selected ECU components

› ECU Abstraction

› PCU standalone

› Test case development: SystemC model for VirtualAte

› System-level concept validation: Verilog-AMS

What do we model for which purpose

Source: www.autosar.org

Page 6: Senses for Safety Driver assistance systems help save lives. Dokumente... · Senses for Safety Driver assistance systems help save ... •UVM-SystemC PCU Testbench •SystemVerilog

6C&S IC Solutions

Division Chassis & Safety / BU ADAS / 19 October 2017

Dr.-Ing. Sacha Loitz © Continental AG

Public

MCU

• Synopsys SCML

• No sourceavailable

PCU

• OSCI SystemC(-AMS)

PCU

• Verilog-AMS

VirtualATE

• C++

• SystemC

PCU Testbench

• UVM-SystemC

PCU Testbench

• SystemVerilog

• Verilog-AMS

Heterogeneous Model Structure

Page 7: Senses for Safety Driver assistance systems help save lives. Dokumente... · Senses for Safety Driver assistance systems help save ... •UVM-SystemC PCU Testbench •SystemVerilog

7C&S IC Solutions

Division Chassis & Safety / BU ADAS / 19 October 2017

Dr.-Ing. Sacha Loitz © Continental AG

Public

Outline

Modelling Overview1

SystemC to Verilog-AMS export3Conclusion4

SystemC to SystemC coupling2

Page 8: Senses for Safety Driver assistance systems help save lives. Dokumente... · Senses for Safety Driver assistance systems help save ... •UVM-SystemC PCU Testbench •SystemVerilog

8C&S IC Solutions

Division Chassis & Safety / BU ADAS / 19 October 2017

Dr.-Ing. Sacha Loitz © Continental AG

Public

› Software development for combined MCU PCU system

› Synopsys proprietary model needs to talk to our own models

Scenario 1: MCU – PCU coupling

Coside Virtualizer Export SC2SC coupling

Currently only on linux platform Only on windows platform

Full visibility from Virtualizer Not visible from Virtualizer

Limited tool support

Page 9: Senses for Safety Driver assistance systems help save lives. Dokumente... · Senses for Safety Driver assistance systems help save ... •UVM-SystemC PCU Testbench •SystemVerilog

9C&S IC Solutions

Division Chassis & Safety / BU ADAS / 19 October 2017

Dr.-Ing. Sacha Loitz © Continental AG

Public

› Library available in Coside.

› Variants used in Continental since ~10 years.

› Build two Dynamic Linked Libraries (DLLs)

› First with the external OSCI components build and compiled by Coside (Coupling

target).

› Second with Synopsys TLM Creator against SCML library to be integrated by the

supplier into MCU model. Instantiates the coupling initiator.

Scenario 1: SC2SC coupling

Page 10: Senses for Safety Driver assistance systems help save lives. Dokumente... · Senses for Safety Driver assistance systems help save ... •UVM-SystemC PCU Testbench •SystemVerilog

10C&S IC Solutions

Division Chassis & Safety / BU ADAS / 19 October 2017

Dr.-Ing. Sacha Loitz © Continental AG

Public

Interface definition

Board Schematic Create target DLL

Generate Initiator symbol (Coside)

Generate Wrapper (Coside)

Generate OSCI Testbench

Compile againstSCML (Visual Studio)

Create TLMCreatorWrapper

Create Initiator DLL and Testbench

Integrate Initiator DLL into MCU

Scenario1:SC2SC coupling

Page 11: Senses for Safety Driver assistance systems help save lives. Dokumente... · Senses for Safety Driver assistance systems help save ... •UVM-SystemC PCU Testbench •SystemVerilog

11C&S IC Solutions

Division Chassis & Safety / BU ADAS / 19 October 2017

Dr.-Ing. Sacha Loitz © Continental AG

Public

› Initial creation of board and initiator takes some time.

› After an initial setup of initiator and board is available, different boards with different

functionality can be created very quickly.

› Board stays OSCI SystemC.

› Ensures compatibility with other flows.

› No exposure of board internals in Synopsys environment.

› Tracing of internals can be configured by in house solution.

Scenario 1: Summary

Page 12: Senses for Safety Driver assistance systems help save lives. Dokumente... · Senses for Safety Driver assistance systems help save ... •UVM-SystemC PCU Testbench •SystemVerilog

12C&S IC Solutions

Division Chassis & Safety / BU ADAS / 19 October 2017

Dr.-Ing. Sacha Loitz © Continental AG

Public

Outline

Modelling Overview1SystemC to SystemC coupling2

Conclusion4SystemC to Verilog-AMS export3

Page 13: Senses for Safety Driver assistance systems help save lives. Dokumente... · Senses for Safety Driver assistance systems help save ... •UVM-SystemC PCU Testbench •SystemVerilog

13C&S IC Solutions

Division Chassis & Safety / BU ADAS / 19 October 2017

Dr.-Ing. Sacha Loitz © Continental AG

Public

Verilog(-AMS) SystemC(-AMS)

Mixed-Signal development Software and Test development

Accurate on electrical level Abstract electrical representation

Uses design RTL TLM based

Compatible with supplier Allows C debug

Slow (1 ms / minute) Fast (1 s / minute)

SystemC(-AMS) and Verilog(-AMS)

Different use cases require different models. Models are developed

independently against specification.

Page 14: Senses for Safety Driver assistance systems help save lives. Dokumente... · Senses for Safety Driver assistance systems help save ... •UVM-SystemC PCU Testbench •SystemVerilog

14C&S IC Solutions

Division Chassis & Safety / BU ADAS / 19 October 2017

Dr.-Ing. Sacha Loitz © Continental AG

Public

› Align functionality of SystemC(-AMS) and Verilog(-AMS) models.

› Verilog models and tests are developed first.

› Verilog-AMS DUT contains complete electrical interface. Expected to be difficult to

stimulate from SystemC test bench.

Scenario 2: SC model Verilog-AMS tests

Page 15: Senses for Safety Driver assistance systems help save lives. Dokumente... · Senses for Safety Driver assistance systems help save ... •UVM-SystemC PCU Testbench •SystemVerilog

15C&S IC Solutions

Division Chassis & Safety / BU ADAS / 19 October 2017

Dr.-Ing. Sacha Loitz © Continental AG

Public

CosideNCsimexport

Fromcreated

*.vams filecreate

Cadencesymbol

ReplaceVerilog-

AMS DUT with

SystemCmodel

Add WREAL Electrical

converters

Configure*.irun.res

Lauch AMS

Designer

Sceanrio 2: SC model Verilog-AMS tests

Page 16: Senses for Safety Driver assistance systems help save lives. Dokumente... · Senses for Safety Driver assistance systems help save ... •UVM-SystemC PCU Testbench •SystemVerilog

16C&S IC Solutions

Division Chassis & Safety / BU ADAS / 19 October 2017

Dr.-Ing. Sacha Loitz © Continental AG

Public

› Cadence can add these converter modules automatically

› Automatically added converters are often not accurate enough. E.g. absdelta function has

to high tolerance

› Better create your own converters to be aware of the settings

Scenario 2: WREAL – Electrical converters

Page 17: Senses for Safety Driver assistance systems help save lives. Dokumente... · Senses for Safety Driver assistance systems help save ... •UVM-SystemC PCU Testbench •SystemVerilog

17C&S IC Solutions

Division Chassis & Safety / BU ADAS / 19 October 2017

Dr.-Ing. Sacha Loitz © Continental AG

Public

› All SystemC modules were extensively tested at module level before start of

comparision

› Initially 23 out of 26 tests behaved differently on the SystemC model as they did

on Verilog-AMS.

› Issues were caused by

› SystemC model implementation

› Specification issues

› RTL and test issues

› Connect Modules

› Significant improvement of model quality.

Scenario 2: Results

Pass Fail(VAMS)

Fail Fail(VAMS)

Fail Pass

Fail Fail

Fail Pass

Fail Pass

Fail Fail

Fail Fail

Fail Fail

Fail Pass

Fail Pass

Fail Pass

Fail Pass

Pass Pass

Fail Fail

Fail Pass

Fail Pass

Fail Fail

Fail(VAMS)

Fail(VAMS)

Fail(VAMS)

Fail Fail

Fail

Pass Pass

Fail Fail(VAMS)

Fail Fail(VAMS)

Fail Fail(VAMS)

Fail Pass

Fail Pass

Page 18: Senses for Safety Driver assistance systems help save lives. Dokumente... · Senses for Safety Driver assistance systems help save ... •UVM-SystemC PCU Testbench •SystemVerilog

18C&S IC Solutions

Division Chassis & Safety / BU ADAS / 19 October 2017

Dr.-Ing. Sacha Loitz © Continental AG

Public

Outline

Modelling Overview1SystemC to SystemC coupling2SystemC to Verilog-AMS export3Conclusion4

Page 19: Senses for Safety Driver assistance systems help save lives. Dokumente... · Senses for Safety Driver assistance systems help save ... •UVM-SystemC PCU Testbench •SystemVerilog

19C&S IC Solutions

Division Chassis & Safety / BU ADAS / 19 October 2017

Dr.-Ing. Sacha Loitz © Continental AG

Public

› Using models across different domains usually requires some additional initial effort.

› This effort pays off in

› Better quality of

› Specification

› RTL Implementation

› SystemC model

› Support of use case that cross the border of an individual IC.

Conclusion

Page 20: Senses for Safety Driver assistance systems help save lives. Dokumente... · Senses for Safety Driver assistance systems help save ... •UVM-SystemC PCU Testbench •SystemVerilog

20C&S IC Solutions

Division Chassis & Safety / BU ADAS / 19 October 2017

Dr.-Ing. Sacha Loitz © Continental AG

Public

ASIC solutions for ADAS

Thank youfor your attention!

Page 21: Senses for Safety Driver assistance systems help save lives. Dokumente... · Senses for Safety Driver assistance systems help save ... •UVM-SystemC PCU Testbench •SystemVerilog

Confidential

Space for Sender InformationSensePlanAct