Embedded Systems 5. Synchronous Composition. Lee/Seshia Section 6.2

Similar documents
Embedded Systems 2. REVIEW: Actor models. A system is a function that accepts an input signal and yields an output signal.

Embedded Systems Development

Cyber-Physical Systems Discrete Dynamics

Bridging the Semantic Gap Between Heterogeneous Modeling Formalisms and FMI

Bridging the Semantic Gap Between Heterogeneous Modeling Formalisms and FMI

Synchronous circuits, Automata, Parallel composition

A Hybrid Synchronous Language with Hierarchical Automata

Using the Principles of Synchronous Languages in Discrete-event and Continuous-time Models

Using the Principles of Synchronous Languages in Discrete-event and Continuous-time Models

Discrete Dynamics Finite State Machines גרא וייס המחלקה למדעי המחשב אוניברסיטת בן-גוריון

Hybrid Control and Switched Systems. Lecture #1 Hybrid systems are everywhere: Examples

Synchronous languages and their extension to deal with discrete and continuous-time systems

Hybrid Systems Modeling, Analysis and Control

Synchronous languages and their extension to deal with discrete and continuous-time systems

Hybrid Systems Modeling Challenges caused by CPS

Languages for Programming Hybrid Discrete/Continuous-Time Systems

EE 144/244: Fundamental Algorithms for System Modeling, Analysis, and Optimization Fall 2016

EECS 144/244: System Modeling, Analysis, and Optimization

Modeling Synchronous Systems in BIP

EE291E Lecture Notes 3 Autonomous Hybrid Automata

EECS 144/244: Fundamental Algorithms for System Modeling, Analysis, and Optimization

Concurrent Models of Computation

Hybrid Control and Switched Systems. Lecture #4 Simulation of hybrid systems

The Discrete EVent System specification (DEVS) formalism

An Introduction to Hybrid Systems Modeling

Information System Design IT60105

Finite State Machines. CS 447 Wireless Embedded Systems

CPO Semantics of Timed Interactive Actor Networks

Synchronous Reactive Systems

TRANSITION CONFLICTS DETECTION IN BINARY MODULAR STATECHART DIAGRAMS 1. Grzegorz Łabiak

Timed Automata VINO 2011

A synchronous rendering of hybrid systems for designing Plant-on-a-Chip (PoC)

A Deterministic Logical Semantics for Esterel

Hybrid Systems. April 2012 Kazunori Ueda, Waseda University and NII (with thanks to my students) Computer Software, Vol.28, No.1 (2011), pp

Concurrent Models of Computation in System Level Design

Introduction to Embedded Systems

The algorithmic analysis of hybrid system

Hybrid systems and computer science a short tutorial

Classes and conversions

Decidability Results for Probabilistic Hybrid Automata

Course on Hybrid Systems

Hybrid Systems Course Lyapunov stability

Hybrid automata: from verification to implementation

A Modular Formal Semantics for Ptolemy 1 2

Oce National d' Etudes. et de Recherches Aerospatiales. Centre d' Etudes et de Recherche de l' Ecole Nationale Superieure

Finite State Automata

{},{a},{a,c} {},{c} {c,d}

Robust and Extensible Task Implementations of Synchronous Finite State Machines

Operational Semantics of Hybrid Systems

Modeling & Control of Hybrid Systems. Chapter 7 Model Checking and Timed Automata

Constructive Models of Discrete and Continuous Physical Phenomena

Proving Safety Properties of the Steam Boiler Controller. Abstract

Timed Automata. Chapter Clocks and clock constraints Clock variables and clock constraints

Embedded system design with the Polychronous paradigm Albert Benveniste Inria/Irisa

Safety-Critical Medical Device Development Using the UPP2SF Model

Embedded Systems Development

A Decidable Class of Planar Linear Hybrid Systems

-- Technical Memorandum UCB/ERL M97/11 --

