logical time at work
play

Logical Time at Work: Capturing Data Dependencies and Platform - PowerPoint PPT Presentation

Logical Time at Work: Capturing Data Dependencies and Platform Constraints Calin Glitia Julien DeAntoni Fr ed eric Mallet INRIA Sophia Antipolis Universit e Nice Sophia Antipolis M editerran ee Forum on specification &


  1. Logical Time at Work: Capturing Data Dependencies and Platform Constraints Calin Glitia Julien DeAntoni Fr´ ed´ eric Mallet INRIA Sophia Antipolis Universit´ e Nice Sophia Antipolis M´ editerran´ ee Forum on specification & Design Languages, Sept 14th-16th, 2010, Southampton, UK

  2. Overview Give formal semantics to syntactical models Logical Time at Work: Capturing Data Dependencies and Platform Constraints 2 / 14 �

  3. Overview Give formal semantics to syntactical models (Modeling) languages are defined by: syntax : the form of a valid program/model (behavioral) semantics : how it should be interpreted Modeling languages: semantics defines apart/informal/hard coded Logical Time at Work: Capturing Data Dependencies and Platform Constraints 2 / 14 �

  4. Overview Give formal semantics to syntactical models (Modeling) languages are defined by: syntax : the form of a valid program/model (behavioral) semantics : how it should be interpreted Modeling languages: semantics defines apart/informal/hard coded Semantics should be explicit Logical Time at Work: Capturing Data Dependencies and Platform Constraints 2 / 14 �

  5. . . . more precise Unified Modeling Language ( UML ) Extended and specialized by UML profiles 1 http://www-sop.inria.fr/aoste/dev/time_square Logical Time at Work: Capturing Data Dependencies and Platform Constraints 3 / 14 �

  6. . . . more precise Unified Modeling Language ( UML ) Extended and specialized by UML profiles Captures just the syntactical aspects No formal description of how it should be interpreted 1 http://www-sop.inria.fr/aoste/dev/time_square Logical Time at Work: Capturing Data Dependencies and Platform Constraints 3 / 14 �

  7. . . . more precise Unified Modeling Language ( UML ) Extended and specialized by UML profiles Captures just the syntactical aspects No formal description of how it should be interpreted Define the semantics of syntactical models MARTE Time Model & Clock Constraint Specification Language 1 http://www-sop.inria.fr/aoste/dev/time_square Logical Time at Work: Capturing Data Dependencies and Platform Constraints 3 / 14 �

  8. . . . more precise Unified Modeling Language ( UML ) Extended and specialized by UML profiles Captures just the syntactical aspects No formal description of how it should be interpreted Define the semantics of syntactical models MARTE Time Model & Clock Constraint Specification Language Integrated Development Environment Papyrus UML + MARTE profile TimeSquare 1 for simulation/execution/analysis 1 http://www-sop.inria.fr/aoste/dev/time_square Logical Time at Work: Capturing Data Dependencies and Platform Constraints 3 / 14 �

  9. Outline Define the semantics of synchronous data-flow formalisms Syntax : UML Activity Diagram Semantics : constraint logical time relevant events as logical clocks translate language rules into clock relations Logical Time at Work: Capturing Data Dependencies and Platform Constraints 4 / 14 �

  10. Outline Define the semantics of synchronous data-flow formalisms Syntax : UML Activity Diagram Semantics : constraint logical time relevant events as logical clocks translate language rules into clock relations Encode data-dependencies of SDF models 1 Translate data-dependencies to execution dependencies 2 Multi-dimensional semantics (MDSDF) 3 Multidimensional order: environment constraints 4 External constraints 5 Logical Time at Work: Capturing Data Dependencies and Platform Constraints 4 / 14 �

  11. Clock Constraint Specification Language Modeling and Analysis of Real-Time and Embedded systems ( MARTE ) Companion of the Time Package Chronological relations between events Clocks = possibly infinite and possibly dense totally ordered sets of instants CCSL relations: CCSL clock expressions: precedence ( ≺ ) filteredBy ( � ) – by a binary periodic word coincidence ( ≡ ) delay ( $ ) – by an integer value exclusion ( # ) Logical Time at Work: Capturing Data Dependencies and Platform Constraints 5 / 14 �

  12. Data-flow models SDF model as an UML activity diagram Syntax: computational elements – actors Logical Time at Work: Capturing Data Dependencies and Platform Constraints 6 / 14 �

  13. Data-flow models SDF model as an UML activity diagram Syntax: computational elements – actors FIFO channels – arcs Logical Time at Work: Capturing Data Dependencies and Platform Constraints 6 / 14 �

  14. Data-flow models SDF model as an UML activity diagram Syntax: computational elements – actors FIFO channels – arcs initial values – delays Logical Time at Work: Capturing Data Dependencies and Platform Constraints 6 / 14 �

  15. Data-flow models SDF model as an UML activity diagram Syntax: computational elements – actors FIFO channels – arcs initial values – delays Synchronous data-flow semantics: fixed amount of data elements produces/consumed at each firing local producer/consumer rules defined by each arc Logical Time at Work: Capturing Data Dependencies and Platform Constraints 6 / 14 �

  16. SDF: data dependency semantics General representation of a SDF arc Relevant events in the system: Actor firings Element-wise write and read events on arcs Logical Time at Work: Capturing Data Dependencies and Platform Constraints 7 / 14 �

  17. SDF: data dependency semantics General representation of a SDF arc Each actor firing is followed by write weight write events on each outgoing arc Logical Time at Work: Capturing Data Dependencies and Platform Constraints 7 / 14 �

  18. SDF: data dependency semantics General representation of a SDF arc On each arc, read events (delayed by the initial value) must follow write events Logical Time at Work: Capturing Data Dependencies and Platform Constraints 7 / 14 �

  19. SDF: data dependency semantics General representation of a SDF arc read weight read events on each of its ingoing arc precede an actor firing Logical Time at Work: Capturing Data Dependencies and Platform Constraints 7 / 14 �

  20. SDF: data dependency semantics General representation of a SDF arc � � 1 . 0 w − 1 � ω � producer = write � 1 write ≺ ( read $ i ) 2 � � 0 r − 1 . 1 � ω � ≺ consumer read � 3 Logical Time at Work: Capturing Data Dependencies and Platform Constraints 7 / 14 �

  21. SDF: execution dependency semantics General representation of a SDF arc Direct precedence ( computed ) between the two clocks Logical Time at Work: Capturing Data Dependencies and Platform Constraints 8 / 14 �

  22. SDF: execution dependency semantics Example of SDF arc Direct precedence ( computed ) between the two clocks ( Clock producer � (011) ω ) ≺ ( Clock consumer $ 1) Logical Time at Work: Capturing Data Dependencies and Platform Constraints 8 / 14 �

  23. Direct precedence computation algorithm Iterative algorithm to compute the parameters of the general execution precedence relation: ( Clock producer � P ) ≺ (( Clock consumer $ indep ) � C ) Logical Time at Work: Capturing Data Dependencies and Platform Constraints 9 / 14 �

  24. Direct precedence computation algorithm Iterative algorithm to compute the parameters of the general execution precedence relation: ( Clock producer � P ) ≺ (( Clock consumer $ indep ) � C ) indep = ⌊ initial weight / read weight ⌋ initial = initial weight mod read weight Logical Time at Work: Capturing Data Dependencies and Platform Constraints 9 / 14 �

  25. Direct precedence computation algorithm Iterative algorithm to compute the parameters of the general execution precedence relation: ( Clock producer � P ) ≺ (( Clock consumer $ indep ) � C ) indep = ⌊ initial weight / read weight ⌋ = ⌊ 7 / 6 ⌋ = 1 initial = initial weight mod read weight = 7 mod 6 = 1 initial +4 +4 -6+4 -6+4 tokens 1 5 9 7 5 < 6 > 6 > 6 done binary ( 0 1 1 ) Logical Time at Work: Capturing Data Dependencies and Platform Constraints 9 / 14 �

  26. From local rules to global functionality ( Actor A � (011) ω ) ≺ ( Actor B $ 1) Logical Time at Work: Capturing Data Dependencies and Platform Constraints 10 / 14 �

  27. From local rules to global functionality Logical Time at Work: Capturing Data Dependencies and Platform Constraints 10 / 14 �

  28. Encoding MDSDF in CCSL straightforward multi-D extension of 1-D SDF quasi-independent relations producer/consumer by dimension � � 1 . 0 2 � ω � � � 1 . 0 2 � ω � in 1 ≺ hF 1 ≺ hF 1 � vF 1 � � ω � � � 0 8 . 1 in 2 ≺ hF 2 hF 2 � ≺ vF 2 Logical Time at Work: Capturing Data Dependencies and Platform Constraints 11 / 14 �

  29. External constraints multidimensional order – environment constraints in 1 = ( s � 1 . (0) ω ) in 2 = s � ω � � hF � 1 3 . (0) ω � � � 0 2 . 1 hF 1 = hF 2 = hF � 1 . 0 8 � ω � � vF � 1 9 . (0) ω � � � vF 1 = vF 2 = vF � execution platform constraints proc = hF + vF hF # vF Logical Time at Work: Capturing Data Dependencies and Platform Constraints 12 / 14 �

  30. To resume . . . Formal specification encoding the entire set of schedules cor- responding to a correct execution Generally, the behaviour of a system can be seen as: a set of operations applied to an initial state into a certain order (execution dependencies) Logical Time at Work: Capturing Data Dependencies and Platform Constraints 13 / 14 �

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend