This invention relates to the field of integrated circuits verification and in particular to formal verification of design properties under user-specified design constraints. More particularly the invention relates to a system, method and computer program product for managing and composing verification engines and simultaneously applying such compositions to design properties.
The relentless increase in the number of transistors integrated on a single electronic chip has made the traditional method of chip verification using simulation more and more difficult and time-consuming. Desiring additional measures of design confidence, chip developers are increasingly turning to other methods of verification to augment simulation.
Formal verification delivers mathematical proofs of correctness without requiring simulation test bench development. Formal verification processes properties defining intended behavior and makes use of constraints that specify legal input values for the design. Properties can be defined by the chip designer in the form of assertion statements. Properties can also be automatically extracted by electronic design automation (EDA) tools. Automatically extracted properties usually apply to a specific domain such as clock-domain crossing (CDC), power verification, timing exception verification among others. To correctly model the environment of a design, designers specify constraints in SVA/PSL or other standard formats. The constraints are usually referred to as assumptions while the properties to be proved as assertions.
Properties are verified using verification engines. Due to the computational complexity of the verification problem, many verification engines exist and improved verification engines continue to be developed. Different verification engines tackle the verification problem differently to circumvent the computational difficulty of the verification process. Different engines have memory and runtime characteristics that cannot be predicated beforehand. Consequently, it is difficult to predict whether a specific verification engine can prove a specific property or how long it will take. For this reason, engineers want to run multiple verification engines until one succeeds and to be able to limit the computing resources used by each verification engine. In addition, engineers want to be able to quickly integrate state-of-the-art verification engines into their products. Most verification engines process one property at a time.
Baumgartner is an early pioneer in the field of formal verification and in U.S. Pat. Nos. 6,698,003 and 7,266,795 describes a Verification framework that uses multiple specialized engines to decompose a design into smaller pieces, pass information between engines and prove a single property cooperatively. The specialized engines have complex interactions and have no limits on their computation resources.
EDA tools need a framework that can easily incorporate new verification engines with minimal effort, provides ways of composing verification engines so they can run serially and in parallel, with user-specified computing resources.
A system and method are provided for managing and composing verification engines and simultaneously applying such compositions to a group of properties and a group of design constraints to verify properties with design constraints. Properties may be automatically extracted from a Register-Transfer level (RTL) design description. Constraints are provided by a user and typically specified in a constraint language. The system allocates computing resources based on a user-specified budget, e.g. one that places limits on the runtime (both CPU and wall clock time), memory, and number of CPUs in a verification task.
The system may use a client-server architecture that simplifies communication and provides centralized management of result reporting. The system employs an interface to the verification engines that makes it easy to integrate new engines, and compose verification engines in sequential, parallel and distributed flows. For example, the interface could allow extension of the set of engines by simply plugging a new engine in place. The interface is coupled with a callback mechanism to report back the results of dispatched assertions.
The interface supports the following types of compositions:
Some reference terms:
A verification framework (VF) provides a way of easily incorporating new verification engines (VEs) with minimal effort, provides ways of composing and dynamically selecting VEs so they can run serially and in parallel, and limits computing resources such as memory, CPU time, elapsed time and number of processes/machines used. The VF has a simple communication interface with each VE making it easy to incorporate new VEs. The VF passes the design or part of the design, one or more properties, design constraints and computing resource constraints to the VE and commands the VE to start execution. When the VE finishes execution the VE reports its results back to the VF. The VE communicates that the property it analyzed has a) been proven (i.e., the property is valid); b) failed (the property is invalid) or c) been partially-proven (i.e., the engine ran out of resources and couldn't conclude the analysis). The VE may optionally accept a command to terminate its current execution. In the case where the VF starts multiple VEs on a given property, the VF terminates a VE execution when it discovers that a different VE has successfully proven that property.
The VF accepts verification tasks from an end-user. The end-user specifies the design, properties, constraints and a computing resource budget. The design is usually specified in RTL files and written in Verilog/SystemVerilog or VHDL. The properties and constraints are usually specified in files and written in languages such as System Verilog Assertions (SVA), Open Verification Library (OVL) or Property Specification Language (PSL). Properties can be specified manually or generated by EDA tools like SpyGlass. Typical properties include:
Design constraints can be specified manually and can also be generated by EDA tools like SpyGlass to more faithfully represent the functional behavior of the design. Typical constraints include:
Typical verification engines include:
A data-parallel composition runs multiple instances of the same VE simultaneously, where each VE instance processes a different subset of properties. An engine-parallel composition runs different VEs simultaneously processing the same properties. The VF refers to the VE composition when it starts VE execution and makes some run-time decisions. For example, the VF may start fewer parallel tasks than indicated in the VE composition if the maximum number of processes is exceeded. The VF keeps track of which properties have been proven and does not ask a VE to process an already proven property.
The VF has multiple ways of selecting a composition. In one mode the VF automatically selects from a set of pre-specified engine compositions based on design and resource attributes. Such pre-specified VE compositions have been extensively benchmarked on a large set of properties. The VF make a selection by matching attributes of the design such as the number of latches/registers and the specified computing resources, such as the number of CPUs, against the attributes of the available pre-specified compositions. The pre-specified composition attributes include
A single core composition always runs engines in sequence rather than in parallel. In this context, it is important that an engine which excels at solving the common case be first in the sequence. Since the user will often use the VF in a loop where errors from property failures are analyzed and eliminated until the user gets a proof, we want an engine which excels at finding failures to run first. Consequently a single core composition is configured to achieve this. An example of a single core composition for the entire set of properties would be:
A multi-core composition can provide a speedup for getting proofs without sacrificing the speed of getting failures. Assume that we have 100 properties with no memory limits that we would like to verify in parallel. An example composition divides the 100 properties into 4 subgroups of 25 properties. The VF runs all subgroups in parallel. The VF allocates the user-specified time to each subgroup. Each subgroup then proceeds in sequence, one property at a time, over the 25 properties assigned to it. We now describe the example sub-composition used for each property, one at a time. As in the single core case, the VF checks if the number of latches is not too big. If it is not too big, the VF runs engines that are tailored for properties with a small number of latches. Otherwise, the problems are too big for these engines to resolve efficiently. In this case, the VF runs multiple engines on the property at hand by efficiently distributing the time across those engines. Such an efficient distribution is derived from a large set of benchmarks.
With parallel composition, the user doesn't have to wait for a specific engine to complete before getting a proof from another. As long as all subgroups are not fully resolved, the VF processes 4 properties simultaneously. The speedup from parallel processing may exceed the speedup resulting from sending multiple properties to a VE in one go. In one embodiment, the maximum number of engines running in parallel for a given property is 2, and the max number of properties being processed at a time is 4. This means the VF will generally keep 8 cores busy with this composition.
In S220 the VF analyzes combinational loops and user constraints for stability and consistency. This check is required since if two or more constraints indicate contradictory values for some signals, the verification step cannot continue; the user must resolve the conflict by modifying the constraints, the RTL or both. In S240 the VF checks if any constraint inconsistencies were found. If the VF found one or more constraint inconsistencies, the VF proceeds to S280. If the VF did not find any constraint inconsistencies, the VF proceeds to S250. In S280 the VF reports constraint inconsistencies and shows the user the constraints that are causing the conflict; the user must resolve the conflict before the verification process is resumed. After reporting constraint inconsistencies in S280, the VF terminates.
In S250 the VF selects an engine composition and allocates resources. The VF selects an engine composition specified in the script or API call if possible. If the VF does not receive an explicit engine composition via script or API call the VF selects an engine composition based on attributes of the properties. The VF divides elapsed-time and/or CPU time among serial elements. The VF divides CPU time among parallel elements but keeps the same elapsed time. The VF divides the memory among parallel elements running on separate CPU cores of the same machine. The engine composition may specify sequential, conditional, data-parallelism or engine-parallelism. In data-parallelism, the VF will divide the properties into groups and start parallel processes operating on different property groups. In engine-parallelism the VF starts parallel processes with each process executing a different VE.
A choice based composition allows condition-based property dispatching where a condition indicates which a set of properties will be sent to a specific engine. For example, if the number of sequential elements is less than a certain count, dispatch the property to engine E1; otherwise dispatch the property to engine E2. Conditions are based on structural property attributes (e.g., nature of property, number of combinational/sequential elements, depth . . . ). In an abstraction composition, a property can be abstracted with different types of smart structural abstraction techniques that convert some signals to primary inputs based on various relevant property attributes. An abstraction engines modifies the design and the VF passes the modified design to subsequent composition elements.
In S260 the VF launches the VEs as processes. The VF launches serial elements in order after the previous element has finished. The VF launches parallel elements at the same time ensuring that the maximum number of processes is not exceeded. The VF keeps track of each property's verification results. Once a property has been proven, subsequent processes need not attempt that property. When a VE process proves a property it signals the result to the VF. The VF signals information about proven properties to parallel properties so that the parallel process can terminate processing of proven properties.
In S270 the VF reports the verification results to the end-user. The verification results indicate which properties were proved, failed and partially-proved.
The VF 320 controls and interacts with a Verification Execution System 325. The VF 320 composes a schedule for running VEs to prove the design assertions in 360. The VF directs the Verification Execution System 325 to prove the design assertions in 360 by executing VEs in the order of the composed schedule. The VEs are software applications running on one or more CPUs of the Verification Execution System 325. In one embodiment the VF 320 and Verification Execution System 325 run on the same single-core or multi-core CPU and share the same files and memory. In this embodiment the VF 320 spawns processes or threads to execute the VEs. In a second embodiment the Verification Execution System 325 runs on one or more single-core or multi-core CPUs. In this second embodiment the VF 320 executes remote shell calls to start VE execution on the Verification Execution System 325. In this second embodiment the VF 320 communicates with the Verification Execution System 325 by using a shared file system or by copying data files.
In one embodiment the VF 320 reads information about VEs and VE composition templates from a VE database 315. The VE database 315 lists attributes of the VEs including run-time behavior, memory requirement, ability to handle large numbers of latches/registers, and ability to generate proofs. A composition template defines a commonly-used sequence of VE operations. The VE database 315 lists similar attributes of the composition templates. The VE database 315 is stored on a storage medium such as a disk file. In a second embodiment the VF320 maintains the VE database as data structures within its application program.
The embodiments disclosed herein can be implemented as hardware, firmware, software, or any combination thereof. Moreover, the software is preferably implemented as an application program tangibly embodied on a program storage unit or computer readable medium. The application program may be uploaded to, and executed by, a machine comprising any suitable architecture. Preferably, the machine is implemented on a computer platform having hardware such as one or more central processing units (“CPUs”), a memory, and input/output interfaces. The computer platform may also include an operating system and microinstruction code. The various processes and functions described herein may be either part of the microinstruction code or part of the application program, or any combination thereof, which may be executed by a CPU, whether or not such computer or processor is explicitly shown. In addition, various other peripheral units may be connected to the computer platform such as an additional data storage unit and a printing unit. Furthermore, a non-transitory computer readable medium is any computer readable medium except for a transitory propagating signal.
Number | Name | Date | Kind |
---|---|---|---|
6077304 | Kasuya | Jun 2000 | A |
6339837 | Li | Jan 2002 | B1 |
6698003 | Baumgarwtner et al. | Feb 2004 | B2 |
7093218 | Baumgartner et al. | Aug 2006 | B2 |
7266795 | Baumgartner et al. | Sep 2007 | B2 |
7779378 | Baumgartner et al. | Aug 2010 | B2 |
7856609 | Baumgartner et al. | Dec 2010 | B2 |
7913208 | Baumgartner et al. | Mar 2011 | B2 |
8589837 | Baumgartner et al. | Nov 2013 | B1 |
8601433 | Son et al. | Dec 2013 | B2 |
8612905 | Goyal et al. | Dec 2013 | B1 |
20130290918 | Baumgartner et al. | Oct 2013 | A1 |
Number | Date | Country |
---|---|---|
1710567 | Jul 2005 | CN |
Number | Date | Country | |
---|---|---|---|
20170024508 A1 | Jan 2017 | US |