Stochastic Hybrid Systems: Applications to Communication Networks

Formally Correct Monitors for Hybrid Automata. Verimag Research Report n o TR

Analysis of a Boost Converter Circuit Using Linear Hybrid Automata

A Simulation Condition for Correct Asynchronous Implementation of Synchronous Design

From games to executables!

Hybrid Systems - Lecture n. 3 Lyapunov stability

Computability and Complexity

Understanding Deadlock and Livelock Behaviors in Hybrid Control Systems

Causality Interfaces and Compositional Causality Analysis

Week 4 solutions. March 21, From the left hand side formula we obtain ϕ ψ = ϕ ψ = We transform the left hand side formula as follows.

Recent results on Timed Systems

Semantics of S.S.M. (Safe State Machine)

Embedded Systems. Embedded Systems

Towards Co-Engineering Communicating Autonomous Cyber-physical Systems. Bujorianu, M.C. and Bujorianu, M.L. MIMS EPrint:

Hybrid Dynamical Systems: An Introduction to Control and Verification

Verification of Polynomial Interrupt Timed Automata

Synchronous Programming

A test sequence selection method for statecharts

Models for Efficient Timed Verification

Time and Schedulability Analysis of Stateflow Models

Language Stability and Stabilizability of Discrete Event Dynamical Systems 1

A Sample State Machine

TIMED automata, introduced by Alur and Dill in [3], have

Undecidability Results for Timed Automata with Silent Transitions

Visibly Linear Dynamic Logic

SEMANTICS OF SYNCCHARTS

A Simulation Condition for Correct Asynchronous Implementation of Synchronous Design

Simulation and Verification of Asynchronous Systems by means of a Synchronous Model


Many dynamical systems combine behaviors ROBUST STABILITY AND CONTROL FOR SYSTEMS THAT COMBINE CONTINUOUS-TIME AND DISCRETE-TIME DYNAMICS

Operational Semantics of Hybrid Systems

Supervisory Control of Hybrid Systems

TESTING is one of the most important parts of the

Büchi Automata and Linear Temporal Logic

Execution Strategies for PTIDES, a Programming Model for Distributed Embedded Systems

Model-Based Design. Chapter Modeling Physical Dynamics Newtonian Mechanics

A Hybrid Control Model of Fractone-Dependent Morphogenesis

Design of Embedded Systems: Models, Validation and Synthesis (EE 249) Lecture 9

Automata-theoretic analysis of hybrid systems

MOST OF the published research on control of discreteevent

Timed Petri Nets and Timed Automata: On the Discriminating Power of Zeno Sequences

Deciding the weak definability of Büchi definable tree languages

Transcription:

Embedded Systems 5-1 - Synchronous Composition Lee/Seshia Section 6.2 Important semantic model for concurrent composition Here: composition of actors Foundation of Statecharts, Simulink, synchronous programming languages Esterel Lustre Scade Idealistic view of concurrency, not adequate for distributed systems (Implicit assumption: presence of global clock and instant communication; requires broadcast mechanism) - 2-1

Goal: deterministic behavior An important advantage of synchronous over asynchronous composition is that determinacy can be preserved. In the following, we ll assume that the individual actors are deterministic, and ensure that the composition remains deterministic. For example, StateCharts are deterministic, if priority rules are introduced for transitions enabled at the same time (see, for example, the Stateflow semantics.) - 3 - REVIEW: Actor Model for State Machines Expose inputs and outputs, enabling composition: - 4-2

REVIEW: Actor Model of Continuous-Time Systems A system is a function that accepts an input signal and yields an output signal. The domain and range of the system function are sets of signals, which themselves are functions. Parameters may affect the definition of the function S. - 5 - Synchronous composition Synchronous composition: the machines react simultaneously and instantaneously, despite the apparent causal relationship! - 6-3

Synchronous composition: Reactions are simultaneous and instantaneous - 7 - Synchronous composition: Reactions are simultaneous and instantaneous unreachable - 8-4

