GoBack A MT : a Property-based Tool for Monitoring Analog Systems - - PowerPoint PPT Presentation

goback a mt a property based tool for monitoring analog
SMART_READER_LITE
LIVE PREVIEW

GoBack A MT : a Property-based Tool for Monitoring Analog Systems - - PowerPoint PPT Presentation

GoBack A MT : a Property-based Tool for Monitoring Analog Systems Dejan Ni ckovi c Oded Maler Verimag Verimag A MT : a Property-based Tool for Monitoring Analog Systems 1 / 22 Overview Introduction S TL /P SL Specification Language


slide-1
SLIDE 1

GoBack

slide-2
SLIDE 2

AMT: a Property-based Tool for Monitoring Analog Systems 1 / 22

AMT: a Property-based Tool for Monitoring Analog Systems

Dejan Niˇ ckovi´ c Verimag Oded Maler Verimag

slide-3
SLIDE 3

Overview

AMT: a Property-based Tool for Monitoring Analog Systems 2 / 22

  • Introduction
  • STL/PSL Specification Language

Analog Layer

Temporal Layer

Distance-based Operators

  • Checking STL/PSL Properties

Offline Marking

Incremental Marking

  • AMT Tool
  • FLASH Memory Case Study
slide-4
SLIDE 4

Introduction

AMT: a Property-based Tool for Monitoring Analog Systems 3 / 22

  • Verification of discrete systems

Model checking TL specs

Central role in algorithmic verifica- tion

Efficient algorithms for LTL, CTL, PSL etc.

  • Verification of real-time systems

Emptiness checking of timed au- tomata

KRONOS, UPPAAL, IF etc.

Many variants of real-time logics

MTL, MITL, TCTL etc.

Only TCTL used in a real-time veri- fication tool

  • Lightweight verification

Systems may be too complex to verify exhaustivly

Software

Very large digital systems

Many real-time systems etc.

Property monitors

Generated automatically from the specification

Observe individual simulation traces and check whether the property is violated

Incomplete but more reliable method than manual visual in- spection of simulation traces

slide-5
SLIDE 5

Introduction

AMT: a Property-based Tool for Monitoring Analog Systems 3 / 22

  • Verification of discrete systems

Model checking TL specs

Central role in algorithmic verifica- tion

Efficient algorithms for LTL, CTL, PSL etc.

  • Verification of real-time systems

Emptiness checking of timed au- tomata

KRONOS, UPPAAL, IF etc.

Many variants of real-time logics

MTL, MITL, TCTL etc.

Only TCTL used in a real-time veri- fication tool

  • Lightweight verification

Systems may be too complex to verify exhaustivly

Software

Very large digital systems

Many real-time systems etc.

Property monitors

Generated automatically from the specification

Observe individual simulation traces and check whether the property is violated

Incomplete but more reliable method than manual visual in- spection of simulation traces

slide-6
SLIDE 6

Introduction

AMT: a Property-based Tool for Monitoring Analog Systems 3 / 22

  • Verification of discrete systems

Model checking TL specs

Central role in algorithmic verifica- tion

Efficient algorithms for LTL, CTL, PSL etc.

  • Verification of real-time systems

Emptiness checking of timed au- tomata

KRONOS, UPPAAL, IF etc.

Many variants of real-time logics

MTL, MITL, TCTL etc.

Only TCTL used in a real-time veri- fication tool

  • Lightweight verification

Systems may be too complex to verify exhaustivly

Software

Very large digital systems

Many real-time systems etc.

Property monitors

Generated automatically from the specification

Observe individual simulation traces and check whether the property is violated

Incomplete but more reliable method than manual visual in- spection of simulation traces

slide-7
SLIDE 7

Introduction

AMT: a Property-based Tool for Monitoring Analog Systems 4 / 22

  • Verification of continuous systems

Manual inspection of simulation traces

Dominant technique

Requires experienced special- ists

Error prone

Exhaustive analog verificaiton

Powerful formalisms such as hybrid automata

Limited scalability

  • Our

approach: Property-based lightweigh verification of continuous signals

formality scalability Simulation

slide-8
SLIDE 8

Introduction

AMT: a Property-based Tool for Monitoring Analog Systems 4 / 22

  • Verification of continuous systems

Manual inspection of simulation traces

Dominant technique

Requires experienced special- ists

Error prone

Exhaustive analog verificaiton

Powerful formalisms such as hybrid automata

Limited scalability

  • Our

approach: Property-based lightweigh verification of continuous signals

Exhaustive Verification formality scalability Simulation

slide-9
SLIDE 9

Introduction

AMT: a Property-based Tool for Monitoring Analog Systems 4 / 22

  • Verification of continuous systems

Manual inspection of simulation traces

Dominant technique

Requires experienced special- ists

Error prone

Exhaustive analog verificaiton

Powerful formalisms such as hybrid automata

