47
Formalizing On Chip Communications in a Functional Style Julien Schmaltz Saarland University Institute for Computer Architecture c 2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbr¨ ucken – p. 1/43

Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

  • Upload
    dongoc

  • View
    222

  • Download
    9

Embed Size (px)

Citation preview

Page 1: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

Formalizing On ChipCommunications

in a Functional StyleJulien Schmaltz

Saarland University

Institute for Computer Architecture

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 1/43

Page 2: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

RailNet

Madrid

Montpellier

Lyon

Grenoble

Paris Saarbrucken

One platform per sta-tion and one railroadbetween two stations.Peter and John wantto go to Saarbrücken.

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 2/43

Page 3: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

Route Computation

Madrid

Montpellier

Lyon

Grenoble

Paris Saarbrucken

Routes are computedat origins: source rout-ing.

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 3/43

Page 4: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

Conflicts Solving

Madrid

Montpellier

Lyon

Grenoble

Paris Saarbrucken

There is only one plat-form per station. Peterand John want to en-ter Lyon at the sametime. The schedulingpolicysolves this conflict.

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 4/43

Page 5: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

Network Verification

Madrid

Montpellier

Lyon

Grenoble

Paris Saarbrucken

Thm. Each train reaches its destination.Proof: Mutual Exclusionand routing correctness

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 5/43

Page 6: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

Another Network Verification

Denver

San Francisco

Austin

BostonChicago

Indianapolis

Thm. Each plane reaches its destination.Proof: Mutual Exclusionand routing correctness

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 6/43

Page 7: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

Particular and General

• What is particular to one network• Scheduling Policy• Number of platforms and railroads

• What is common to any network• Structure, routing + scheduling• Routing and overall correctness

Our achievement :a formal model of a generic network

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 7/43

Page 8: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

Outline

• Systems on a Chip

• Communication Principles

• GeNoC Definition and Correctness

• Applications of GeNoC

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 8/43

Page 9: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

Systems On a Chip

• Everywhere, critical systems

• Ever growing complexity (HW & SW)

• Safety and correct behaviorc©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 9/43

Page 10: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

Octagon Network on Chip

3

4

7

0

26

5

1

• 8 nodes

• extensible to 4 ∗ i

• bidirectional links

• simple shortest path routingalgorithm

• Design by STMicroelectronics ref: DAC’01 andIEEE Micro 2002 by F. Karim et al.

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 10/43

Page 11: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

Routing Algorithm

3

4

7

0

2

1

6

5

RelAd = (dest − current) mod 8

if RelAd = 0

then stopelsif RelAd = 1 ∨ 2

then go clockwiseelsif RelAd = 6 ∨ 7

then go counter clockwiseelse go acrossendif

Example: route from 1 to 6

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 11/43

Page 12: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

Octagon Scheduling Policy

3

4

5

6

7

0

1

2

SCHEDULER

Nodes connected to

a central scheduler

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 12/43

Page 13: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

Formal Verification of NoC’s

• AMBA bus by model cheching (Roychoudhuryet al., 2003)

• AMBA by M.C. and HOL (Amjad, 2004)

• Æthereal protocol from Philips by PVS(Gebremichael et al., 2005)

• Low level of abstraction

• Particular cases only

• No general method

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 13/43

Page 14: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

Global Objective

One model for all architectures

?

. . .

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 14/43

Page 15: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

Contribution

A functional formalism for communications: GeNoC(Generic Network on Chip)

• Identifies the essential constituents and theirproperties

• Formalizes the interactions between them

• Correctness of the system is a consequence ofthe essential properties of the constituents

• (Mechanized support in ACL2)

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 15/43

Page 16: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

Outline

• Systems on a Chip

• Communication Principles

• GeNoC Definition and Correctness

• Applications of GeNoC

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 16/43

Page 17: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

A Unique Model

µP

MPEG4

AES

RAMInterface

Interface

Interface

InterfaceCommunication

Architecture

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 17/43

Page 18: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

A Unique Model

messages

messages

frames

Application

Application

Application

Application

Interface

Interface

Interface

InterfaceCommunication

Architecturemessages

messages

frames

frames

frames

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 17/43

Page 19: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

Functional Modeling

Scheduling

Routing

messages

messages

frames

Application

Application

Application

Application

send

recv

sendrecv

sendrecv

send

recv

Scheduling

Routing

System = F(Routing , Scheduling , recv , send)

messages

messages

frames

frames

frames

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 18/43

Page 20: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

Proof Obligations

Scheduling

Routing

messages

messages

frames

Application

Application

Application

Application

send

recv

recv

sendrecv

send

recv

Scheduling

RoutingsendPOi

POi

POs

POi

POr POi

messages

messages

frames

frames

