FUNCTIONAL VERIFICATION OF POWER GATED DESIGNS BY COMPOSITIONAL REASONING

Information

  • Patent Application
  • 20100017764
  • Publication Number
    20100017764
  • Date Filed
    July 17, 2008
    16 years ago
  • Date Published
    January 21, 2010
    14 years ago
Abstract
A novel and useful method of functional verification of power gated designs by compositional reasoning. The method of the present invention performs a sequential equivalence check between the power gated design and a version of itself in which power gating is disabled. A compositional approach is first used to look for conditional equivalence of each functional block of the circuit (and its corresponding functional block with power gating disabled) under a suitable set of assumptions, guaranteed by the neighboring functional blocks. Circular reasoning rules are then employed to compose the conditional equivalences proved on the individual functional blocks back into total equivalence on the whole circuit.
Description
FIELD OF THE INVENTION

The present invention relates to the field of integrated circuit design tools and more particularly relates to a method of verifying power gated circuit designs via sequential and compositional conditional equivalency.


SUMMARY OF THE INVENTION

There is thus provided in accordance with the invention, a method of verifying a circuit comprising a power gated design, the method comprising the steps of creating a version of said circuit, wherein power gating is disabled, defining one or more valid inputs for said circuit comprising a power gated design, performing a sequential equivalence check between said circuit comprising a power gated design and said version comprising a non power gated design utilizing said one or more valid inputs and comparing the outputs of said circuit comprising a power gated design and said circuit wherein power gating is disabled.


There is also provided in accordance of the invention, a method of verifying a circuit comprising a power gated design, the method comprising the steps of partitioning said circuit into a plurality of original functional blocks, wherein power gating is enabled in each said original functional block, creating a corresponding functional block for each original functional block, wherein said corresponding functional block comprises said original functional block in which power gating is disabled, defining one or more valid inputs for each said original functional block, defining one or more valid conditions for each original functional block and its associated corresponding functional block, performing a conditional equivalence check between each said original functional block and each said corresponding functional block utilizing said one or more valid inputs and said one or more valid conditions, thereby determining conditional equivalency and composing said conditional equivalencies to define a compositional conditional equivalency.


There is further provided a computer program product for verifying a circuit comprising a power gated design, the computer program product comprising a computer usable medium having computer usable code embodied therewith, the computer program product comprising computer usable code configured for creating a version of said circuit, wherein power gating is disabled, computer usable code configured for defining one or more valid inputs for said circuit comprising a power gated design, computer usable code configured for performing a sequential equivalence check between said circuit comprising a power gated design and said version comprising a non power gated design utilizing said one or more valid inputs and computer usable code configured for comparing the outputs of said circuit comprising a power gated design and said circuit wherein power gating is disabled.


There is also provided a computer program product for verifying a circuit comprising a power gated design, the computer program product comprising a computer usable medium having computer usable code embodied therewith, the computer program product comprising computer usable code configured for partitioning said circuit into a plurality of original functional blocks, wherein power gating is enabled in each said original functional block, computer usable code configured for creating a corresponding functional block for each original functional block, wherein said corresponding functional block comprises said original functional block in which power gating is disabled, computer usable code configured for defining one or more valid inputs for each said original functional block, computer usable code configured for defining one or more valid conditions for each original functional block and its associated corresponding functional block, computer usable code configured for performing a conditional equivalence check between each said original functional block and each said corresponding functional block utilizing said one or more valid inputs and said one or more valid conditions, thereby determining conditional equivalency and computer usable code configured for composing said conditional equivalencies to define a compositional conditional equivalency.





BRIEF DESCRIPTION OF THE DRAWINGS

The invention is herein described, by way of example only, with reference to the accompanying drawings, wherein:



FIG. 1 is a block diagram illustrating an example computer processing system adapted to implement the functional verification of power gated design method of the present invention;



FIG. 2 is a block diagram illustrating the design partitioning step of the present invention;



FIG. 3 is a block diagram illustrating the use of an observer with functional blocks to implement the method of the present invention;



FIG. 4 is a block diagram illustrating a circuit partitioned into functional blocks per the method of the present invention;



FIG. 5 is a flow diagram illustrating the sequential equivalency verification of power gated design method of the present invention; and



FIG. 6 is a flow diagram illustrating the compositional conditional equivalency verification of power gated design method of the present invention.





