1
1 of 16 April 25, 2006 Minimizing System Modification in an Incremental Design Approach Paul Pop, Petru Eles, Traian Pop, Zebo Peng Department of Computer and Information Science, Linköpings universitet, Sweden Version N+1 Version N+1 N N Modify (re-map) so that the current applications will fit. Map and schedule so that the future applications will have a chance to fit. Do not exist yet at Version N! Modify (re-map) so that the current applications will fit. Map and schedule so that the future applications will have a chance to fit. Do not exist yet at Version N! N-1 N-1 Incremental Design art from an already existing system with applications plement new functionality on this system pping and Scheduling reduce design and testing time: few as possible modifications of the existing applications ter the new functionality has been implemented: should be easy to add functionality in the future Mapping and scheduling of distributed embedded systems for hard-real time applications Static cyclic scheduling of processes and messages, Bus access scheme: time-division multiple-access. Incremental design process Already existing system, Implement new functionality, a) Existing system modified as little as possible, b) new functionality can be easily added to the system. Mapping strategy a) Subset selection to minimize modification time, b) Two design criteria, objective function. Summary Input A set of existing applications. A current application to be mapped. The system architecture. Output A mapping and scheduling of the current application, so that the incremental design requirements are satisfied. Requirements a) constraints of the current application are satisfied and minimal modifications are performed to the existing applications. b) new future applications can be mapped on the resulted system. Problem Formulation Initial mapping and scheduling Requirement a) Subset selection problem Select that subset of existing applications so that the current application fits and the modification cost R() is minimized: Three approaches to the subset selection problem Exhaustive Search (ES) Ad-Hoc Solution (AH) Subset Selection Heuristic (SH) Requirement b) Objective function minimization: Mapping Strategy Characterizing future applications: Typical WCETs Typical message sizes Smallest expected period T min Expected necessary processor time t need Expected necessary bandwidth b need Characterizing existing applications: 1 2 4 5 6 7 3 8 9 10 150 70 70 50 50 20 ) , 0 max( ) , 0 max( ) ( ) ( 2 2 2 2 1 1 1 1 m need m P need P m m P P C b w C t w C w C w C 0 200 400 600 800 1000 1200 320 400 480 560 640 AH SH ES 0 20 40 60 80 100 120 140 320 400 480 560 640 AH SH ES Average Modification Cost R() Number of processes Average Execution Time [min] Number of processes Percentage of future applications [%] Number of processes in the current application 0 20 40 60 80 100 120 40 80 160 240 M S* AD I/O Interface Comm. Controller CPU RAM ROM ASIC Node S 0 S 1 S 2 S 3 S 0 S 1 S 2 S 3 TDMA Round Cycle of two rounds Slot Design Criteria aul Pop, Petru Eles, Traian Pop, Zebo Peng: n approach to Incremental Design of istributed Embedded Systems, esign Automation Conference, 2001 First criterion: C 1 P , C 1 m How well the resulted slack sizes accommodate a future application min(40, 80, 0) = 0ms min(40, 0, 80) = 0ms min(80, 80, 40) C P 2 = 40ms Periodic slack N 1 N 2 N 3 Bus min(40, 40, 40) = 40ms min(40, 40, 40) = 40ms min(80, 80, 40) = 40ms C P 2 = 120ms Period 0 Round 0 Round 1Round 2 Round 3 Round 0 Round 1Round 2 Round 3 T min Period 1 Period 2 360 ms S 1 S 2 S 3 S 1 S 2 S 3 S 1 S 2 S 3 S 1 S 2 S 3 S 1 S 2 S 3 S 1 S 2 S 3 S 1 S 2 S 3 S 1 S 2 S 3 N 1 N 2 N 3 Bus a) b) P 1 = 40ms Second criterion: C 2 P , C 2 m How well the slack is distributed in time to accommodate T min , t need and b need a) Existing Current Future: Slack P 1 P 2 b) c) i i R R ) ( Future applications Future applications Current applications Current applications Existing applications Existing applications

1 of 16 April 25, 2006 Minimizing System Modification in an Incremental Design Approach Paul Pop, Petru Eles, Traian Pop, Zebo Peng Department of Computer

  • View
    213

  • Download
    0

Embed Size (px)

Citation preview

Page 1: 1 of 16 April 25, 2006 Minimizing System Modification in an Incremental Design Approach Paul Pop, Petru Eles, Traian Pop, Zebo Peng Department of Computer

1 of 16April 25, 2006

Minimizing System Modification in anIncremental Design Approach

Paul Pop, Petru Eles, Traian Pop, Zebo PengDepartment of Computer and Information Science, Linköpings universitet, Sweden

Vers

ion

N+

1V

ers

ion

N+

1

NN

Modify(re-map)so that thecurrent applicationswill fit.

Map and scheduleso that thefuture applicationswill have a chanceto fit.

Do not exist yetat Version N!

Modify(re-map)so that thecurrent applicationswill fit.

Map and scheduleso that thefuture applicationswill have a chanceto fit.

Do not exist yetat Version N!

N-1

N-1

Incremental Design

Start from an already existing system with applications

Implement new functionality on this systemMapping and Scheduling

To reduce design and testing time:As few as possible modifications of the existing applications

After the new functionality has been implemented:It should be easy to add functionality in the future

Mapping and scheduling of distributed embedded systems for hard-real time applications Static cyclic scheduling of processes and messages,

Bus access scheme: time-division multiple-access.

Incremental design process Already existing system,

Implement new functionality,

a) Existing system modified as little as possible, b) new functionality can be easily added to the system.