Limited scalability

  • Our

approach: Property-based lightweigh verification of continuous signals

Exhaustive Verification

?

formality scalability Simulation

slide-10
SLIDE 10

Signals

AMT: a Property-based Tool for Monitoring Analog Systems 5 / 22

  • Finite length signal ξ defined over an abstract domain D

Partial function ξ : T → D

Length of ξ is r (|ξ| = r)

ξ[t] = ⊥ when t ≥ |ξ|

Boolean signals: (ξb) D = B

Continuous signals: (ξa) D = R

  • Restriction of a signal ξ to length d

ξ′ = ξd iff ξ′[t] =  ξ[t] if t < d ⊥

  • therwise
  • Concatenation ξ = ξ1 · ξ2

ξ[t] =  ξ1[t] if t < r1 ξ2[t − r1]

  • therwise
  • d-suffix of a signal ξ, ξ′ = d\ξ

ξ′[t] = ξ[t + d] for every t ∈ [0, |ξ| − d)

slide-11
SLIDE 11

Signals

AMT: a Property-based Tool for Monitoring Analog Systems 6 / 22

  • Minkowski sum and difference of two sets P1 and P2 are defined as

P1 ⊕ P2 = {x1 + x2 : x1 ∈ P1, x2 ∈ P2} P1 ⊖ P2 = {x1 − x2 : x1 ∈ P1, x2 ∈ P2}.

  • Projection of the signal ξ on the dimension with domain B which corresponds to the

proposition p, ξp = πp(ξ)

Likewise ξs = πs(ξ) is the projection of the signal ξ on the dimension with domain R which corresponds to the continuous variable s

  • Signal representation

Boolean signals:

Non-Zeno finite length signals admit finite representation

Sequence of adjacent intervals with value constant in each interval

Continuous signals:

Do not admit an exact finite representation

But, numerical simulators produce a finite collection of sampling points

The signal value at missing points in time is interpolated

slide-12
SLIDE 12

STL/PSL Specification Language

AMT: a Property-based Tool for Monitoring Analog Systems 7 / 22

  • Extension of real-time temporal logic MITL with analog constructs
  • PSL-like layered approach

Analog layer: allows reasoning about continuous signals

Temporal layer: relates the temporal behavior of input traces

  • “Communication” between two layers via static abstractions

Partitioning of the continuous state space according to the satisfaction of some inequality constraints on the continuous variables

  • Targeted to be used in lightweight verification

PSL-like finitary interpratation of temporal operators

slide-13
SLIDE 13

STL/PSL Specification Language

AMT: a Property-based Tool for Monitoring Analog Systems 7 / 22

  • Extension of real-time temporal logic MITL with analog constructs
  • PSL-like layered approach

Analog layer: allows reasoning about continuous signals

Temporal layer: relates the temporal behavior of input traces

  • “Communication” between two layers via static abstractions

Partitioning of the continuous state space according to the satisfaction of some inequality constraints on the continuous variables

  • Targeted to be used in lightweight verification

PSL-like finitary interpratation of temporal operators

slide-14
SLIDE 14

STL/PSL Specification Language

AMT: a Property-based Tool for Monitoring Analog Systems 7 / 22

  • Extension of real-time temporal logic MITL with analog constructs
  • PSL-like layered approach

Analog layer: allows reasoning about continuous signals

Temporal layer: relates the temporal behavior of input traces

  • “Communication” between two layers via static abstractions

Partitioning of the continuous state space according to the satisfaction of some inequality constraints on the continuous variables

  • Targeted to be used in lightweight verification

PSL-like finitary interpratation of temporal operators

slide-15
SLIDE 15

STL/PSL Specification Language

AMT: a Property-based Tool for Monitoring Analog Systems 7 / 22

  • Extension of real-time temporal logic MITL with analog constructs
  • PSL-like layered approach

Analog layer: allows reasoning about continuous signals

Temporal layer: relates the temporal behavior of input traces

  • “Communication” between two layers via static abstractions

Partitioning of the continuous state space according to the satisfaction of some inequality constraints on the continuous variables

  • Targeted to be used in lightweight verification

PSL-like finitary interpratation of temporal operators

slide-16
SLIDE 16

STL/PSL: Analog Layer

AMT: a Property-based Tool for Monitoring Analog Systems 8 / 22

  • Syntax:

φ :== s | shift(φ, k) | φ1 ⋆ φ2 | φ ⋆ c | abs(φ) where s belongs to a set S = {s1, s2, . . . , sn} of continuous variables, ⋆ ∈ {+,-,*}, c ∈ Q and k ∈ Q+.

  • Semantics:

s[t] = πs(ξ)[t] shift(φ, k)[t] = φ[t + k] (φ1 ⋆ φ2)[t] = φ1[t] ⋆ φ2[t] (φ ⋆ c)[t] = φ[t] ⋆ c abs(ϕ)[t] =  φ[t] if φ[t] ≥ 0 −φ[t]

  • therwise
  • Pragmatic choice of analog operators