DETAILED DESCRIPTION OF THE INVENTION
Notation Used Throughout

The following notation is used throughout this document:
















Term
Definition









ASIC
Application Specific Integrated Circuit



CD-ROM
Compact Disc Read Only Memory



CPU
Central Processing Unit



DSP
Digital Signal Processor



EEROM
Electrically Erasable Read Only Memory



EPROM
Erasable Programmable Read-Only Memory



FPGA
Field Programmable Gate Array



FTP
File Transfer Protocol



HTTP
Hyper-Text Transport Protocol



I/O
Input/Output



LAN
Local Area Network



NIC
Network Interface Card



PM
Power Manager



RAM
Random Access Memory



RF
Radio Frequency



ROM
Read Only Memory



WAN
Wide Area Network










DETAILED DESCRIPTION

The present invention is a method of performing a sequential equivalence check between the power gated design and a version of itself in which power gating is disabled. A compositional approach is first used to look for conditional equivalence of each functional block of the circuit (and its corresponding functional block with power gating disabled) under a suitable set of assumptions, guaranteed by neighboring functional blocks. Circular reasoning rules are then employed to compose the conditional equivalences proved on the individual functional blocks back into total equivalence on the whole circuit.


The method of present invention employs a methodology that addresses functional verification of a circuit design implementing power gating, where the verification task is segmented into two steps. First, correct functionality of the design is checked when power gating is disabled, using the usual techniques (formal and/or dynamic). Second, a sequential equivalence check is performed between a version of the design with power gating enabled and one with it disabled.


Due to the increasing complexity of power gated circuit designs, the circuit is partitioned into functional blocks and a sequential equivalence check is performed on each block. Conditions are identified where the interface between a power gated functional block and its neighbors (i.e. functional blocks) is “active”, and therefore preserving power gating unit functionality at that point. The next step is to prove that the neighboring functional blocks are not affected by a difference in behavior when the interface is not active. Finally, after establishing conditional equivalence of each functional block, circular reasoning rules enable composition of the functional blocks and their respective conditional equivalences into a total equivalence for the entire circuit.


As will be appreciated by one skilled in the art, the present invention may be embodied as a system, method, computer program product or any combination thereof. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a “circuit,” “module” or “system.” Furthermore, the present invention may take the form of a computer program product embodied in any tangible medium of expression having computer usable program code embodied in the medium.


Any combination of one or more computer usable or computer readable medium(s) may be utilized. The computer-usable or computer-readable medium may be, for example but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CDROM), an optical storage device, a transmission media such as those supporting the Internet or an intranet, or a magnetic storage device. Note that the computer-usable or computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted, or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory. In the context of this document, a computer-usable or computer-readable medium may be any medium that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. The computer-usable medium may include a propagated data signal with the computer-usable program code embodied therewith, either in baseband or as part of a carrier wave. The computer usable program code may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc.


Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider).


The present invention is described below with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.


These computer program instructions may also be stored in a computer-readable medium that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable medium produce an article of manufacture including instruction means which implement the function/act specified in the flowchart and/or block diagram block or blocks.


The computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.


A block diagram illustrating an example computer processing system adapted to implement the functional verification of power gated design method of the present invention is shown in FIG. 1. The computer system, generally referenced 10, comprises a processor 12 which may comprise a digital signal processor (DSP), central processing unit (CPU), microcontroller, microprocessor, microcomputer, ASIC or FPGA core. The system also comprises static read only memory 18 and dynamic main memory 20 all in communication with the processor. The processor is also in communication, via bus 14, with a number of peripheral devices that are also included in the computer system. Peripheral devices coupled to the bus include a display device 24 (e.g., monitor), alpha-numeric input device 25 (e.g., keyboard) and pointing device 26 (e.g., mouse, tablet, etc.)


The computer system is connected to one or more external networks such as a LAN or WAN 23 via communication lines connected to the system via data I/O communications interface 22 (e.g., network interface card or NIC). The network adapters 22 coupled to the system enable the data processing system to become coupled to other data processing systems or remote printers or storage devices through intervening private or public networks. Modems, cable modem and Ethernet cards are just a few of the currently available types of network adapters. The system also comprises magnetic or semiconductor based storage device 52 for storing application programs and data. The system comprises computer readable storage medium that may include any suitable memory means, including but not limited to, magnetic storage, optical storage, semiconductor volatile or non-volatile memory, biological memory devices, or any other memory storage device.


