Recursive Design for Embedded Real-Time Systems Minoru Yamaguchi Software Process Development...

Preview:

Citation preview

Recursive Designfor Embedded Real-Time

Systems

Minoru YamaguchiMinoru YamaguchiSoftware Process Development Software Process Development sectionsection

MMSBCSBC ・・ CNCCNC

SSony Corporationony Corporation

Copyright 2001 Sony Corporation

Copyright 2001 Sony

Corporation

Contents

Project ObjectivesProject OverviewMetrics and ResultConclusion

Copyright 2001 Sony

Corporation

Project Objectives

Subject Evaluate some points to know the risks

that making real-time embedded systems on OOA technology

Evaluate Points Program size and Performance Development Process

Evaluate on Real Embedded System

Copyright 2001 Sony

Corporation

UML Model

Target Code

Hand Coding

Translation

Development byHand Coding and

Translation

Copyright 2001 Sony

Corporation

analysisanalysis

designdesign

codingcoding

Analysis models

Design models

Programcodes

application

architectures

target

Evolutional flow for Software Development

Copyright 2001 Sony

Corporation

Analysis models

Translation rules

Programcodes

Translation flow for Software Developmentapplication

analysisanalysis

designdesign

TranslateTranslate

architectures

Copyright 2001 Sony

Corporation

Small part was build by OOA for to just evaluate. (It’s about 5% of all requirements) Reaction time (Performance)

Data processing : within 2ms Program size

ROM:100KByte RAM:10KByte( *) These are program size of OOA model part. Not include

Bridge, Hand cording libraries, and another software.

Detail of evaluate points

Copyright 2001 Sony

Corporation

Target platform

CPU : SH1 (26MIPS)ROM : 1 MBRAM: 128 KBOS : μITRON Ver2.02

Copyright 2001 Sony

Corporation

CASE tool and Method

Rational Rose98 UML Generate skeleton C++ codes

Project Technology BridgePoint 4.0 Shlaer/Mellor Method UML Generate full C++/C codes ( DesignPoint MC-2010/MC-3020 )

Copyright 2001 Sony

Corporation

Translation architecture

DesignPoint MC-2010 Programming language : C++ Event coding style : message queue

(asynchronous) Paths of compile : 1 time

DesignPoint MC-3020 Programming language : C Event coding style : function call (synchronous)

& message queue (asynchronous) Paths of compile : 2 times

Copyright 2001 Sony

Corporation

Evolutional coding rule

Rose98 Generate skeleton C++ codes

( function to access the attribute, Default constructor )

Hand cording body of function Programming language : C++ Event coding style : function call State chart :

Need state control : 2 dimension state table No need state control : execute the action in it’s

event function

Copyright 2001 Sony

Corporation

Rose Evolutional flow Code generation (C++)

only for fundamental functions & constructors

BridgePoint & DesignPoint Translation flow Full code generation

(C, C++)

Object models

Generate skeleton Translation architectureMC-3020(C)MC-2010(C++)

Add hand code

Source Code 1 (C++)

Source Code 2 (C)

Source Code 3 (C++)

Process

Copyright 2001 Sony

Corporation

Domains : 3Classes : 56 Passive : 23 Active : 33

Relationships : 50 Binary : 45 Super type & sub type : 5

Persistent instances : 107

Model spec

Copyright 2001 Sony

Corporation

Data processing time

0.739

1.354

19.3

0 5 10 15 20 25

Rose

BridgePoint

(MC3020)

BridgePoint

(MC2010)

C++

CC+

+

(ms)

Target 2ms

Result of performance

Copyright 2001 Sony

Corporation

Program size

43.8

39.2

149

5.3

7.1

45

0 20 40 60 80 100 120 140 160

Rose

BridgePoint

(MC3020)

BridgePoint

(MC2010)

C++

CC++

(KB) RAM (KB) CoreROM (KB) Core

Target (ROM) 100KBTarget (RAM) 10KB

Result of program size

Copyright 2001 Sony

Corporation

Amount of resources

SR

S Writing SRS

Designing byRose98

Designing byBridgePoint

Making libraries

Testing

Modeling byRose98

Modeling byBridgePoint

an

aly

sis

desig

nte

st

12/13 12/31 1/31 3/312/29

Make the executable model, and simulate on Win NT

Customize MC-2010 architecture(framework 、 RTOS 、 debug environment) Customize MC-3020

Coding & debugging C++ hand coding source

Meeting for Software Requirements

Drawing analysis model to understand the SRS

Making the Bridges & instances

Copyright 2001 Sony

Corporation

Total effort of staff-days

0 20 40 60

MC-3020

MC-2010

Rose

staff -days

Analysis

Design&Coding

Copyright 2001 Sony

Corporation

Production hour result

0 10 20 30 40 50 60

MC-3020

MC-2010

Rose

days

Copyright 2001 Sony

Corporation

Result of evaluation

Code generation technique is of practical use for real-time embedded systems.Rose & BridgePoint are needed to get best process.

Performance Program size Productivity Documentation

Hand coding ○ ○ △ ×Rose

(Hand coding) ○ ○ × ○BridgePointMC-2010( ) × × ○ △

BridgePointMC-3020( ) ○ ○ ○ △

Copyright 2001 Sony

Corporation

however, there are some problem to be solved.

Need the knowledge & experience of OOA. Should provide the process or technique

for to keep the Hard-real-time. There are no CASE tools better than MS-

Word.

OOA is useful to providing OOA is useful to providing real-time embedded systemsreal-time embedded systemsOOA is useful to providing OOA is useful to providing

real-time embedded systemsreal-time embedded systems

Conclusion

Recommended