Run-Time Models for Measurement & Control Systems and Their Support in Ptolemy II Jie Liu EECS, UC Berkeley 9/13/2000 Agilent Technologies.

Slides:



Advertisements
Similar presentations
Requirements on the Execution of Kahn Process Networks Marc Geilen and Twan Basten 11 April 2003 /e.
Advertisements

Discrete Event Models: Getting the Semantics Right Edward A. Lee Robert S. Pepper Distinguished Professor Chair of EECS UC Berkeley With thanks to Xioajun.
Event Driven Real-Time Programming CHESS Review University of California, Berkeley, USA May 10, 2004 Arkadeb Ghosal Joint work with Marco A. Sanvido, Christoph.
PTIDES Project Overview
Overview of PTIDES Project
2/11/2010 BEARS 2010 On PTIDES Programming Model John Eidson Jeff C. Jensen Edward A. Lee Slobodan Matic Jia Zou PtidyOS.
PTIDES: Programming Temporally Integrated Distributed Embedded Systems Yang Zhao, EECS, UC Berkeley Edward A. Lee, EECS, UC Berkeley Jie Liu, Microsoft.
Process-Based Software Components for Networked Embedded Systems Edward A. Lee, PI UC Berkeley Core Technical Team (Mobies, SEC, and GSRC): Christopher.
Architecture Modeling and Analysis for Embedded Systems Oleg Sokolsky CIS700 Fall 2005.
Berkeley, CA, March 12, 2002 Modal Models in Vehicle-Vehicle Coordination Control Xiaojun Liu The Ptolemy Group EECS Department, UC Berkeley.
Integrated Design and Analysis Tools for Software-Based Control Systems Shankar Sastry (PI) Tom Henzinger Edward Lee University of California, Berkeley.
NSF Foundations of Hybrid and Embedded Software Systems UC Berkeley: Chess Vanderbilt University: ISIS University of Memphis: MSI A New System Science.
Type System, March 12, Data Types and Behavioral Types Yuhong Xiong Edward A. Lee Department of Electrical Engineering and Computer Sciences University.
7th Biennial Ptolemy Miniconference Berkeley, CA February 13, 2007 Leveraging Synchronous Language Principles for Hybrid System Models Haiyang Zheng and.
TinyGALS: A Programming Model for Event-Driven Embedded Systems Elaine Cheong UC Berkeley Ptolemy Group / PARC Judy Liebman (LLNL) Jie Liu, Feng Zhao (PARC)
Scheduling for Embedded Real-Time Systems Amit Mahajan and Haibo.
Causality Interface  Declares the dependency that output events have on input events.  D is an ordered set associated with the min ( ) and plus ( ) operators.
Component-Based Design of Embedded Control Systems Luca Dealfaro Chamberlain Fong Tom Henzinger Christopher Hylands John Koo Edward A. Lee Jie Liu Xiaojun.
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.
Review of “Embedded Software” by E.A. Lee Katherine Barrow Vladimir Jakobac.
CSE Fall Introduction - 1 What is an Embedded Systems  Its not a desktop system  Fixed or semi-fixed functionality (not user programmable)
AR vs. CFSM Abdallah Tabbara. CFSM Overview 4 CFSM has: –a finite state machine part –a data computation part –a locally synchronous behavior transitions.
EECE Hybrid and Embedded Systems: Computation T. John Koo, Ph.D. Institute for Software Integrated Systems Department of Electrical Engineering and.
Mixing Models of Computation Jie Liu Palo Alto Research Center (PARC) 3333 Coyote Hill Rd., Palo Alto, CA joint work with Prof. Edward.
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.
Discrete Event Models: Getting the Semantics Right Edward A. Lee Robert S. Pepper Distinguished Professor Chair of EECS UC Berkeley With special thanks.
Expressing Giotto in xGiotto and related schedulability problems Class Project Presentation Concurrent Models of Computation for Embedded Software University.
MoBIES PI-Meeting, July 2001, Jackson Hole Controller Design Using Multiple Models of Computation Edward Lee Johan Eker with thanks to Paul Griffiths,
1 Oct 2, 2003 Design Optimization of Mixed Time/Event-Triggered Distributed Embedded Systems Traian Pop, Petru Eles, Zebo Peng Embedded Systems Laboratory.
1 of 14 1 Analysis and Synthesis of Communication-Intensive Heterogeneous Real-Time Systems Paul Pop Computer and Information Science Dept. Linköpings.
NSF Foundations of Hybrid and Embedded Software Systems UC Berkeley: Chess Vanderbilt University: ISIS University of Memphis: MSI A New System Science.
Ptolemy Miniconference May 9, 2003 Berkeley, CA Ptolemy Project Plans for the Future Edward A. Lee Professor Ptolemy Project Director.
Heterochronous Dataflow in Ptolemy II Brian K. Vogel EE249 Project Presentation, Dec. 4, 1999.
SEC PI Meeting Annapolis, May 8-9, 2001 Component-Based Design of Embedded Control Systems Edward A. Lee & Jie Liu UC Berkeley with thanks to the entire.
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.
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.
Holistic Scheduling and Analysis of Mixed Time/Event-Triggered Distributed Embedded System Traian Pop, Petru Eles, Zebo Peng EE249 Discussion Paper Review.
By Group: Ghassan Abdo Rayyashi Anas to’meh Supervised by Dr. Lo’ai Tawalbeh.
CprE 458/558: Real-Time Systems
5 th Biennial Ptolemy Miniconference Berkeley, CA, May 9, 2003 The Component Interaction Domain: Modeling Event-Driven and Demand- Driven Applications.
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.
A Tool for Describing and Evaluating Hierarchical Real-Time Bus Scheduling Policies Author: Trevor Meyerowitz, Claudio Pinello, Alberto DAC2003, June 24,2003.
Embedded Software: Building the Foundations Edward A. Lee Professor, Chair of EE, and Associate Chair of EECS CHESS: Center for Hybrid and Embedded Software.
EMBEDDED SOFTWARE Team victorious Team Victorious.
Real-Time Software Design Yonsei University 2 nd Semester, 2014 Sanghyun Park.
Composing Models of Computation in Kepler/Ptolemy II
1 소프트웨어공학 강좌 Chap 11. Real-time software Design - Designing embedded software systems whose behaviour is subject to time constraints -
CS4730 Real-Time Systems and Modeling Fall 2010 José M. Garrido Department of Computer Science & Information Systems Kennesaw State University.
© Oxford University Press 2011 DISTRIBUTED COMPUTING Sunita Mahajan Sunita Mahajan, Principal, Institute of Computer Science, MET League of Colleges, Mumbai.
1 of 14 1/15 Synthesis-driven Derivation of Process Graphs from Functional Blocks for Time-Triggered Embedded Systems Master thesis Student: Ghennadii.
Real-Time Operating Systems for Embedded Computing 李姿宜 R ,06,10.
Chapter 101 Multiprocessor and Real- Time Scheduling Chapter 10.
Reference: Ian Sommerville, Chap 15  Systems which monitor and control their environment.  Sometimes associated with hardware devices ◦ Sensors: Collect.
CONTI'20041 Event Management in Distributed Control Systems Gheorghe Sebestyen Technical University of Cluj-Napoca Computers Department.
C. André, J. Boucaron, A. Coadou, J. DeAntoni,
CS4730 Real-Time Systems and Modeling Fall 2010 José M. Garrido Department of Computer Science & Information Systems Kennesaw State University.
Winter 2007SEG2101 Chapter 111 Chapter 11 Implementation Design.
What’s Ahead for Embedded Software? (Wed) Gilsoo Kim
Real-Time Operating System Design
CS 5991 Presentation Ptolemy: A Framework For Simulating and Prototyping Heterogeneous Systems.
Embedded Real-Time Systems Processing interrupts Lecturer Department University.
©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 10Slide 1 Chapter 5:Architectural Design l Establishing the overall structure of a software.
Elaine Cheong Yang Zhao December 8, 2001
Gabor Madl Ph.D. Candidate, UC Irvine Advisor: Nikil Dutt
Modeling and Simulation of TTEthernet
Model Transformation with the Ptera Controller
Presentation transcript:

Run-Time Models for Measurement & Control Systems and Their Support in Ptolemy II Jie Liu EECS, UC Berkeley 9/13/2000 Agilent Technologies Research Intern Report

Outline Overview and Classification of Run-Time Models for MC systems Run-time models in Ptolemy II – Synchronous Dataflow – Finite State Machine – Real-Time Processes – Time-Synced Discrete Event Composing run-time models Demos new

Measurement and Control Systems are Distributed, Real-Time, & Reactive Distributed – Sensor nodes – Computational nodes – Actuator nodes – Communication system Reactive – React to its environment at the speed of the environment Real-Time – Directly Interact with Physical World – Constrains on response delays

Run-Time Software in Computational Nodes Aggregation of interacting software components A model of run-time software defines: – What the components are – How they execute – How they exchange messages Models provide properties that can be used to reason about safety, liveness, performance, and scalability. AB C

Messages in MC Systems Message Source – Internal – External Acquisition Style – Push – Pull Message Semantics – Event: Every event matters. – State: Only the newest state matters.

Event-Triggered and Time-Triggered Architectures What triggers a reaction? – Event Unpredictable Interrupts Easy to distribute – Time Predictable Polled Hard to distribute # of events/second system load ETA TTA H. Kopetz, Real-Time Systems: Design Principles for Distributed Embedded Applications

Scheduling in Real-Time Systems Static Scheduling – Fixed order of execution (non-prioritized) – Predictable response time – Urgent events may be delayed Dynamic Scheduling – Prioritized execution Static priority v.s. dynamic priority – Preemptive or Non-preemptive

Run-Time Models in Ptolemy II modelmessage semantics triggerschedule preemptive timed SDFeventtimestatic-no FSMeventtime/ event dynamicno RTPstatetime/ event dynamicyesno TSDEevent dynamicnoyes

Synchronous Dataflow (SDF) modelmessage semantics triggerschedule preemptive timed SDFeventtimestatic-no FSMeventtime/ event dynamicno RTPstateeventdynamicyesno TSDEeventtime/ event dynamicnoyes

Synchronous Dataflow Analysis: Match well with time-triggered approach Not so expressive Hard to handle emergent events BD C A Components: Functional blocks Communication: FIFO queue Requirement: Fixed consumption and production rate Execution: Static scheduled (AAACBBD) safetyliveness bounded memory response time 

Finite State Machine (FSM) modelmessage semantics triggerschedule preemptive timed SDFeventtimestatic-no FSMeventtime/ event dynamicno RTPstateeventdynamicyesno TSDEeventtime/ event dynamicnoyes

Finite State Machine A C B guard/action Components: states Communication: transitions Requirement: finite states, atomic transitions Execution: events trigger transitions Analysis: Match well with both ET and TT architectures Not so expressive Sequential safetyliveness bounded memory response time  some

Real-Time Processes (RTP) modelmessage semantics triggerschedule preemptive timed SDFeventtimestatic-no FSMeventtime/ event dynamicno RTPstateeventdynamicyesno TSDEeventtime/ event dynamicnoyes

Real-Time Processes BD CA Components: processes Communication: state semantics Requirement: static priorities blocking read Execution: preemptive, event driven Analysis: Match well with ET architectures Easy for handling urgent events Nondeterministic, Not predictable. safetyliveness bounded memory response time  some

Time-Synced Discrete Event (TSDE) modelmessage semantics triggerschedule preemptive timed SDFeventtimestatic-no FSMeventtime/ event dynamicno RTPstateeventdynamicyesno TSDEeventtime/ event dynamicnoyes

Discrete Event (DE) Global notion of model time Components: functional blocks react to input events Communication: event = (time_tag, data_token) Require: Components are causal Execution: Event-driven execution Global event queue, sorting events in their chronological order B CA

Faster-Than-Real-Time Computation Not all events have real-world counter parts – Map between model time and real time only when necessary If we have: – Global notion of the “real” time (time-sync protocol) – Time-stamped sensor data – “Time-bomb” feature We benefit: – Tolerance to communication and computation jitters – Easiness of distributing and scaling up – Possibility of distributed synchronized operations Sensor Computer x x Actuator

Causality Subtlety Event in the past! Sensor Computer xx Actuator xxx x x Conditions to resolve the causality subtlety – Synchronous/Reactive assumption – Predictable inputs assumption – Side-effect-free assumption – Rollbackable computation assumption

Time-Synced Discrete Event Analysis Match with ET and TT architectures Directly reason about time Need infrastructure support Have causality subtlety safetyliveness bounded memory response time  some

Example: Discrete Event Control N + NCAP Excite the beam using zero-crossing events Time-stamped event triggering Time-Synced sensor, computation, and actuator

Example: Control Law Time-stamped sensor data Estimate the peak time. Control magnitude by setting time bombs Adaptive to change of physical dynamics Tolerate communication and computation latency sensor actuator up edge down edge control law /2 ’/2 ’

Composing Multiple Models controller b c a mode d controller actuator smoother actuator sensor d

Example: A Data Acquisition & Analysis System N + A B NCAP Time-triggered and event-triggered sequential operations Time-synced sensor data acquisition Composition of timed and untimed models

Example: Top-level sequential operations Settling Data Acquisition Analysis ready complete finish

Example: Settling Mode SDF – untimed model Streamed-data as fast as it can Best-effort computation Event detection sensor1 sensor2 |max-min|<d && ready SDF

Example: Acquisition Mode TimeSyncDE Synchronized data acq Faster-than-real-time computation Time-bombed reader and writer ReadBurst1 ReadBurst2 D1 D2 D3TimeBomb GlobalTime suffix complete TSDE

Example: Analysis Mode SDF Implicitly timed Equidistance-sampled data signal processing log1 log2 FFT scope 512 SDF ramp =? finish 1

Conclusion There are a variety of run-time software models Real-time software  prioritized preemptive multitask. Time-Synced Architecture opens new opportunities Choosing models are application dependent Usually need to compose more than one model Ptolemy II is a laboratory for exploring the models and composition

Acknowledgement Agilent Systems and Solutions Lab Stan JeffersonSteve Greenbaum John EidsonRandy Coverstone Stan WoodsHans Sitte Jeff BurchBruce Hamilton Jerry Liu Ptolemy Group THANK YOU!