Software adapted to implement the functional verification of power gated design method of the present invention is adapted to reside on a computer readable medium, such as a magnetic disk within a disk drive unit. Alternatively, the computer readable medium may comprise a floppy disk, removable hard disk, Flash memory 16, EEROM based memory, bubble memory storage, ROM storage, distribution media, intermediate storage media, execution memory of a computer, and any other medium or device capable of storing for later reading by a computer a computer program implementing the method of this invention. The software adapted to implement the functional verification of power gated design method of the present invention may also reside, in whole or in part, in the static or dynamic main memories or in firmware within the processor of the computer system (i.e. within microcontroller, microprocessor or microcomputer internal memory).


Other digital computer system configurations can also be employed to implement the complex event processing system rule generation mechanism of the present invention, and to the extent that a particular system configuration is capable of implementing the system and methods of this invention, it is equivalent to the representative digital computer system of FIG. 1 and within the spirit and scope of this invention.


Once they are programmed to perform particular functions pursuant to instructions from program software that implements the system and methods of this invention, such digital computer systems in effect become special purpose computers particular to the method of this invention. The techniques necessary for this are well-known to those skilled in the art of computer systems.


It is noted that computer programs implementing the system and methods of this invention will commonly be distributed to users on a distribution medium such as floppy disk or CD-ROM or may be downloaded over a network such as the Internet using FTP, HTTP, or other suitable protocols. From there, they will often be copied to a hard disk or a similar intermediate storage medium. When the programs are to be run, they will be loaded either from their distribution medium or their intermediate storage medium into the execution memory of the computer, configuring the computer to act in accordance with the method of this invention. All these operations are well-known to those skilled in the art of computer systems.


The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.


Functional Verification of Power Gated Designs

In a first embodiment of the present invention, a corresponding version of the power gated circuit is created with power gating disabled. A sequential equivalence check is performed for the power gated circuit and its corresponding version with power gating disabled using known valid inputs.


In a second embodiment of the present invention, the power gated circuit is partitioned into functional blocks B1 . . . Bn (i.e. power gating enabled in each Bi). Corresponding functional blocks B′1 . . . B′n are then defined where power gating functionality is disabled in each B′i. A sequential equivalence check is then performed for each Bi and its corresponding B′i. A compositional approach is first used to look for conditional equivalence of each functional block of the circuit under a suitable set of assumptions, guaranteed by the neighboring functional blocks. Circular reasoning rules are then employed to compose the conditional equivalences proved on the individual functional blocks back into total equivalence on the whole circuit.


Note that there are instances where the power gated circuit to be verified comprises both functional blocks that are power gated and functional blocks that are not power gated. In this instance, the effects of power gating may be evident even in the non-power gated blocks by virtue of the inputs passed to them by the power gated blocks. For reasons of explication only, B (comprising the blocks B1 . . . Bn) is divided into two groups, G and U. Group G consists of the power management unit, all power gated units and all non-power gated units in which the effects of power gating are evident and group U consists of all other blocks.


An example partitioning step of the present invention for this type of circuit is shown in FIG. 2. The block diagram, generally referenced 30, comprises section G 32, consisting of functional blocks which are all power gated and section U 34, consisting of functional blocks in the circuit not implementing power gating logic. Section G is further comprised of power manager (PM) 36 and functional blocks G1 38, G2 40 through Gm 42. Section U is further comprised of functional blocks U1 44 through Un 46.


Note that G has no interface other than with U. That is, if G receives inputs directly from the chip interface or drives outputs directly to it, we assume for simplicity that they are buffered (with possibly zero delay) through U.


The method of the present invention is to show that the design G∥U is equivalent to the design G′∥U′, where the only difference between the primed and unprimed versions is that pg_enable=1 in G∥U whereas pg_enable=0 in G′∥U′. This shows that power gating does not affect the functionality of the design as a whole.


The goal of the method of the present invention is to show that G∥U is equivalent to G′∥U′. Due to size problems (i.e. of the circuit) this is performed compositionally, by comparing each Gi with G′i and each Ui with U′i. For simplicity of the explication, the problem is first broken down to comparing G with G′ and U with U′, and only afterwards how to break the problem down further.


