6th Biennial Ptolemy Miniconference Berkeley, CA May 12, 2005 Some Developments in the Tagged Signal Model Xiaojun Liu With J. Adam Cataldo, Edward A.

Slides:



Advertisements
Similar presentations
Event structures Mauro Piccolo. Interleaving Models Trace Languages:  computation described through a non-deterministic choice between all sequential.
Advertisements

Hybrid Systems Presented by: Arnab De Anand S. An Intuitive Introduction to Hybrid Systems Discrete program with an analog environment. What does it mean?
Week 21 Basic Set Theory A set is a collection of elements. Use capital letters, A, B, C to denotes sets and small letters a 1, a 2, … to denote the elements.
The Operational Semantics of Hybrid Systems Edward A. Lee Professor, Chair of EE, and Associate Chair of EECS, UC Berkeley With contributions from: Adam.
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.
EECS 20 Lecture 38 (April 27, 2001) Tom Henzinger Review.
Discrete Event Models: Getting the Semantics Right Edward A. Lee Robert S. Pepper Distinguished Professor Chair of EECS UC Berkeley With thanks to Xioajun.
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,
Berkeley, CA, March 12, 2002 Modal Models in Vehicle-Vehicle Coordination Control Xiaojun Liu The Ptolemy Group EECS Department, UC Berkeley.
Programming Language Semantics Denotational Semantics Chapter 5 Based on a lecture by Martin Abadi.
7th Biennial Ptolemy Miniconference Berkeley, CA February 13, 2007 Leveraging Synchronous Language Principles for Hybrid System Models Haiyang Zheng and.
6th Biennial Ptolemy Miniconference Berkeley, CA May 12, 2005 Future Directions Edward A. Lee.
A denotational framework for comparing models of computation Daniele Gasperini.
Using Interfaces to Analyze Compositionality Haiyang Zheng and Rachel Zhou EE290N Class Project Presentation Dec. 10, 2004.
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 November 21, 2005 Berkeley, CA Edited and presented by Advanced Tool Architectures Edward A. Lee UC Berkeley.
Programming Language Semantics Denotational Semantics Chapter 5 Part II.
Money Networks Manage your money with synchronous-reactive money networks. By Adam Cataldo.
6th Biennial Ptolemy Miniconference Berkeley, CA May 12, 2005 Operational Semantics of Hybrid Systems Haiyang Zheng and Edward A. Lee With contributions.
Chess Review May 11, 2005 Berkeley, CA Operational Semantics of Hybrid Systems Haiyang Zheng and Edward A. Lee With contributions from the Ptolemy group.
7th Biennial Ptolemy Miniconference Berkeley, CA February 13, 2007 Correctness in Causal Systems Eleftherios Matsikoudis UC Berkeley.
Kahn’s Principle and the Semantics of Discrete Event Systems Xiaojun Liu EE290N Class Project December 10, 2004.
Technische Universität München Institut für Informatik D München, Germany Realizability of System Interface Specifications Manfred Broy.
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.
Data Flow Analysis Compiler Design Nov. 8, 2005.
Semantic Foundation of the Tagged Signal Model Xiaojun Liu Sun Microsystems, Inc. Chess Seminar February 21, 2006.
Course Outline Traditional Static Program Analysis –Theory Compiler Optimizations; Control Flow Graphs, Data-flow Analysis Data-flow Frameworks --- today’s.
Chess Review May 11, 2005 Berkeley, CA Discrete-Event Systems: Generalizing Metric Spaces and Fixed-Point Semantics Adam Cataldo Edward Lee Xiaojun Liu.
7th Biennial Ptolemy Miniconference Berkeley, CA February 13, 2007 PTIDES: A Programming Model for Time- Synchronized Distributed Real-time Systems Yang.
1 Collision Avoidance Systems: Computing Controllers which Prevent Collisions By Adam Cataldo Advisor: Edward Lee Committee: Shankar Sastry, Pravin Varaiya,
Review of Probability and Random Processes
TIME 2014 Technology in Mathematics Education July 1 st - 5 th 2014, Krems, Austria.
Programming Language Semantics Denotational Semantics Chapter 5 Part III Based on a lecture by Martin Abadi.
Department of Electrical Engineering and Computer Sciences University of California at Berkeley The Ptolemy II Framework for Visual Languages Xiaojun Liu.
Operational Semantics of Hybrid Systems Edward A. Lee and Haiyang Zheng With contributions from: Adam Cataldo, Jie Liu, Xiaojun Liu, Eleftherios Matsikoudis.
Solving fixpoint equations
Program Analysis and Verification
Zhongguo Liu_Biomedical Engineering_Shandong Univ. Chapter 8 The Discrete Fourier Transform Zhongguo Liu Biomedical Engineering School of Control.
Overview Concept Learning Representation Inductive Learning Hypothesis
CS201: Data Structures and Discrete Mathematics I
Chapter 2: Basic Structures: Sets, Functions, Sequences, and Sums (1)
Lecture 4: Electrical Circuits
Actor Networks Edward A. Lee Robert S. Pepper Distinguished Professor Chair of EECS UC Berkeley Invited Talk Workshop Foundations and Applications of Component-based.
ES 240: Scientific and Engineering Computation. Chapter 1 Chapter 1: Mathematical Modeling, Numerical Methods and Problem Solving Uchechukwu Ofoegbu Temple.
Discrete Mathematics Set.
1 Review of Probability and Random Processes. 2 Importance of Random Processes Random variables and processes talk about quantities and signals which.
13.1 Sequences. Definition of a Sequence 2, 5, 8, 11, 14, …, 3n-1, … A sequence is a list. A sequence is a function whose domain is the set of natural.
1 Iterative Program Analysis Part II Mathematical Background Mooly Sagiv Tel Aviv University
Chaotic Iterations Mooly Sagiv Tel Aviv University Textbook: Principles of Program Analysis.
Chaotic Iterations Mooly Sagiv Tel Aviv University Textbook: Principles of Program Analysis.
Ptolemy Project Vision Edward A. Lee Robert S. Pepper Distinguished Professor Eighth Biennial Ptolemy Miniconference April 16, 2009 Berkeley, CA, USA.
Analysis of Linear Time Invariant (LTI) Systems
Chapter 5 Relations and Operations
CSE15 Discrete Mathematics 05/03/17
Signals and systems By Dr. Amin Danial Asham.
Digital Control Systems (DCS)
Digital Control Systems (DCS)
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
Signals and Systems Lecture 2
Concurrent Models of Computation
Unit 3 Vocabulary.
Sets and Probabilistic Models
Presentation transcript:

6th Biennial Ptolemy Miniconference Berkeley, CA May 12, 2005 Some Developments in the Tagged Signal Model Xiaojun Liu With J. Adam Cataldo, Edward A. Lee, Eleftherios D. Matsikoudis, and Haiyang Zheng

Xiaojun Liu, Berkeley 2 The Tagged Signal Model A set of tags T, e.g. T = [0,  ) A set of values V, e.g. V = N An event e is a pair of a tag and a value: e = (t, v) A signal s is a set of events, e.g. clock 1 = {(0.0, 1), (1.0, 1), (2.0, 1), …} A process P is a relation on signals P s3s3 s1s1 s2s2 P = { (s 1, s 2, s 3 ) | s 1 + s 2 – s 3 = 0 } “A Framework for Comparing Models of Computation,” Lee and Sangiovanni-Vincentelli, 1998

Xiaojun Liu, Berkeley 3 Signals and Processes SignalsProcesses Physics Velocities, Accelerations, and Forces Newton’s Laws Electrical Engineering Voltages and Currents Resistors and Capacitors, Kirchhoff’s Laws Computer Science StreamsDataflow Processes

Xiaojun Liu, Berkeley 4 Approach Study the mathematical structure of signal sets Partial order/CPO, topological/metric space, algebra Study the properties of processes as relations/functions on signals Continuity Causality Composition From the declarative to the imperative

Xiaojun Liu, Berkeley 5 Signals Let T, a poset, be the set of all tags. Let D (T) be the set of down-sets of T. A signal is a function from a down-set D  D (T) to some value set V, signal: D  V Let S (T, V) be the set of all signals from down- sets of T to V.  D ( [0,  ) )  D ( [0,  ) ) 0123

Xiaojun Liu, Berkeley 6 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),  t  D 

Xiaojun Liu, Berkeley 7 Prefix Order − Properties For any poset T of tags and set V of values, S (T, V) with the prefix order is a poset a CPO a complete lower semilattice (i.e. any subset of signals have a “longest” common prefix)

Xiaojun Liu, Berkeley 8 A direct generalization of Kahn process networks If 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 Tagged Process Networks x z y P Q

Xiaojun Liu, Berkeley 9 Timed Signals Let T = [0,  ), and V  = V  {  }, 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, Berkeley 10 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, Berkeley 11 A Timed Process Network z y delay by 1 biased merge x

Xiaojun Liu, Berkeley 12 A Non-Causal Process in the Network y:y: lookahead by 1 biased merge x   V  V z:z:   V  V

Xiaojun Liu, Berkeley 13 Causality A timed process P is causal if It is monotonic, i.e. for all s 1, s 2 s 1  s 2  P(s 1 )  P(s 2 ) 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 = [0,  )

Xiaojun Liu, Berkeley 14 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, Berkeley 15 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

Xiaojun Liu, Berkeley 16 Discrete Event Signals A timed signal s: D  V  is a discrete event signal if for all t  D s -1 (V)  [0, t] is a finite set 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, Berkeley 17 Discrete Event Signals - Properties For T = [0,  ) and any set V of values, the set of all discrete event signals with the prefix order is a poset a CPO a complete lower semilattice (i.e. any subset of signals have a “longest” common prefix)

Xiaojun Liu, Berkeley 18 A Discrete Event Process Network z y delay by 1 biased merge x

Xiaojun Liu, Berkeley 19 A Sufficient Condition for Non-Zeno Composition If processes P and Q are discrete, causal and continuous, and at least one of them is strictly causal, then F is discrete, causal and 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

Xiaojun Liu, Berkeley 20 Conclusions Progress in developing the foundation of the tagged signal model Extend Kahn process networks to tagged process networks Develop discrete event semantics as a special case of tagged process networks Develop a sufficient condition for the non-Zeno composition of discrete event processes