frames

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 19/43

Page 21: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

System Theorem

Scheduling

Routing

messages

messages

frames

Application

Application

Application

Application

send

recv

recv

sendrecv

send

recv

Scheduling

RoutingsendPOi

POi

POs

POi

POr POi

Thm: every message reaches its destination

messages

messages

frames

frames

frames

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 20/43

Page 22: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

System Theorem

Scheduling

Routing

messages

messages

frames

Application

Application

Application

Application

send

recv

sendrecv

sendrecv

send

recv

Scheduling

RoutingPOi

POi

POs

POi

POr POi

Thm: every message reaches its destination

messages

messages

frames

frames

frames

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 20/43

Page 23: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

Outline

• Systems on a Chip

• Communication Principles

• GeNoC Definition and Correctness

• Applications of GeNoC

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 21/43

Page 24: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

Overall Modeling Principles

• Function GeNoC

• takes the list of pending communications• returns the list of results and the list of

aborted communications

• Transactions• A transaction represents a pending

communication, i.e. the intention of A ofsending msg to B

• It is a 4-tuple (id A msg B)

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 22/43

Page 25: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

Function GeNoC

MessagesMessages

Routing

Scheduling

Application

A

Application

Bsend

recv

Interface A Interface B

Node A Node B

Frames Framessend

recv

Results

Aborted Missives

Transactions

(id1 A msg1 B)

(id2 D msg2 T)

(id3 F msg3 E)

(id4 R msg4 Z)

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 23/43

Page 26: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

From transactions to missives

MessagesMessages

Routing

Scheduling

Application

A

Application

Bsend

recv

Interface A Interface B

Node A Node B

Frames Framessend

recv

Results

Aborted Missives

(id1 A msg1 B)

Transactions

(id1 A msg1 B)

(id2 D msg2 T)

(id3 F msg3 E)

(id4 R msg4 Z)

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 24/43

Page 27: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

From transactions to missives

MessagesMessages

Routing

Scheduling

Application

A

Application

Bsend

recv

Interface A Interface B

Node A Node B

Frames Framessend

recv

Results

Aborted Missives

(id1 A frm1 B)

Missives

(id1 A frm1 B)

(id2 D frm2 T)

(id3 F frm3 E)

(id4 R frm4 Z)

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 24/43

Page 28: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

Routing Algorithm

MessagesMessages

Routing

Scheduling

Application

A

Application

Bsend

recv

Interface A Interface B

Node A Node B

Frames Framessend

recv

Results

Aborted Missives

(id1 frm1 Routes1)

(id2 frm2 Routes2)

(id3 frm3 Routes3)

(id4 frm4 Routes4)

(id1 frm1 Routes1)

Travelsc©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 25/43

Page 29: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

Scheduling Policy

MessagesMessages

Routing

Scheduling

Application

A

Application

Bsend

recv

Interface A Interface B

Node A Node B

Frames Framessend

recv

Results

Aborted Missives

Scheduled

(id1 frm1 Routes1)

(id3 frm3 Routes3)

(id2 frm2 Routes2)

(id4 frm4 Routes4)

Delayedc©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 26/43

Page 30: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

Results

MessagesMessages

Routing

Scheduling

Application

A

Application

Bsend

recv

Interface A Interface B

Node A Node B

Frames Framessend

recvrecv

Results

Aborted Missives

(id2 frm2 Routes2)

(id4 frm4 Routes4)

Delayed

(id1 B msg1)(id3 E msg3)

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 27/43

Page 31: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

Aborted Missives

MessagesMessages

Routing

Scheduling

Application

A

Application

Bsend

recv

Interface A Interface B

Node A Node B

Frames Framessend

recvrecv

Results

Aborted Missives(id1 B msg1)

(id3 E msg3)

(id2 D frm2 T)

(id4 R frm4 Z)

Missivesc©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 28/43

Page 32: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

Aborted Missives

MessagesMessages

Routing

Scheduling

Application

A

Application

Bsend

recv

Interface A Interface B

Node A Node B

Frames Framessend

recvrecv

Results

Aborted Missives(id1 B msg1)

(id3 E msg3)

(id4 R frm4 Z)

(id2 T msg2)

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 28/43

Page 33: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

Correctness Criterion

MessagesMessages

Routing

Scheduling

Application

A

Application

Bsend

recv

Interface A Interface B

Node A Node B

Frames Framessend

recvrecv

Results

Aborted Missives

Transactions

(id1 A msg1 B)

(id2 D msg2 T)

(id3 F msg3 E)

(id4 R msg4 Z)

(id1 B msg1)(id3 E msg3)

(id4 R frm4 Z)

(id2 T msg2)

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 29/43

Page 34: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

Termination

