Semantic Foundation of the Tagged Signal Model Xiaojun Liu Sun Microsystems, Inc. Chess Seminar February 21, 2006.

Slides:



Advertisements
Similar presentations
Use trace algebra to formalize the YAPI model EE290N Spring2002 Alessandro Pinto Mentors: Roberto Passerone Jerry Burch.
Advertisements

Semantic Translation of Simulink/Stateflow Models to Hybrid Automata using Graph Transformations A. Agarwal, Gy. Simon, G. Karsai ISIS, Vanderbilt University.
1 Towards formal manipulations of scenarios represented by High-level Message Sequence Charts Loïc Hélouet Claude Jard Benoît Caillaud IRISA/PAMPA (INRIA/CNRS/Univ.
Overview This project applies the tagged-signal model to explain the semantics of piecewise continuous signals. Then it illustrates an operational way.
DATAFLOW PROCESS NETWORKS Edward A. Lee Thomas M. Parks.
Discrete Event Models: Getting the Semantics Right Edward A. Lee Robert S. Pepper Distinguished Professor Chair of EECS UC Berkeley With thanks to Xioajun.
EECE Hybrid and Embedded Systems: Computation T. John Koo, Ph.D. Institute for Software Integrated Systems Department of Electrical Engineering and.
Foundations of Data-Flow Analysis. Basic Questions Under what circumstances is the iterative algorithm used in the data-flow analysis correct? How precise.
PTIDES: Programming Temporally Integrated Distributed Embedded Systems Yang Zhao, EECS, UC Berkeley Edward A. Lee, EECS, UC Berkeley Jie Liu, Microsoft.
7th Biennial Ptolemy Miniconference Berkeley, CA February 13, 2007 Causality Interfaces for Actor Networks Ye Zhou and Edward A. Lee University of California,
SRC ETAB Summer Study Colorado Springs, June 25-26, 2001 Model-Based Approaches to Embedded Software Design Edward A. Lee UC Berkeley & GSRC.
Berkeley, CA, March 12, 2002 Modal Models in Vehicle-Vehicle Coordination Control Xiaojun Liu The Ptolemy Group EECS Department, UC Berkeley.
Advanced Tool Architectures Supporting Interface-Based Design
Programming Language Semantics Denotational Semantics Chapter 5 Based on a lecture by Martin Abadi.
NSF Foundations of Hybrid and Embedded Software Systems UC Berkeley: Chess Vanderbilt University: ISIS University of Memphis: MSI A New System Science.
7th Biennial Ptolemy Miniconference Berkeley, CA February 13, 2007 Leveraging Synchronous Language Principles for Hybrid System Models Haiyang Zheng and.
Department of Electrical Engineering and Computer Sciences University of California at Berkeley Behavioral Types for Actor-Oriented Design Edward A. Lee.
Behavioral Types as Interface Definitions for Concurrent Components Center for Hybrid and Embedded Software Systems Edward A. Lee Professor UC Berkeley.
6th Biennial Ptolemy Miniconference Berkeley, CA May 12, 2005 Some Developments in the Tagged Signal Model Xiaojun Liu With J. Adam Cataldo, Edward A.
Building Unreliable Systems out of Reliable Components: The Real Time Story Edward A. Lee Professor, Chair of EE, and Associate Chair of EECS CHESS: Center.
A denotational framework for comparing models of computation Daniele Gasperini.
Causality Interface  Declares the dependency that output events have on input events.  D is an ordered set associated with the min ( ) and plus ( ) operators.
Chess Review October 4, 2006 Alexandria, VA Edited and presented by Advanced Tool Architectures Edward A. Lee UC Berkeley.
Chess Review November 21, 2005 Berkeley, CA Edited and presented by Advanced Tool Architectures Edward A. Lee UC Berkeley.
Heterogeneous Modeling and Design in Ptolemy II Johan Eker UC Berkeley with material courtesy of Edward Lee and the Ptolemy group ECE Seminar Series, Carnegie.
Programming Language Semantics Denotational Semantics Chapter 5 Part II.
Chess Review May 11, 2005 Berkeley, CA Operational Semantics of Hybrid Systems Haiyang Zheng and Edward A. Lee With contributions from the Ptolemy group.
Actor-Oriented Design: A focus on domain-specific languages for embedded systems Edward A. Lee Professor, UC Berkeley Director, Center for Hybrid and Embedded.
Building Unreliable Systems out of Reliable Components: The Real Time Story Edward A. Lee Professor, Chair of EE, and Associate Chair of EECS CHESS: Center.
Frameworks and Tools for High-Confidence Design of Adaptive, Distributed Embedded Control Systems - Project Overview - Janos Sztipanovits ISIS-Vanderbilt.
Mixing Models of Computation Jie Liu Palo Alto Research Center (PARC) 3333 Coyote Hill Rd., Palo Alto, CA joint work with Prof. Edward.
7th Biennial Ptolemy Miniconference Berkeley, CA February 13, 2007 Correctness in Causal Systems Eleftherios Matsikoudis UC Berkeley.
Design of Fault Tolerant Data Flow in Ptolemy II Mark McKelvin EE290 N, Fall 2004 Final Project.
Models of Computation for Embedded System Design Alvise Bonivento.
Kahn’s Principle and the Semantics of Discrete Event Systems Xiaojun Liu EE290N Class Project December 10, 2004.
Discrete Event Models: Getting the Semantics Right Edward A. Lee Robert S. Pepper Distinguished Professor Chair of EECS UC Berkeley With special thanks.
Chess Review November 21, 2005 Berkeley, CA Edited and presented by Causality Interfaces and Compositional Causality Analysis Rachel Zhou UC Berkeley.
A Denotational Semantics For Dataflow with Firing Edward A. Lee Jike Chong Wei Zheng Paper Discussion for.
Summary of the Course What, Why, When. 2 The Y-chart view of the Course System Behavior System Architecture Behavior on Architecture Mapping Refine Implementation.
NSF Foundations of Hybrid and Embedded Software Systems UC Berkeley: Chess Vanderbilt University: ISIS University of Memphis: MSI A New System Science.
Department of Electrical Engineering and Computer Sciences University of California at Berkeley System-Level Types for Component-Based Design Edward A.
Department of Electrical Engineering and Computer Sciences University of California at Berkeley Concurrent Component Patterns, Models of Computation, and.
Chess Review May 11, 2005 Berkeley, CA Discrete-Event Systems: Generalizing Metric Spaces and Fixed-Point Semantics Adam Cataldo Edward Lee Xiaojun Liu.
MoBIES Working group meeting, September 2001, Dearborn Ptolemy II The automotive challenge problems version 4.1 Johan Eker Edward Lee with thanks.
7th Biennial Ptolemy Miniconference Berkeley, CA February 13, 2007 PTIDES: A Programming Model for Time- Synchronized Distributed Real-time Systems Yang.
Center for Hybrid and Embedded Software Systems Jonathan Sprinkle Executive Director, CHESS Center for Hybrid and Embedded Software Systems UC Berkeley.
State of the Art Lecture IEEE Instrumentation and Measurement Technology Conference Budapest, Hungary, May 21-23, 2001 Computing for Embedded Systems Edward.
Embedded Software: Leveraging Concurrent Models of Computation Edward A. Lee Professor, UC Berkeley Center for Hybrid and Embedded Software Systems (CHESS)
Tool Integration of Ptolemy II EE290N Class Project Haiyang Zheng May
Programming Language Semantics Denotational Semantics Chapter 5 Part III Based on a lecture by Martin Abadi.
MOBIES Project Progress Report Engine Throttle Controller Design Using Multiple Models of Computation Edward Lee Haiyang Zheng with thanks to Ptolemy Group.
Department of Electrical Engineering and Computer Sciences University of California at Berkeley The Ptolemy II Framework for Visual Languages Xiaojun Liu.
Chess Review November 21, 2005 Berkeley, CA Edited and presented by Coupled Interface Modules for Heterogeneous Composition Ethan Jackson ISIS, Vanderbilt.
MSR AG VHDL-AMS, 10/07/00 Requirements, goals, and tasks of MSR Working Group VHDL-AMS.
Solving fixpoint equations
1 Iterative Program Analysis Abstract Interpretation Mooly Sagiv Tel Aviv University Textbook:
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
Program Analysis and Verification
Design Languages in 2010 Chess: Center for Hybrid and Embedded Software Systems Edward A. Lee Professor UC Berkeley Panel Position Statement Forum on Design.
Actor Networks Edward A. Lee Robert S. Pepper Distinguished Professor Chair of EECS UC Berkeley Invited Talk Workshop Foundations and Applications of Component-based.
DISCRETE COMPUTATIONAL STRUCTURES CSE 2353 Fall 2010 Most slides modified from Discrete Mathematical Structures: Theory and Applications by D.S. Malik.
February 14, 2013 Center for Hybrid and Embedded Software Systems Organization Faculty Edward A. Lee, EECS Alberto Sangiovanni-Vincentelli,
Chapter 5 Relations and Operations
SysML v2 Formalism: Requirements & Benefits
2. Specification and Modeling
Concurrent Models of Computation
Embedded Systems: A Focus on Time
Defining A Formal Semantics For The Rosetta Specification Language
Concurrent Models of Computation for Embedded Software
Concurrent Models of Computation
Presentation transcript:

Semantic Foundation of the Tagged Signal Model Xiaojun Liu Sun Microsystems, Inc. Chess Seminar February 21, 2006

Xiaojun Liu – Chess Seminar 2 Outline Motivation –Heterogeneous embedded systems –The tagged signal model as a semantic metamodel Tagged process networks Timed process networks Discrete event process networks The metric structure of signals Conclusion

Xiaojun Liu – Chess Seminar 3 Embedded Systems: “Invisible Computing Systems” GENERAL MOTORS YEAR 2000 STATEMENT, July 22, 1999 GM vehicles have long been equipped with microprocessors which today, depending on the vehicle, are used for powertrain management anti-lock braking systems traction control stability enhancement supplemental inflatable restraint systems real-time damping navigation systems automatic climate control remote keyless entry head-up display entertainment systems entry control...

Xiaojun Liu – Chess Seminar 4 Safety-Critical Applications of Heterogeneous Embedded Systems G. Leen and D. Heffernan, “Expanding Automotive Electronic Systems,” IEEE Computer, January 2002.

Xiaojun Liu – Chess Seminar 5 Tools and Languages for Designing Heterogeneous Embedded Systems Simulink and Stateflow (The MathWorks) LabVIEW (National Instruments) Modelica (Modelica Association) CarSim (Mechanical Simulation Corp.) System Studio (Synopsys, Inc.) Advanced Design System (Agilent EEsof EDA) SystemC (Open SystemC Initiative) VHDL and Verilog with Analog and Mixed Signal Extensions GME (Vanderbilt University) Polis and Metropolis (UC Berkeley) Ptolemy and Ptolemy II (UC Berkeley)

Xiaojun Liu – Chess Seminar 6 The Metamodeling Approach Meta Object Facility (MOF) Specification, Version 1.4, April 2002, OMG. The Generic Modeling Environment CDIF (CASE Data Interchange Format) Metropolis Meta Model

Xiaojun Liu – Chess Seminar 7 The Tagged Signal Model as a Semantic Metamodel Proposed as a Framework for Comparing Models of Computation (Lee & ASV, 1997) Opportunities Provided: –To compare certain properties of various models of computation, such as their notion of synchrony –To define formal relations among signals and process behaviors from different models of computation –To facilitate the cross-fertilization of results and proof techniques among models of computation

Xiaojun Liu – Chess Seminar 8 The Goal of This Presentation Establish a Semantic Foundation of the Tagged Signal Model (TSM) Explore the Opportunities Provided by the TSM Framework

Xiaojun Liu – Chess Seminar 9 Approach A Three-Step Development Process 1.Study the properties of a mathematical structure of (sets of) signals 2.Use this structure to characterize the processes that are functions on signal sets, such as continuity and causality 3.Determine conditions under which the characterizations are compositional

Xiaojun Liu – Chess Seminar 10 Outline Motivation –Heterogeneous embedded systems –The tagged signal model as a semantic metamodel Tagged process networks Timed process networks Discrete event process networks The metric structure of signals Conclusion

Xiaojun Liu – Chess Seminar 11 Signals A signal has a tag set T, which is a partially ordered set. A down-set of T is a downward-closed subset of T. D (T ) is the set of down- sets of T. A signal is a function from a down-set D 2 D (T ) to some value set V, signal: D ! V 2 D ([0, 1 )) 0123  D ([0, 1 ))

Xiaojun Liu – Chess Seminar 12 The Prefix Order on Signals A signal s 1 : D 1 ! V is a prefix of s 2 : D 2 ! V, denoted s 1 ¹ s 2, if and only if D 1 µ D 2, and s 1 (t ) = s 2 (t ), 8 t 2 D ¹

Xiaojun Liu – Chess Seminar 13 The Order Structure of Signals For any poset T of tags and set V of values, let S (T,V ) be the set of all signals from down-sets of T to V. With the prefix order ¹, S (T,V ) is –a poset –a complete partial order (CPO) –a complete lower semilattice (i.e. any subset of signals have a “longest” common prefix)

Xiaojun Liu – Chess Seminar 14 Processes Processes are relations or functions among signal sets As functions among posets/CPOs, processes may be –Monotonic, r ¹ s ) P(r ) ¹ P(s ) –(Scott) Continuous, P( Ç D) = Ç P(D ) –Maximal P x 2 S(T1,V1)x 2 S(T1,V1)y 2 S(T2,V2)y 2 S(T2,V2) P µ S(T1,V1) £ S(T2,V2)P µ S(T1,V1) £ S(T2,V2) v 2 S(T4,V4)v 2 S(T4,V4)u 2 S(T3,V3)u 2 S(T3,V3) Q Q : S (T 3,V 3 ) ! S (T 4,V 4 )