Feedback composition - 9 - Continuous feedback composition Angular velocity appears on both sides. The semantics (meaning) of the model is the solution to this equation. - 10-5

Observation: Any Composition is a feedback composition If every actor is a function then the semantics of the overall system is a s S N The behavior of the system is a fixed point. - 11 - Fixed point semantics Consider an interconnection of actors Reorganize We seek an s S N that satisfies F(s) = s. Such an s is called a fixed point. Abstract actors Abstract signals s S N We would like the fixed point to exist and be unique. And we would like a constructive procedure to find it. - 12-6

Data types s x y - 13 - Firing functions s x y - 14-7

Well-formed feedback s x y - 15 - Well-formed example - 16-8

Composite machine - 17 - Ill-Formed Example 1 (Existence) - 18-9

Ill-Formed Example 2 (Uniqueness) - 19 - Constructive Semantics: Single Signal - 20-10

Non-Constructive Well-Formed State Machine - 21 - Must / May Analysis - 22-11

Constructive Semantics: Multiple Signals - 23 - Constructive Semantics: Multiple Actors Procedure is the same. - 24-12

Constructive Semantics: Arbitrary Structure Procedure is the same. A state machine language with constructive semantics will reject all compositions that in any iteration fail to make all signals known. Such a language rejects some well-formed compositions. - 25 - Mixed Signal Models The signals inside the blue area are continuous-time signals, and the ones outside are discrete-time signals. - 26-13

REVIEW: Hybrid Automaton for Bouncing Ball y vertical distance from ground (position) a coefficient of restitution, 0 < a < 1-27 - Hybrid Automata Q: set of modes S: set of state variables, partitioned into C={c 1, c 2,..., c n }: continuous signals (with range ) D={d 1, d 2,..., d m }: discrete signals (with range {absent} X) U={u 1, u 2,..., u k }: set of input signals, Init Q n ({absent} X) m : initial condition F: flows, defining differential equations for each continuous state variable in each mode J: Q Guards Q Resets: jumps, where Guards is a constraint over C and U and Resets is a set of assignments of the form x i := expr(x,u) for the state variables Note: our definitions follow Lee/Seshia, there are several other definitions of hybrid automata - 28-14

Hybrid Time Set A hybrid time set is a finite or infinite sequence of intervals = {I i } i=0..n such that I i = [ i, i ] for all i < N; If N < then either I N = [ N, N ] or I N = [ N, N ); and i i = i+1 for all i - 29 - Hybrid Trajectory A hybrid trajectory (, q, x) consists of a hybrid time set and two sequences of functions q = {q i ( ): I i Q} i=0..n x = {c i ( ): I i } i=0..n {d i ( ): I i X {absent} } i=0..n - 30-15

time time Execution of a Hybrid Automaton An execution of a hybrid automaton is a hybrid trajectory (, q, x) that statisfies the following conditions Initial condition: (q 0, x 0 ) Init Discrete evolution: the pair ((q i ( i ),x i ( i )), (q i+1 ( i+1 ),x i ( i+1 )) satisfies J Continuous evolution: for all i, 1. q i ( ) is constant over I i 2. c i ( ) is the solution to the differential equations in F(q( i )) 3. d i ( ) are absent during ( i, i ) 4. All jumps in J are disabled during ( i, i ) - 31 - Execution of a Hybrid Automaton - 32-16

time REVIEW: Hybrid Automaton for Bouncing Ball - 33 - Zeno Behavior - 34-17

Superdense Time A signal can have a sequence of values at each (real) time. - 35 - Initial and final value signals - 36-18

Simulation of continuous-time systems Lee/Seshia Section 6.4 The (numeric) simulator cannot directly deal with the time continuum, but can approximate it We consider equations of the form An equivalent model is an integral equation - 37 - Forward Euler Solver - 38-19