Function GeNoC is a recursive function and mustbe proved to terminate because:

• it is a prerequisite for mechanized reasoning(here ACL2)

• it is necessary to ensure liveness

To ensure the termination, we associate to everynode a finite number of attempts. At every recursivecall of GeNoC , every node with a pendingtransaction consumes one attempt.

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 30/43

Page 35: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

Formal Definition

From a list of transactions, T , the set of nodesNodeSet and a list of attempt numbers att , functionGeNoC produces:

• The list R of results

• The list A for aborted missives

GeNoC : DT × GenNodeSet × AttLst → DR ×DM

(T ,NodeSet , att) 7→ (R,A)

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 31/43

Page 36: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

Correctness Criterion

∀res ∈ R,

∃!trans ∈ T ,

{ IdR(res) = IdT (trans)

∧ MsgR(res) = MsgT (trans)

∧ DestR(res) = DestT (trans)

For any result res, there exists a unique transactiontrans such that trans and res have the sameidentifier, message, and destination.

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 32/43

Page 37: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

Proof Obligations

• Interfaces• The composition recv ◦ send is an identity

• Routing (id A frm B) 7→ (id frm Routes)

• Missive/Travel matching• Same frame and identifier• Routes effectively go from the correct origin

to the correct destination

• Scheduling• Mutual exclusion between Scheduled and

Delayed

• No addition of new identifiers• Preserve frames and route correctness

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 33/43

Page 38: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

Proof of the theorem

• Routing correctness + preserved by scheduling• → right destination

• No modification on frames• → every result is obtained by recv ◦ send

• Interfaces correctness• → received message = sent message

• Mutual exclusion between Scheduled andDelayed + no new identifiers• → cut the proof in two parts

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 34/43

Page 39: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

Outline

• Systems on a Chip

• Communication Principles

• GeNoC Definition and Correctness

• Applications of GeNoC

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 35/43

Page 40: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

Generic Routing Module

• Function Routing

Routing : DM × GenNodeSet → DV

• Proof Obligations1. Termination

• Distance decreases at each hop2. Correctness

• From the right source to the rightdestination

• Frames and identifiers are preserved

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 36/43

Page 41: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

Octagon Modeling

• Unitary Moves:LOct(s , d ,N ) ,

d if RelAd = 0

Clockwise(s , 4N ) if 0 < RelAd ≤ N

CounterClockwise(s , 4N ) if 3N ≤ RelAd < 4N

Across(s , 4N ) otherwise

3

4

7

0

2

1

6

5

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 37/43

Page 42: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

Octagon in GeNoC

• All Paths:ρOct(s , d ,N ) ,

{

d if s = d

s .ρOct(LOct(s , d ,N ), d ,N ) otherwise

• Compliant Definition:RoutingOct(M,N ) ,

∀m = (id A frm B), build v = (id frm ROct)

whereROct ≡ ρOct(A, B, N)

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 38/43

Page 43: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

Octagon Validation

• Decreasing Measure:

Min[(d − s) mod 4N , (s − d) mod 4N ]

• Routing Correctness:• ρOct(s, d, N)[0] = s ∧ Last(ρOct(s, d, N)) = d

• Identifiers and frames are not modified

∀v, ∃!m ∈ M,

{

FrmM(m) = FrmV(v)

∧ IdM(m) = IdV(v)

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 39/43

Page 44: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

Applications of GeNoC

MessagesMessages

Routing

Scheduling

Application

A

Application

Bsend

recv

Interface A Interface B

Frames Frames

Node A Node B

send

recv

- Octagon

- Bi-Φ-M

- Ethernet

OSI Layer 1

OSI Layer 2

Scheduling on networks

- Circuit switching- Packet switching

Bus arbitration

- AMBA AHB arbiter

Deterministic routing

- XY algorithm

Adaptative routing

- Double Y channel

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 40/43

Page 45: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

Conclusions

A generic model: GeNoC

• Identifies the essential constituents of anycommunication architecture

• Expression of the properties inherent in eachone of them

• Formalizes the global property as aconsequence of these properties

• Expressed in math and in the logic of ACL2

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 41/43

Page 46: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

Perspectives: Extensions

• Master/Slave protocols

• Deadlocks (structural and protocol level)

• Adding queues and channels• wormhole routing in Hermes (TIMA,

Grenoble, France)

• Adding time• Verisoft, very low level of automotive systems

• . . .

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 42/43

Page 47: Formalizing On Chip Communications in a … On Chip Communications in a Functional Style ... et al., 2003) AMBA by M.C. and HOL (Amjad, ... May 18-19, Saarbruc¨ ken

THANK YOU !!

c©2006 Julien Schmaltz, Trustworthy Software, May 18-19, Saarbrucken – p. 43/43