Based on the feedback of analog designers

Can be naturally extended

slide-17
SLIDE 17

STL/PSL: Analog Layer

AMT: a Property-based Tool for Monitoring Analog Systems 8 / 22

  • Syntax:

φ :== s | shift(φ, k) | φ1 ⋆ φ2 | φ ⋆ c | abs(φ) where s belongs to a set S = {s1, s2, . . . , sn} of continuous variables, ⋆ ∈ {+,-,*}, c ∈ Q and k ∈ Q+.

  • Semantics:

s[t] = πs(ξ)[t] shift(φ, k)[t] = φ[t + k] (φ1 ⋆ φ2)[t] = φ1[t] ⋆ φ2[t] (φ ⋆ c)[t] = φ[t] ⋆ c abs(ϕ)[t] =  φ[t] if φ[t] ≥ 0 −φ[t]

  • therwise
  • Pragmatic choice of analog operators

Based on the feedback of analog designers

Can be naturally extended

slide-18
SLIDE 18

STL/PSL: Analog Layer

AMT: a Property-based Tool for Monitoring Analog Systems 8 / 22

  • Syntax:

φ :== s | shift(φ, k) | φ1 ⋆ φ2 | φ ⋆ c | abs(φ) where s belongs to a set S = {s1, s2, . . . , sn} of continuous variables, ⋆ ∈ {+,-,*}, c ∈ Q and k ∈ Q+.

  • Semantics:

s[t] = πs(ξ)[t] shift(φ, k)[t] = φ[t + k] (φ1 ⋆ φ2)[t] = φ1[t] ⋆ φ2[t] (φ ⋆ c)[t] = φ[t] ⋆ c abs(ϕ)[t] =  φ[t] if φ[t] ≥ 0 −φ[t]

  • therwise
  • Pragmatic choice of analog operators

Based on the feedback of analog designers

Can be naturally extended

slide-19
SLIDE 19

STL/PSL: Temporal Layer

AMT: a Property-based Tool for Monitoring Analog Systems 9 / 22

  • Syntax:

ϕ :== p | φ ◦ c | not ϕ | ϕ1 or ϕ2 | eventually! ϕ | eventually![a:b] ϕ | eventually[a:b] ϕ | ϕ1 until! ϕ2 | ϕ1 until![a:b] ϕ2 where p belongs to a set P = {p1, p2, . . . , pn} of propositional variables, a,b,c ∈ Q and ◦ ∈ {>,>=,<,<=}.

  • Semantics: The satisfaction relation (ξ, t) |

= ϕ, indicating that signal ξ satisfies ϕ at time t is defined inductively as follows: (ξ, t) | = eventually! ϕ iff ∃t′ ≥ t st t′ < |ξ| and (ξ, t′) | = ϕ (ξ, t) | = eventually![a:b] ϕ iff ∃t′ ∈ t ⊕ [a, b] st t′ < |ξ| and (ξ, t′) | = ϕ (ξ, t) | = ϕ1 until! ϕ2 iff ∃t′ ≥ t st t′ < |ξ| and (ξ, t′) | = ϕ2 and ∀t′′ ∈ [t, t′] (ξ, t′′) | = ϕ1 (ξ, t) | = ϕ1 until![a:b] ϕ2 iff ∃t′ ∈ t ⊕ [a, b] st t′ < |ξ| and (ξ, t′) | = ϕ2 and ∀t′′ ∈ [t, t′] (ξ, t′′) | = ϕ1

slide-20
SLIDE 20

STL/PSL: Temporal Layer

AMT: a Property-based Tool for Monitoring Analog Systems 9 / 22

  • Syntax:

ϕ :== p | φ ◦ c | not ϕ | ϕ1 or ϕ2 | eventually! ϕ | eventually![a:b] ϕ | eventually[a:b] ϕ | ϕ1 until! ϕ2 | ϕ1 until![a:b] ϕ2 where p belongs to a set P = {p1, p2, . . . , pn} of propositional variables, a,b,c ∈ Q and ◦ ∈ {>,>=,<,<=}.

  • Semantics: The satisfaction relation (ξ, t) |

= ϕ, indicating that signal ξ satisfies ϕ at time t is defined inductively as follows: (ξ, t) | = eventually! ϕ iff ∃t′ ≥ t st t′ < |ξ| and (ξ, t′) | = ϕ (ξ, t) | = eventually![a:b] ϕ iff ∃t′ ∈ t ⊕ [a, b] st t′ < |ξ| and (ξ, t′) | = ϕ (ξ, t) | = ϕ1 until! ϕ2 iff ∃t′ ≥ t st t′ < |ξ| and (ξ, t′) | = ϕ2 and ∀t′′ ∈ [t, t′] (ξ, t′′) | = ϕ1 (ξ, t) | = ϕ1 until![a:b] ϕ2 iff ∃t′ ∈ t ⊕ [a, b] st t′ < |ξ| and (ξ, t′) | = ϕ2 and ∀t′′ ∈ [t, t′] (ξ, t′′) | = ϕ1

