• Keine Ergebnisse gefunden

...or: Synchronizers, the other Kind

N/A
N/A
Protected

Academic year: 2021

Aktie "...or: Synchronizers, the other Kind"

Copied!
9
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Simulating Synchronous Systems

...or: Synchronizers, the other Kind

(2)

Why Bill is Sad: Asynchrony

...causes a range of problems:

- algorithms become (more) involved

=> design & implementation is (more) error-prone - algorithms might become less efficient

- deciding when a task is complete might be difficult - non-deterministic execution complicates testing

and verification

(3)

Making Bill Happy: Synchronous Execution

Synchronous Message Passing (SMP):

In each round, each FSM in the network

1. updates its state and computes outoing messages, 2. sends these messages to its neighboring FSMs, and 3. receives the messages from its neighbors.

...but: guaranteeing timing is too hard/inefficient!

(4)

How to Keep both Jeri and Bill Happy?

- do not try to guarantee timing

- but do guarantee the same behavior

=> simulate synchronous execution in an asynchronous system!

in other words: we‘ll fly a rocket without having one

(5)

What We Have and What We Want

Have:

- each network node has local FSM

- step triggered by event at some node: initialization, receiving some message, or receiving local input - upon event: update state, send messages to

neighbors, and generate local output Want:

- each network node has local FSM

- execution in rounds: in each round, all nodes

+ update state, send messages, generate output

+ receive all neighbors‘ messages

(6)

Abstract Algorithm

“Simulate round i“ := update state, send messages (including “empty” ones!) labelled by round, compute local output

1. On initialization, simulate round 1.

2. Store all received messages and inputs, labeled by round and sender (i.e., corresponding port).

3. Once all round i-1 messages and input for round i are stored, simulate round i.

=> if round i is simulated, all computations etc. are correct if they were in round i-1

=> correctness follows by induction on rounds

(7)

Let’s be more Specific

Given: FSM of synchronous algorithm - state space S

- initial state s

v,0

- message set Σ

0

- local input symbols Γ - local output symbols Ω

- state transition function t: S x Σ

0deg(v)

x Γ → S - output function o: S x Σ

0deg(v)

x Γ → Σ

0deg(v)

x Ω

Exercise: Specify the FSM of the simulation algorithm!

(8)

Let’s be even more Specific

Recall the synchronous restart problem:

Special node receives START signal in unknown round, all nodes ought to RESTART in the same round

shortly after that. Topology:

Can you come up with a circuit implementation of the simulating algorithm?

- Σ

0

= Γ = Ω = {0,1} for simulated algorithm

- (re)use (sub)circuits of synchronous algorithm

(9)

The Big Picture

We can clock a GALS system, enable safe communication, and simulate synchronous behavior to its users!

Why isn‘t it perfect?

- several clock cycles of communication latency

- bad if this dominates latency due to computation

Referenzen

ÄHNLICHE DOKUMENTE

"Die Einzigartigkeit der Veranstaltung liegt vor allem darin, daß der Erfahrungsaustausch sich nicht nur mit den "Sonnenseiten" der Veränderungen in Unternehmen

› Soon CCCA members can upload their profiles as climate research experts and provider of climate services. › Klimaherold supports networking

Mai 2011 bei der Kommission ein Antrag auf Anerkennung gestellt wurde, lässt sich nachweisen, dass Lieferungen von Biokraftstoff mit den in Artikel 17 Absatz 3 Buchstaben a, b und

Sein übergeordneter Blick gilt dem Pro blem, dass Englisch längst keine Fremdsprache mehr ist, sondern eine Art zweite Muttersprache, in den meisten Fällen allerdings ohne

The resulting framework is a genericised pathway to develop innovations in the digital health field; starting with the clinical need and idea, progressing through development,

process/docs/heskemb2_eng.htm. There have been nu- merous incidents in which fisherman have been fired upon when less than six nautical miles from shore, however. 30 An

Using a new database of French municipalities that covers 821 towns and 2 elections (2001 and 2008), we examine how the budget structure, degree of electoral competition and

Însă, nu se putea vorbi, la acel moment, de finalizarea Rundei de negocieri comerciale multilaterale din simplul motiv că nu erau încheiate acorduri asupra tuturor celor