Model Transformation with the Ptera Controller

Slides:



Advertisements
Similar presentations
Semantic Translation of Simulink/Stateflow Models to Hybrid Automata using Graph Transformations A. Agarwal, Gy. Simon, G. Karsai ISIS, Vanderbilt University.
Advertisements

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.
Rule Based Operational Semantics Specification in Ptolemy Yanwar Asrigo COMP 763B - Modeling and Simulation Based Design 30 th April 2008.
DATAFLOW PROCESS NETWORKS Edward A. Lee Thomas M. Parks.
Object-Oriented Analysis and Design
The P-Calculus Supratik Mukhopadhyay PEMWS-2 April 6 th 2011.
PTIDES: Programming Temporally Integrated Distributed Embedded Systems Yang Zhao, EECS, UC Berkeley Edward A. Lee, EECS, UC Berkeley Jie Liu, Microsoft.
Berkeley, CA, March 12, 2002 Modal Models in Vehicle-Vehicle Coordination Control Xiaojun Liu The Ptolemy Group EECS Department, UC Berkeley.
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.
February 11, 2010 Center for Hybrid and Embedded Software Systems Ptolemy II - Heterogeneous Concurrent Modeling and Design.
Cpeg421-08S/final-review1 Course Review Tom St. John.
February 12, 2009 Center for Hybrid and Embedded Software Systems Encapsulated Model Transformation Rule A transformation.
FunState – An Internal Design Representation for Codesign A model that enables representations of different types of system components. Mixture of functional.
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.
Chess Review November 21, 2005 Berkeley, CA Edited and presented by Causality Interfaces and Compositional Causality Analysis Rachel Zhou UC Berkeley.
Hierarchical Reconfiguration of Dataflow Graphs Stephen Neuendorffer UC Berkeley Poster Preview May 10, 2004.
Run-Time Models for Measurement & Control Systems and Their Support in Ptolemy II Jie Liu EECS, UC Berkeley 9/13/2000 Agilent Technologies.
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.
February 12, 2009 Center for Hybrid and Embedded Software Systems Model Transformation Using ERG Controller Thomas H. Feng.
Tool Integration of Ptolemy II EE290N Class Project Haiyang Zheng May
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.
[ §6 : 1 ] 6. Basic Methods II Overview 6.1 Models 6.2 Taxonomy 6.3 Finite State Model 6.4 State Transition Model 6.5 Dataflow Model 6.6 User Manual.
Course Outline DayContents Day 1 Introduction Motivation, definitions, properties of embedded systems, outline of the current course How to specify embedded.
Voicu Groza, 2008 SITE, HARDWARE/SOFTWARE CODESIGN OF EMBEDDED SYSTEMS Hardware/Software Codesign of Embedded Systems Voicu Groza SITE Hall, Room.
Composing Models of Computation in Kepler/Ptolemy II
AToM 3 : A Tool for Multi- Formalism and Meta-Modelling Juan de Lara (1,2) Hans Vangheluwe (2) (1) ETS Informática Universidad Autónoma de Madrid Madrid,
Dart: A Meta-Level Object-Oriented Framework for Task-Specific Behavior Modeling by Domain Experts R. Razavi et al..OOPSLA Workshop DSML‘ Dart:
Transformation of Timed Automata into Mixed Integer Linear Programs Sebastian Panek.
Validated Model Transformation Tihamér Levendovszky Budapest University of Technology and Economics Department of Automation and Applied Informatics Applied.
Web Services Flow Language Guoqiang Wang Oct 7, 2002.
Dynamic Program Analysis with Partial Execution and Summary Thomas Huining Feng CHESS, UC Berkeley May 8, 2007 CS.
C. André, J. Boucaron, A. Coadou, J. DeAntoni,
The 14 th IEEE Real-Time and Embedded Technology and Applications Symposium, April 2008 Real-Time Distributed Discrete-Event Execution with Fault Tolerance.
Visual Specification of a DSL Processor Debugger Tamás Mészáros and Tihamér Levendovszky Budapest University of Technology and Economics.
Week 04 Object Oriented Analysis and Designing. What is a model? A model is quicker and easier to build A model can be used in simulations, to learn more.
Incremental Checkpointing with Application to Distributed Discrete Event Simulation Thomas Huining Feng and Edward A. Lee {tfeng,
Chapter 7 Complex Similarity Topix. About this chapter Extends previous discussed methods The reader can choose to read about only specific methods, depending.
Control of Dynamic Discrete-Event Systems Lenko Grigorov Master’s Thesis, QU supervisor: Dr. Karen Rudie.
Elaine Cheong Yang Zhao December 8, 2001
Ptolemy II - Heterogeneous Concurrent Modeling and Design in Java
Design Patterns Damian Gordon.
2. Specification and Modeling
State Machine Diagrams
Event Relation Graphs and Extensions in Ptolemy II
Ptolemy II - Heterogeneous Concurrent Modeling and Design in Java
Associative Query Answering via Query Feature Similarity
Presentation by Julie Betlach 7/02/2009
Model Transformation with Hierarchical Discrete-Event Control
Compositionality in Synchronous Data Flow
Princess Nourah bint Abdulrahman University
Model Transformation with Hierarchical Discrete-Event Control
Shanna-Shaye Forbes Ben Lickly Man-Kit Leung
Retargetable Model-Based Code Generation in Ptolemy II
Princess Nourah bint Abdulrahman University
States.
Unified Modeling Language
Ptolemy II - Heterogeneous Concurrent Modeling and Design in Java
Modeling Heterogeneous Semantics in Ptolemy
UML Interaction diagrams
Ptolemy II - Heterogeneous Concurrent Modeling and Design in Java
Hybrid and Embedded Systems: Generalized Hybrid Systems
States.
SYNTAX DIRECTED DEFINITION
Teori Bahasa dan Automata Lecture 9: Contex-Free Grammars
Presented By: Darlene Banta
MECH 3550 : Simulation & Visualization
Presentation transcript:

Model Transformation with the Ptera Controller Thomas Huining Feng CHESS, EECS, UC Berkeley

Motivating Sinewave Example An SDF model to generate a sine wave with Automatic partial evaluation improves performance sin( 2πFn ) Fs

Intuition of Model Transformation Pattern matching – find a context-free part of the model

Intuition of Model Transformation Pattern matching – find a context-free part of the model Replace it with a more compact design (value statically computed)

Intuition of Model Transformation Pattern matching – find a context-free part of the model Replace it with a more compact design (value statically computed) Continue with similar transformations until fixpoint

Ptera (Ptolemy Event Relationship Actor) Workflow RemoveMultiply SimplifyMultiply SimplifyDivide

Syntax and Semantics for Ptera Based on event graphs [Schruben 1983] Visual representation Nodes are events Edges are scheduling relations Variable Final Event Action Guard Initial Event Delay

Syntax and Semantics of Ptera Based on event graphs [Schruben 1983] Visual representation Nodes are events Edges are scheduling relations Execution with an unbounded event queue 0.0 1.0 1.0 1.0 1.0 End Increase Start Increase Increase … Increase 0.0 1.0 2.0 10.0 10.0 time

Hierarchical Model Each event can be associated with a submodel A submodel is itself a model No difference in syntax Conceptually equipped with a separate event queue Model time is global When Compute occurs at time 1, the submodel starts When the submodel ends at time t (t ≥ 2), Compute is finished End is processed at time t + 1

Events for Model Transformation A simple workflow for repeating a transformation

The Sinewave Optimizer RemoveMultiply SimplifyMultiply SimplifyDivide

The Sinewave Optimizer Hierarchical workflow breaks down complexity All transformation rules access the shared Model variable. No need for messaging. Order of the 3 transformations is unimportant (but a deterministic order exists) When model time is synchronized with real time, execution produces animation

Conclusion Transformation rule specified in the modeling language The control is essentially a model (so we call it model-based transformation) The Ptera model of computation Supports hierarchical workflows Better expressiveness than state machines and control flow diagrams Shares data with variables instead of messages Permits heterogeneous composition (with DE, FSM, dataflow, etc) Applications Model optimization Model construction Design refactoring Ptera can also simulate discrete-event systems Available from Ptolemy II 8.0 More demos in ptolemy/actor/gt/demo, ptolemy/domains/ptera/demo