Microfiche appendices 1–33 (of 52 sheets and 3,020 frames) that are attached hereto contain source code in C language for programming a computer, are a part of the present disclosure, and are incorporated by reference herein in their entirety.
A portion of the disclosure of this patent document contains material which is subject to copyright protection. The copyright owner has no objection to the facsimile reproduction by anyone of the patent document or the patent disclosure, as it appears in the patent and trademark office patent files or records, but otherwise reserves all copyright rights whatsoever.
The present invention relates generally to a method implemented by a programmed computer for verifying the functionality of digital circuits during development and testing. More specifically, the invention relates to an automated method for finding defects in a description of a digital circuit that is to be simulated, emulated or implemented in a semiconductor die.
Modern digital electronic circuits are typically designed at the register-transfer (RTL) level in hardware description languages such as Verilog (see “The Verilog Hardware Description Language,” Third Edition, Don E. Thomas and Philip R. Moorby, Kluwer Academic Publishers, 1996) or VHDL (see “A Guide to VHDL”, Stanley Mazor and Patricia Langstraat, Kluwer Academic Publishers, 1992). A circuit description in such a hardware description language can be used to generate logic circuit elements as described, for example, in U.S. Pat. No. 5,661,661 granted to Gregory and Segal.
Such hardware description languages facilitate extensive simulation and emulation of the described circuit using commercially available products such as Verilog-XL available from Cadence Design Systems, San Jose, Calif., QuickHDL available from Mentor Graphics, Wilsonville, Oreg., Gemini CSX available from IKOS Systems, Cupertino, Calif., and System Realizer available from Quickturn Design Systems, Mountain View, Calif. These hardware description languages also facilitate automatic synthesis of ASICs (see “HDL Chip Design”, by Douglas J. Smith, Doone Publications, 1996; “Logic Synthesis Using Synopsys”, Pran Kurup and Taher Abbasi, Kluwer Academic Publishers, 1997) using commercially available products such as Design Analyzer and Design Compiler, available from Synopsys, Mountain View, Calif.
As described in “Architecture Validation for Processors”, by Richard C. Ho, C. Han Yang, Mark A. Horowitz and David L. Dill, Proceedings 22nd Annual International Symposium on Computer Architecture, pp. 404–413, June 1995, “modern high-performance microprocessors are extremely complex machines which require substantial validation effort to ensure functional correctness prior to tapeout” (see page 404). As further described in “Validation Coverage Analysis for Complex Digital Designs” by Richard C. Ho and Mark A. Horowitz, Proceedings 1996 IEEE/ACM International Conference on Computer-Aided Design, pp. 146–151, November 1996, “the functional validation of state-of-the-art digital design is usually performed by simulation of a register-transfer-level model” (see page 146).
It is well known to monitor the operation of a simulation test by using, for example, “snoopers” generated manually as described at page 463, column 2, in “Hardware/Software Co-Design of the Stanford FLASH Multiprocessor”, by Mark Heinrich, David Ofelt, Mark A. Horowitz, and John Hennessy, Proceedings of the IEEE, Vol 85, No. 3, pp. 455–466, March 1997, and in “Functional Verification Methodology for the PowerPC 604 Microprocessor”, by James Monaco, David Holloway and Rajesh Raina, Proceedings 33rd IEEE Design Automation Conference, pp. 319–324, June 1996.
Another prior art system monitors the operation of a simulation test by using a “golden model” that is “written without reference to the RTL” and is “co-simulated using the same set of test vectors”, as described by Chian-Min Richard Ho, in “Validation Tools for Complex Digital Designs”, Ph.D. Dissertation, Stanford University Computer Science Department, November 1996 (at page 6, Section 2.1).
Prior-art products (for example, see the “Purify” product from Pure Atria, Sunnyvale, Calif., and the “Insure++” product from ParaSoft, Monrovia, Calif.) exist for testing software programs that may be written, for example in the programming language “C” described by Brian W. Kernighan and Dennis M. Ritchie in the book “The C Programming Language”, Second Edition, PTR Prentice Hall, 1988. See “Purify User's Guide, Version 4.0”, Pure Atria Corporation, 1996, and “Insure++ Automatic Runtime Debugger User's Guide”, ParaSoft Corporation, 1996.
A computer, when programmed in accordance with the invention, receives as input a description of a circuit undergoing functional verification (also called “circuit-under-verification”). The programmed computer uses the circuit's description to automatically describe additional circuits (hereinafter “checkers”) that can flag defects during verification of the description of the circuit.
In one embodiment, the programmed computer automatically converts a circuit's description into a graph of (1) nodes that represent, e.g. storage elements (such as registers) or logic elements, or both (sometimes referred to as “circuit elements”) and (2) connections that represent, e.g. the flow of data among the circuit elements. Next, the programmed computer automatically examines the graph for instances of a pattern (e.g. an arrangement of nodes and connections) that is associated with a known defective behavior. On finding such an instance, the programmed computer generates instructions describing a checker to monitor behavior the instance. The instructions can be, for example, in a hardware description language such as Verilog or VHDL.
When the instructions are implemented, the checker generates an error message each time the monitored behavior conforms to a known defective behavior. Specifically, each checker is coupled to the circuit elements represented by the corresponding instance, and monitors the signals flowing to and/or from the circuit elements for conformance with the known defective behavior.
The checkers can be described in a hardware description language (e.g. the language “Verilog”) for use in simulation (or emulation) simultaneous with the simulation (or emulation) of the circuit-under-verification. Alternatively, the checkers can be implemented in a semiconductor die along with the circuit-under-verification. In another embodiment, a programmed computer generates instructions for checkers in a software language (e.g. the C language or machine language depending on the implementation), and during simulation of the circuit-under-verification, such instructions for the checkers are executed directly (e.g. after compilation) by a computer.
The above-described pattern and the known defective behavior are predetermined, e.g. by manual inspection of a number of actual defects and identification of the behavior associated with such defects. Specifically, a number of errors that are identified as functional defects in errata sheets of actual designs are analyzed to identify a common defective behavior, e.g. loss of data in a storage element when the data is overwritten without being used. The errata sheets can include descriptions of conditions related to the defective behavior, for example, buffer overflows, pipeline stalls or unexpected interactions between multiple controllers. Next, the common defective behavior is analyzed to identify an arrangement (of nodes and connections) associated with the common defective behavior.
Thereafter, the computer is programmed to automatically generate a checker that monitors each instance of such an arrangement for behavior in conformance with the common defective behavior. In one example, an arrangement (also called “register leak arrangement”) has at least two nodes for storage elements that are connected sequentially. During automatic examination, on finding two such sequentially connected nodes in the graph, the programmed computer automatically generates a checker for monitoring signals to and from the two nodes.
The checker for a register leak arrangement generates an error message if a first data in a first storage element (represented by a first node), is different from a second data in a second storage element (represented by a second node), and the second data is overwritten by the first data before the second data is used (e.g. written into a third storage element). Therefore, the checker flags the overwriting of unused data in the second storage element by different data. In addition to a checker for the second storage element, the programmed computer automatically generates checkers for other storage elements (e.g. the first and third storage elements) if the other storage elements are also found to be instances of the register leak arrangement.
Automatic generation of one or more checkers to flag known defective behaviors as described herein has several advantages. Specifically, the checkers flag an error as soon as the error occurs in simulation, emulation, or in a semiconductor die, because each checker monitors defective behavior of one instance of an arrangement in the circuit. Therefore, diagnosing errors flagged by automatically generated checkers is much easier than diagnosing errors flagged by end-to-end tests. Furthermore, functional verification can be terminated as soon as an error message is generated, thereby eliminating the generation and diagnosis of additional error messages (generated by continuing the functional verification). Hence, use of checkers as described herein eliminates the prior art need to simulate after an error occurs (e.g. in some cases for several hours) until an effect of the error is detected by an end-to-end test.
Furthermore, automatic generation of checkers as described herein eliminates the labor and problems (for example, missing one or more instances of a predetermined arrangement) involved in manual creation of verification tests. In contrast, the programmed computer automatically traverses the entire graph derived from a circuit's description and identifies each instance of each predetermined arrangement. Depending on the implementation, the computer can be programmed to generate checkers for (a) all instances, (b) all except user designated instances, or (c) a majority (greater than 50%) of the instances. Therefore, automatically generated checkers as described herein flag errors that may not be found by manual creation of tests.
Furthermore, automatic examination of a graph as described herein allows the detection of instances of an arrangement of nodes and connections that otherwise cannot be found. First, if the nodes of an instance are distributed across multiple modules, the instance is unlikely to be detected on reviewing only the circuit's description. In contrast, during one implementation of automatic conversion, each call to a module in a hierarchy of modules is automatically instantiated as often as necessary until the graph is completely flattened. Thereafter, when the flattened graph is automatically examined, instances of an arrangement that span module boundaries are automatically found, resulting in checkers that find unusual defects that may not be found by manually generated tests.
Furthermore, use of a graph as described herein allows an initially determined condition for loading a value into a storage element to be refined. Specifically, the programmed computer adds (e.g. by logically ANDing) a feedback condition (i.e. a condition imposed by the circuit's description to retain the current value) that is not always logic value TRUE to an initially determined load condition (i.e. a condition to load a storage element). Use of such a refined load condition results in automatic recognition of instances of an arrangement of nodes and connections that are otherwise not found (i.e. without the refinement).
Furthermore, the above-described automatic steps allow the creation of checkers (also called “related checkers”) that use signals generated by other checkers. As an example, a checker for the above-described third storage element detects an error when data is overwritten in the third storage element before being used. The checker for the third storage element uses a signal from the checker for the second storage element to determine that data previously held in the second storage element is currently held in the third storage element.
In one implementation, use of automatically generated checkers as described herein requires no changes to a the description of the circuit-under-verification and no changes to test vectors for testing the circuit. The checkers can be used to monitor the circuit during any verification, e.g. simulation, emulation or implementation in a semiconductor die.
According to the principles of this invention, a programmed computer automatically converts a description of a digital circuit into a graph of nodes and connections, automatically searches the graph for an instance of a predetermined arrangement of nodes and connections, and on finding such an instance automatically generates instructions for flagging (i.e. detecting and preferably, but not necessarily, generating an error message) a behavior of a device represented by the instance in conformance with a predetermined defective behavior of the device. In the following discussion, all references to a checker synthesis tool are to be interpreted as references to an appropriately programmed computer having memory (e.g. 500 MB) and a central processing unit (CPU) for executing software instructions of the tool.
In one embodiment, a checker synthesis tool 12 (
Thereafter, checker synthesis tool 12 automatically examines (in step 12B) the graph for instances of a predetermined arrangement, such as an arrangement of nodes and connections (illustrated, for example in
Checker description 13 includes one or more files 13A–13M (wherein A≦I≦M, M being the total number of files). Files 13A–13M contain instructions in a hardware description language (for example Verilog or VHDL). Therefore, the checkers described in files 13A–13M can be simulated simultaneously with simulation of the circuit described in files 11A–11N, for example during unit-level verification or system-level verification.
Generation of files 13A–13M in a hardware description language (e.g. Verilog) as described herein ensures that a description of the checkers can be used with a Verilog description of the circuit-under-verification, for example by a simulator 14, or by an emulator 15. Alternatively, circuit description 11 and checker description 13 can be synthesized by synthesizer 19 into a net list 20 that is implemented by circuitry (e.g. transistors) in a semiconductor die 21.
Alternatively, checker synthesis tool 12 can generate checker description 13 in a high level programming language, such as “C”, for compilation by a computer programmed with a “C” compiler 16 (
During functional verification, error messages generated by the checkers described in files 13A–13M are used to find errors in a manner similar to the debugging of any other error. Specifically, an error message generated by a checker can indicate a design error in circuit description 11, or an under-constrained checker. The user can suppress (or conditionally suppress) any under-constrained checker by specifying one or more checkers (and optionally conditions) in a “checker attributes” file 10B (
The above-described arrangement and the known defective behavior are predetermined, for example by collection of a number of errata sheets having a number of actual errors that have been identified as functional defects. Thereafter, the errors are analyzed to identify a common behavior. For example, errors are commonly associated with the following behavior: overflow of a value in a counter that counts up (e.g. increments current value), for example when a new value becomes less than a previous value (indicating that the counter overflowed, i.e. transitioned from the maximum permissible value to the minimum permissible value). Such a behavior of the counter is analyzed to identify an arrangement 101 (
Arrangement 101 represents a counter that has a node (also called “storage node”) 102 for a storage element (such as a register) with an output terminal 1020 coupled to an input terminal 102I through one or more nodes (also called “logic nodes”) 103A–103P (wherein A≦I≦P, P being the total number of such nodes) for the corresponding expressions EXA-EXP that receive, as inputs, only constants CA-CP. Note that in arrangement 101, load condition 102L for storage node 102 is irrelevant. Arrangement 101 represents a device called an “up counter” that counts up, e.g. increments the current values for example if P=1 and constant CP is a positive number (or a device called a “down counter” if CP is a negative number).
Arrangement 101 can be used in checker synthesis tool 12 (
Checker synthesis tool 12 (
(reset∥restart)?4′b 1101: (abort-count−1)
Moreover, storage node 111 has a control terminal 111B that receives via connection 118 a signal (hereinafter “load condition signal”) that controls storage of data signal from line 119 at node 111. Expression node 110 receives signals “reset”, “restart” (described above) and a signal “abort” (at input node 108 via connection 115). Expression EX2 generates the load condition signal on connection 118 as follows:
(reset∥restart∥abort)
During automatic examination (in step 12B of
The above instructions can be used, for example in simulator 14, emulator 15 or synthesizer 19 (
Checker circuit 121 monitors input signals “reset”, “restart”, and “abort”, and output signal “abort_count” of circuit 122. Specifically, checker circuit 121 drives an error signal active on line 121E in case of underflow, i.e. when a new value of “abort_count” generated by counter circuit 122 is greater than a previous value, and counter circuit 122 is in use (i.e. signals “reset”, and “restart” are logic value FALSE). In one implementation, checker synthesis tool 12 generates two checkers (one for overflow and one for underflow) for each instance of arrangement 101 (
Although in the above-described embodiment, checker synthesis tool 12 generates a file 13I, in another embodiment checker synthesis tool 12 is integrated into simulator 14 that directly generates net list 120 (
For the “counter” circuit description in lines 673 to 681 of microfiche Appendix 29, one implementation of checker synthesis tool 12 generates a “counter” checker description as illustrated by the Verilog checker description in lines 2084 to 2093 in microfiche Appendix 32. The automatic examination (e.g. in step 12B of
Another common behavior (called “register leak”) that is identified as a functional defect during the collection and analysis of errata sheets is the loss of data in a storage element. Each of the data loss behaviors in the collected errata sheets is analyzed to identify the overwriting of unused data as a defective behavior. Then the defective behavior is analyzed to identify an arrangement 125 (
Arrangement 125 includes at least two storage nodes 126 and 127 that are connected in sequence, i.e. an output terminal 1260 of storage node 126 is connected to an input terminal 127I of storage node 127. Moreover, storage node 127 has a load condition LC1 that is not always logic value TRUE, i.e. LC1 is an expression that is sometimes logic value FALSE. In arrangement 125, an output terminal 1270 of storage node 127 is connected to at least one storage node 128I that maybe one of many such storage nodes 128A–128S (wherein A≦I≦S, S being the number of such nodes). Input terminal 127I may also be connected to other storage nodes, e.g. storage node 129.
A checker for data loss at storage node 127 generates an error message whenever the data at storage node 127 is overwritten. Specifically, in one implementation, the checker maintains a local flag that is updated every clock cycle, i.e. it is set when the data at storage node 127 is valid, and cleared when the valid data is used (for example transferred to one of storage nodes 128A–128S when one of the expressions for the respective load conditions LCA-LCS becomes logic value TRUE). If the local flag is already set when the checker attempts to set the flag, and the new data to be written at node 127 is different from the data previously stored at node 127, the checker generates an error message.
Such a checker can be used to find functional defects in the following description of circuitry in verilog in a file 11I (
Specifically, checker synthesis tool 12 automatically converts (in step 12A) the above description into a graph 130 (
E1 is (reset∥restart)?4′hd: data_reg3,
E2 is (reset∥restart)?4′hd: data_reg1, and
E3 is (reset∥restart)?4′hd data_reg2.
Moreover, the load conditions for storage nodes 131–133 are as follows:
L1 is (reset∥restart∥abort),
L2 is (reset∥restart∥load_new), and
L3 is (reset∥restart ∥valid_in).
Thereafter, checker synthesis tool 12 automatically examines graph 130 for an instance of arrangement 125. In this particular example (
Checker 135 implements a local flag in a storage element 136 (
As noted above, checker synthesis tool 12 generates additional checkers for monitoring the behavior caused by storage nodes 133 and 131. Specifically, checker synthesis tool 12 generates instructions for storage node 133 that uses a signal from checker 135 (
The above checker instructions use a signal “marked” that is generated by the above-described checker 135. Therefore a checker implemented by the above instructions and checker 135 are two examples of “related” checkers that either (1) generate signals for use by other checkers or (2) receive signals from other checkers. Such related checkers are created by checker synthesis tool 12 by examination of a graph multiple times (i.e. a multi-pass process) so that connections between related checkers can be determined.
For the “register leak” circuit description in lines 756 to 757 of microfiche Appendix 29, one implementation of checker synthesis tool 12 generates a “register leak” checker description as illustrated by the Verilog checker description in lines 2667 to 2691 in microfiche Appendix 32. The automatic examination for the “register_leak” arrangement can be implemented as illustrated by the function “zi_chx_create_rlds” in module chx, at line 19516 in microfiche Appendix 14. The automatic generation of the “register leak” checker description can be implemented as illustrated by the function “zi_hout_write_register_leak_checker” in module hout, at line 16133 in microfiche Appendix 16.
As illustrated in module chx, by function “zi_chx_create_one_rld” at line 19177 in microfiche Appendix 14, and by line 17633 in microfiche Appendix 14, checker synthesis tool 12 can create a register leak checker description which monitors storage elements used to generate pipeline delays, i.e. storage elements for which the load condition is always logic value TRUE. Specifically, such a checker monitors data flowing through such “pipeline-delay” storage elements and flags defective behavior only by “pipeline-delay”, storage elements in the last stage of the pipeline. If a storage element is other than a “pipeline-delay” storage element, checker synthesis tool 12 generates a “register leak” checker description for the storage element only if the storage element can be deliberately loaded, i.e. the storage element has a load condition which is not always logic value TRUE, as illustrated in module chx by function “zi_chx_get_rld_pvs” at line 14933 in microfiche Appendix 14,
Two additional behaviors that are known to be defective occur when data is loaded to and from memory. The first behavior (called “memory uninitialized” behavior) occurs when data from an uninitialized memory location is loaded into a storage element. The second behavior (called “memory overwritten” behavior) occurs when data is loaded into a memory location, and is then overwritten before being loaded into another storage element. For such behaviors, an arrangement 170 (
A checker for “memory uninitialized” behavior at memory location node 171 generates an error message whenever any one of the storage nodes 172A–172I loads data (e.g. invalid data) from memory location node 171 before node 171 has been initialized. Specifically, in one implementation, the checker maintains a local flag for node 172 that is initially cleared and then updated every clock cycle, i.e. set when the load condition LC is logic value TRUE. If the local flag is not set when storage nodes 172A–172I loads from node 171, the checker generates an error message.
A checker for memory overwrite at memory location node 171 generates an error message whenever the data at memory location node 171 is overwritten. Specifically, in one implementation, the checker maintains a local flag that is updated every clock cycle, i.e. it is set when the data at memory location node 171 is valid, and cleared when the valid data is read (for example transferred to one of storage nodes 172A–172I). If the local flag is already set when the checker attempts to set the flag, and the new data to be written at node 171 is different from the data previously stored at node 171, the checker generates an error message.
Such checkers can be used to find functional defects in the following description of circuitry in Verilog in a file 11I (
Specifically, checker synthesis tool 12 automatically converts (in step 12A) the above description into a graph 174 (
Thereafter, checker synthesis tool 12 automatically examines graph 175 for an instance of arrangement 170. In this particular example (
This checker description can be implemented by the circuit in
An example of a memory overwrite checker in Verilog for nodes 176 to 179 (
This checker description can be implemented by the circuit in
For the “memory” circuit description in lines 788 to 795 of microfiche Appendix 29, one implementation of checker synthesis tool 12 generates a “memory uninitialized” checker description as illustrated by the Verilog checker description in lines 3183 to 3262, and generates a “memory overwrite” checker description as illustrated by the Verilog checker description in lines 3097 to 3182, in microfiche Appendix 32. The automatic examination for the “memory” arrangement can be implemented as illustrated by the function “zi_chx_create_ram_checks” in module chx, at line 16923 in microfiche Appendix 14. The automatic generation of the “memory uninitialized” and “memory overwrite” checker descriptions can be implemented as illustrated by the functions “zi_hout_write_ram_checker_flat_mu” and “zi_hout_write_ram_checker_flat_mo”, respectively, in module hout, at line 12893 and 12967, in microfiche Appendix 16.
Yet another behavior that is known to be defective occurs when data is lost during transfer between storage elements that are clocked by different clock signals (e.g. clock signals of different frequencies). Such behavior, called “data synchronization violation”, requires an arrangement 180 (
A checker for data synchronization violation at storage node 181 generates an error message whenever the data at storage node 181 is overwritten. Specifically, in one implementation, the checker maintains a local flag that is updated as follows: on every cycle of clock signal “clk1” (
Such a checker can be used to find functional defects in the following description of circuitry in Verilog in a file 11I (
Specifically, checker synthesis tool 12 automatically converts (in step 12A) the above description into a graph 190 (
This example uses the Verilog instruction “$0In_pending_fire” to invoke the “C” function “zi_cpli_checker_pending_fire_calltf” at line 171 in microfiche Appendix 30, “$0In_pending_mark” to invoke the “C” function “zi_cpli_checker_pending_mark_calltf” at line 188 in microfiche Appendix 30, and “$0In_pending_unmark” to invoke the “C” function “zi_cpli_checker_pending_unmark_calltf” at line 205 in microfiche Appendix 30, thus updating the flag “mark” whenever “clk1” or “clk2” occurs. This checker illustrates checker instructions in the “C” language that are used in simulation, but cannot be used in emulation or for synthesis. However, instead of such “C” language instructions, corresponding instructions for performing the same functions can be generated (in other embodiments) in Verilog for use in emulation or for synthesis.
For the “data synchronization” circuit description in lines 343 to 356 of microfiche Appendix 29, one implementation of checker synthesis tool 12 generates a “data synchronization” checker description as illustrated by the Verilog checker description in lines 2648 to 2665 in microfiche Appendix 32. The automatic examination for the “data synchronization” arrangement can be implemented as illustrated by the function “zi_chx_find_clk_boundaries” in module chx, at line 10002 in microfiche Appendix 14. The automatic generation of the “data synchronization” checker description can be implemented as illustrated by the function “zi_hout_write_reg_leak_checker_flat_dsv_mark” and “zi_hout_write_mark_registers_dsv_unmark” in module hout, at lines 16508 and 16297 respectively, in microfiche Appendix 16.
Two additional behaviors that are known to be defective involve multiple sources driving a signal on a single connection, or no source driving a signal on a connection. For such behaviors, each source is a logic node (also called “conditional node”) that conditionally sets the signal on the connection to a high-impedance state (i.e. in some cases assigns the value “Z”), as illustrated by arrangement (also called “three-state” arrangement) 140
condition?data: Z;
On finding such an arrangement 140, checker synthesis tool 12 (
Specifically, checker synthesis tool 12 automatically converts (in step 12A) the above description into a graph 145
EXH=enb1?data1: 32′bZ;
EXR=enb2?data2: 32′bZ;
Thereafter, checker synthesis tool 12 automatically examines graph 145
For the “three-state” circuit description in lines 61 of microfiche Appendix 29, one implementation of checker synthesis tool 12 generates a “three-state” checker description as illustrated by the Verilog checker description in lines 3046 to 3059 in microfiche Appendix 32. The automatic examination for the “three-state” arrangement can be implemented as illustrated by the function “zi_chx_create_nl_checks” in module chx, at line 25799 in microfiche Appendix 14. The automatic generation of the “three-state” checker description can be implemented as illustrated by the function “zi_hout_write_sp_checker_flat” in module hout, at line 17845 in microfiche Appendix 16.
Yet another behavior that is known to be defective occurs when invalid data from an external input port is loaded into a first storage element, and thereafter loaded into a second storage element. Therefore, an arrangement (also called “invalid data” arrangement) 150 that includes at least one external port node 151 and two storage nodes 152 and 153 connected in sequence is required for occurrence of such defective behavior.
A checker for arrangement 150 generates an error message whenever a user specified signal “inp” (
Specifically, checker synthesis tool 12 automatically converts the above description into a graph 154 (
Therefore, checker 157 maintains a local flag in storage element 158 (
For the “invalid data” circuit description in lines 742 to 743 of microfiche Appendix 29, one implementation of checker synthesis tool 12 generates an “invalid data” checker description as illustrated by the Verilog checker description in lines 3016 to 3021 in microfiche Appendix 32. The automatic examination for the “invalid data” arrangement can be implemented as illustrated by the function “zi_chx_create_valid_checks” in module chx, at line 24547 in microfiche Appendix 14. The automatic generation of the “invalid data” checker description can be implemented as illustrated by the function “zi_hout_write_valid_checker_flat” in module hout, at line 3132 in microfiche Appendix 16.
Yet another arrangement (also called “case” arrangement) includes a node for a statement having multiple branches (hereinafter “multi-branch statement”), such as a “case” statement in Verilog. In a case arrangement 160, such a multi-branch node 161 is in sequence with a storage node 162 (
set_parallel_case-module arb-line 158
set_full_case-module arb-line 158
The “full_case” directive in the above examples indicates that all of the case items for the valid range of values of the case expression have been specified in the case statement. Therefore, when a “full_case” directive is specified, at least one of the case items is logic value TRUE at all times. The “parallel_case” directive indicates that at most one of the case items in a case statement is logic value TRUE at any time. In one particular implementation, instead of using a separate file 10A, such directives are provided as comments (e.g. preceded by “//” in Verilog, and provided at the same line as the case statement) in file 11I.
A checker for such an arrangement 160 (
Specifically, checker synthesis tool 12 automatically converts the above description into a graph 165 (
Thereafter, in response to a “full_case” directive (described above), checker synthesis tool 12 automatically examines graph 165 for an instance of arrangement 160. In this particular example, checker synthesis tool 12 generates the following instructions in Verilog for checker circuit 168 (
Therefore, checker 168 generates an error message whenever the case value “select” of the case statement has a value other than the case items (C1, C2 and C3), and a variable “mout” that is assigned in the case items is conditionally used (as indicated by signal “update”). Note that the use of variable “mout” occurs in module “update” that is different from the module “mux_reg” wherein variable “mout” is assigned. Such an arrangement is easily recognized when graph 165 (
In response to such “parallel_case” directive, checker synthesis tool 12 generates the following instructions in Verilog for checker circuit 169 (see
For the “full case” circuit description in lines 514 to 547 of microfiche Appendix 29, one implementation of checker synthesis tool 12 generates a “full case” checker description as illustrated by the verilog checker description in lines 2256 to 2263 in microfiche Appendix 32. For the “parallel case” circuit description in lines 158 to 164 of microfiche Appendix 29, checker synthesis tool 12 generates a “parallel case” checker description as illustrated by the Verilog checker description in lines 2368 to 2391 in microfiche Appendix 32. The automatic examination for both the “full case” arrangement and the “parallel case” arrangement can be implemented as illustrated by the function “zi_chx_create_nl_checks” in module chx, at line 25799 in microfiche Appendix 14. The automatic generation of both the “full case” and the “parallel case” checker descriptions can be implemented as illustrated by the function “zi_hout_write_sp_checker_flat” in module hout, at line 17845 in microfiche Appendix 16.
Although examples of certain predetermined arrangements and the associated defective behaviors are described above, other arrangements and their associated defective behaviors can be provided to checker synthesis tool 12 for automatic generation of checkers, as illustrated by module chx in microfiche Appendix 14.
As described above, checker synthesis tool 12 automatically generates checkers by performing steps 12A–12C. Steps 12A–12C can be implemented in any of a number of ways. In one particular implementation, checker synthesis tool 12 performs an automatic conversion step 12A (
In this implementation, in step 12B, checker synthesis tool 12 performs either substep 230 or substep 240 or both. Substeps 220 and 230 are independent of each other, and therefore can be performed in different orders by different versions of checker synthesis tool 12.
In substep 230, checker synthesis tool 12 automatically examines (as illustrated by action 231) the graph for instances of one or more predetermined arrangements of nodes and connections, and for each such instance automatically identifies and generates (as illustrated by action 232) one or more data structures for checkers.
The checkers identified in substep 230 are independent of each other, i.e. none of the checkers passes a signal to or receives a signal from another of the checkers. Examples of such independent checkers include counter checker 121 (
In substep 240 (
In one particular implementation, during substep 210, checker synthesis tool 12 performs actions 301 illustrated in
During the creation of a subtree (see action 301B) in
Action 301A can be implemented as illustrated by lines 220 to 625 in module vp in microfiche Appendix 2; action 301B as illustrated by function “zi_pt_create” in module pt, at line 341 in microfiche Appendix 4; and action 301C as illustrated by function “zi_pt_add” in module pt, at line 1282 in microfiche Appendix 4.
In substep 220 (
On scanning the above description in substep 210 (
Table 0 includes a column for the “load condition” that indicates a condition under which a value of a variable in a table entry is set to a value of the expression in the data column. Table 0 also includes another column for the “high-impedance condition” that indicates a condition under which the value of the variable is allowed to float (i.e. is not driven).
Next, if the current node is an “if” node, checker synthesis tool 12 recursively processes each branch by creating a table for each branch. In this particular example, checker synthesis 212 creates TABLE 1 for the TRUE branch 412
At the time of making an entry into TABLE 1, if statements 413 and 414 are outside an “always” statement, checker synthesis 212 creates a subgraph for the variable in each entry including, for example, a node 421 (
In this particular example, the “load condition” for each entry in TABLE 1 is set to the conditional expression (at node 415) required to enter the true branch 412 of the “if” node 411. Moreover, the “high-impedance condition” is set to the conditional expression (at node 415) if a high-impedance symbol (e.g. the letter “Z” in Verilog) occurs on the value being assigned to a variable (e.g. on the right side of an “=” sign in Verilog).
Thereafter, checker synthesis tool 12 creates a new TABLE 2 for FALSE branch 416 and makes entries for FALSE branch 416. In this particular example, FALSE branch 416 contains an “if” node 417 that is again processed by checker synthesis tool 12 as described above in reference to step 401. Specifically, in this particular example, checker synthesis tool 12 creates a TABLE 3 and makes entries for each variable in the “assign” statements 418 and 419, and creates nodes 427 and 428 for expressions EX10 and EX30 (see
Thereafter, as there is no FALSE branch for the current “if” node 417, checker synthesis tool 12 uses the above-described TABLE 3 to update TABLE 2. Specifically, checker synthesis tool 12 simply transfers the entries from TABLE 3 into TABLE 2, and updates the “load condition” column for each entry by adding the branching conditional expression (e.g. “!reset”) for the “if” node. In this particular example, checker synthesis tool 12 logically ANDs the condition “!reset” with the load condition “abort” in TABLE 3, as shown below in updated TABLE 2:
Thereafter, checker synthesis tool 12 merges the updated TABLE 2 with TABLE 1 (described above). Specifically, if either of TABLE 1 or updated TABLE 2 has entries for variables that are not present in the other table, checker synthesis tool 12 simply makes these entries in a merged TABLE 4, without changing load conditions for these entries.
If TABLE 1 and updated TABLE 2 each have an entry for the same variable, checker synthesis tool 12 makes a single entry in the merged TABLE 4 for that variable. Specifically, in such an entry, checker synthesis tool 12 uses the conditional expression of the “if” node to create a conditional expression in the data column. For example, for the variable “count”, checker synthesis tool 12 creates the conditional entry “reset? 0: count+1”. Moreover, checker synthesis tool 12 logically ORs the load conditions from each of TABLE 1 and updated TABLE 2 and enters the resulting load condition in the merged TABLE4 as shown below:
Thereafter, checker synthesis tool 12 updates TABLE 0 with entries from the merged TABLE 4 as illustrated below:
Next, checker synthesis tool 12 creates the subgraph 434 (
During creation of a subgraph, each input connection representing a variable is connected to an output connection of that variable which was previously created, and unused connections and storage nodes are eliminated. This can be implemented as illustrated by the function “zi_nl_munch_graph” in module nl, at line 12527 in microfiche Appendix 10.
The two tables of an “if” node (e.g. TABLES 1 and 2), and the merged table (e.g. TABLE 4) can be created as illustrated by the function “zi_elab_elaborate_if” in module elab, at line 1480 in microfiche Appendix 9, wherein the function “zi_elab_push” (line 13183 in microfiche Appendix 9) starts a new table, the function “zi_elab_pop” (see line 17811 in microfiche Appendix 9) saves the table, and the function “zi_elab_merge” (see line 17843 in microfiche Appendix 9) merges the two tables.
When the above-described “if” statement is inside an “always” statement, checker synthesis tool 12 creates (in substep 210) an “always” node (not shown in
During the traversal of a tree, if the current node is a “block” node, checker synthesis tool 12 simply recursively processes (as illustrated by step 406) all subtrees under the “block” node. If the current node represents a “case” statement, checker synthesis tool 12 performs action 407 (
After completing traversal of a parse tree, checker synthesis tool 12 flattens (see action 408) the above-described graph obtained by performing actions 401–407. Specifically, checker synthesis tool 12 finds each reference to a module in the graph and recursively instantiates each referenced module. For example, if a graph 440 (
Next, checker synthesis tool 12 refines (see step 409 in
The above-described refinement of the load condition of a storage node can be implemented as illustrated by function “zi_nl_rewrite_load_enables” in module nl, at line 13456 in microfiche Appendix 10.
Next, checker synthesis tool 12 automatically examines the flattened and refined graph for instances of arrangements (e.g. described above in reference to
Action 231 is illustrated by function. “zi_nl_find_counters” and function “zi_nl_find_mutex” in module nl at lines 6657 and 12062, respectively, in microfiche Appendix 10; action 241 is illustrated by function “zi_chx_create_valid_checks” in module chx at line 24547 in microfiche Appendix 14; and action 242 is illustrated by function “zi_chx_create_rlds” in module chx, at line 19516 in microfiche Appendix 14.
In step 12C checker synthesis tool 12 opens a file for writing the checker instructions (as shown by action 601 in
Software in source code form for one particular version of a checker synthesis tool 12 is attached hereto in microfiche Appendices 1–28, and a user manual for the tool is attached hereto in microfiche Appendix 33. The software can be compiled using a “C” compiler and executed on a SPARC Station under Sun OS 4.1.3 or Solaris 2.5.1 available from Sun Microsystems, Mountain View, Calif., or alternatively on a HP 9000/700 system under HP-UX 10.20 available from Hewlett Packard, Palo Alto, Calif. This version of checker synthesis tool 12 requires a minimum of 512 MB of memory to accommodate 500 K gate designs. The software also requires an OVI Verilog version 2.0 compliant simulator with an OVI Verilog-HDL PLI version 1.0 interface, available from Cadence Design Systems, San Jose, Calif. The computer is also programmed with the software “Tcl” and “Tk” which provide a programming system for controlling and extending applications and are used as part of checker synthesis tool 12 (as referenced in module hsh in microfiche Appendix 1). See “Tcl and the Tk Toolkit” by John K. Ousterhout, Addison-Wesley, 1994.
An example of a circuit-under-verification is provided in Verilog source code in file chip_v in microfiche Appendix 29, and can be used with an appropriately programmed computer (of the type described above) to generate a graph as described above. File flat_nl_v in microfiche Appendix 31 provides a graph (also called “netlist”) of nodes and connections generated from the Verilog source code in microfiche Appendix 29.
The graph can be used to create such instructions for checkers in a number of languages, e.g. in Verilog and in “C”. Specifically, checkers generated by the programmed computer are: (1) in the form of Verilog instructions in file 0 in_checker.v in microfiche Appendix 32, and (2) in the form of “C” instructions in file 0 in_checker.c in microfiche Appendix 30.
Appendices 1–33 in the microfiche attached hereto contain software listings and documentation as follows:
Numerous modifications and adaptations of the embodiments described herein will be apparent to a person of skill in the art of electronic design automation (EDA) in view of the disclosure (including the software and documentation in the attached microfiche Appendices 1–33). For example, other embodiments of the checker synthesis tool can perform one or more of the following steps: automatically converting into a graph a description of a circuit represented in a language other than Verilog or VHDL, for example, the “C” language; automatically generating instructions describing checkers in a language other than Verilog, VHDL, and “C”; automatically generating instructions describing checkers that flag other types of defective behaviors in a description of a circuit; automatically generating instructions describing checkers from user-specified arrangements and corresponding behaviors; combining manually specified tests with automatically generated checkers. Therefore, many such variations of the embodiments described herein are encompassed by the attached claims.
This application is a continuation of and incorporates by reference herein the entire disclosure of U.S. patent application Ser. No. 09/635,598 filed Aug. 9, 2000 now U.S. Pat. No. 6,609,229 that in turn is a continuation of U.S. patent application Ser. No. 08/955,329 filed Oct. 20, 1997 and issued as U.S. Pat. No. 6,175,946.
Number | Name | Date | Kind |
---|---|---|---|
5555270 | Sun et al. | Sep 1996 | A |
5600787 | Underwood et al. | Feb 1997 | A |
5623499 | Ko et al. | Apr 1997 | A |
5630051 | Sun et al. | May 1997 | A |
5654657 | Pearce | Aug 1997 | A |
5729554 | Weir et al. | Mar 1998 | A |
6081864 | Lowe et al. | Jun 2000 | A |
6175946 | Ly et al. | Jan 2001 | B1 |
6182258 | Hollander | Jan 2001 | B1 |
6601221 | Fairbanks | Jul 2003 | B1 |
Number | Date | Country | |
---|---|---|---|
20030200515 A1 | Oct 2003 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 09635598 | Aug 2000 | US |
Child | 10348116 | US | |
Parent | 08955329 | Oct 1997 | US |
Child | 09635598 | US |