How do PLC look like? What s special about PLC? What is a PLC? /50 2/50 5/50 6/50 3/ Splc main
|
|
- Barnaby Wright
- 5 years ago
- Views:
Transcription
1 (public domain) How do PLC look like? Albert-Ludwigs-Universität Freiburg, Germany Dr. Bernd Westphal Lecture 09: PLC Automata Real-ime Systems 4/50 (CC nc-sa 2.5, Ulli1105) Sprelim Contents & Goals Last Lecture: DC Implementables. A conoller for the gas burner. his Lecture: Educational Objectives: Capabilities for following tasks/questions. What is the philosophy of PLC? What did we generalise/absact them to? What s an example for giving a DC semantics for a consuctive formalism? How does the proposed approach work, from requirements to a correct implementation with DC? Content: Programmable Logic Conollers (PLC) ( Speicherprogrammierbare Steuerungen (SPS)) PLC Automata An overapproximating DC semantics for PLCA An reaction time theorem for PLCA What s special about PLC? microprocessor, memory, timers digital (or analog) I/O ports possibly RS 232, fieldbuses, networking robust hardware reprogrammable standardised programming model (IEC ) 2/50 5/50 What is a PLC? Where are PLC employed? mostly process automatisation production lines packaging lines chemical plants power plants elecic motors, pneumatic or hydraulic cylinders... not so much: product automatisation, there tailored or OS conoller boards embedded conollers... 3/50 6/50
2 x y y How are PLC programmed? PLC have in common that they operate in a cyclic manner: read s compute write s Cyclic operation is repeated until external interruption (such as shutdown or reset). Cycle time: typically a few milliseconds. [?] Programming for PLC means providing the compute part. Input/ values are available via designated local variables. How are PLC programmed, practically? 1: PROGRAM PLC_PRG_FILER 2: VAR 3: : I := 0; (* 0:=, 1:=, 2:= *) 4: tmr : P; 5: EDVAR 6: 7: IF = 0 HE 8: % := ; 9: IF % = HE 10: := 1; 11: % := ; 12: ELSIF % = HE 13: := 2; 14: % := ; 15: EDIF 16: ELSIF = 1 HE 17: tmr( I := RUE, P := t#5.0s ); 18: IF (% = no_ AD O tmr.q) HE 19: := 0; 20: % := ; 21: tmr( I := FALSE, P := t#0.0s ); 22: ELSIF % = HE 23: := 2; 24: % := ; 25: tmr( I := FALSE, P := t#0.0s ); 26: EDIF 27: EDIF 7/50 10/ Splc 22/50 1: PROGRAM PLC_PRG_FILER 2: VAR 3: : I := 0; (* 0:=, 1:=, 2:= *) 4: tmr : P; 5: EDVAR 6: 7: IF = 0 HE 8: % := ; 9: IF % = HE 10: := 1; 11: % := ; 12: ELSIF % = HE 13: := 2; 14: % := ; 15: EDIF 16: ELSIF = 1 HE 17: tmr( I := RUE, P := t#5.0s ); 18: IF (% = no_ AD O tmr.q) HE 19: := 0; 20: % := ; 21: tmr( I := FALSE, P := t#0.0s ); 22: ELSIF % = HE 23: := 2; 24: % := ; 25: tmr( I := FALSE, P := t#0.0s ); 26: EDIF 27: EDIF How are PLC programmed, practically? 8/50 no Idea: a stutter filter with s and, for no ain and ain passing (and possibly, for error). After arrival of a ain, ignore no for 5 seconds. Problem: the sensor may stutter, i.e. oscillate between no and multiple times. Assume a ack-side sensor with s: no no passing ain a ain is passing Assume that a change from no to signals arrival of a ain. (o spurious sensor values.) Example: reliable, stutter-free ain sensor. How are PLC programmed, practically? 11/50 Figure 2.3: Elements of sequential function charts Unfortunate: deviations in semantics... [?] [?] g3 Sequential Function Charts (SFC) s2 R action1 ied together by S action1 s1 action block action2 2 action name g2 action qualifier Figure 2.2: Implementations of the operation x becomes y z s0 step (initial) ansition g1 ansition condition (guard) [?] (Relay) Ladder Diagram Function Block Diagram z ( ) x 1 z Insuction List Suctured ext LD x OR y S z z := x OR y Alternative Programming Languages by IEC / ime no Idea: After arrival of a ain, ignore no for 5 seconds. Example: Stutter Filter
3 Why study PLC? ote: the discussion here is not limited to PLC and IEC languages. Any programming language on an operating system with at least one real-time clock will do. (Where a real-time clock is a piece of hardware such that, we can program it to wait for t time units, we can query whether the set time has elapsed, if we program it to wait for t time units, it does so with negligible deviation.) And sictly speaking, we don t even need full blown operating systems. PLC are just a formalisation on a good level of absaction: there are s somehow available as local variables, there are s somehow available as local variables, somehow, s are polled and s updated atomically, there is some interface to a real-time clock. PLC Automata Example: Stuttering Filter A = (Q = {q0, q1}, Σ = {,no }, δ = {(q0,) q1, (q0,no ) q0, (q1,) q1, (q1,no ) q0}, q0 = q0, ε = 0.2, St = {q0 0, q1 5}, Se = {q0, q1 Σ}, Ω = {, }, ω = {q0, q1 }) no no 5 s q0 q1 12/50 15/50 PLC Automata PLC Automata Example: Stuttering Filter with Exception no no 5 s ue no, no 5 s, {no,}, ue 13/50 16/50 PLC Automata Definition 5.2. A PLC-Automaton is a sucture A = (Q, Σ, δ, q0, ε, St, Se, Ω, ω) where (q ) Q is a finite set of s, q0 Q is the initial, (σ ) Σ is a finite set of s, δ : Q Σ Q is the ansition function (!), St : Q R + 0 assigns a delay time to each, Se : Q 2 Σ assigns a set of delayed s to each, Ω is a finite, non-empty set of s, ω : Q Ω assigns an to each, ε is an upper time bound for the execution cycle. 14/50 PLC Automaton Semantics 1: PROGRAM PLC_PRG_FILER 2: VAR 3: : I := 0; (* 0:=, 1:=, 2:= *) 4: tmr : P; 5: EDVAR 6: 7: IF = 0 HE 8: % := ; 9: IF % = HE 10: := 1; 11: % := ; 12: ELSIF % = HE 13: := 2; 14: % := ; 15: EDIF 16: ELSIF = 1 HE 17: tmr( I := RUE, P := t#5.0s ); 18: IF (% = no_ AD O tmr.q) HE 19: := 0; 20: % := ; 21: tmr( I := FALSE, P := t#0.0s ); 22: ELSIF % = HE 23: := 2; 24: % := ; 25: tmr( I := FALSE, P := t#0.0s ); 26: EDIF 27: EDIF no, no, ue 5s, {no,} Recall: read s compute write s 17/50
4 21/50 (correct?) compiler S ÂAÃDC no q0 q1 by example today 5 s no =? Impl synthesis =? Des =? Req Full DC DC Implementables PLC-Automata IEC Binary Wait, what is the Plan? 18/50 no no no no ue ,, no 5 s, {no,} no PLCA Semantics: Examples 1: PROGRAM PLC_PRG_FILER 2: VAR 3: : I := 0; (* 0:=, 1:=, 2:= *) 4: tmr : P; 5: EDVAR 6: 7: IF = 0 HE 8: % := ; 9: IF % = HE 10: := 1; 11: % := ; 12: ELSIF % = HE 13: := 2; 14: % := ; 15: EDIF 16: ELSIF = 1 HE 17: tmr( I := RUE, P := t#5.0s ); 18: IF (% = no_ AD O tmr.q) HE 19: := 0; 20: % := ; 21: tmr( I := FALSE, P := t#0.0s ); 22: ELSIF % = HE 23: := 2; 24: % := ; 25: tmr( I := FALSE, P := t#0.0s ); 26: EDIF 27: EDIF We assess correctness in terms of cycle time......but where does the cycle time come from? First of all, S on the hardware has a cycle time so we can measure it if it is larger than ε, don t use this program on this conoller we can estimate (approximate) the WCE (worst case execution time) if it s larger than ε, don t use it, if it s smaller we re safe (Major obstacle: caches, out-of-order execution.) Some PLC have a watchdog: set it to ε, if the current computing cycle takes longer, then the watchdog forces the PLC into an error and signals the error condition 19/50 An Overapproximating DC Semantics for PLC Automata 22/50 And what does this have to with DC? Interesting Overall Approach Define PLC Automaton syntax (absact and concrete). Define PLC Automaton semantics by anslation tos (sucturedtext). Give DC over-approximation of PLC Automaton semantics. Assess correctness of over-approximation against DC requirements. In other words: we ll define ÂAÃDC such that I ÂAÃ = I = ÂAÃDC but not necessarily the other way round. In even other words: ÂAÃ {I I = ÂAÃDC }. 20/50 23/50
5 [t0, t1] A = {no } t1 {q1} {} [t0, t2] A = {no,} t2 {q1} {, } [t0, t3] A = {no,} t3 {q1, } {, } [t0, t4] A = {no,} t4 {q1, } {, } [t0, t5] A = {no,,} t5 {q1,, } {,, } [t0, t6] A = {no,,} t6 {q1,, } {,, } 27/50 q1 A holds in with After q ; q A q δ(q, A) (DC-2) t0 t1 t2 t3 t4 t5 t6 ue = ε = ε = ε = ε = ε ime, q1 no q1, 5s, {no,} no no no Effect of ransitions, untimed 24/50 OutA, D(OutA) = Ω values of the s StA, D(StA) = Q current local InA, D(InA) = Σ values of the s he DC formula ÂAÃDC we consuct ranges over the observables A = (Q, Σ, δ, q0, ε, St, Se, Ω, ω). Consider Observables 28/50 [t1, t2] A = {no,} t2 {q1, } {, } [t2, t3] A = {no,} t3 {q1, } {, } [t3, t4] A = {no } t4 {q1} {} [t4, t5] A = {no,} t5 {q1, } {, } [t5, t6] A = {} t6 {q1, } {, } q1 A holds in with After ε q A q δ(q, A) (DC-3) t0 t1 t2 t3 t4 t5 t6 ue = ε = ε = ε = ε = ε ime, q1 no q1, 5s, {no,} no no no Cycle ime 25/50 St(q) > 0 = q ; q ; q A ε St(q) q δ(q, A \ Se(q)) (DC-5) St(q) > 0 = q ; q A St(q) q δ(q, A \ Se(q)) (DC-4) Delays: ε q A q δ(q, A) (DC-3) Cycle time: q ; q A q δ(q, A) (DC-2) Effect of ransitions, untimed: q0 ; ue (DC-1) Initial State: A = (Q, Σ, δ, q0, ε, St, Se, Ω, ω) Overview q A abbreviates StA = q InA A, δ(q, A) abbreviates StA {δ(q, a) a A}. A arbiary with A Σ, 29/50 [t0, t1] A = {no } t1 {} { } [t0, t2] A = {no,} t2 {} { } [t0, t3] A = {no,,} t3 {, } {, } [t0, t4] A = {no,,} t4 {, } {, } [t0, t5] A = {no,,} t5 {, } {, } [t0, t6] A = {no,,} t6 {, } {, } q1 A holds in with After St(q) > 0 = q ; q A St(q) q δ(q, A \ Se(q)) (DC-4) t0 t1 t2 t3 t4 t5 t6 ue = ε = ε = ε = ε = ε ime, q1 no q1, 5s, {no,} no no no Delays 26/50 St(q) > 0 A Se(q) = q / δ(q, A) = q ; q A ε (DC-10) q St(q) > 0 A Se(q) = q / δ(q, A) (DC-9) = ( q A = l < 2ε) = ( q St(q) ; q A = l < St(q) + 2ε) (DC-8) St(q) > 0 q / δ(q, A) Progress from delayed s: St(q) = 0 q / δ(q, A) = q ; q A ε q (DC-7) St(q) = 0 q / δ(q, A) = ( q A = l < 2ε) (DC-6) Progress from non-delayed s: A = (Q, Σ, δ, q0, ε, St, Se, Ω, ω) Overview q A abbreviates StA = q InA A, δ(q, A) abbreviates StA {δ(q, a) a A}. A arbiary with A Σ,
6 33/50 St(q0) > 0 A Se(q0) = q0 / δ(q0, A) = q0 A ε 0 q0 (DC-10 ) St(q0) = 0 q0 / δ(q0, A) = q0 A ε 0 q0 (DC-7 ) St(q0) > 0 = q0 ; q0 A ε St(q0) 0 q0 δ(q0, A \Se(q0)) (DC-5 ) St(q0) > 0 = q0 A St(q0) 0 q0 δ(q0, A \ Se(q0)) (DC-4 ) q0 A 0 q0 δ(q0, A) (DC-2 ) ( q = ω(q) (DC-11) Behaviour of the Output and System Start 30/50 [t1, t2] A = {no,} t2 {} { } [t2, t3] A = {,} t3 {, } {, } [t3, t4] A = {no,} t4 {, } {, } [t4, t5] A = {no } t5 {} { } [t5, t6] A = {no,} t6 {, } {, } q1 A holds in with After St(q) > 0 = q ; q ; q A ε St(q) q δ(q, A \ Se(q)) (DC-5) t0 t1 t2 t3 t4 t5 t6 ue = ε = ε = ε = ε = ε ime, q1 no q1, 5s, {no,} no no no Delays 34/50 But not necessarily the other way round. hen Iπ = ÂAÃDC. Let Iπ be an encoding of π as an interpretation of InA, StA, and OutA. Let π be a recording over time of then s, local s, and s of a PLC device running PA. Let PA be the S program semantics of A. Claim: DC-5 DC-7 DC-10. q Q, A Σ ÂAÃDC := DC-1 DC-11 DC-2 DC-4 Definition 5.3. he Duration Calculus semantics of a PLC Automaton A is DC Semantics of PLC Automata 31/50 Due to (DC-6): t5 t4 < 2ε t3 t2 < 2ε Due to (DC-7): t1 t0 < ε St(q) = 0 q / δ(q, A) = q ; q A ε q (DC-7) St(q) = 0 q / δ(q, A) = ( q A = l < 2ε) (DC-6) t0 t1 t2 t3 t4 t5 ue ime, q1 no q1, 5s, {no,} no no no no Progress from non-delayed s 35/50 One Application: Reaction imes 32/50 Due to (DC-8): t5 t4 < 2ε Due to (DC-9): t3 t2 < 2ε Due to (DC-10): t1 t0 < ε = q ; q A ε q (DC-10) St(q) > 0 A Se(q) = q / δ(q, A) = ( q A = l < 2ε) (DC-9) St(q) > 0 A Se(q) = q / δ(q, A) = ( q St(q) ; q A = l < St(q) + 2ε) (DC-8) St(q) > 0 q / δ(q, A) t0 t1 t2 t3 t4 t5 ue ime, q1 no q1, 5s, {no,} no no no Progress from delayed s
7 One Application: Reaction imes Given a PLC-Automaton, one often wants to know whether it guarantees properties of the form StA Q InA = emergency signal 0.1 StA = motor off ( whenever the emergency signal is observed, the PLC Automaton switches the motor off within at most 0.1 seconds ) Which is (why?) for from obvious from the PLC Automaton in general. We will give a theorem, that allows us to compute an upper bound on such reaction times. hen in the above example, we could simply compare this upper bound one against the required 0.1 seconds. Premise Examples no 0s, no 5 s, {no,}, ue Examples: Π = {, }, A = {no } δ(π, A) = {} Π Π = {,, }, A = {} δ(π, A) = {} Π Π = { }, A = {no } δ(π, A) = {} Π 36/50 39/50 he Reaction ime Problem in General Let Π Q be a set of start s, A Σ be a set of s, c ime be a time bound, and Πtarget Q be a set of target s. hen we seek to establish properties of the form c StA Π InA A StA Πtarget, abbreviated as c Π A Πtarget. Reaction ime heorem (Special Case n = 1) heorem 5.6. Let A = (Q, Σ, δ, q0, ε, St, Se, Ω, ω), Π Q, and A Σ with δ(π, A) Π. hen where c Π A δ(π, A) }{{} =Πtarget c := ε + max({0} {s(π, A) π Π \ δ(π, A)}) and { St(π) + 2ε, if St(π) > 0 and A Se(π) s(π, A) := ε, otherwise. 37/50 40/50 Reaction ime heorem Premises Actually, the reaction time theorem addresses only the special case Π A cn δ n (Π, A) }{{} =Πtarget for PLC Automata with δ(π, A) Π. Where the ansition function is canonically extended to sets of start s and s: δ(π, A) := {δ(q, a) q Π a A}. Reaction ime heorem: Example 1 (1) {, } {no } 5+3ε : 38/50 41/50
8 Reaction ime heorem: Example 2 (2) {,, } {} 2ε : Reaction ime heorem (General Case) heorem 5.8. Let A = (Q, Σ, δ, q0, ε, St, Se, Ω, ω), Π Q, and A Σ with δ(π, A) Π. hen for all n 0, Π A cn δ n (Π, A) }{{} =Πtarget where cn := ε + max( 1 k n k π1,...,πk Π \ δ n (Π, A) {0} s(πi, A) j {1,...,k 1} : i=1 πj+1 δ(πj, A) and s(π, A) as before. 42/50 45/50 Monotonicity of Generalised ransition Function Define δ 0 (Π, A) := Π, δ n+1 (Π, A) := δ(δ n (Π, A), A). If we have δ(π, A) Π, then we have δ n+1 (Π, A) δ n (Π, A) δ(δ(π, A), A) δ(π, A) Π }{{} =δ 2 (Π,A) i.e. the sequence is a conaction. (Because the extended ansition function has the following (not so surprising) monotonicity property: Proposition 5.4. Π Π Q and A A Σ implies δ(π, A) δ(π, A ).) Proof Idea of Reaction ime heorem (by conadiction) Assume, we would not have Π A cn δ n (Π, A). his is equivalent to not having (ue ; Π A cn ; δ n (Π, A) ; ue) Which is equivalent to having ue ; Π A cn ; δ n (Π, A) ; ue. Using finite variability, (DC-2), (DC-3), (DC-6), (DC-7), (DC-8), (DC-9), and (DC-10) we can show that the duration of Π A is sictly smaller than cn. 43/50 46/50 Conaction Examples Examples: Π = {, }, A = {no } δ 0 (Π, A) = {, } no 0s, no, ue 5 s, {no,} δ(δ 0 (Π, A), A) = {} Π δ n (δ 0 (Π, A), A) = {} Π = {,, }, A = {} δ 0 (Π, A) = {,, } δ(δ 0 (Π, A), A) = {} Π δ n (δ 0 (Π, A), A) = {} Π = { }, A = {no } δ(π, A) = {} Π Methodology: Overview 44/50 47/50
9 Smeth 48/50 (correct?) compiler S ÂAÃDC no q0 q1 by example lecture 5 s no =? Impl synthesis =? Des What does help us? E.g.: What assumptions did we use? =? Req Full DC DC Implementables PLC-Automata IEC Binary Methodology References 49/50 50/50
Lecture 10: PLC Automata
Real-ime Systems Lecture 10: PLC Automata 2017-11-30 Dr. Bernd Westphal Dr. Jochen Hoenicke Albert-Ludwigs-Universität Freiburg, Germany 10 2017-11-30 main he Plan Full DC DC Implementables PLC-Automata
More informationLecture 9: DC Implementables II
Real-Time Systems Lecture 9: DC Implementables II 2017-11-28 Dr. Bernd Westphal Albert-Ludwigs-Universität Freiburg, Germany 9 2017-11-28 main Content Correctness Proof for the Gas Burner Implementables
More informationLecture 11: Timed Automata
Real-Time Systems Lecture 11: Timed Automata 2014-07-01 11 2014-07-01 main Dr. Bernd Westphal Albert-Ludwigs-Universität Freiburg, Germany Contents & Goals Last Lecture: DC (un)decidability This Lecture:
More informationReal-Time Systems. Lecture 10: Timed Automata Dr. Bernd Westphal. Albert-Ludwigs-Universität Freiburg, Germany main
Real-Time Systems Lecture 10: Timed Automata 2013-06-04 10 2013-06-04 main Dr. Bernd Westphal Albert-Ludwigs-Universität Freiburg, Germany Contents & Goals Last Lecture: PLC, PLC automata This Lecture:
More informationLecture 05: Duration Calculus III
Real-Time Systems Lecture 05: Duration Calculus III 2014-05-20 Dr. Bernd Westphal Albert-Ludwigs-Universität Freiburg, Germany Contents & Goals Last Lecture: DC Syntax and Semantics: Formulae This Lecture:
More informationReal-Time Systems. Lecture 15: The Universality Problem for TBA Dr. Bernd Westphal. Albert-Ludwigs-Universität Freiburg, Germany
Real-Time Systems Lecture 15: The Universality Problem for TBA 2013-06-26 15 2013-06-26 main Dr. Bernd Westphal Albert-Ludwigs-Universität Freiburg, Germany Contents & Goals Last Lecture: Extended Timed
More informationLecture 03: Duration Calculus I
Real-Time Systems Lecture 03: Duration Calculus I 2014-05-08 Dr. Bernd Westphal 03 2014-05-08 main Albert-Ludwigs-Universität Freiburg, Germany Contents & Goals Last Lecture: Model of timed behaviour:
More informationLecture 12: Core State Machines II
Software Design, Modelling and Analysis in UML Lecture 12: Core State Machines II 2015-12-15 12 2015-12-15 main Prof. Dr. Andreas Podelski, Dr. Bernd Westphal Albert-Ludwigs-Universität Freiburg, Germany
More informationPLC-automata: a new class of implementable real-time automata
Theoretical Computer Science 253 (2001) 61 93 www.elsevier.com/locate/tcs PLC-automata: a new class of implementable real-time automata Henning Dierks 1 University of Oldenburg, Fachbereich Informatik,
More informationMODEL CHECKING TIMED SAFETY INSTRUMENTED SYSTEMS
TKK Reports in Information and Computer Science Espoo 2008 TKK-ICS-R3 MODEL CHECKING TIMED SAFETY INSTRUMENTED SYSTEMS Jussi Lahtinen ABTEKNILLINEN KORKEAKOULU TEKNISKA HÖGSKOLAN HELSINKI UNIVERSITY OF
More informationTimed Automata. Chapter Clocks and clock constraints Clock variables and clock constraints
Chapter 10 Timed Automata In the previous chapter, we have discussed a temporal logic where time was a discrete entities. A time unit was one application of the transition relation of an LTS. We could
More informationOperational and Logical Semantics. for Polling Real-Time Systems? Vaandrager 1. Abstract. PLC-Automata are a class of real-time automata suitable
Operational and Logical Semantics for Polling Real-Time Systems? Henning Dierks 2;??, Ansgar Fehnker 1;???, Angelika Mader 1;y, and Frits Vaandrager 1 1 Computing Science Institute, University of Nijmegen,
More informationEmbedded Systems Development
Embedded Systems Development Lecture 3 Real-Time Scheduling Dr. Daniel Kästner AbsInt Angewandte Informatik GmbH kaestner@absint.com Model-based Software Development Generator Lustre programs Esterel programs
More informationMoby/RT: A Tool for Specification and Verification of Real-Time Systems
Moby/RT: A Tool for Specification and Verification of Real-Time Systems Ernst-Rüdiger Olderog (Department of Computing Science University of Oldenburg olderog@informatik.uni-oldenburg.de) Henning Dierks
More informationEmbedded Systems Development
Embedded Systems Development Lecture 2 Finite Automata & SyncCharts Daniel Kästner AbsInt Angewandte Informatik GmbH kaestner@absint.com Some things I forgot to mention 2 Remember the HISPOS registration
More informationProving Real-time Properties of Embedded Software Systems 0-0
Proving Real-time Properties of Embedded Software Systems 0-0 Outline of Presentation Introduction and Preliminaries Previous Related Work Held For Operator Sensor Lock System Verified Design for Timing
More informationModule 10: Sequential Circuit Design
Module : Sequential Circuit esign Wakerly: Chapter 7 (Part 3) : ECE 3233 r. Keith A. eague Spring 23 REA Chapter 7 (skipping references to HL) 23 -Machine esign and Synthesis he creative part, like writing
More informationThe State Explosion Problem
The State Explosion Problem Martin Kot August 16, 2003 1 Introduction One from main approaches to checking correctness of a concurrent system are state space methods. They are suitable for automatic analysis
More informationAnalysis of a Boost Converter Circuit Using Linear Hybrid Automata
Analysis of a Boost Converter Circuit Using Linear Hybrid Automata Ulrich Kühne LSV ENS de Cachan, 94235 Cachan Cedex, France, kuehne@lsv.ens-cachan.fr 1 Introduction Boost converter circuits are an important
More informationT Reactive Systems: Temporal Logic LTL
Tik-79.186 Reactive Systems 1 T-79.186 Reactive Systems: Temporal Logic LTL Spring 2005, Lecture 4 January 31, 2005 Tik-79.186 Reactive Systems 2 Temporal Logics Temporal logics are currently the most
More informationApplied Computer Science II Chapter 1 : Regular Languages
Applied Computer Science II Chapter 1 : Regular Languages Prof. Dr. Luc De Raedt Institut für Informatik Albert-Ludwigs Universität Freiburg Germany Overview Deterministic finite automata Regular languages
More informationDigital Control of Electric Drives
Digital Control of Electric Drives Logic Circuits - equential Description Form, Finite tate Machine (FM) Czech Technical University in Prague Faculty of Electrical Engineering Ver.. J. Zdenek 27 Logic
More informationIntroduction to Digital Logic
Introduction to Digital Logic Lecture 17: Latches Flip-Flops Problem w/ Bistables Output should have been at end of sequence Problem: Glitch was remembered Need some way to ignore inputs until they are
More informationSoftware Design, Modelling and Analysis in UML
Software Design, Modelling and Analysis in UML Lecture 14: Core State Machines IV 2013-12-18 14 2013-12-18 main Prof. Dr. Andreas Podelski, Dr. Bernd Westphal Albert-Ludwigs-Universität Freiburg, Germany
More informationENGG 1203 Tutorial _03 Laboratory 3 Build a ball counter. Lab 3. Lab 3 Gate Timing. Lab 3 Steps in designing a State Machine. Timing diagram of a DFF
ENGG 1203 Tutorial _03 Laboratory 3 Build a ball counter Timing diagram of a DFF Lab 3 Gate Timing difference timing for difference kind of gate, cost dependence (1) Setup Time = t2-t1 (2) Propagation
More informationLet s now begin to formalize our analysis of sequential machines Powerful methods for designing machines for System control Pattern recognition Etc.
Finite State Machines Introduction Let s now begin to formalize our analysis of sequential machines Powerful methods for designing machines for System control Pattern recognition Etc. Such devices form
More informationEECS 144/244: Fundamental Algorithms for System Modeling, Analysis, and Optimization
EECS 144/244: Fundamental Algorithms for System Modeling, Analysis, and Optimization Discrete Systems Lecture: Automata, State machines, Circuits Stavros Tripakis University of California, Berkeley Stavros
More informationLecture 6: Time-Dependent Behaviour of Digital Circuits
Lecture 6: Time-Dependent Behaviour of Digital Circuits Two rather different quasi-physical models of an inverter gate were discussed in the previous lecture. The first one was a simple delay model. This
More informationMECH 1500 Final Part 2 Review
Name: Class: Date: MECH 1500 Final Part 2 Review True/False Indicate whether the statement is true or false. 1. Programmed counters can serve the same function as mechanical counters. 2. Every PLC model
More informationLecture 13. Real-Time Scheduling. Daniel Kästner AbsInt GmbH 2013
Lecture 3 Real-Time Scheduling Daniel Kästner AbsInt GmbH 203 Model-based Software Development 2 SCADE Suite Application Model in SCADE (data flow + SSM) System Model (tasks, interrupts, buses, ) SymTA/S
More informationThe Discrete EVent System specification (DEVS) formalism
The Discrete EVent System specification (DEVS) formalism Hans Vangheluwe The DEVS formalism was conceived by Zeigler [Zei84a, Zei84b] to provide a rigourous common basis for discrete-event modelling and
More informationLogic Model Checking
Logic Model Checking Lecture Notes 10:18 Caltech 101b.2 January-March 2004 Course Text: The Spin Model Checker: Primer and Reference Manual Addison-Wesley 2003, ISBN 0-321-22862-6, 608 pgs. the assignment
More informationSynchronous Sequential Circuit Design. Dr. Ehab A. H. AL-Hialy Page 1
Synchronous Sequential Circuit Design Dr. Ehab A. H. AL-Hialy Page Motivation Analysis of a few simple circuits Generalizes to Synchronous Sequential Circuits (SSC) Outputs are Function of State (and Inputs)
More informationECE3510 Lab #5 PID Control
ECE3510 Lab #5 ID Control Objectives The objective of this lab is to study basic design issues for proportionalintegral-derivative control laws. Emphasis is placed on transient responses and steady-state
More informationTESTING is one of the most important parts of the
IEEE TRANSACTIONS 1 Generating Complete Controllable Test Suites for Distributed Testing Robert M. Hierons, Senior Member, IEEE Abstract A test suite is m-complete for finite state machine (FSM) M if it
More informationEmbedded Systems 2. REVIEW: Actor models. A system is a function that accepts an input signal and yields an output signal.
Embedded Systems 2 REVIEW: Actor models A system is a function that accepts an input signal and yields an output signal. The domain and range of the system function are sets of signals, which themselves
More informationLecture 04: OCL Semantics
Software Design, Modelling and Analysis in UML Lecture 04: OCL Semantics 2014-10-30 Prof. Dr. Andreas Podelski, Dr. Bernd Westphal 04 2014-10-30 main Albert-Ludwigs-Universität Freiburg, Germany Contents
More informationMemory Elements I. CS31 Pascal Van Hentenryck. CS031 Lecture 6 Page 1
Memory Elements I CS31 Pascal Van Hentenryck CS031 Lecture 6 Page 1 Memory Elements (I) Combinational devices are good for computing Boolean functions pocket calculator Computers also need to remember
More informationDISTINGUING NON-DETERMINISTIC TIMED FINITE STATE MACHINES
DISTINGUING NON-DETERMINISTIC TIMED FINITE STATE MACHINES Maxim Gromov 1, Khaled El-Fakih 2, Natalia Shabaldina 1, Nina Yevtushenko 1 1 Tomsk State University, 36 Lenin Str.. Tomsk, 634050, Russia gromov@sibmail.com,
More informationFormal Verification of Systems-on-Chip
Formal Verification of Systems-on-Chip Wolfgang Kunz Department of Electrical & Computer Engineering University of Kaiserslautern, Germany Slide 1 Industrial Experiences Formal verification of Systems-on-Chip
More informationOutline. Logical Agents. Logical Reasoning. Knowledge Representation. Logical reasoning Propositional Logic Wumpus World Inference
Outline Logical Agents ECE57 Applied Artificial Intelligence Spring 007 Lecture #6 Logical reasoning Propositional Logic Wumpus World Inference Russell & Norvig, chapter 7 ECE57 Applied Artificial Intelligence
More informationFrom Sequential Circuits to Real Computers
1 / 36 From Sequential Circuits to Real Computers Lecturer: Guillaume Beslon Original Author: Lionel Morel Computer Science and Information Technologies - INSA Lyon Fall 2017 2 / 36 Introduction What we
More informationCompositional Verification of Industrial Control Systems
Compositional Verification of Industrial Control Systems Methods and Case Studies Dissertation zur Erlangung des akademischen Grades Doktor der Naturwissenschaften (Dr. rer. nat.) der Technischen Fakultät
More informationHeuristic Guided Model-Checking of Real-Time Systems
Heuristic Guided Model-Checking of Real-Time Systems Henning Dierks University of Oldenburg, Department of Computer Science, P.O.Box 2503, 26111 Oldenburg, Germany, Abstract. We present an approach to
More informationTimo Latvala. February 4, 2004
Reactive Systems: Temporal Logic LT L Timo Latvala February 4, 2004 Reactive Systems: Temporal Logic LT L 8-1 Temporal Logics Temporal logics are currently the most widely used specification formalism
More informationTowards a Property Preserving Transformation from IEC to BIP
Towards a Property Preserving Transformation from IEC 61131 3 to BIP Jan Olaf Blech, Anton Hattendorf, Jia Huang fortiss GmbH, Guerickestraße 25, 80805 München, Germany September 7, 2010 arxiv:1009.0817v1
More informationThe efficiency of identifying timed automata and the power of clocks
The efficiency of identifying timed automata and the power of clocks Sicco Verwer a,b,1,, Mathijs de Weerdt b, Cees Witteveen b a Eindhoven University of Technology, Department of Mathematics and Computer
More informationLecture 10: Live Sequence Charts Cont d
Softwaretechnik / Software-Engineering Lecture 10: Live Sequence Charts Cont d 2015-06-15 10 2015-06-15 main Prof. Dr. Andreas Podelski, Dr. Bernd Westphal Albert-Ludwigs-Universität Freiburg, Germany
More informationTrajectory planning and feedforward design for electromechanical motion systems version 2
2 Trajectory planning and feedforward design for electromechanical motion systems version 2 Report nr. DCT 2003-8 Paul Lambrechts Email: P.F.Lambrechts@tue.nl April, 2003 Abstract This report considers
More informationECE 448 Lecture 6. Finite State Machines. State Diagrams, State Tables, Algorithmic State Machine (ASM) Charts, and VHDL Code. George Mason University
ECE 448 Lecture 6 Finite State Machines State Diagrams, State Tables, Algorithmic State Machine (ASM) Charts, and VHDL Code George Mason University Required reading P. Chu, FPGA Prototyping by VHDL Examples
More informationEngineered System Design and Integration A semantic domain for modeling cyber-physical systems
Engineered System Design and Integration A semantic domain for modeling cyber-physical systems Pieter J. Mosterman The importance of computation Together with theory and experimentation, computational
More informationNon-elementary Lower Bound for Propositional Duration. Calculus. A. Rabinovich. Department of Computer Science. Tel Aviv University
Non-elementary Lower Bound for Propositional Duration Calculus A. Rabinovich Department of Computer Science Tel Aviv University Tel Aviv 69978, Israel 1 Introduction The Duration Calculus (DC) [5] is a
More informationMASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Sciences
MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Sciences Introductory Digital Systems Lab (6.111) Quiz #1 - Spring 2003 Prof. Anantha Chandrakasan and Prof. Don
More informationYEAR III SEMESTER - V
YEAR III SEMESTER - V Remarks Total Marks Semester V Teaching Schedule Hours/Week College of Biomedical Engineering & Applied Sciences Microsyllabus NUMERICAL METHODS BEG 389 CO Final Examination Schedule
More informationRevision programming
Revision programming Victor W. Marek Miros law Truszczyński Department of Computer Science University of Kentucky Lexington, KY 40506-0027 Abstract In this paper we introduce revision programming a logic-based
More informationCSE 135: Introduction to Theory of Computation Nondeterministic Finite Automata (cont )
CSE 135: Introduction to Theory of Computation Nondeterministic Finite Automata (cont ) Sungjin Im University of California, Merced 2-3-214 Example II A ɛ B ɛ D F C E Example II A ɛ B ɛ D F C E NFA accepting
More informationCSC236 Week 10. Larry Zhang
CSC236 Week 10 Larry Zhang 1 Today s Topic Deterministic Finite Automata (DFA) 2 Recap of last week We learned a lot of terminologies alphabet string length of string union concatenation Kleene star language
More informationReasoning Under Uncertainty: Introduction to Probability
Reasoning Under Uncertainty: Introduction to Probability CPSC 322 Uncertainty 1 Textbook 6.1 Reasoning Under Uncertainty: Introduction to Probability CPSC 322 Uncertainty 1, Slide 1 Lecture Overview 1
More informationOutline. Logical Agents. Logical Reasoning. Knowledge Representation. Logical reasoning Propositional Logic Wumpus World Inference
Outline Logical Agents ECE57 Applied Artificial Intelligence Spring 008 Lecture #6 Logical reasoning Propositional Logic Wumpus World Inference Russell & Norvig, chapter 7 ECE57 Applied Artificial Intelligence
More informationModels for Efficient Timed Verification
Models for Efficient Timed Verification François Laroussinie LSV / ENS de Cachan CNRS UMR 8643 Monterey Workshop - Composition of embedded systems Model checking System Properties Formalizing step? ϕ Model
More informationSource Code Metrics for Programmable Logic Controller (PLC) Ladder Diagram (LD) Visual Programming Language
Source Code Metrics for Programmable Logic Controller (PLC) Ladder Diagram (LD) Visual Programming Language Lov Kumar lov.kumar@in.abb.com Raoul Jetley raoul.jetley@in.abb.com ABB Corporate Research Center
More informationLecture 14: State Tables, Diagrams, Latches, and Flip Flop
EE210: Switching Systems Lecture 14: State Tables, Diagrams, Latches, and Flip Flop Prof. YingLi Tian Nov. 6, 2017 Department of Electrical Engineering The City College of New York The City University
More informationREAL-TIME control systems usually consist of some
1 A Formal Design Technique for Real-Time Embedded Systems Development using Duration Calculus François Siewe, Dang Van Hung, Hussein Zedan and Antonio Cau Abstract In this paper we present a syntactical
More informationAutomata-based Verification - III
COMP30172: Advanced Algorithms Automata-based Verification - III Howard Barringer Room KB2.20: email: howard.barringer@manchester.ac.uk March 2009 Third Topic Infinite Word Automata Motivation Büchi Automata
More informationHRML: a hybrid relational modelling language. He Jifeng
HRML: a hybrid relational modelling language He Jifeng Hybrid Systems Systems are composed by continuous physical component and discrete control component The system state evoles over time according to
More informationCounters. We ll look at different kinds of counters and discuss how to build them
Counters We ll look at different kinds of counters and discuss how to build them These are not only examples of sequential analysis and design, but also real devices used in larger circuits 1 Introducing
More informationSeamless Model Driven Development and Tool Support for Embedded Software-Intensive Systems
Seamless Model Driven Development and Tool Support for Embedded Software-Intensive Systems Computer Journal Lecture - 22nd June 2009 Manfred Broy Technische Universität München Institut für Informatik
More informationOperational Semantics
Operational Semantics Semantics and applications to verification Xavier Rival École Normale Supérieure Xavier Rival Operational Semantics 1 / 50 Program of this first lecture Operational semantics Mathematical
More informationLecture 3: Duration Calculus I
Real-Time Systems Lecture 3: Duration Calculus I 27--26 Dr. Bernd Westphal Albert-Ludwigs-Universität Freiburg, Germany 3 27--26 main Content Introduction Observables and Evolutions Duration Calculus (DC)
More informationHybrid Control and Switched Systems. Lecture #1 Hybrid systems are everywhere: Examples
Hybrid Control and Switched Systems Lecture #1 Hybrid systems are everywhere: Examples João P. Hespanha University of California at Santa Barbara Summary Examples of hybrid systems 1. Bouncing ball 2.
More informationAutomata and Formal Languages - CM0081 Non-Deterministic Finite Automata
Automata and Formal Languages - CM81 Non-Deterministic Finite Automata Andrés Sicard-Ramírez Universidad EAFIT Semester 217-2 Non-Deterministic Finite Automata (NFA) Introduction q i a a q j a q k The
More informationLecture 13: Sequential Circuits, FSM
Lecture 13: Sequential Circuits, FSM Today s topics: Sequential circuits Finite state machines 1 Clocks A microprocessor is composed of many different circuits that are operating simultaneously if each
More informationFurther discussion of Turing machines
Further discussion of Turing machines In this lecture we will discuss various aspects of decidable and Turing-recognizable languages that were not mentioned in previous lectures. In particular, we will
More informationTime in State Machines
Fundamenta Informaticae ASM (2005) 1 19 1 IOS Press Time in State Machines Susanne Graf Verimag, Grenoble, France Susanne.Graf@imag.fr Andreas Prinz Agder University College, Grimstad, Norway Andreas.Prinz@HIA.no
More informationAlan Bundy. Automated Reasoning LTL Model Checking
Automated Reasoning LTL Model Checking Alan Bundy Lecture 9, page 1 Introduction So far we have looked at theorem proving Powerful, especially where good sets of rewrite rules or decision procedures have
More informationProcess Algebras and Concurrent Systems
Process Algebras and Concurrent Systems Rocco De Nicola Dipartimento di Sistemi ed Informatica Università di Firenze Process Algebras and Concurrent Systems August 2006 R. De Nicola (DSI-UNIFI) Process
More informationCS256/Spring 2008 Lecture #11 Zohar Manna. Beyond Temporal Logics
CS256/Spring 2008 Lecture #11 Zohar Manna Beyond Temporal Logics Temporal logic expresses properties of infinite sequences of states, but there are interesting properties that cannot be expressed, e.g.,
More informationEEE 188: Digital Control Systems
EEE 88: Digital Control Systems Lecture summary # the controlled variable. Example: cruise control. In feedback control, sensors and measurements play an important role. In discrete time systems, the control
More informationECE 407 Computer Aided Design for Electronic Systems. Simulation. Instructor: Maria K. Michael. Overview
407 Computer Aided Design for Electronic Systems Simulation Instructor: Maria K. Michael Overview What is simulation? Design verification Modeling Levels Modeling circuits for simulation True-value simulation
More informationTimo Latvala. March 7, 2004
Reactive Systems: Safety, Liveness, and Fairness Timo Latvala March 7, 2004 Reactive Systems: Safety, Liveness, and Fairness 14-1 Safety Safety properties are a very useful subclass of specifications.
More informationAcceleration of Gravity
EV3 program description The program 10 determines the acceleration of gravity of a small metal ball by calculating the time between the opening of the arm and the ball s collision on a Touch Sensor. If
More informationFormal Methods for Java
Formal Methods for Java Lecture 20: Sequent Calculus Jochen Hoenicke Software Engineering Albert-Ludwigs-University Freiburg January 15, 2013 Jochen Hoenicke (Software Engineering) Formal Methods for Java
More informationRecent results on Timed Systems
Recent results on Timed Systems Time Petri Nets and Timed Automata Béatrice Bérard LAMSADE Université Paris-Dauphine & CNRS berard@lamsade.dauphine.fr Based on joint work with F. Cassez, S. Haddad, D.
More informationCSE 380 Computer Operating Systems
CSE 380 Computer Operating Systems Instructor: Insup Lee & Dianna Xu University of Pennsylvania, Fall 2003 Lecture Note 3: CPU Scheduling 1 CPU SCHEDULING q How can OS schedule the allocation of CPU cycles
More informationPART TEMP RANGE PIN-PACKAGE
9-0850; Rev 4; 6/0 Ω μ INT INT μ PART TEMP RANGE PIN-PACKAGE MAX7359ETG+ -40 C to +85 C 24 TQFN-EP* MAX7359EWA+ -40 C to +85 C 25 WLP * TOP VIEW AD0 GND IC COL0 8 7 6 5 4 3 INPUT +62V TO +36V V CC MAX7359
More informationProgram Analysis Part I : Sequential Programs
Program Analysis Part I : Sequential Programs IN5170/IN9170 Models of concurrency Program Analysis, lecture 5 Fall 2018 26. 9. 2018 2 / 44 Program correctness Is my program correct? Central question for
More informationFORMAL LANGUAGES, AUTOMATA AND COMPUTATION
FORMAL LANGUAGES, AUTOMATA AND COMPUTATION DECIDABILITY ( LECTURE 15) SLIDES FOR 15-453 SPRING 2011 1 / 34 TURING MACHINES-SYNOPSIS The most general model of computation Computations of a TM are described
More informationComputers also need devices capable of Storing data and information Performing mathematical operations on such data
Sequential Machines Introduction Logic devices examined so far Combinational Output function of input only Output valid as long as input true Change input change output Computers also need devices capable
More informationELCT201: DIGITAL LOGIC DESIGN
ELCT201: DIGITAL LOGIC DESIGN Dr. Eng. Haitham Omran, haitham.omran@guc.edu.eg Dr. Eng. Wassim Alexan, wassim.joseph@guc.edu.eg Following the slides of Dr. Ahmed H. Madian Lecture 10 محرم 1439 ه Winter
More informationPerformance Metrics for Computer Systems. CASS 2018 Lavanya Ramapantulu
Performance Metrics for Computer Systems CASS 2018 Lavanya Ramapantulu Eight Great Ideas in Computer Architecture Design for Moore s Law Use abstraction to simplify design Make the common case fast Performance
More informationRecitation 2 - Non Deterministic Finite Automata (NFA) and Regular OctoberExpressions
Recitation 2 - Non Deterministic Finite Automata (NFA) and Regular Expressions Orit Moskovich Gal Rotem Tel Aviv University October 28, 2015 Recitation 2 - Non Deterministic Finite Automata (NFA) and Regular
More informationMonotonic Abstraction in Parameterized Verification
Monotonic Abstraction in Parameterized Verification Parosh Aziz Abdulla 1 Department of Information Technology Uppsala University Sweden Giorgio Delzanno 2 Dipartimento Informatica e Scienze dell Informazione
More informationKnowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system):
Logic Knowledge-based agents Inference engine Knowledge base Domain-independent algorithms Domain-specific content Knowledge base (KB) = set of sentences in a formal language Declarative approach to building
More informationTime Synchronization
Massachusetts Institute of Technology Lecture 7 6.895: Advanced Distributed Algorithms March 6, 2006 Professor Nancy Lynch Time Synchronization Readings: Fan, Lynch. Gradient clock synchronization Attiya,
More informationUndecidability Results for Timed Automata with Silent Transitions
Fundamenta Informaticae XXI (2001) 1001 1025 1001 IOS Press Undecidability Results for Timed Automata with Silent Transitions Patricia Bouyer LSV, ENS Cachan, CNRS, France bouyer@lsv.ens-cachan.fr Serge
More informationLecture Notes: Program Analysis Correctness
Lecture Notes: Program Analysis Correctness 15-819O: Program Analysis Jonathan Aldrich jonathan.aldrich@cs.cmu.edu Lecture 5 1 Termination As we think about the correctness of program analysis, let us
More informationLinking Duration Calculus and TLA
Linking Duration Calculus and TLA Yifeng Chen and Zhiming Liu Department of Computer Science, University of Leicester, Leicester LE1 7RH, UK Email: {Y.Chen, Z.Liu}@mcs.le.ac.uk Abstract. Different temporal
More informationCourse 4 Finite Automata/Finite State Machines
Course 4 Finite Automata/Finite State Machines The structure and the content of the lecture is based on (1) http://www.eecs.wsu.edu/~ananth/cpts317/lectures/index.htm, (2) W. Schreiner Computability and
More informationThe algorithmic analysis of hybrid system
The algorithmic analysis of hybrid system Authors: R.Alur, C. Courcoubetis etc. Course teacher: Prof. Ugo Buy Xin Li, Huiyong Xiao Nov. 13, 2002 Summary What s a hybrid system? Definition of Hybrid Automaton
More informationProgrammable Timer High-Performance Silicon-Gate CMOS
TECNICAL DATA Programmable Timer igh-performance Silicon-ate CMOS The IW1B programmable timer consists of a 16-stage binary counter, an oscillator that is controlled by external R-C components (2 resistors
More information