When G is powered off, its outputs are not necessarily equivalent to those of G′, therefore precluding full equivalence. Although U and U′ will surely behave the same if they receive the same inputs (because there is no difference between them), in the method of the present invention, U will get its inputs from G and U′ from G′, thus showing equivalence between them is not trivial. Furthermore, care must be taken when comparing G with G′. If the inputs of the power management unit power manager “misbehave”, it might shut off some Gi at an inappropriate time, for example, when it is in the middle of processing a transaction. Therefore some minimal guaranteed assumptions are needed for the inputs that influence the power manager.


In order to ensure guaranteed assumptions, a simple observer (i.e. a piece of code) is supplied that monitors the interface between G and U and outputs flags that indicate properties of the interface. Each flag is used as an assumption by one of G∥G′ or U∥U′ and is guaranteed by the other, and the apparent circularity is broken by induction over time.


An example of using an observer with functional blocks to implement the method of the present invention is shown in FIG. 3. The block diagram, generally referenced 50, comprises observers 56, 58 and functional blocks 52, 5460 and 62. Observer Obs 56 is associated with functional blocks G 52 and U 60. Observer Obs' 58 is associated with functional blocks G′ 54 and 62 U′.


The setup of the methodology of the present invention is as shown in block diagram 50 (where the flags are signals partitioned into sets GoodU, GoodG and V) is as follows:

    • GoodU: Each flag in this set has the value “1” as long as some assumption about the behavior of U is preserved. These assumptions do not specify the exact correct behavior of U on this interface, only the minimal needed restrictions. As soon as a violation of these assumptions is detected the flag goes to “0” and stays so forever.
    • GoodG: This set is similar to GoodU, but over G.
    • V: Conceptually, this set contains a single flag v, which is a “valid” signal that indicates whether the interface between G and U is active. When v=1 the outputs of G and G′ are expected to be equivalent, and when v=0 that are not expected to be equivalent. For example, v could be ready transmitting, where ready is an output of U signifying that U is ready to receive data and transmitting is an output of G signifying that G has data ready on the bus. In fact, V is not a single flag but a set of flags, because each Ui may have its own interface with each Gj, and even across a single interface not all signals necessarily follow the same protocol.


The sets GoodU and GoodG are typically initialized as empty sets, with constraints gradually added to refine them as needed. In the general case of assume-guarantee reasoning for functional correctness, this refinement process is complex since it requires a semantic understanding of how the design is intended to work. In the simplified setting described supra, these conditions will typically be simple translations from the English specification of the interface (e.g., “there are no requests during reset”). Moreover, assumptions weaker than those necessary to check functional correctness are used, since it is acceptable for the designs misbehave as long as the two copies (mis)behave in exactly the same way.


Note that it is possible to code a correct design in which the interface between G and U is always active (despite the fact that G can be powered down), and that this does not break the methodology. In such a case the fences and the state retention logic of G will be such that the valid signal has the constant value “1”, and the equivalence between U and U′ is trivial.


An example of a power gated circuit partitioned into functional blocks is shown in FIG. 4. The block diagram, generally referenced 70 comprises power gated functional block G 72, non power gated functional block U 74, shifter 76, input ports 78, 80, 82, 84 and output ports 86, 88, 90, 92. Functional; block G is further comprised of power manager 94 and adder 96. Functional block U is further comprised of dispatch unit 98, registers 100 and arbiter 102.


In the circuit, commands are injected into the unit through the four input ports, and are held in the dispatch queue until they are sent by the dispatch unit to either the adder or the shifter, depending on their type. The results pass to an arbiter, which distributes them to the four output ports. The adder is responsible for all add/subtract and branch commands, while the shifter executes shift and load/store commands. In this implementation the functional block comprising the adder is power gated. The power manager receives commands from the dispatch unit to either turn the adder on or off (via power gating), depending on the instruction type being processed by the dispatch unit.


A flow diagram illustrating the power gated circuit verification via sequential equivalency method of the present invention is shown in FIG. 5. First, the power gated circuit to be verified is loaded (step 110). A corresponding version of the circuit is created with power gating (step 112). Reasonable valid inputs are then defined for the circuit (step 114). A sequential check is then performed on the original and corresponding circuits using the defined inputs (step 116). If the outputs from the two circuits are equivalent (step 118) then the circuit passes verification (step 122). Otherwise the circuit fails verification (step 120). Finally the results are presented to the user (step 124)