slide-21
SLIDE 21

STL/PSL: Distance-based Operators

AMT: a Property-based Tool for Monitoring Analog Systems 10 / 22

  • Motivation: Enrich STL/PSL with metric properties
  • Compare waveforms with some reference signal that specifies a desired behavior
  • Distance function (metric)

Quantifies numerically the resemblance of two signals distance(φ1, φ2, c) = abs(φ1-φ2) <= c distance(φ1, φ2, c, t, T) = abs(φ1-φ2) > c -> eventually![<=t] always[<=T-t](abs (φ1-φ2) <= c) distance(ϕ1, ϕ2, t, T) = (ϕ1 xor ϕ2)-> eventually![<=t] always[<=T-t] (ϕ1 iff ϕ2)

slide-22
SLIDE 22

STL/PSL: Distance-based Operators Example

AMT: a Property-based Tool for Monitoring Analog Systems 11 / 22

slide-23
SLIDE 23

Checking STL/PSL Properties

AMT: a Property-based Tool for Monitoring Analog Systems 12 / 22

  • Marking: a procedure that determines the truth values of each subformula of an

STL/PSL specification at every time instant t

Doubly-recursive procedure, on time and the structure of the formula

  • Two algorithms for checking STL/PSL properties:

Offline marking: input is fully available

Incremental marking: input is dynamically observed

  • Based on [MalerN04]
slide-24
SLIDE 24

Checking STL/PSL Properties

AMT: a Property-based Tool for Monitoring Analog Systems 12 / 22

  • Marking: a procedure that determines the truth values of each subformula of an

STL/PSL specification at every time instant t

Doubly-recursive procedure, on time and the structure of the formula

  • Two algorithms for checking STL/PSL properties:

Offline marking: input is fully available

Incremental marking: input is dynamically observed

  • Based on [MalerN04]
slide-25
SLIDE 25

Checking STL/PSL Properties

AMT: a Property-based Tool for Monitoring Analog Systems 12 / 22

  • Marking: a procedure that determines the truth values of each subformula of an

STL/PSL specification at every time instant t

Doubly-recursive procedure, on time and the structure of the formula

  • Two algorithms for checking STL/PSL properties:

Offline marking: input is fully available

Incremental marking: input is dynamically observed

  • Based on [MalerN04]
slide-26
SLIDE 26

Offline Marking

AMT: a Property-based Tool for Monitoring Analog Systems 13 / 22

input : STL/PSL Temporal Formula ϕ and signal ξ switch ϕ do case p χϕ := πp(ξ); end case OP2(ϕ1, ϕ2) OFFLINE (ϕ1, ϕ2); χϕ := COMBINE(OP2, χϕ1, χϕ2)); end end

  • Inputs:

Multidimentional signal ξ

STL/PSL specification ϕ

  • Compute, from bottom-up, a signal

χψ(ξ) for each subformila ψ of φ

  • COMBINE computes from input signals

a new signal based on the specific op- eration

slide-27
SLIDE 27

Offline Marking

AMT: a Property-based Tool for Monitoring Analog Systems 13 / 22

input : STL/PSL Temporal Formula ϕ and signal ξ switch ϕ do case p χϕ := πp(ξ); end case OP2(ϕ1, ϕ2) OFFLINE (ϕ1, ϕ2); χϕ := COMBINE(OP2, χϕ1, χϕ2)); end end

  • Inputs:

Multidimentional signal ξ

STL/PSL specification ϕ

  • Compute, from bottom-up, a signal

χψ(ξ) for each subformila ψ of φ

  • COMBINE computes from input signals

a new signal based on the specific op- eration

slide-28
SLIDE 28

Offline Marking

AMT: a Property-based Tool for Monitoring Analog Systems 13 / 22

input : STL/PSL Temporal Formula ϕ and signal ξ switch ϕ do case p χϕ := πp(ξ); end case OP2(ϕ1, ϕ2) OFFLINE (ϕ1, ϕ2); χϕ := COMBINE(OP2, χϕ1, χϕ2)); end end

  • Inputs:

Multidimentional signal ξ

STL/PSL specification ϕ

  • Compute, from bottom-up, a signal

χψ(ξ) for each subformila ψ of φ

  • COMBINE computes from input signals

a new signal based on the specific op- eration

slide-29
SLIDE 29

COMBINE: Disjunction and Eventually

AMT: a Property-based Tool for Monitoring Analog Systems 14 / 22

  • Disjunction

Refine the intervals of χφ1 and χφ2 so that the mutual values of both signals become uniform in every interval

Compute the disjunction interval- wise

