Front-end Design and Implementation of Equivalence Checking System of Verilog HDL
- Author
- MaTieMin
- Advisor
- OuYangDanTong
- School
- Jilin University
- Major
- Computer Software and Theory
- Classification
- TP311.1 Programming
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 51
- Citations
- 0
Abstract
The verification of correctness of integrated circuit design is always important inacademia and industry and paying more attention to the research subject. The difficulty ofverification of grow gradually with the rapid development of large scale integrated circuit.The traditional test methods such as simulation and simulation not only can’t completecoverage of the errors and spend a lot of time. Because of all these defects, the traditional testtechniques have been unable to keep up with the pace of the high speed development ofintegrated circuits. The formal verification method using mathematical method completelyproof or verify the circuit design scheme and consistency of the function of circuit designdescription Generally speaking, the formal verification method has three categories,equivalence checking, model checking and theorem proving. The core goal of equivalencechecking is to verify functional equivalence of the two design model and the principle isbased on mathematical theorems and axiom. Equivalence checking includes combinationalcircuit equivalence checking and sequential circuit equivalence checking. The main work ofour front-end of CEC (the Combinational Equivalence Checking) system is extracting formalmodel from Verilog source code. In formal verification, the first step is to build a formalmodel. Most of the academic tools represent the designs in BLIF or BLIF-MV network, whilecannot directly take Verilog source code as an input. However, Verilog and VHDL are themost common used hardware description languages for large scale integrated circuits. It isnecessary if the source code could be used directly, rather than an intermediate format. Wenotice that synthesizable Verilog is well-structured which can be represented in SSA (StaticSingle Assignment) form. In this paper, we describe a method that extracts formal modeldirectly from Verilog source code by converting the code to SSA form. With this method, wehave implemented a prototype system that extracts formal model of Verilog programs. Wealso prove the conversion function-preserving by translating SSA back to Verilog andchecking its equivalence with the primary design. The main procedure of front-end of CECsystem is as follows: 1.The lexical and syntax of Verilog HDL are analyzed by lexical analyzer and syntaxanalyzer, and generating an internal syntactic representation of the program. The mostcommon IR is the Abstract Syntax Tree (AST). Then we do Elaboration based on AST.Elaboration is a process of finding identifier definitions, resolving parameters overridden byinstantiation and defparam statements, and generating fully–expanded code. In ourimplementation, the elaboration phase revises the AST to meet the needs. The elaborationphase is a necessary pre-process for the SSA conversion.2.We extract formal model from Verilog and it is in this phase that our Verilog model istransformed into SSA form which can be exploited by back-end solver conveniently.3.After extracting formal model, we take the source code model as a reference model andthe model through the transition as an implementation model to check whether the conversionis function-preserving with Formality.From Verilog source model to our formal model, three transitions are needed: Verilogsource model to AST model, AST model to elaboration model and elaboration model to SSAform model. SSA form model is the final extraction model to hand over to back-end solver.
Table of contents
Summary 4-6
Abstract 6-10
Chapter 1 Introduction significance 10-15
1.1 Formal verification significance 10-13
1.1.1 verification in circuit design inadequacies 10
1.1.2 traditional authentication methods 10-11
1.1.3 The significance of the research status 11-13
1.3 background and key issues briefs 13-15
Chapter 2 equivalence checking 15 - 18
2.1 functional verification methods 15-17
2.2 structural verification methods 17-18
Chapter 3 VERILOG language compiler generates an intermediate structure 18-30
3.1 regex 18
3.2 lexical analysis and parsing 18-22
3.2.1 lexical analyzer lex 19 - 21
3.2.2 parser yacc 21
combined with the use of nbsp 3.2.3 lex yacc; 21-22
3.3 Verilog files into intermediate data structure 22-27
3.3.1 Synthesis and Simulation 22-23
3.3.2 Verilog lexical analysis 23-24
3.3.3 Verilog syntax analysis 24-26
3.3.4 Verilog generate intermediate structures 26-27
3.4 AST conducted Elaboration process 27-30
Chapter 4 of the form of the model extraction relevant background 30-44
4.1 extraction model 30-33
4.1.1 background Introduction 30-31
4.1.2 extraction Model before working 31
4.1.3 SSA intermediate representation 31-33
achieve 4.2 extracted in the form of model 33-40
4.2.1 Verilog formal grammar 34-36
4.2.2 converted into SSA form 36-38
4.2.3 SSA verification 38-40
4.2.4 formal model 40
4.3 functionality retention 40-41
4.4 test results application form 41-42
4.5 model 42
4.6 summary 42-44
Chapter 5 summary and Outlook 44-45
References 45-48 <br / > Appendix About 48-52
authors and learning gained during research 52-53
Thanks 53
Related dissertations
- Functional Verification of YHFT-DX High Performance DSP
- Research on Formal Verification Methods for Integrated Circuit Based on PSA
- Verilog Combinational Equivalence Checking Based on SMT Constraint Solver
- Research on Logic Equivalence Checking for Integrated Circuits
- Equivalence Checking for Logic Circuits
- Research on Methods for Formal Verification of Vlsi Circuit
- Equivalence Checking and Test Generation Using Boolean Satisfiability
- Research on RTL-gate Equivalence Checking
- Formal Verification Method for Digital Circuits Based on Finite Ring Polynomials
- Research on Formal Verification Method for VLSI Design
- Research on SAT-based Formal Verification Approach for Digital Circuits
- The Equivalence Checking for Partial Implementations of Sequential Circuits
- An Equivalence Checking Method for Circuits with Black Boxes Based on Logic Cone and SAT
- Study on the Application of Formal Verification
- Study on the Formal Verification Methods of Combinatorial Circuit
- The Methodology Research and Application of the Verification in the Digital Circuit Back-end
- Research on Formal Verification Technology for Cryptographic Module’s APIs
- Logic Circuits Verification Based on BDD
- SAT algorithm applied to the formal verification of integrated circuits
- Research on AADL model transformation and verification