Combining Symbolic Simulation and Interval Arithmetic for the Verification of AMS Designs Mohamed Zaki, Ghiath Al Sammane, Sofiene Tahar, Guy Bois FMCAD'07.

Slides:



Advertisements
Similar presentations
1 Verification by Model Checking. 2 Part 1 : Motivation.
Advertisements

Copyright 2000 Cadence Design Systems. Permission is granted to reproduce without modification. Introduction An overview of formal methods for hardware.
Tintu David Joy. Agenda Motivation Better Verification Through Symmetry-basic idea Structural Symmetry and Multiprocessor Systems Mur ϕ verification system.
Auto-Generation of Test Cases for Infinite States Reactive Systems Based on Symbolic Execution and Formula Rewriting Donghuo Chen School of Computer Science.
Switching circuits Composed of switching elements called “gates” that implement logical blocks or switching expressions Positive logic convention (active.
The need for AMS assertions Verify the analog/digital interfaces at block and SoC levels –Check properties involving voltages and currents –Check complex.
Representing Boolean Functions for Symbolic Model Checking Supratik Chakraborty IIT Bombay.
Introducing Formal Methods, Module 1, Version 1.1, Oct., Formal Specification and Analytical Verification L 5.
François Fages MPRI Bio-info 2006 Formal Biology of the Cell Modeling, Computing and Reasoning with Constraints François Fages, Constraints Group, INRIA.
Fast Algorithms For Hierarchical Range Histogram Constructions
Timed Automata.
Supervisory Control of Hybrid Systems Written by X. D. Koutsoukos et al. Presented by Wu, Jian 04/16/2002.
Models for Control and Verification Ian Mitchell Department of Computer Science The University of British Columbia research supported by National Science.
Point-wise Discretization Errors in Boundary Element Method for Elasticity Problem Bart F. Zalewski Case Western Reserve University Robert L. Mullen Case.
ECE 553: TESTING AND TESTABLE DESIGN OF DIGITAL SYSTES Logic Simulation.
Robustness analysis and tuning of synthetic gene networks February 15, 2008 Eyad Lababidi Based on the paper “Robustness analysis and tuning of synthetic.
Zonotopes Techniques for Reachability Analysis Antoine Girard Workshop “Topics in Computation and Control” March 27 th 2006, Santa Barbara, CA, USA
Verification of Hybrid Systems An Assessment of Current Techniques Holly Bowen.
Reachability Analysis for AMS Verification using Hybrid Support Function and SMT- based Method Honghuang Lin, Peng Li Dept. of ECE, Texas A&M University.
ECE 720T5 Fall 2012 Cyber-Physical Systems Rodolfo Pellizzoni.
SYMBOLIC MODEL CHECKING: STATES AND BEYOND J.R. Burch E.M. Clarke K.L. McMillan D. L. Dill L. J. Hwang Presented by Rehana Begam.
Nir Piterman Department of Computer Science TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAAA Bypassing Complexity.
Trajectory-Directed Discrete State Space Modeling for Formal Verification of Nonlinear Analog Circuits Presented by Valeriy Balabanov.
President UniversityErwin SitompulSMI 7/1 Dr.-Ing. Erwin Sitompul President University Lecture 7 System Modeling and Identification
Surface to Surface Intersection N. M. Patrikalakis, T. Maekawa, K. H. Ko, H. Mukundan May 25, 2004.
Model Checking. Used in studying behaviors of reactive systems Typically involves three steps: Create a finite state model (FSM) of the system design.
Ensuring Correctness of Analog Circuits Using Pattern Matching Rajeev Narayanan, Alaeddine Daghar, Mohamed H. Zaki, and Sofiène Tahar Hardware Verification.
ECE Synthesis & Verification1 ECE 667 Spring 2011 Synthesis and Verification of Digital Systems Verification Introduction.
Chess Review May 11, 2005 Berkeley, CA Operational Semantics of Hybrid Systems Haiyang Zheng and Edward A. Lee With contributions from the Ptolemy group.
Approximate Abstraction for Verification of Continuous and Hybrid Systems Antoine Girard Guest lecture ESE601: Hybrid Systems 03/22/2006
Models of Computation for Embedded System Design Alvise Bonivento.
Taylor Expansion Diagrams (TED): Verification EC667: Synthesis and Verification of Digital Systems Spring 2011 Presented by: Sudhan.
ESE601: Hybrid Systems Introduction to verification Spring 2006.
Formal verification Marco A. Peña Universitat Politècnica de Catalunya.
Application of Formal Verification Methods to the analysis of Bearings-only Ballistic Missile Interception Algorithms Eli Bendersky Michael Butvinnik Supervisor:
Antoine Girard VAL-AMS Project Meeting April 2007 Behavioral Metrics for Simulation-based Circuit Validation.
Numerical algorithms for power system protection Prof. dr. sc. Ante Marušić, doc. dr. sc. Juraj Havelka University of Zagreb Faculty of Electrical Engineering.
Cheng/Dillon-Software Engineering: Formal Methods Model Checking.
Regular Model Checking Ahmed Bouajjani,Benget Jonsson, Marcus Nillson and Tayssir Touili Moran Ben Tulila
1 DISTRIBUTION A. Approved for public release; Distribution unlimited. (Approval AFRL PA # 88ABW , 09 April 2014) Reducing the Wrapping Effect.
Roza Ghamari Bogazici University April Outline Introduction SystemC Language Formal Verification Techniques for SystemC Design and Verification.
ECE 720T5 Winter 2014 Cyber-Physical Systems Rodolfo Pellizzoni.
Using Mathematica for modeling, simulation and property checking of hardware systems Ghiath AL SAMMANE VDS group : Verification & Modeling of Digital systems.
Benjamin Gamble. What is Time?  Can mean many different things to a computer Dynamic Equation Variable System State 2.
Introduction to Digital Logic and Circuits EE 101, Fall 2015 University of Kentucky.
1 Automatic Refinement and Vacuity Detection for Symbolic Trajectory Evaluation Orna Grumberg Technion Haifa, Israel Joint work with Rachel Tzoref.
Toward Efficient Flow-Sensitive Induction Variable Analysis and Dependence Testing for Loop Optimization Yixin Shou, Robert A. van Engelen, Johnnie Birch,
Overview Particle filtering is a sequential Monte Carlo methodology in which the relevant probability distributions are iteratively estimated using the.
Formal Verification Lecture 9. Formal Verification Formal verification relies on Descriptions of the properties or requirements Descriptions of systems.
September Bound Computation for Adaptive Systems V&V Giampiero Campa September 2008 West Virginia University.
THE LAPLACE TRANSFORM LEARNING GOALS Definition
- 1 -  P. Marwedel, Univ. Dortmund, Informatik 12, 05/06 Universität Dortmund Validation - Formal verification -
Lecture 5 1 CSP tools for verification of Sec Prot Overview of the lecture The Casper interface Refinement checking and FDR Model checking Theorem proving.
Verification & Validation By: Amir Masoud Gharehbaghi
Topics 1 Specific topics to be covered are: Discrete-time signals Z-transforms Sampling and reconstruction Aliasing and anti-aliasing filters Sampled-data.
Math for CS Fourier Transforms
Model Checking Early Requirements Specifications in Tropos Presented by Chin-Yi Tsai.
Chapter 4 Dynamical Behavior of Processes Homework 6 Construct an s-Function model of the interacting tank-in-series system and compare its simulation.
Chapter 4 Dynamical Behavior of Processes Homework 6 Construct an s-Function model of the interacting tank-in-series system and compare its simulation.
Biomedical Signal processing Chapter 1 Introduction
Vishwani D. Agrawal Department of ECE, Auburn University
Gabor Madl Ph.D. Candidate, UC Irvine Advisor: Nikil Dutt
Autonomous Cyber-Physical Systems: Dynamical Systems
Semi-Symbolic Analysis of Analog and Signal Processing Systems
Biomedical Signal processing Chapter 1 Introduction
IS 2935: Developing Secure Systems
ECE/CS 584: Verification of Embedded Computing Systems
Discrete Controller Synthesis
Biomedical Signal processing Chapter 1 Introduction
Introduction to verification
Presentation transcript:

Combining Symbolic Simulation and Interval Arithmetic for the Verification of AMS Designs Mohamed Zaki, Ghiath Al Sammane, Sofiene Tahar, Guy Bois FMCAD'07 November 14 th, Hardware Verification Group, ECE Department, Concordia University 2 Génie Informatique, Ecole Polytechnique de Montréal 11 2

Introduction Related Work Verification Methodology –Modelling AMS Designs –Symbolic Simulation –Verification Algorithm Applications –ΔΣ Modulator –Analog Oscillator Conclusion Outline

A cornerstone in embedded systems are analog and mixed signal (AMS) designs, usually needed at the interface with the real world. AMS applications Front-end: sensors, amp., filters, A/D Back-end: D/A, filters, oscillators, PLL High performance digital circuits Introduction One important issue in the design process is verification. Used verification methods: Simulation and Symbolic Analysis. One important issue in the design process is verification. Used verification methods: Simulation and Symbolic Analysis. Formal Verification for AMS?

Problem in AMS Verification Contains continuous components Infinite continuous state space Dense time Strong nonlinear behavior with digital components Exhaustive simulation is out of reach The closed form solution of differential equations is only possible for specific cases

Formal verification for AMS: Kurshan ’91, Greenstreet ’98, Gupta’04, Dang’04, Hartong’05, Myers’05, Frehse’06 Verified Designs:  -  modulators, filters, oscillators, VCO… Used Tools: d/dt, PHAVer, Checkmate, Coho… Basic Idea: Approximate Analysis using (e.g.: interval, polyhedral). Pros: guaranteeing the inclusion of the solution, hence soundness Cons: computationally expensive, low dimension systems. Motivation

Proposed Methodology The idea is based on approximation by interval Taylor model forms We propose a recurrence equations based bounded model checking approach for AMS systems. Symbolic partInterval part

Verification Methodology Temporal Property Symbolic Simulation Interval based Bounded Model Checking Property is False (Counterexample Generated) Combined SRE Recurrence Equations AMS System Continuous- Time Digital Discrete- Time Taylor Approximation Property is Proved True for a Bounded Time

Temporal Property Symbolic Simulation Interval based Bounded Model Checking Property is False (Counterexample Generated) Property is Proved True for a Bounded Time Combined SRE Recurrence Equations AMS System Continuous- Time Digital Discrete- Time Taylor Approximation AMS Modelling

A large class of AMS designs can be modeled using piecewise differential equations. The analog behavior is governed by the differential equations: Differential Equations AMS exhibits piecewise behavior due to: Abrupt change in input signal, parameters Change in the analog behavior Events generated by control logic, switching conditions AMS exhibits piecewise behavior due to: Abrupt change in input signal, parameters Change in the analog behavior Events generated by control logic, switching conditions AMS designs are described using discrete time, continuous time analog behavior interacting with discrete digital components.

Extending System of ODEs using Generalized Piecewise Formula If-Expression (If[Cond, y, z]) Logical, comparison or arithmetic formula ► ► ► ► ► A closed form solution is generally not available for ODE systems and discrete approximate models are used. Differential Equations

RE index Extending System of Recurrence Equations The generalized If-formula is a class of expressions that extend recurrence equations [Al Sammane’05] to describe digital and mixed signal designs If-Expression (If[Cond, y, z]) Logical, comparison or arithmetic formula ► ► ► Recurrence Equations

Requirement:- Discrete sampling that captures all the different states in the continuous evolution. Approximation of the ODE as truncated Taylor series expanded about time instant with a remainder term Behavior Mapping :=: Map Piecewise ODE to SRE

The ODE system under certain assumptions, can be time descretized using Taylor Approximation Taylor Approximation Such representation allows an approximate polynomial description of the behavior of an ODE system using SRE. Remainder

AMS Example

To preserve the original behavior, the remainder term should not be discarded and instead bounds must be specified. Intervals are numerical domains that enclose the original states of a system of equations at each discrete step Taylor Models Approximation Symbolic partInterval part Taylor Model Approximation

Taylor model arithmetic developed as an interval extension to Taylor approximations Allowing the over- approximation of system reachable states using non-linear enclosure sets. Preserve relationships between state variables. Taylor Models Approximation A Taylor model for a given function f consists of a multivariate polynomial p n (x) of order n, and a remainder interval I, which encloses Lagrange remainder of the Taylor approximation Symbolic Simulation

Verification Methodology Temporal Property Symbolic Simulation Interval based Bounded Model Checking Symbolic Rewriting Phase Verification Phase Property is False (Counterexample Generated) Property is Proved True for a Bounded Time Next Interval States Combined SRE Recurrence Equations AMS System Continuous- Time Digital Discrete- Time Taylor Approximation

The symbolic simulation algorithm to obtain the generalized SRE is based on rewriting by substitution. Substitution rules Symbolic Simulation Polynomial symbolic expressions Logical symbolic expressions If-formula expressions Interval expressions Interval-Logical expressions Taylor Models expressions

Substitution Fixpoint Symbolic Simulation Algorithm Symbolic Simulation Rewrites using two rules ► ► Example

Interval Rules To preserve the original behavior, the remainder term should not be discarded and instead bounds must be specified. Intervals are numerical domains that enclose the original states of a system of equations at each discrete step Basic interval arithmetic operators can be defined as follows:

Interval analysis provides methods for checking truth values of Boolean propositions over intervals by using the notion of inclusion test Inclusion test: Examples: ► Interval Rules

The evaluation of a function is transformed to symbolically computing the Taylor polynomial of the function. Taylor polynomial will be propagated throughout the evaluation steps. Only the interval remainder term and polynomial terms of high orders are bounded using intervals. Taylor Models Rules

Example: Arithmetic over Taylor Model id V id

Example x, y bound

Verification Methodology Temporal Property Symbolic Simulation Interval based Bounded Model Checking Symbolic Rewriting Phase Verification Phase Property is False (Counterexample Generated) Property is Proved True for a Bounded Time Next Interval States Combined SRE Recurrence Equations AMS System Continuous- Time Digital Discrete- Time Taylor Approximation

Bounded model checking (BMC) algorithm relying on symbolic and interval computational methods Properties Bounded Model Checking

Computing the (overapproximate) reachable states is based on image computation. Bounded Model Checking

Divergence problem in the interval based reachability calculation due to: 1) Dependency problem. 2) Wrapping effect Evaluation of the reachable states over interval domains Over-approximation guarantee: Every trajectory in the initial system, is included in the interval-based reachable states. Example: x - x = 0 for x in [1, 2], but X – X = [-1, 1] for X = [1, 2] Bounded Model Checking

is an interval evaluation of Taylor model form of the function Overapproximation guarantee: Every trajectory in the initial system, is included in the Taylor Model based reachable states. Computing the (overapproximate) reachable states is based on image computation. Bounded Model Checking

3 rd Modulator Example

Application Verified Not Verified with Counterexample

Divergence Application

We presented a formal verification methodology for AMS designs. Methodology based on symbolic rewriting and Interval methods Continuous time is approximated using Taylor models Avoiding conventional Interval arithmetic like wrapping effect. Continuous state space is handled using symbolic-interval computations Allowing the over- approximation of reachable states using non-linear enclosure sets. Methodology implemented using the Mathematica computer algebra system Conclusion Future Work: Automatic extraction of SREs form HDL-AMS designs. Definition of an expressive property language for specifying properties of AMS designs. Explore more complex case studies.

THANKS ! More Info at hvg.ece.concordia.ca