Merge the adjacent intervals hav- ing the same value

χϕ1 χϕ2 χϕ1 or ϕ2

  • Bounded Eventually

For every positive interval I ∈ χϕ1

Compute its back shifting I − [a, b] ∩ T

Merge the overlapping intervals in χϕ

slide-30
SLIDE 30

COMBINE: Disjunction and Eventually

AMT: a Property-based Tool for Monitoring Analog Systems 14 / 22

  • Disjunction

Refine the intervals of χφ1 and χφ2 so that the mutual values of both signals become uniform in every interval

Compute the disjunction interval- wise

Merge the adjacent intervals hav- ing the same value

χϕ1 χϕ2 χϕ1 or ϕ2

  • Bounded Eventually

For every positive interval I ∈ χϕ1

Compute its back shifting I − [a, b] ∩ T

Merge the overlapping intervals in χϕ

slide-31
SLIDE 31

COMBINE: Disjunction and Eventually

AMT: a Property-based Tool for Monitoring Analog Systems 14 / 22

  • Disjunction

Refine the intervals of χφ1 and χφ2 so that the mutual values of both signals become uniform in every interval

Compute the disjunction interval- wise

Merge the adjacent intervals hav- ing the same value

χϕ1 χϕ1 or ϕ2 χϕ2

  • Bounded Eventually

For every positive interval I ∈ χϕ1

Compute its back shifting I − [a, b] ∩ T

Merge the overlapping intervals in χϕ

slide-32
SLIDE 32

COMBINE: Disjunction and Eventually

AMT: a Property-based Tool for Monitoring Analog Systems 14 / 22

  • Disjunction

Refine the intervals of χφ1 and χφ2 so that the mutual values of both signals become uniform in every interval

Compute the disjunction interval- wise

Merge the adjacent intervals hav- ing the same value

χϕ1 χϕ or ϕ2 χϕ2

  • Bounded Eventually

For every positive interval I ∈ χϕ1

Compute its back shifting I − [a, b] ∩ T

Merge the overlapping intervals in χϕ

slide-33
SLIDE 33

COMBINE: Disjunction and Eventually

AMT: a Property-based Tool for Monitoring Analog Systems 14 / 22

  • Disjunction

Refine the intervals of χφ1 and χφ2 so that the mutual values of both signals become uniform in every interval

Compute the disjunction interval- wise

Merge the adjacent intervals hav- ing the same value

χϕ1 χϕ or ϕ2 χϕ2

  • Bounded Eventually

For every positive interval I ∈ χϕ1

Compute its back shifting I − [a, b] ∩ T

Merge the overlapping intervals in χϕ

1 2

2 - eventually![a,b] χϕ1 1 - χϕ1

slide-34
SLIDE 34

COMBINE: Disjunction and Eventually

AMT: a Property-based Tool for Monitoring Analog Systems 14 / 22

  • Disjunction

Refine the intervals of χφ1 and χφ2 so that the mutual values of both signals become uniform in every interval

Compute the disjunction interval- wise

Merge the adjacent intervals hav- ing the same value

χϕ1 χϕ or ϕ2 χϕ2

  • Bounded Eventually

For every positive interval I ∈ χϕ1

Compute its back shifting I − [a, b] ∩ T

Merge the overlapping intervals in χϕ

1 2

2 - eventually![a,b] χϕ1

t

1 - χϕ1

t′ t − b t′ − a

slide-35
SLIDE 35

COMBINE: Disjunction and Eventually

AMT: a Property-based Tool for Monitoring Analog Systems 14 / 22

  • Disjunction

Refine the intervals of χφ1 and χφ2 so that the mutual values of both signals become uniform in every interval

Compute the disjunction interval- wise

Merge the adjacent intervals hav- ing the same value

χϕ1 χϕ or ϕ2 χϕ2

  • Bounded Eventually

For every positive interval I ∈ χϕ1

Compute its back shifting I − [a, b] ∩ T

Merge the overlapping intervals in χϕ

1 2

2 - eventually![a,b] χϕ1

t

1 - χϕ1

t′ t − b t′ − a

slide-36
SLIDE 36

COMBINE: Disjunction and Eventually

AMT: a Property-based Tool for Monitoring Analog Systems 14 / 22

  • Disjunction

Refine the intervals of χφ1 and χφ2 so that the mutual values of both signals become uniform in every interval

Compute the disjunction interval- wise

Merge the adjacent intervals hav- ing the same value

χϕ1 χϕ or ϕ2 χϕ2

  • Bounded Eventually

For every positive interval I ∈ χϕ1

Compute its back shifting I − [a, b] ∩ T

Merge the overlapping intervals in χϕ

1 2

2 - eventually![a,b] χϕ1 1 - χϕ1

slide-37
SLIDE 37

COMBINE: Arithmetic Operations