Mapping strategy a) Subset selection to minimize modification time,

b) Two design criteria, objective function.

Summary

Input A set of existing applications. A current application to be mapped. The system architecture.

Output

A mapping and scheduling of the current application, so that the incremental design requirements are satisfied.

Requirements

a) constraints of the current application are satisfiedand minimal modifications are performed to the existing applications.

b) new future applications can be mapped on the resulted system.

Problem Formulation

Initial mapping and scheduling

Requirement a) Subset selection problemSelect that subset of existing applications so that the current application fits and the modification cost R() is minimized:

Three approaches to the subset selection problem

Exhaustive Search (ES)

Ad-Hoc Solution (AH)

Subset Selection Heuristic (SH)

Requirement b) Objective function minimization:

Mapping Strategy

Characterizing future applications: Typical WCETs Typical message sizes Smallest expected period Tmin

Expected necessary processor time tneed Expected necessary bandwidth bneed

Characterizing existing applications:

1 2 4 5

6

7

3

8 9 10

150 70 70

50

50

20

),0max(),0max()()( 22221111m

needmP

needPmmPP CbwCtwCwCwC

0

200

400

600

800

1000

1200

320 400 480 560 640

AHSHES

0

20

40

60

80

100

120

140

320 400 480 560 640

AHSHES

Avera

ge M

odifi

cati

on C

ost

R()

Number of processes

Avera

ge E

xecu

tion T

ime [

min

]

Number of processes

Perc

enta

ge o

f fu

ture

applic

ati

on

s [%

]

Number of processes in the current application

0

20

40

60

80

100

120

40 80 160 240

MS*

AD

I/O Interface

Comm. Controller

CPU

RAM

ROM

ASIC

Node

S0 S1 S2 S3 S0 S1 S2 S3

TDMA Round

Cycle of two rounds

Slot

Design Criteria

Paul Pop, Petru Eles, Traian Pop, Zebo Peng:An approach to Incremental Design ofDistributed Embedded Systems,Design Automation Conference, 2001

First criterion: C1P, C1

m How well the resulted slack sizesaccommodate a future application

min(40, 80, 0) = 0msmin(40, 0, 80) = 0msmin(80, 80, 40)

CP2= 40ms

Periodic slack

N1N2N3

Bus

min(40, 40, 40) = 40msmin(40, 40, 40) = 40msmin(80, 80, 40) = 40ms

CP2 = 120ms

Period 0Round 0 Round 1Round 2 Round 3

Round 0 Round 1Round 2 Round 3

Tmin

Period 1 Period 2

360 ms

S1 S2 S3 S1 S2 S3 S1 S2 S3 S1 S2 S3

S1 S2 S3 S1 S2 S3 S1 S2 S3 S1 S2 S3

N1N2N3

Bus a)

b)

P1

= 40ms

Second criterion: C2P, C2

m

How well the slack is distributed in time toaccommodate Tmin, tneed and bneed

a)

Existing Current

Future:

Slack

P1 P2

b)c)

i

iRR )(

Futureapplications

Futureapplications

Currentapplications

Currentapplications

Existingapplications

Existingapplications