A flow diagram illustrating the power gated circuit verification via compositional conditional equivalency method of the present invention is shown in FIG. 6. First, the circuit to be verified is loaded (step 130). The circuit is then partitioned into functional blocks, with power gating enabled in each functional block (step 132). A corresponding version of each functional block is then created, with power gating disabled in each corresponding functional block (step 134). Valid inputs are defined for each functional block (step 136), where the inputs comprise either inputs to the loaded circuit or outputs from other functional blocks. For each functional block conditions (i.e. signals) are defined where the outputs from each pair of functional blocks (i.e. one with power gating enabled and one with power gating disabled) are expected to be equivalent (step 138). Using the defined inputs and conditions, a conditional equivalence check is performed on each pair of functional blocks (step 140). If the outputs from each pair of functional blocks (i.e. each conditional equivalence check) are equivalent (step 142) then the loaded power gated circuit passes verification via compositional conditional equivalency (step 146). Otherwise the loaded power gated circuit fails verification (step 144). Finally, the results are presented to the user (step 148).


Proving Sequential Equivalence

The approach described supra is based on the compositional reasoning rule presented by McMillan in K. L. McMillan, “Verification of an implementation of Tomasulo's algorithm by compositional model checking”, CAV '98, pp. 110-121, 1998, and borrows notation therefrom. Following McMillan, the notation is modified by using Q to denote the conjunction of all predicates in the set Q.


Let P be a set of predicates describing the design and let S be a set of predicates defining the specification. For each predicate sεS, let εsP∪S be the environment of s. Intuitively, this is the set of predicates needed in order to show that s holds. We assume a well-founded order on S that defines for each predicate s which other predicates will be assumed up to time i when proving s at time i (this is Zs), and which will be assumed only up to time i−1 (this is Zs, the complement of Zs). Then by McMillan we can use Theorem 1 below:

    • Theorem 1: Let P and S be sets of predicates, for each sεS, let εs⊂P∪S and let be a well-founded order on S. Let Zs=P∪{s1εS:s1s}, and for a predicate p let p↑τ stand for t≦Tp(t). Then, if for all sεS,





S∩ZS)↑τSZS)↑τ−1s(T)  (1)

    •  is valid, then (∀t.P(t))∀t.S(t) is valid.


The goal is to use Theorem 1 to prove sequential equivalence between G∥U and G′∥U′. Since we have assumed that all outputs of G∥U are outputs of U it is sufficient to show that the predicate










EqU


(
t
)




=
def



{


o


(
t
)






o




(
t
)




:






o





is





an





output





of





U


}





(
2
)







holds at all times t. The following auxiliary sets of predicates are needed:











P
GoodU



(
t
)




=
def



{


s


(
t
)


=

1


s

GoodU



}





(
3
)








P
GoodG



(
t
)




=
def



{


s


(
t
)


=

1


s

GoodG



}





(
4
)








P
V



(
t
)




=
def



{



v


(
t
)





v




(
t
)





v

V


}





(
5
)







EqG


(
t
)




=
def



{






v
o



(
t
)





(


o


(
t
)





o




(
t
)



)



:






o





is





an





output





of








G





and






v
o




V





is





its





associated





valid





bit





}





(
6
)







Let G, G′, U, U′, Ob and Ob′ be the sets of predicates describing the respective designs of FIG. 3. Let Ĝ=G∪G′∪Ob∪Ob′ and Û=U∪U′∪Ob∪OB′. Let P=Ĝ∪Û S=PV∪PGoodU∪PGoodG∪EqU∪EqG.


To begin, it is assumed that the relation is empty, thus for every element s of S, we have Zs=P and Zs=S. Therefore proving the following






Ĝ↑
τ
(EqU∪PGoodU)↑τ−1(EqG∪PGoodG∪PV)(τ)  (7)






Û↑
τ
(EqG∪PGoodG∪PV)↑τ−1(EqU∪PGoodU)(τ)  (8)