AMT: a Property-based Tool for Monitoring Analog Systems 15 / 22

  • Pointwise arithmetic operation on two

signals

  • Take the union of their sampling points
  • Extend each signal to the new points

by interpolation

  • Apply the operation on each pair of

sampling points

χϕ1 χϕ2 χϕ1−ϕ2

slide-38
SLIDE 38

COMBINE: Arithmetic Operations

AMT: a Property-based Tool for Monitoring Analog Systems 15 / 22

  • Pointwise arithmetic operation on two

signals

  • Take the union of their sampling points
  • Extend each signal to the new points

by interpolation

  • Apply the operation on each pair of

sampling points

χϕ1 χϕ2 χϕ1−ϕ2

slide-39
SLIDE 39

COMBINE: Arithmetic Operations

AMT: a Property-based Tool for Monitoring Analog Systems 15 / 22

  • Pointwise arithmetic operation on two

signals

  • Take the union of their sampling points
  • Extend each signal to the new points

by interpolation

  • Apply the operation on each pair of

sampling points

χϕ1 χϕ2 χϕ1−ϕ2

slide-40
SLIDE 40

Incremental Marking

AMT: a Property-based Tool for Monitoring Analog Systems 16 / 22

input : STL/PSL Temporal Formula ϕ and increment ∆ξ switch ϕ do case p ∆ϕ := ∆ϕ · πp(∆ξ); end case OP2(ϕ1, ϕ2) INCREMENTAL (ϕ1, ϕ2); αϕ := COMBINE(OP2, χϕ1, χϕ2)); d := |αϕ| ; ∆ϕ := ∆ϕ · αϕ ; χϕ1 := χϕ1 · ∆ϕ1d ; ∆ϕ1 := d\∆ϕ1 ; χϕ2 := χϕ2 · ∆ϕ2d ; ∆ϕ2 := d\∆ϕ2 end end ∆ψ χψ χψ1 χψ2 ∆ψ1 ∆ψ2

slide-41
SLIDE 41

Incremental Marking

AMT: a Property-based Tool for Monitoring Analog Systems 16 / 22

input : STL/PSL Temporal Formula ϕ and increment ∆ξ switch ϕ do case p ∆ϕ := ∆ϕ · πp(∆ξ); end case OP2(ϕ1, ϕ2) INCREMENTAL (ϕ1, ϕ2); αϕ := COMBINE(OP2, χϕ1, χϕ2)); d := |αϕ| ; ∆ϕ := ∆ϕ · αϕ ; χϕ1 := χϕ1 · ∆ϕ1d ; ∆ϕ1 := d\∆ϕ1 ; χϕ2 := χϕ2 · ∆ϕ2d ; ∆ϕ2 := d\∆ϕ2 end end ∆ψ χψ χψ1 χψ2 ∆ψ1 ∆ψ2

slide-42
SLIDE 42

Incremental Marking

AMT: a Property-based Tool for Monitoring Analog Systems 16 / 22

input : STL/PSL Temporal Formula ϕ and increment ∆ξ switch ϕ do case p ∆ϕ := ∆ϕ · πp(∆ξ); end case OP2(ϕ1, ϕ2) INCREMENTAL (ϕ1, ϕ2); αϕ := COMBINE(OP2, χϕ1, χϕ2)); d := |αϕ| ; ∆ϕ := ∆ϕ · αϕ ; χϕ1 := χϕ1 · ∆ϕ1d ; ∆ϕ1 := d\∆ϕ1 ; χϕ2 := χϕ2 · ∆ϕ2d ; ∆ϕ2 := d\∆ϕ2 end end COMBINE ∆ψ χψ χψ1 χψ2 αψ ∆ψ1 ∆ψ2

slide-43
SLIDE 43

Incremental Marking

AMT: a Property-based Tool for Monitoring Analog Systems 16 / 22

input : STL/PSL Temporal Formula ϕ and increment ∆ξ switch ϕ do case p ∆ϕ := ∆ϕ · πp(∆ξ); end case OP2(ϕ1, ϕ2) INCREMENTAL (ϕ1, ϕ2); αϕ := COMBINE(OP2, χϕ1, χϕ2)); d := |αϕ| ; ∆ϕ := ∆ϕ · αϕ ; χϕ1 := χϕ1 · ∆ϕ1d ; ∆ϕ1 := d\∆ϕ1 ; χϕ2 := χϕ2 · ∆ϕ2d ; ∆ϕ2 := d\∆ϕ2 end end ∆ψ χψ χψ1 χψ2 αψ ∆ψ1 ∆ψ2

slide-44
SLIDE 44

Incremental Marking

AMT: a Property-based Tool for Monitoring Analog Systems 16 / 22

