1 / 17

EECE **** Embedded System Design

EECE **** Embedded System Design. Validation. Formal verification. Formal verification = formally proving a system correct, using the language of mathematics. Formal model required. Obtaining this cannot be automated. If the model is available, we can try to prove properties.

xue
Download Presentation

EECE **** Embedded System Design

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. EECE **** Embedded System Design

  2. Validation

  3. Formal verification • Formal verification = formally proving a system correct, using the language of mathematics. • Formal model required. Obtaining this cannot be automated. • If the model is available, we can try to prove properties. • Even a formally verified system can fail (e.g. if assumptions are not met). • Classification by the type of logics.

  4. Propositional logic (1) • Consisting of Boolean formulas comprising Boolean variables and connectives such as  and . • Gate-level logic networks can be described. • Typical aim: checking if two models are equivalent(called tautology checkers or equivalence checkers). • Since propositional logic is decidable, it is also decidable whether or not the two representations are equivalent. • Tautology checkers can frequently cope with designs which are too large to allow simulation-based exhaustive validation.

  5. Propositional logic (2) • Reason for power of tautology checkers: Binary Decision Diagrams (BDDs) • Complexity of equivalence checks of Boolean functions represented with BDDs: O(number of BDD-nodes) (equivalence check for sums of products is NP-hard).#(BDD-nodes) not to be ignored! • Many functions can be efficiently represented with BDDs.In general, however, the #(nodes) of BDDs grows exponentially with the number of variables. • Simulators frequently replaced by equivalence checkers if functions can be efficiently represented with BDDs. • Very much limited ability to verify FSMs.

  6. First order logic (FOL) • FOL includes quantification, using and. • Some automation for verifying FOL models is feasible. • However, sinceFOL is undecidable in general, there may be cases of doubt.

  7. Higher order logic (HOL) Higher order allows functions to be manipulatedlike other objects. For higher order logic, proofs can hardly ever be automatedandtypically must be done manually with some proof-support.

  8. Temporal logic (1) • Logic extended with a notion of "time" • Branching vs. linear time: • Linear timeModels physical timeAt each time instant, only one of the future behaviors is considered. • Branching time (at each time instant, all possible future behaviors are considered). Models different computational sequences of a system. Nondeterministic selection of the path taken.

  9. Temporal logic (2) • Discrete vs. continuous time • Discrete timeUsed by most temporal logics, mostly using natural numbers to model time. • Continuous timeUsing real numbers ℕ ℝ

  10. Temporal structures • Definition: A temporal structureM:= (S,R,L) consists of • A finite set of states S • A transition relation RSS with sSs'S:(s,s')R • A labeling function L: S(V), with being the set of propositional variables (atomic formulas) This structure is often called Kripke structure.

  11. Link between temporal structuresand computation trees • Starting state s° S defined • Temporal structure • Computation trees s° ab ab bc c s² s1 bc c c ab c T. Kropf: Introduction to Formal Hardware Verification, Springer, 1999

  12. Computation tree logic (CTL) • Let V be a set of atomic propositions • CTL formulas are defined recursively: • Every atomic proposition is a formula • If f1 and f2 are CTL formulas, then so are f1, f1f2,AXf1, EX f1, A[f1 U f2] and E[f1 U f2] • AXf1 means: holds in state s° ifff1 holds in all successor states ofs° • EX f1 means: There exists a successor such that f1 holds • A[f1 U f2] means: always until. • E[f1 U f2] means: There exists a path such that f1 holds until is f2 satisfied.

  13. Model checking • Aims at the verification of finite state systems. • Analyzes the state space of the system. • Verification using this approach requires three stages: • generation of a model of the system to be verified, • definition of the properties expected, and • model checking (the actual verification step).

  14. 2 types of input Verification tools can prove or disprove the properties. In the latter case, theycan provide a counter-example. Example: Clarke’s EMC-system

  15. Computational properties • Model checking is easier to automate thanFOL. • In 1987, model checking was implemented using BDDs. • It was possible tolocate several errors in the specification of the future bus protocol. • Extensions are needed in order to also cover real-time behavior and numbers.

  16. Examples of successful verification (1) • Microprocessors • Generic interpreter theory • Pipelined processors • FM 9001 • AAMP5 • PowerPC transistor level verification [Kühlmann, 1995] Floating point units • Intel extended precision FPU • ADK IEEE floating point multiplier

  17. Examples of successful verification (2) • Asynchronous and distributed systems • Summit bus converter • Cache coherence protocols Memory subsystems ATM switch fabrics

More Related