enables us to conclude that (∀t.P(t)∀t.S(t), and in particular that (∀t.P(t)∀t.EqU(t), which is the goal.


In practice, there will usually be some combinational paths from inputs to outputs in one or more of G, U and Ob, in which case we will need stronger assumptions for some of the proof obligations. That is, we will need s↑τas opposed to s↑τ−1 for some element sεS used on the left-hand side of Obligation (1) or (2). Thus we will need to set an order, easily determined from the topology of the design, between the elements of S. As noted by McMillan cited supra, such an order is guaranteed to exist when there are no combinatorial loops in the design. Since a combinatorial loop is a basic structural design error, we are guaranteed the existence of a well-founded order. Using the well-founded order, each of the Obligations (1) and (2) will be split into a number of proof obligations, one for each predicate in the conjunction on the right hand side. For example, let one such predicate be s(t)=(υo→(o(t)o′(t)))εEqG, and let A={s′(t)|s′s and s′εEqU∪PGoodU} and B=(EqU∪PGoodU)\A. The corresponding proof obligation for s is then





(Ĝ∪A)↑τB↑τ−1o→(o(T)o′(τ)))  (9)


Conceptually, it has been convenient up till now to view G and U as monolithic units. However, in reality each will typically consist of a number of smaller units, as shown in FIG. 2. Thus we would like to decompose the verification problem further by considering each Gi and Ui separately. For an output o of some Ui, we would like to use only Ui rather than all of U on the left hand side of its proof obligation. To do so, we must add the following predicates to S:










Eq







Int

U



(
t
)





=
def



{





s


(
t
)






s




(
t
)




:






s





is





an





interface





signal








between






U
i






and






U
j






for





some





i


j




}





(
10
)







The situation for a single Gi is slightly more complicated: we must include the power management unit PM together with each Gi, and the predicates that we add for the outputs of Gi will be conditional, thus we might need to add some new valid signals. Denote the new valid signals by Vnew. Then we add the following additional predicates to S:












P

V





new




(
t
)




=
def



{



v


(
t
)





v




(
t
)





v






V
new



}













Eq





Int






G


(
t
)





=
def



{






v
s



(
t
)





(


s


(
t
)





s




(
t
)



)



:






s





is





an





interface







signal





between






G
i






and






G
j






for








some





i



j





and






v
s





{

V










V
new


}







is





its





associated





valid





bit




}






(
11
)







The order is easily extended to the new predicates by a topological analysis of the design. For each output o of some Gi or Ui, we verify its proof obligation using Ĝi or Ûi in place of Ĝ or Û, where Ĝi=PM∥Gi∥Gi′ and Ûi=Ui∥Ui′.


Note that the theory supports multiply clocked designs as well as singly clocked ones. In the case of a singly clocked design, each time t is simply a tick of the clock. In the case of a multiply clocked design, each time t is a tick of the smallest granularity of time as seen by the verification tool (this is exactly the same as in model checking or equivalence checking of multiply clocked designs).


The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises” and/or “comprising,” when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.


The corresponding structures, materials, acts, and equivalents of all means or step plus function elements in the claims below are intended to include any structure, material, or act for performing the function in combination with other claimed elements as specifically claimed. The description of the present invention has been presented for purposes of illustration and description, but is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the invention. The embodiment was chosen and described in order to best explain the principles of the invention and the practical application, and to enable other of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.


It is intended that the appended claims cover all such features and advantages of the invention that fall within the spirit and scope of the present invention. As numerous modifications and changes will readily occur to those skilled in the art, it is intended that the invention not be limited to the limited number of embodiments described herein. Accordingly, it will be appreciated that all suitable variations, modifications and equivalents may be resorted to, falling within the spirit and scope of the present invention.

Claims
  • 1. A method of verifying a circuit comprising a power gated design, said method comprising the steps of: creating a version of said circuit, wherein power gating is disabled;defining one or more valid inputs for said circuit comprising a power gated design; andperforming a sequential equivalence check between said circuit comprising a power gated design and said version comprising a non power gated design, utilizing said one or more valid inputs.
  • 2. The method according to claim 1, wherein said circuit comprising a power gated design comprises a plurality of functional blocks.
  • 3. The method according to claim 2, wherein one or more of said plurality of functional blocks comprises a power gated design.
  • 4. The method according to claim 2, wherein zero or more of said plurality of functional blocks comprises a non power gated design.
  • 5. The method according to claim 1, wherein equivalent outputs of said circuit comprising a power gated design and said version comprising a non power gated design, from said sequential equivalence check comprises an equivalency.
  • 6. A method of verifying a circuit comprising a power gated design, said method comprising the steps of: partitioning said circuit into a plurality of original functional blocks, wherein power gating is enabled in each said original functional block;creating a corresponding functional block for each original functional block, wherein said corresponding functional block comprises said original functional block in which power gating is disabled;defining one or more valid inputs for each said original functional block;defining one or more valid conditions for each original functional block and its associated corresponding functional block;performing a conditional equivalence check between each said original functional block and each said corresponding functional block, utilizing said one or more valid inputs and said one or more valid conditions, thereby determining conditional equivalency; andcomposing said conditional equivalencies to define a compositional conditional equivalency.
  • 7. The method according to claim 6, wherein one or more of said plurality of original functional blocks comprises a power gated design.
  • 8. The method according to claim 6, wherein zero or more of said plurality of original functional blocks comprises a non power gated design.
  • 9. The method of claim 8, wherein said functional block comprising a non power gated design directly interacts with a functional block comprising a power gated design.
  • 10. The method according to claim 6, wherein one or more of said valid inputs comprise an output from a separate functional block.
  • 11. The method according to claim 6, wherein each of said one or more conditions comprise a signal indicating whether the interface between an original functional block and its corresponding function block is active.
  • 12. The method according to claim 6, wherein said conditional equivalency comprises equivalent outputs of said original functional block and its corresponding functional block.
  • 13. The method according to claim 6, wherein said compositional conditional equivalency comprises all said original functional blocks and their corresponding functional blocks having conditional equivalency.
  • 14. A computer program product for verifying a circuit comprising a power gated design, the computer program product comprising a computer usable medium having computer usable code embodied therewith, the computer program product comprising:computer usable code configured for creating a version of said circuit, wherein power gating is disabled;computer usable code configured for defining one or more valid inputs for said circuit comprising a power gated design; andcomputer usable code configured for performing a sequential equivalence check between said circuit comprising a power gated design and said version comprising a non power gated design utilizing said one or more valid inputs.
  • 15. The computer program product of claim 14, wherein said circuit comprising a power gated design comprises a plurality of functional blocks.
  • 16. The computer program product of claim 15, wherein one or more of said plurality of functional blocks comprises a power gated design.
  • 17. The computer program product of claim 14, wherein equivalent outputs of said circuit comprising a power gated design and said version comprising a non power gated design, from said sequential equivalence check comprises an equivalency.
  • 18. A computer program product for verifying a circuit comprising a power gated design, the computer program product comprising a computer usable medium having computer usable code embodied therewith, the computer program product comprising:computer usable code configured for partitioning said circuit into a plurality of original functional blocks, wherein power gating is enabled in each said original functional block;computer usable code configured for creating a corresponding functional block for each original functional block, wherein said corresponding functional block comprises said original functional block in which power gating is disabled;computer usable code configured for defining one or more valid inputs for each said original functional block;computer usable code configured for defining one or more valid conditions for each original functional block and its associated corresponding functional block;computer usable code configured for performing a conditional equivalence check between each said original functional block and each said corresponding functional block, utilizing said one or more valid inputs and said one or more valid conditions, thereby determining conditional equivalency; andcomputer usable code configured for composing said conditional equivalencies to define a compositional conditional equivalency.
  • 19. The computer program product of claim 18, wherein one or more of said plurality of original functional blocks comprises a power gated design.
  • 20. The computer program product of claim 18, wherein zero or more of said plurality of original functional blocks comprises a non power gated design.
  • 21. The computer program product of claim 20, wherein said functional block comprising a non power gated design directly interacts with a functional block comprising a power gated design.
  • 22. The computer program product of claim 18, wherein one or more of said valid inputs comprise an output from a separate functional block.
  • 23. The computer program product of claim 18, wherein each of said one or more conditions comprise a signal indicating whether the interface between an original functional block and its corresponding function block is active.
  • 24. The computer program product of claim 18, wherein said conditional equivalency comprises equivalent outputs of said original functional block and its corresponding functional block.
  • 25. The computer program product of claim 18, wherein said compositional conditional equivalency comprises all said original functional blocks and their corresponding functional blocks having conditional equivalency.