input : STL/PSL Temporal Formula ϕ and increment ∆ξ switch ϕ do case p ∆ϕ := ∆ϕ · πp(∆ξ); end case OP2(ϕ1, ϕ2) INCREMENTAL (ϕ1, ϕ2); αϕ := COMBINE(OP2, χϕ1, χϕ2)); d := |αϕ| ; ∆ϕ := ∆ϕ · αϕ ; χϕ1 := χϕ1 · ∆ϕ1d ; ∆ϕ1 := d\∆ϕ1 ; χϕ2 := χϕ2 · ∆ϕ2d ; ∆ϕ2 := d\∆ϕ2 end end ∆ψ χψ χψ1 χψ2 αψ ∆ψ1 ∆ψ2

slide-45
SLIDE 45

Incremental Marking

AMT: a Property-based Tool for Monitoring Analog Systems 16 / 22

input : STL/PSL Temporal Formula ϕ and increment ∆ξ switch ϕ do case p ∆ϕ := ∆ϕ · πp(∆ξ); end case OP2(ϕ1, ϕ2) INCREMENTAL (ϕ1, ϕ2); αϕ := COMBINE(OP2, χϕ1, χϕ2)); d := |αϕ| ; ∆ϕ := ∆ϕ · αϕ ; χϕ1 := χϕ1 · ∆ϕ1d ; ∆ϕ1 := d\∆ϕ1 ; χϕ2 := χϕ2 · ∆ϕ2d ; ∆ϕ2 := d\∆ϕ2 end end ∆ψ χψ χψ1 χψ2 ∆ψ1 ∆ψ2

slide-46
SLIDE 46

Incremental Marking

AMT: a Property-based Tool for Monitoring Analog Systems 16 / 22

  • Advantages of the incremental algo-

rithm

Often more memory efficient

Determined parts of the signal may be discarded

Early detection of errors

∆ψ χψ χψ1 χψ2 ∆ψ1 ∆ψ2

slide-47
SLIDE 47

AMT Tool Overview

AMT: a Property-based Tool for Monitoring Analog Systems 17 / 22

  • Stand alone tool for lightweight verification of properties on continuous signals
  • Inputs:

STL/PSL specification

Input signals (Boolan or continuous)

From a file (raw, vcd and out format)

Dynamic inputs through TCP/IP packets

  • Property evaluation:

Offline

Incremental

  • Visual evaluation of results
slide-48
SLIDE 48

AMT Tool Overview

AMT: a Property-based Tool for Monitoring Analog Systems 17 / 22

  • Stand alone tool for lightweight verification of properties on continuous signals
  • Inputs:

STL/PSL specification

Input signals (Boolan or continuous)

From a file (raw, vcd and out format)

Dynamic inputs through TCP/IP packets

  • Property evaluation:

Offline

Incremental

  • Visual evaluation of results
slide-49
SLIDE 49

AMT Tool Overview

AMT: a Property-based Tool for Monitoring Analog Systems 17 / 22

  • Stand alone tool for lightweight verification of properties on continuous signals
  • Inputs:

STL/PSL specification

Input signals (Boolan or continuous)

From a file (raw, vcd and out format)

Dynamic inputs through TCP/IP packets

  • Property evaluation:

Offline

Incremental

  • Visual evaluation of results
slide-50
SLIDE 50

AMT Tool Overview

AMT: a Property-based Tool for Monitoring Analog Systems 17 / 22

  • Stand alone tool for lightweight verification of properties on continuous signals
  • Inputs:

STL/PSL specification

Input signals (Boolan or continuous)

From a file (raw, vcd and out format)

Dynamic inputs through TCP/IP packets

  • Property evaluation:

Offline

Incremental

  • Visual evaluation of results
slide-51
SLIDE 51

AMT Tool: Main Window

AMT: a Property-based Tool for Monitoring Analog Systems 18 / 22

slide-52
SLIDE 52

FLASH Memory Case Study

AMT: a Property-based Tool for Monitoring Analog Systems 19 / 22

  • Provided by STM Italy
  • Why Flash memory?

Analog circuit that implements digital behavior

Good connection between analog and digital worlds

  • Different modes

Programming, reading, erasing, etc.

  • Characteristic signals

bl: bit line terminal

pw: p-well terminal

wl: word line

s: source terminal

vt: threshold voltage of cell

id: drain current of cell

  • Correct functioning in a given mode de-

termined by the behavior of the charac- teristic signals

  • 5 properties specifying the correct be-

havior

slide-53
SLIDE 53

FLASH Memory Case Study

AMT: a Property-based Tool for Monitoring Analog Systems 19 / 22

  • Provided by STM Italy
  • Why Flash memory?

Analog circuit that implements digital behavior

Good connection between analog and digital worlds

  • Different modes

Programming, reading, erasing, etc.

  • Characteristic signals

bl: bit line terminal

pw: p-well terminal

wl: word line

s: source terminal

vt: threshold voltage of cell

id: drain current of cell

  • Correct functioning in a given mode de-

termined by the behavior of the charac- teristic signals

  • 5 properties specifying the correct be-

