




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































by
David Van Campenhout
A dissertation submitted in partial fulfillment of the requirements for the degree of Doctor of Philosophy (Electrical Engineering) in The University of Michigan 1999
Doctoral Committee: Professor Trevor Mudge, Chair Professor Richard B. Brown Professor John P. Hayes Professor Karem A. Sakallah
ii
To my parents.
iii
I would like to express my sincere appreciation to my advisor Trevor Mudge for his mentoring and guidance. Trevor has also given me broad freedom in my research and has been much more than just a research advisor. My appreciation and thanks also goes to John Hayes. Working with John has been a great learning experience. I would like to thank Karem Sakallah and Richard Brown for serving on my committee.
I would like to thank those who volunteered their time and effort to participate in our error collection effort: Hussain Al-Asaad, Todd Basso, Mary Brown, Juan Antonio Carballo, Subhachandra Chandra, Robert Chappell, Jim Dundas, David Greene, Jonathan Hauke, Rohini Krishna Kaza, Michael Kelley, Matt Postiff, and Steve Raasch.
I thank my friends and colleagues in ACAL: Hussain Al-Alsaad, Jeff Bell, I-Cheng Chen, Brian Davis, Jim Dundas, Jonathan Hauke, Tom Huff, Jim Huggins, Hyungwon Kim, Keith Kraver, Victor Kravets, Chih-Chieh Lee, Charles Lefurgy, João Paulo Marques da Silva, Phiroze Parakh, Steeve Raasch, Mike Riepe, Mike Upton, and Hakan Yalcin. These individuals together with the faculty provided an intellectually stimulating environment where it was also fun to work. I will never forget Tim Stanley who left us much too early. I am grateful for several close friends I met during my years in Michigan and hope that they will continue to be part of my life.
My deepest appreciation goes to my parents for their unconditional love and encouragement. I am grateful to my brothers for their understanding.
I would like to acknowledge the Belgian American Educational Foundation for having given me the opportunity to study in the US and supporting my first year of study.
v
vi
Figure
1.1 Relationship between physical design verification and physical fault testing................................................... 23 1.2 Deployment of the proposed verification system...................... 24 2.1 Example of instruction sequence that exposes an error.................. 27 2.2 Bug report example............................................. 29 2.3 Error collection system.......................................... 31 2.4 Difference between two successive revisions......................... 33 2.5 Project evolution: code size [lines] and lines touched over time.......... 34 2.6 Revisions motivated by bug correction and other revisions over time...... 35 2.7 Design errors: time to discovery [days] vs. error size [lines]............. 36 2.8 Frequency of design errors in function of their size and multiplicity....... 37 3.1 CSSL1 error (x = 1, y / 0): a) error-free design; b) erroneous design with x ≠ 1; c) erroneous design with x = 1........................... 45 3.2 PROOFS’ error simulation algorithm............................... 51 3.3 CESIM error simulation algorithm for conditional errors................ 53 3.4 Example execution of CESIM for a 3-vector test sequence: a) PS- and PSBE-partitions of errors, b) corresponding state transitions.... 55 3.5 Run-time analysis of CESIM on the ISCAS’89 benchmarks............. 57 3.6 Coverage of CSSL0 and CSSL1 errors on s1238 by a CSSL0 test set generated by HITEC............................................ 58 3.7 Error simulation on s1238 with CSSL0 and CSSL1: number of distinct states.................................................. 59 3.8 Number of error sets during error simulation on s1238 with CSSL and CSSL1 errors.............................................. 60 3.9 Some basic error types [AA95].................................... 61 3.10 Simplified schematic of DLX implementation showing modules decode and top................................................ 66 3.11 Coverage of restricted CSSL0, restricted CSSL1, and actual errors by 14 biased random test sets T0-T13 for top......................... 68 3.12 Experiment to evaluate the proposed design verification methodology..... 70 3.13 Example of an actual design error in our DLX implementation........... 71 4.1 Instruction interaction mechanisms: a) bypassing, b) squashing, c) stalling..................................................... 84 4.2 Pipelined microprocessor model................................... 85 4.3 Pipelined controller............................................. 87
viii
Table: 1.1 Phases in the design of a microprocessor............................ 3 2.1 Design projects for which error data was collected..................... 32 2.2 Design files written for the X86 project............................. 33 2.3 Error distribution in X86......................................... 34 2.4 Design error distributions [%]..................................... 39 3.1 Characteristics of two modules of the DLX microprocessor implementation................................................ 65 3.2 Coverage of synthetic and actual errors by biased random tests T0-T13....................................................... 67 3.3 Actual design errors and the corresponding dominated modeled errors for DLX...................................................... 72 3.4 Actual design errors and the corresponding dominated modeled errors for LC2...................................................... 74 3.5 Comparison of practical design error models......................... 76 4.1 Initial C- and O- values.......................................... 98 4.2 Computation of controllability and observability measures for a node with incoming edges x 1 … x (^) m and outgoing edges y 1 … yn................ 105 4.3 Model parameters of DLX design.................................. 115 4.4 High-level test generation for bus-SSL errors in DLX implementation..... 115 4.5 Gate-level test generation for standard SSL errors using HITEC.......... 115 4.6 Comparison of high-level and gate-level test generation for DLX......... 115 A.1 Bridging functions Z(x, y)........................................ 123 B.1 Test generation and fault simulation of ISCAS’89 circuits using HITEC....................................................... 126 B.2 Error simulation of ISCAS’89 circuits using CESIM................... 127
ix
Appendix
A. Relationship between CSSL1 errors and bridging faults.................. 122 B. Conditional error simulation on ISCAS 89 benchmarks.................. 124
bottlenecks. A verification team today is the size of what an entire microprocessor design team was 10 years ago [Wolf98b]. The technology and knowledge required to do verification ‘right’ is expected to become a differentiator among companies [Wolf98b]. Successful companies will have to put together a complete set of complementing technologies to ensure their designs’ functional quality. Also, microprocessors are increasingly being used in (safety-) critical applications, which directly influence the need for better design verification.
The cost of doing verification ‘wrong’ can be very high. Manufacturing an extra silicon revision of a chip is becoming increasingly expensive [Wils99]. Far more severe can be the loss in expected sales and margin due to the delay in planned shipping date when an unplanned silicon revision is required. Finally, production volumes are ramping up so rapidly, that letting the first customers do the debugging is no longer an option. To cover the replacement of faulty chips containing the infamous FDIV bug, Intel announced a charge against earnings of $475 million [Beiz95].
The subject of this thesis is a new methodology for functional design verification of microprocessors. To put functional design verification into perspective, we first examine the design process. We then define functional design verification in Section 1.2. The next three sections discuss some important issues in functional design verification: test generation (Section 1.3), correctness checking (Section 1.4), and quality measurement (Section 1.5). We examine related work in the areas of physical fault testing and software testing in Sections 1.6 and 1.7, respectively. We conclude this introduction with an outline of the thesis.
To put functional design verification into perspective, we first examine the design process of microprocessors. Our discussion is based on an article by Bose and Conte [Bose98]. Referring to Table 1.1, four major phases can be identified: 1) architectural exploration, 2) microarchitecture definition, 3) design implementation, and 4) post tape-out.
Architectural exploration
Both economical and technological forces set the design targets for a new microprocessor. The specifications include performance goals for certain applications, cost and power consumption constraints.
One of the first tasks of the architects is to select representative applications, generate corresponding workloads, and reduce these to benchmarks that are small enough for microarchitectural simulation. Other activities include the analysis of the dataflow of key applications and the development of a crude model to evaluate the performance of the architecture. Architects bound the design space based on technological considerations.
Microarchitecture definition
The second phase is concerned with the definition of the microarchitecture. Architects work on microarchitectural innovations, determine which microarchitectural features need to be considered, and build simulation models for them. These models are the building blocks of a simulation model for the complete microarchitecture. The purpose of the
Table 1.1: Phases in the design of a microprocessor Phase Synthesisactivities Analysis (verification)activities Designrepresentations Architectural exploration
Application selection Validation of traces Performance, cost, and power goals
Workload selection Trace generation Microarchitecture definition
Development of trace-driven simulator
Performance verification
ISA Trace-driven simulation model (μarch.)
Microarchitecture definition Design implementation
Logic design Func. design verif. Behavioral RTL Circuit design Func. impl. verif. Structural RTL Physical design Timing verification Transistor-level Electrical verification schematics Layout verification Layout Post tape-out Machine-specific compiler tuning
Functional testing First silicon Electrical charact. Performance charact.
with the functional correctness of the initial RTL description, and implementation verification, which is concerned with checking the functional equivalence between two versions of the implementation. The latter includes comparing the RTL view against the structural view, the structural RTL view vs. transistor level schematics, and the schematics vs. the layout.
Post tape-out
Functional design verification continues after the design has been taped out. Once first silicon is available, extensive functional testing can begin. The main difference with pre- silicon design verification is the vast increase in test throughput. Diagnosing the root cause of a discrepancy can be difficult. Functional test suites are complemented with test suites aimed at measuring performance. Other activities in this phase include electrical characterization, and physical fault testing and diagnosis.
Software activities that critically depend on the hardware, such as machine-specific compiler tuning, and post-hardware measurements, can start as soon as the silicon has been found sufficiently functional. This may involve engineering workarounds for remaining functional bugs, or fabrication of corrected versions of the chip.
Functional verification has gained a lot of interest in recent years as evidenced by the surge in publications detailing industrial experience with the topic:
Although concrete methodologies differ from company to company, some common themes can be identified as we shall see.
Functional implementation verification. Functional implementation verification refers to checking the functional equivalence between two versions of the design. The two versions may be representations of the design at a different level of abstraction (below the microarchitectural level), such as behavioral and structural RTL. Alternatively they may be different versions of the design at the same level of abstraction; for example, one may be a retimed version of the other.
Efficient methods have been developed to formally check the boolean equivalence of large combinational circuits [Kuel97], and have recently become available commercially [Goer95]. For library-based logic design methodologies these tools are readily applicable. In custom methodologies a significant effort may be involved in automatically extracting an accurate gate-level view from the transistor level netlist. Nevertheless, these methods are becoming a favorable alternative for regression verification using a (switch-level) simulator.
Combinational equivalence checkers can be used to check the equivalence of two sequential circuits if there is a one-to-one mapping between the state registers. If such a mapping does not exist, the complexity of the problem greatly increases. For the special case of circuits whose state registers differ because of retiming, more specialized methods have been developed [Bisc97, Hosk95].
Functional design verification. Functional design verification (FDV) is concerned with verifying the functional correctness of the first RTL model of the design. For microprocessor design correctness, this means conformance to the instruction set architecture (ISA) and to some (incomplete) microarchitectural specification.
Functional design verification undergoes several phases as the project progresses. The complete effort can be divided into a pre-silicon and a post-silicon phase. The former phase is further divided into unit verification and system verification.
During unit verification a portion of the design is verified in isolation. For larger units, another (lower) level of integration (designer macros) may be appropriate. Basically the
specification, whereas simulation-based methods can only consider a limited range of behaviors. The accuracy and completeness of the system and specification models is a fundamental limitation for any formal method. The spectrum of formal methods for FDV is broad. At one end there are methods that are highly automated, but address only a very restricted problem space [Beer96, EET94, Goer97, Hard96, Kuel97, McMi93]. Methods at the opposite end, such as theorem proving, use formalisms to address a richer class of problems, and have mechanisms to use hierarchy and abstraction, but require a great amount of expertise to apply them [Cohn87, Cohn89, Owre96, Wind95].
Simulation-based design verification tries to uncover design errors by detecting a circuit’s faulty behavior when deterministic or pseudo-random tests (simulation vectors) are applied. All of the microprocessor manufacturers mentioned in the beginning of Section 1.2 report that they still rely heavily on simulation-based methods to verify their products. Simulation-based methods are readily applicable as typical design flows use HDL descriptions that can be simulated using standard logic simulation tools, or C/C++ descriptions in conjunction with a proprietary (cycle-based) simulator. Also, logic simulation is an area hardware designers are very familiar with.
In the following sections we examine some important issues in simulation-based functional design verification: test generation, checking correctness, and measuring functional quality.
Manual test generation. Hand-written tests have been used with great success in the early days of computer design. With an intimate understanding of the design, a designer can write a very powerful and yet small set of verification tests that are very effective in exercising the design. Hand-written tests also have the advantage of being easier to debug. However, as the size and complexity of designs have dramatically increased, it becomes harder for one person to comprehend the complete design at a detailed level. Moreover, modern simulation technology, such as cycle-based simulation [McGe95], is able to simulate millions of clock cycles per day on a single workstation, even for the biggest
designs. To take advantage of this simulation capability, automated test generation methods are needed.
Pseudo-random test generation. In the area of physical fault testing, it has long ago been recognized that test patterns can easily be generated randomly. The method requires very little effort, but its efficiency and effectiveness, are rather low compared to algorithmic approaches. Furthermore, the effectiveness and efficiency decrease with increasing design size [Abra90]. Nevertheless, random test pattern generation can be very useful to complement manual test generation in the absence of better methods. Sophisticated pseudo-random exercisers have been used very successfully to validate complex microprocessor designs [Ahar91, Kant96]. Taylor et al. [Tayl98] report that 79% of the functional bugs in the DEC Alpha 21264 microprocessor were found by pseudo- random tests. To achieve this high effectiveness such pseudo-random test generators incorporate knowledge about the instruction set architecture and the concrete micro- architecture. They typically have many parameters that allow the verification engineer to bias test generation towards “interesting behaviors,” such as corner cases. A strength of random test generators is that they can generate test cases that verification engineers might have never thought of. On the other hand, most random test generators have so-called holes : these are areas in the space of valid test sequences that are covered only with an extremely low probability, or even are not covered at all. Random tests are more difficult to debug than hand-written tests.
Template-based test generation. Certain aspects of designs are difficult to cover with biased random tests. This may be the case if the space of valid input sequences is highly constrained. Specialized tools have been developed to help automate the generation of such focused tests. One example is a code generator described in [Chan94, Chan95]. The user provides so-called symbolic instruction graphs that compactly describe a set of instruction sequences that exhibit certain properties. The tool generates actual instruction sequences that satisfy all the properties by using constraint solving techniques. One property might be that the third instruction is a load-class instruction, which causes a cache miss, and that the fourth instruction is an arithmetic instruction using the result produced by the load instruction. Free variables, such as the register that serves as the load