GNAT Pro User Day: Ada at Ansaldo STS

10
Ada at Ansaldo STS Jérôme Touet, software engineer GNAT Industrial User Day, September 25 th 2014

description

A presentation from GNAT Pro User Day about the use of Ada at Ansaldo STS

Transcript of GNAT Pro User Day: Ada at Ansaldo STS

Page 1: GNAT Pro User Day: Ada at Ansaldo STS

Ada at Ansaldo STS Jérôme Touet, software engineer

GNAT Industrial User Day, September 25th 2014

Page 2: GNAT Pro User Day: Ada at Ansaldo STS

+TS

2

Ansaldo STS: Overview • Founded in 1853

• Activity: signalling and supervision of railway and urban

traffic.

• Main shareholder: Finmeccanica

• ~4000 employees

• Global presence

Page 3: GNAT Pro User Day: Ada at Ansaldo STS

Signalling Systems

• Type of systems:

• Interlocking

• Mainlines and high speed (ERTMS, TVM, …)

• Mass transit (CBTC, …)

• Constraints:

• High safety level (SIL4)

• Assessment process (norm EN 50128)

• Product life of ~30 years

3

Page 4: GNAT Pro User Day: Ada at Ansaldo STS

Use of Ada

First case: simulator

• ~800 Kloc (kernel) + ~300 Kloc (HMI)

• 50% Ada 83 + 50% Ada 95 (+ 2005 + 2012)

• GTKAda, AWS, XMLAda, Win32Ada

• GNAT 7.2 for Windows target

• IDE: Eclipse

4

Page 5: GNAT Pro User Day: Ada at Ansaldo STS

Use of Ada

Second case: platform equipment (Available Vital Computer)

• Up to 600 Kloc

• Mainly Ada 83 + Ada 95

• Architectures:

• PowerPC (wayside equipments): GNAT compiler

• Coldfire (onboard equipments): GHS compiler

• IDE: GPS, Understand for Ada

• Safety constraints (SIL4)

5

Page 6: GNAT Pro User Day: Ada at Ansaldo STS

Use of Ada

Third case: applicative program

• From ~90 to ~200 Kloc

• Ada 83 and Ada 95 (new applications)

• Architectures:

• PowerPC (wayside equipments): GNAT compiler (6.1.1)

• Coldfire (onboard equipments): GHS compiler

• IDE: GPS, Understand for Ada

• Safety constraints (SIL4): « basic » use of Ada

• No object, no tasking, few generic

• Sometimes interfaced with C code

6

Page 7: GNAT Pro User Day: Ada at Ansaldo STS

Development Environment

7

Ada

Static

Analysis

Test

Metrics

Compiler

IDE

• GPS (+ plug-ins)

• Eclipse

• Understand for Ada

• GNAT

• Green Hills

Software

• RTRT

• AUnit

• Adacontrol

• Polyspace

• CodePeer

• Understand for

Ada

• Logiscope

• GNAT metric

Page 8: GNAT Pro User Day: Ada at Ansaldo STS

CodePeer evaluation

• Integrated to GPS

• Bottom-up approach (allow the check of a unique package)

• Configurable

• Level of analysis

• Message filtering

• Keep track of reviews

• EN 50128 qualification material

8

Page 9: GNAT Pro User Day: Ada at Ansaldo STS

CodePeer evaluation

9

SERVER (nightly run)

DEV 1 DEV 2

OUTPUTS

Web Server

local view local view

review

Page 10: GNAT Pro User Day: Ada at Ansaldo STS

THANK YOU FOR YOUR ATTENTION