havior

slide-54
SLIDE 54

FLASH Memory Case Study

AMT: a Property-based Tool for Monitoring Analog Systems 19 / 22

  • Provided by STM Italy
  • Why Flash memory?

Analog circuit that implements digital behavior

Good connection between analog and digital worlds

  • Different modes

Programming, reading, erasing, etc.

  • Characteristic signals

bl: bit line terminal

pw: p-well terminal

wl: word line

s: source terminal

vt: threshold voltage of cell

id: drain current of cell

  • Correct functioning in a given mode de-

termined by the behavior of the charac- teristic signals

  • 5 properties specifying the correct be-

havior

slide-55
SLIDE 55

FLASH Memory Case Study

AMT: a Property-based Tool for Monitoring Analog Systems 19 / 22

  • Provided by STM Italy
  • Why Flash memory?

Analog circuit that implements digital behavior

Good connection between analog and digital worlds

  • Different modes

Programming, reading, erasing, etc.

  • Characteristic signals

bl: bit line terminal

pw: p-well terminal

wl: word line

s: source terminal

vt: threshold voltage of cell

id: drain current of cell

  • Correct functioning in a given mode de-

termined by the behavior of the charac- teristic signals

  • 5 properties specifying the correct be-

havior

slide-56
SLIDE 56

FLASH Memory Case Study

AMT: a Property-based Tool for Monitoring Analog Systems 19 / 22

  • Provided by STM Italy
  • Why Flash memory?

Analog circuit that implements digital behavior

Good connection between analog and digital worlds

  • Different modes

Programming, reading, erasing, etc.

  • Characteristic signals

bl: bit line terminal

pw: p-well terminal

wl: word line

s: source terminal

vt: threshold voltage of cell

id: drain current of cell

  • Correct functioning in a given mode de-

termined by the behavior of the charac- teristic signals

  • 5 properties specifying the correct be-

havior

slide-57
SLIDE 57

Case Study Example: Erasing Property

AMT: a Property-based Tool for Monitoring Analog Systems 20 / 22

vprop erasing { define b:erasing_cond := a:wl <= -6 and a:pw > 5; erasing assert: always (b:erasing_cond -> (distance (a:s,a:pw,0.1) and (a:bl-a:pw)>-0.83)); }

(a) (c) (b) (d) (e) (f) (g) (h)

slide-58
SLIDE 58

Tool Evaluation

AMT: a Property-based Tool for Monitoring Analog Systems 21 / 22

pgm sim erase sim name # intervals # intervals wl 34829 283624 pw 25478 283037 s 33433 282507 bl 32471 139511 id 375 n/a

Table 1: Input Size

slide-59
SLIDE 59

Tool Evaluation

AMT: a Property-based Tool for Monitoring Analog Systems 21 / 22

pgm sim erase sim name # intervals # intervals wl 34829 283624 pw 25478 283037 s 33433 282507 bl 32471 139511 id 375 n/a

Table 1: Input Size

property time (s) # intervals programming1 0.14 99715 programming2 0.42 405907 p-well 0.12 89071 decay 0.50 594709 erasing 2.35 2968578

Table 2: Offline Algorithm Evaluation

slide-60
SLIDE 60

Tool Evaluation

AMT: a Property-based Tool for Monitoring Analog Systems 21 / 22

pgm sim erase sim name # intervals # intervals wl 34829 283624 pw 25478 283037 s 33433 282507 bl 32471 139511 id 375 n/a

Table 1: Input Size

property time (s) # intervals programming1 0.14 99715 programming2 0.42 405907 p-well 0.12 89071 decay 0.50 594709 erasing 2.35 2968578

Table 2: Offline Algorithm Evaluation

Offline Incremental Property t = total # intervals m = max # active intervals m/t * 100 programming1 99715 65700 65.9 programming2 594709 242528 40.8 p-well 89071 8 0.01 decay 594709 279782 47.1

Table 3: Offline/Incremental Space Requirement Comparison

slide-61
SLIDE 61

Conclusion

AMT: a Property-based Tool for Monitoring Analog Systems 22 / 22

  • Main contributions:

AMT tool that monitors temporal properties of continuous signals

Description of properties in STL/PSL specification language

Offline and incremental algorithms

Integration with numerical simulatiors via simulation dump files or TCP/IP link

FLASH memory case study

Validates the tool and the approach

Shows the automation and efficiency of monitoring continuous signals

slide-62
SLIDE 62

Conclusion

AMT: a Property-based Tool for Monitoring Analog Systems 22 / 22

  • Main contributions:

AMT tool that monitors temporal properties of continuous signals

Description of properties in STL/PSL specification language

Offline and incremental algorithms

Integration with numerical simulatiors via simulation dump files or TCP/IP link

FLASH memory case study

Validates the tool and the approach

Shows the automation and efficiency of monitoring continuous signals