Xiaojun Liu – Chess Seminar 15 Tagged Process Networks A direct generalization of Kahn process networks If the processes P and Q are Scott- continuous, then F is Scott-continuous. (y, z) = F(x ) where (y, z) is the least solution of the equations y = P(x, z) z = Q(y ) F x z y P Q Scott-continuity is compositional.

Xiaojun Liu – Chess Seminar 16 Outline Motivation –Heterogeneous embedded systems –The tagged signal model as a semantic metamodel Tagged process networks Timed process networks Discrete event process networks The metric structure of signals Conclusion

Xiaojun Liu – Chess Seminar 17 Timed Process Networks Each signal in a tagged process network may have its own tag set. In a timed process network, all signals share the same totally ordered tag set.

Xiaojun Liu – Chess Seminar 18 Timed Signals Let T = [0, 1 ), and V  = V [ f  g, where  represents the absence of value. S (T,V  ) is the set of timed signals. s(t) = 1 s(1-1/k) = 1, k = 1, 2, … s(k) = 1, k = 0, 1, 2, …

Xiaojun Liu – Chess Seminar 19 Timed Processes add s 1 : D 1  V  s 2 : D 2  V  s: D  V  D = D 1  D 2 s(t) = s 1 (t) +  s 2 (t) delay by 1 s 1 : D 1  V  s 2 : D 2  V  D 2 = D 1  {1}  [0, 1) s 2 (t) =s 1 (t  1), when t  1 , when t  [0, 1) biased merge s 1 : D 1  V  s 2 : D 2  V  s: D  V  D = D 1  D 2 s(t) =s 1 (t), when s 1 (t)  V s 2 (t), otherwise

Xiaojun Liu – Chess Seminar 20 A Timed Process Network Example z y delay by 1 biased merge x

Xiaojun Liu – Chess Seminar 21 A Non-Causal Process in the Network lookahead by 1 biased merge x z:z: ;  V;  V y:y: ;  V;  V

Xiaojun Liu – Chess Seminar 22 Causality A timed process P is causal if –it is monotonic, and –for all s : D 1 ! V 1, P(s ) : D 2 ! V 2, D 1 µ D 2 A timed process P is strictly causal if –it is monotonic, and –for all s : D 1 ! V 1, P(s ) : D 2 ! V 2, D 1 ½ D 2, or D 2 = T

Xiaojun Liu – Chess Seminar 23 Causality and Continuity Neither implies the other. A process may be continuous but not causal, e.g. “lookahead by 1”. A process may be causal but not continuous, e.g. one that produces an output event after counting an infinite number of input events.

Xiaojun Liu – Chess Seminar 24 Causal Timed Process Networks If processes P and Q are causal and continuous, and at least one of them is strictly causal, then F is causal and continuous. (y, z) = F(x ) where (y, z) is the least solution of the equations y = P(x, z) z = Q(y ) F x z y P Q Causality + continuity is compositional.

Xiaojun Liu – Chess Seminar 25 Outline Motivation –Heterogeneous embedded systems –The tagged signal model as a semantic metamodel Tagged process networks Timed process networks Discrete event process networks The metric structure of signals Conclusion

Xiaojun Liu – Chess Seminar 26 Discrete Event Signals A timed signal s : D ! V  is a discrete event signal if for all t 2 D, s is present at a finite number of times before t. s(k) = 1, k = 0, 1, 2, … dom(s) = [0,  ) DE, Non-Zeno s(1-1/k) = 1, k = 1, 2, … dom(s) = [0,  ) Not DE s(1-1/k) = 1, k = 1, 2, … dom(s) = [0, 1) DE, Zeno

Xiaojun Liu – Chess Seminar 27 The Order Structure of DE Signals For any totally ordered set T of tags and set V of values, the set of all DE signals S d (T,V ), with the prefix order ¹, is –a poset –a complete partial order –a complete lower semilattice (i.e. any subset of DE signals have a “longest” common prefix)

Xiaojun Liu – Chess Seminar 28 A DE Process Network Example z y delay by 1 biased merge x

Xiaojun Liu – Chess Seminar 29 Discrete Event Process Networks If DE processes P and Q are Scott- continuous, then F is a DE process and is Scott-continuous. (y, z) = F(x ) where (y, z) is the least solution of the equations y = P(x, z) z = Q(y ) F x z y P Q Discreteness + Scott-continuity is compositional.

Xiaojun Liu – Chess Seminar 30 Non-Zeno DE Process Networks If DE processes P and Q are causal and Scott- continuous, and at least one of them is strictly causal, then F is a DE process and is causal and Scott-continuous. F is non-Zeno in the sense that if x is non-Zeno, F(x) is non-Zeno. (y, z) = F(x ) where (y, z) is the least solution of the equations y = P(x, z) z = Q(y ) F x z y P Q Discreteness + Causality + Scott-continuity is compositional.

Xiaojun Liu – Chess Seminar 31 A Brief Recap Kahn Process Networks Tagged Signal Model Timed Process Networks Causality Discreteness Non-Zenoness Tagged Process Networks

Xiaojun Liu – Chess Seminar 32 Outline Motivation –Heterogeneous embedded systems –The tagged signal model as a semantic metamodel Tagged process networks Timed process networks Discrete event process networks The metric structure of signals Conclusion

Xiaojun Liu – Chess Seminar 33 Generalized Ultrametric Let X be a set and  be a poset with a minimum element 0. A function d : X £ X !  is a generalized ultrametric if for all x, y, z 2 X and  2 , d(x, y) = 0, x = y d(x, y) = d(y, x) d(x, y) ·  and d(y, z) ·  ) d(x, z) · 

Xiaojun Liu – Chess Seminar 34 A Generalized Ultrametric on Tagged Signals For any poset T of tags, the set of generalized ultrametric distances,  T, is  T = ( D (T ), ¶ ) For any tag set T and value set V, is a generalized ultrametric.

Xiaojun Liu – Chess Seminar 35 A Metric “Generator” If the tag set T is totally ordered,  T is also totally ordered. For any totally ordered set  with a minimum element  , and a function g :  T !  such that – g is monotonic – g(  ) =  ,  = 0 g ± d ds is a (generalized) ultrametric on S (T,V ).

Xiaojun Liu – Chess Seminar 36 Summary The Order Structure of Tagged Signals and Tagged Process Networks Causality, Discreteness, and Non- Zenoness in Timed Process Networks A Generalized Ultrametric on Tagged Signals A Formulation of Processes as Labeled Transition Systems for Comparing Implementations or Simulations of Tagged Processes

Xiaojun Liu – Chess Seminar 37 The End Questions?