Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3394888B2 - Logic circuit verification device, logic circuit verification method, and computer-readable recording medium storing logic circuit verification program - Google Patents
[go: Go Back, main page]

JP3394888B2 - Logic circuit verification device, logic circuit verification method, and computer-readable recording medium storing logic circuit verification program - Google Patents

Logic circuit verification device, logic circuit verification method, and computer-readable recording medium storing logic circuit verification program

Info

Publication number
JP3394888B2
JP3394888B2 JP15390297A JP15390297A JP3394888B2 JP 3394888 B2 JP3394888 B2 JP 3394888B2 JP 15390297 A JP15390297 A JP 15390297A JP 15390297 A JP15390297 A JP 15390297A JP 3394888 B2 JP3394888 B2 JP 3394888B2
Authority
JP
Japan
Prior art keywords
circuit
logic
equivalence
gated clock
equivalence judgment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP15390297A
Other languages
Japanese (ja)
Other versions
JPH113361A (en
Inventor
健 北原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP15390297A priority Critical patent/JP3394888B2/en
Publication of JPH113361A publication Critical patent/JPH113361A/en
Application granted granted Critical
Publication of JP3394888B2 publication Critical patent/JP3394888B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、計算機を利用した
LSIの論理回路設計の自動化に関し、特に論理回路が
正しく設計されているかどうかを検証することを目的と
した論理回路検証に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to automation of logic circuit design of an LSI using a computer, and more particularly to logic circuit verification for verifying whether or not a logic circuit is properly designed.

【0002】[0002]

【従来の技術】LSIの論理回路設計においては、回路
構造は違うが論理又は機能が同一であるように設計され
た2つの論理回路の論理又は機能の等価性を判定(検
証)する作業がシミュレータを使って行われている。し
かし、シミュレータを使った場合、入力パターンの0、
1の組合せは2n(nは入力数)通りとなるため、入力
数が多くなると計算に時間がかかるという問題があっ
た。
2. Description of the Related Art In the design of an LSI logic circuit, a simulator is used to determine (verify) the equivalence of logic or function of two logic circuits designed to have the same logic or function but different circuit structures. Is done using. However, when using a simulator, the input pattern 0,
Since there are 2 n combinations of 1 (n is the number of inputs), there is a problem that the calculation takes time when the number of inputs is large.

【0003】そこで、2つの論理回路の論理又は機能の
等価性を判定するためのツールとして論理回路検証装置
が利用されている。図13は、従来の論理回路検証装置
で生成される論理等価性判定回路の一例を示す回路構成
図である。論理回路検証装置は、検証すべき2つの論理
回路を入力して、図13のような等価性判定回路を生成
し、入力I1及びI2に0、1の組合せパターンを与え
たときに、出力out_checkの値が常に1となる
かどうかにより、検証対象となる回路11及び回路12
が論理的に等価であるかどうかの判定を行う。ここで、
出力が常に1となるかどうかの判定は、論理回路の機能
を論理関数に変換して行っている。この表現形式には、
後述するBDD(Binary Decision Diagram)と呼ばれる
グラフ関数(論理構造が異なっても論理的に等価であれ
ば同一の表現形式となる)が一般的に利用されている。
Therefore, a logic circuit verification device is used as a tool for determining the equivalence of logic or function of two logic circuits. FIG. 13 is a circuit configuration diagram showing an example of a logical equivalence determination circuit generated by a conventional logic circuit verification device. The logic circuit verification device inputs two logic circuits to be verified, generates an equivalence judgment circuit as shown in FIG. 13, and outputs an output out_check when a combination pattern of 0 and 1 is given to inputs I1 and I2. Circuit 11 and circuit 12 to be verified depending on whether or not the value of is always 1.
, Are logically equivalent. here,
Whether or not the output is always 1 is determined by converting the function of the logic circuit into a logic function. In this form of expression,
A graph function called a BDD (Binary Decision Diagram) described later (which has the same expression form as long as it is logically equivalent even if the logical structures are different) is generally used.

【0004】このような論理関数による判定において、
ドントケア条件が出力端子及びレジスタ入力に定義され
ている場合に、機能的に等価であるかどうかの判定は次
のように行なう。例えば、図13において、回路11の
出力端子out1をout11、回路12の出力端子o
ut1をout12として、出力端子out1における
ドントケア関数をdc_out1とする。ここで(ou
t11 ex−norout12)or dc_out
1が常に1であるかどうかをチェックすることで論理又
は機能の等価性を判定することができる。
In the judgment by such a logical function,
When the don't care condition is defined for the output terminal and the register input, it is determined whether or not they are functionally equivalent as follows. For example, in FIG. 13, the output terminal out1 of the circuit 11 is out11 and the output terminal o of the circuit 12 is o.
Let ut1 be out12 and the don't care function at the output terminal out1 be dc_out1. Where (ou
t11 ex-norout12) or dc_out
Equivalence of logic or function can be determined by checking whether 1 is always 1.

【0005】ドントケア条件とは、論理回路の出力端子
及びレジスタに与えられる値がどのような値であって
も、演算結果に関与しない場合を論理式又は論理回路で
表現したものである。例えば、図14(a)に示すよう
に、レジスタ(Reg)1及び2の出力(データ1、デ
ータ2)をALU(演算ユニット)3で演算してレジス
タ4に出力するような回路で説明する。図において、A
LU3への制御信号I0、I1が同図(b)のように与
えられているとすると、I0、I1が(0、0)又は
(0、1)の場合はALU3ではレジスタ1及び2から
のデータに対して+又は−の演算が行われるが、I0、
I1が(1、0)の場合はデータ1がシフトされ、デー
タ2は使われない。また、I0、I1が(1、1)の場
合はデータ1、2共に使われない。このI0、I1が
(1、0)及び(1、1)のときに、データ2はドント
ケア、すなわちデータが参照されない状態となる。この
ように入力値の組合せがドントケアである場合には、レ
ジスタの出力が一致しなくても、等価であるとみなすよ
うにしている。すなわち、ドントケア条件が定義されて
いる場合は、論理的に等価であるかではなく、機能的に
等価であるかどうかが判定される。
The don't care condition is expressed by a logical expression or a logical circuit in which the output terminal of the logical circuit and the value of the register are not related to the operation result regardless of the values. For example, as shown in FIG. 14A, a circuit in which outputs (data 1, data 2) of registers (Reg) 1 and 2 are calculated by an ALU (arithmetic unit) 3 and output to a register 4 will be described. . In the figure, A
Assuming that the control signals I0 and I1 to the LU3 are given as shown in (b) of the figure, when I0 and I1 are (0,0) or (0,1), the ALU3 outputs from the registers 1 and 2 respectively. Although + or-operation is performed on the data, I0,
When I1 is (1,0), data 1 is shifted and data 2 is not used. When I0 and I1 are (1, 1), neither data 1 nor data 2 is used. When I0 and I1 are (1, 0) and (1, 1), the data 2 is in a don't care state, that is, the data is not referenced. In this way, when the combination of input values is don't care, even if the outputs of the registers do not match, they are considered to be equivalent. That is, when the don't care condition is defined, it is determined whether it is functionally equivalent, not logically equivalent.

【0006】[0006]

【発明が解決しようとする課題】上述した論理回路検証
装置は、ゲーテッドクロック設計された論理回路の等価
性を判定する場合にも利用されている。図15は、ある
部分回路をゲーテッドクロック設計した場合の一例を示
したもので、同図(a)はゲーテッドクロック設計され
ていない部分回路を、同図(b)はゲーテッドクロック
設計された部分回路をそれぞれ示している。図15
(a)の部分回路では、レジスタ(Reg)13のクロ
ック入力ポート(CK)から入力されるクロック信号
(clk)の立ち上がりでデータ(D)を取り込む。こ
こで、データDはマルチプレクサ(MUX)14に入力
されるイネーブル論理出力enaにより制御され、en
a*data+ena(NOT)*outに従って与え
られる。すなわち、enaが1のときはdataがDポ
ートに入力され、enaが0のときはレジスタ13から
のフィードバックがDポートに入力される。
The above-described logic circuit verification device is also used in the case of determining the equivalence of a logic circuit having a gated clock design. 15A and 15B show an example of a case where a certain partial circuit is designed by a gated clock. FIG. 15A shows a partial circuit which is not designed by the gated clock, and FIG. 15B is a partial circuit which is designed by the gated clock. Are shown respectively. Figure 15
In the partial circuit of (a), data (D) is captured at the rising edge of the clock signal (clk) input from the clock input port (CK) of the register (Reg) 13. Here, the data D is controlled by the enable logic output ena input to the multiplexer (MUX) 14,
It is given according to a * data + ena (NOT) * out. That is, when ena is 1, data is input to the D port, and when ena is 0, feedback from the register 13 is input to the D port.

【0007】一方、図15(b)の部分回路において、
データDはANDゲート15に入力されるイネーブル論
理出力enaにより制御され、ena*clkが成立す
るタイミングでレジスタ13に取り込まれる。
On the other hand, in the partial circuit of FIG.
The data D is controlled by the enable logic output ena input to the AND gate 15, and is taken into the register 13 at the timing when ena * clk is established.

【0008】ゲーテッドクロック設計では、図15に示
すようにレジスタ13のクロック入力ポート(CK)に
対して論理回路を付加するもので、図15に示す2つの
部分回路は機能的に等価である。しかし、従来の論理回
路検証装置ではこの2つの部分回路の論理又は機能的な
等価性は判断できないため、等価でないと判定されてい
た。
In the gated clock design, a logic circuit is added to the clock input port (CK) of the register 13 as shown in FIG. 15, and the two partial circuits shown in FIG. 15 are functionally equivalent. However, since the conventional logic circuit verification device cannot determine the logical or functional equivalence of these two partial circuits, it has been determined that they are not equivalent.

【0009】本発明は、上記課題を解決するためになさ
れたもので、ゲーテッドクロック設計された論理回路の
論理又は機能的な等価性を正しく判定することができる
論理回路検証装置、論理回路検証方法及び論理回路検証
プログラムを格納したコンピュータ読み取り可能な記録
媒体を提供することを目的とする。
The present invention has been made to solve the above problems, and a logic circuit verification device and a logic circuit verification method capable of correctly determining the logical or functional equivalence of a gated clock designed logic circuit. And a computer-readable recording medium storing a logic circuit verification program.

【0010】[0010]

【課題を解決するための手段】上記目的を達成するた
め、請求項1の発明は、検証すべき少なくとも2つの論
理回路に関する情報及び該論理回路に関するドントケア
情報を入力する回路情報入力手段と、前記論理回路に関
する情報と該論理回路に関するドントケア情報に基づい
て、前記少なくとも2つの論理回路を含む等価性判定回
路を生成する等価性判定回路生成手段と、前記等価性判
定回路にゲーテッドクロック設計されている論理回路が
含まれる場合は、前記少なくとも2つの論理回路に含ま
れるレジスタのクロック入力が等しくなるように、前記
ゲーテッドクロック設計されている論理回路にマルチプ
レクサを挿入して、前記等価性判定回路を修正するゲー
テッドクロック部分修正手段と、前記等価性判定回路生
成手段で生成された等価性判定回路又は前記ゲーテッド
クロック部分修正手段で修正された等価性判定回路に基
づいて、検証すべき少なくとも2つの論理回路の論理又
は機能の等価性を判定する等価性判定手段とを備えたこ
とを特徴とする論理回路検証装置である
In order to achieve the above object, the invention of claim 1 is a circuit information input means for inputting information on at least two logic circuits to be verified and don't care information on the logic circuits. An equivalence judgment circuit generating means for generating an equivalence judgment circuit including the at least two logic circuits based on information about the logic circuit and don't care information about the logic circuit, and a gated clock design for the equivalence judgment circuit . Logic circuit
If included, it is included in the at least two logic circuits.
So that the clock inputs of the registers
Gated clock Multiplied to the designed logic circuit.
A gated clock partial correction means for inserting a lexer to correct the equivalence judgment circuit, and an equivalence judgment circuit generated by the equivalence judgment circuit generation means or an equivalence judgment corrected by the gated clock partial correction means. A logic circuit verification device comprising equivalence determining means for determining equivalence of logic or function of at least two logic circuits to be verified based on a circuit.

【0011】なお、上記等価性判定回路生成手段及びゲ
ーテッドクロック部分修正手段は、以下のような構成と
することができる。
The equivalence judging circuit generating means and the gated clock partial correcting means can be constructed as follows.

【0012】等価性判定回路生成手段は、等価性判定回
路を生成する際に、検証すべき論理回路に関するドント
ケア情報が無い場合は、論理の等価性を判定するための
等価性判定回路を生成し、検証すべき論理回路に関する
ドントケア情報が有る場合は、機能の等価性を判定する
ための等価性判定回路を生成する。
When there is no don't care information regarding the logic circuit to be verified when generating the equivalence judgment circuit, the equivalence judgment circuit generation means generates an equivalence judgment circuit for judging the logic equivalence. If there is don't care information regarding the logic circuit to be verified, an equivalence judgment circuit for judging equivalence of functions is generated.

【0013】ゲーテッドクロック部分修正手段は、等価
性判定回路を修正する際に、修正すべき論理回路のレジ
スタに対してデータロードとデータ保持の選択を行なう
マルチプレクサを生成し、該マルチプレクサの選択論理
にクロックイネーブル論理を使用するように回路を変更
する。
The gated clock partial correction means, when correcting the equivalence judgment circuit, generates a multiplexer for selecting data loading and data holding for the register of the logic circuit to be corrected, and uses the selection logic of the multiplexer as the selection logic. Modify the circuit to use clock enable logic.

【0014】また、ゲーテッドクロック部分修正手段
は、回路を変更する際に、ゲーテッドクロック設計に関
する付加情報を参照して回路を変更する。
When changing the circuit, the gated clock partial correction means changes the circuit by referring to the additional information regarding the gated clock design.

【0015】[0015]

【0016】請求項2の発明は、回路情報入力手段と、
等価性判定回路生成手段と、ゲーテッドクロック部分修
正手段と、等価性判定手段とを備えた論理回路検証装置
を用いて、少なくとも2つの論理回路の論理又は機能の
等価性を判定する論理回路検証方法であって、前記回路
情報入力手段が、検証すべき少なくとも2つの論理回路
に関する情報及び該論理回路に関するドントケア情報を
入力する回路情報入力ステップと、前記等価性判定回路
生成手段が、前記論理回路に関する情報と該論理回路に
関するドントケア情報に基づいて、前記少なくとも2つ
の論理回路を含む等価性判定回路を生成する等価性判定
回路生成ステップと、前記ゲーテッドクロック部分修正
手段が、前記等価性判定回路にゲーテッドクロック設計
されている論理回路が含まれる場合は、前記少なくとも
2つの論理回路に含まれるレジスタのクロック入力が等
しくなるように、前記ゲーテッドクロック設計されてい
る論理回路にマルチプレクサを挿入して、前記等価性判
定回路を修正するゲーテッドクロック部分修正ステップ
と、前記等価性判定手段が、前記等価性判定回路生成ス
テップで生成された等価性判定回路又は前記ゲーテッド
クロック部分修正ステップで修正された等価性判定回路
に基づいて、検証すべき少なくとも2つの論理回路の論
理又は機能の等価性を判定する等価性判定ステップとを
含むことを特徴とする。
According to a second aspect of the invention, there is provided circuit information input means,
Equivalence determination circuit generation means and gated clock partial modification
Logic circuit verification device including corrective means and equivalence judgment means
Of the logic or function of at least two logic circuits
A logic circuit verification method for determining equivalence, comprising:
The information input means has at least two logic circuits to be verified.
Information and don't care information about the logic circuit
Circuit information input step for inputting, and the equivalence determination circuit
The generating means stores information about the logic circuit and the logic circuit
Based on the don't care information about
Equivalence judgment to generate an equivalence judgment circuit including all logic circuits
Circuit generation step and partial correction of the gated clock
Means for designing a gated clock in the equivalence determination circuit
At least one of the above is included.
The clock inputs of the registers included in the two logic circuits are equal
The gated clock is designed to be
Insert a multiplexer into the logic circuit
Gated clock partial correction step to correct constant circuit
And the equivalence judging means generates the equivalence judging circuit generation step.
Equivalence determination circuit generated by step or the gated
Equivalence judgment circuit modified by the clock partial modification step
Of at least two logic circuits to be verified based on
Equivalence judgment step for judging equivalence of
It is characterized by including.

【0017】なお、上記等価性判定回路生成ステップ及
びゲーテッドクロック部分修正ステップは、以下のよう
な処理を含むことができる。
The equivalence judgment circuit generation step and the gated clock partial correction step may include the following processing.

【0018】等価性判定回路生成ステップは、等価性判
定回路生成する際に、検証すべき論理回路に関するドン
トケア情報が無い場合は、論理の等価性を判定するため
の等価性判定回路を生成し、検証すべき論理回路に関す
るドントケア情報が有る場合は、機能の等価性を判定す
るための等価性判定回路を生成する。
In the equivalence judgment circuit generating step, when there is no don't care information regarding the logic circuit to be verified when the equivalence judgment circuit is generated, an equivalence judgment circuit for judging logic equivalence is generated, When there is don't care information regarding the logic circuit to be verified, an equivalence judgment circuit for judging equivalence of functions is generated.

【0019】ゲーテッドクロック部分修正ステップは、
等価性判定回路を修正する際に、修正すべき論理回路の
レジスタに対してデータロードとデータ保持の選択を行
なうマルチプレクサを生成し、該マルチプレクサの選択
論理にクロックイネーブル論理を使用するように回路を
変更する。
The gated clock partial correction step is
When modifying the equivalence determination circuit, a multiplexer is generated which performs data loading and data holding selection for the register of the logic circuit to be modified, and the circuit is configured to use the clock enable logic for the selection logic of the multiplexer. change.

【0020】また、ゲーテッドクロック部分修正ステッ
プは、回路を変更する際に、ゲーテッドクロック設計に
関する付加情報を参照して回路を変更する。
In the gated clock partial correction step, when the circuit is changed, the circuit is changed by referring to the additional information regarding the gated clock design.

【0021】[0021]

【0022】請求項3の発明は、検証すべき少なくとも
2つの論理回路に関する情報及び該論理回路に関するド
ントケア情報を入力する回路情報入力ステップと、前記
論理回路に関する情報と該論理回路に関するドントケア
情報に基づいて、前記少なくとも2つの論理回路を含む
等価性判定回路を生成する等価性判定回路生成ステップ
と、前記等価性判定回路にゲーテッドクロック設計され
ている論理回路が含まれる場合は、前記少なくとも2つ
の論理回路に含まれるレジスタのクロック入力が等しく
なるように、前記ゲーテッドクロック設計されている論
理回路にマルチプレクサを挿入して、前記等価性判定回
路を修正するゲーテッドクロック部分修正ステップと、
前記等価性判定回路生成ステップで生成された等価性判
定回路又は前記ゲーテッドクロック部分修正ステップで
修正された等価性判定回路に基づいて、検証すべき少な
くとも2つの論理回路の論理又は機能の等価性を判定す
る等価性判定ステップとを含み、これらステップをコン
ピュータに実行させることを特徴とする論理回路検証プ
ログラムを格納したコンピュータ読み取り可能な記録媒
体である。
The invention of claim 3 is at least to be verified.
Information about two logic circuits and information about the logic circuits
Circuit information input step of inputting care information, and
Information about a logic circuit and don't care about the logic circuit
Based on information, including said at least two logic circuits
Equivalence judgment circuit generation step for generating equivalence judgment circuit
And a gated clock is designed in the equivalence judgment circuit.
At least two of the above logic circuits are included.
The clock inputs of the registers included in the
The theory that the gated clock is designed to be
Insert a multiplexer into the logic circuit to
Gated clock partial correction step to correct the path,
The equivalence judgment generated in the equivalence judgment circuit generation step
In the constant circuit or the gated clock partial correction step
Based on the modified equivalence decision circuit,
Determine equivalence of logic or function of at least two logic circuits
And the equivalence determination step
Computer, which is characterized by being executed by a computer.
A computer-readable recording medium storing a program
It is the body.

【0023】なお、上記等価性判定回路生成ステップ及
びゲーテッドクロック部分修正ステップは、以下のよう
な処理を含むことができる。
The equivalence judgment circuit generation step and the gated clock partial correction step may include the following processing.

【0024】等価性判定回路生成ステップは、検証すべ
き論理回路に関するドントケア情報の有無を判定する処
理と、前記検証すべき論理回路に関するドントケア情報
が無いと判定された場合は、論理の等価性を判定するた
めの等価性判定回路を生成する処理と、前記検証すべき
論理回路に関するドントケア情報が有ると判定された場
合は、機能の等価性を判定するための等価性判定回路を
生成する処理。
The equivalence judging circuit generating step judges the presence / absence of don't care information about the logic circuit to be verified, and if it is judged that there is no don't care information about the logic circuit to be verified, the equivalence of the logic is judged. A process of generating an equivalence determination circuit for determining and a process of generating an equivalence determination circuit for determining functional equivalence when it is determined that there is don't care information regarding the logic circuit to be verified.

【0025】ゲーテッドクロック部分修正ステップは、
修正すべき論理回路のレジスタに対してデータロードと
データ保持の選択を行なうマルチプレクサを生成する処
理と、該マルチプレクサの選択論理にクロックイネーブ
ル論理を使用するように回路を変更する処理。
The gated clock partial correction step is
A process of generating a multiplexer that performs data loading and data holding selection for the register of the logic circuit to be modified, and a process of changing the circuit so that the clock enable logic is used as the selection logic of the multiplexer.

【0026】また、ゲーテッドクロック部分修正ステッ
プは、ゲーテッドクロック設計に関する付加情報を参照
して回路を変更する処理。
In the gated clock partial correction step, the circuit is changed by referring to the additional information regarding the gated clock design.

【0027】[0027]

【発明の実施の形態】以下、この発明に係わる論理回路
検証装置、論理回路検証方法及び論理回路検証プログラ
ムを格納したコンピュータ読み取り可能な記録媒体の一
実施形態について説明する。
BEST MODE FOR CARRYING OUT THE INVENTION An embodiment of a logic circuit verification device, a logic circuit verification method, and a computer-readable recording medium storing a logic circuit verification program according to the present invention will be described below.

【0028】図1は、本実施形態に係わる論理回路検証
装置の機能的な構成を示したブロック図である。この論
理回路検証装置10は、回路情報入力部1、ドントケア
情報入力部2、等価性判定回路生成部3、等価性判定回
路格納部4、ゲーテッドクロック情報入力部5、ゲーテ
ッドクロック部分修正部6、等価性判定部7から構成さ
れている。
FIG. 1 is a block diagram showing the functional configuration of the logic circuit verification device according to this embodiment. The logic circuit verification device 10 includes a circuit information input unit 1, a don't care information input unit 2, an equivalence judgment circuit generation unit 3, an equivalence judgment circuit storage unit 4, a gated clock information input unit 5, a gated clock partial correction unit 6, It is composed of an equivalence determination unit 7.

【0029】回路情報入力部1は、論理又は機能的に等
価であることを検証したい2つの論理回路に関する情報
を入力し、等価性判定回路生成部3へ受け渡す。
The circuit information input unit 1 inputs information about two logic circuits whose logical or functional equivalents are to be verified, and transfers the information to the equivalence judgment circuit generation unit 3.

【0030】ドントケア情報入力部2は、前記回路情報
入力部1から入力された2つの論理回路に関するドント
ケア情報を入力し、等価性判定回路生成部3へ受け渡
す。
The don't care information input unit 2 inputs the don't care information about the two logic circuits input from the circuit information input unit 1 and transfers it to the equivalence judgment circuit generation unit 3.

【0031】等価性判定回路生成部3は、入力された2
つの論理回路に関するドントケア情報の有無を判定し、
ドントケア情報が無い場合は、前記2つの論理回路に関
する情報に基づいて論理の等価性を判定するための等価
性判定回路を生成する。また、ドントケア情報が有る場
合は、前記2つの論理回路に関する情報と、これら論理
回路に関するドントケア情報に基づいて機能の等価性を
判定するための等価性判定回路を生成する。
The equivalence judgment circuit generator 3 receives the input 2
Determines the presence or absence of don't care information for one logic circuit,
When there is no don't care information, an equivalence determination circuit for determining logic equivalence is generated based on the information about the two logic circuits. When there is don't care information, an equivalence judgment circuit for judging the equivalence of functions is generated based on the information on the two logic circuits and the don't care information on these logic circuits.

【0032】等価性判定回路格納部4は、前記等価性判
定回路生成部3で生成された等価性判定回路の回路デー
タ、及び後述するゲーテッドクロック部分修正部5で修
正がなされた等価性判定回路の回路データを格納する。
The equivalence judgment circuit storage unit 4 stores the circuit data of the equivalence judgment circuit generated by the equivalence judgment circuit generation unit 3 and the equivalence judgment circuit corrected by the gated clock partial correction unit 5 described later. The circuit data of is stored.

【0033】ゲーテッドクロック情報入力部5は、ゲー
テッドクロック設計に関する付加情報を入力し、ゲーテ
ッドクロック部分修正部6に受け渡す。ゲーテッドクロ
ック設計に関する付加情報とは、ゲーテッドクロック設
計されている場合に、そのゲーテッドクロックされた部
分に特徴的な構成に関する情報であり、後にゲーテッド
クロック設計された部分を修正する際に、必要に応じて
参照される。
The gated clock information input unit 5 inputs additional information related to the gated clock design and transfers it to the gated clock partial correction unit 6. The additional information about the gated clock design is information about the characteristic configuration of the gated clock part when the gated clock is designed. Is referred to.

【0034】例えば、後述の実施形態2においては、ゲ
ーテッドクロック設計によって付加されたフリップフロ
ップがクロックイネーブル論理におけるグリッジを除去
するために挿入されたものであるという情報がゲーテッ
ドクロック設計に関する付加情報として入力されてお
り、ゲーテッドクロック部分修正部6では、ゲーテッド
クロック設計された部分を修正する際に、この情報に基
づいて前記フリップフロップを等価性判定に関係ない部
分として除去している。
For example, in a second embodiment described later, information that the flip-flop added by the gated clock design is inserted to remove the glitch in the clock enable logic is input as the additional information about the gated clock design. Therefore, the gated clock partial correction unit 6 removes the flip-flop as a part unrelated to the equivalence judgment based on this information when correcting the part for which the gated clock is designed.

【0035】ゲーテッドクロック部分修正部6は、前記
等価性判定回路生成部3で生成された等価性判定回路に
含まれる部分回路(論理回路)がゲーテッドクロック設
計されているかどうかを、レジスタのCKポート入力に
ANDやORなどのゲートがあるかどうかにより判定す
る。そして、ゲーテッドクロック設計されている場合
は、必要に応じてゲーテッドクロック設計に関する付加
情報を参照しながら、前記2つの論理回路のレジスタの
クロック入力が等しくなるように、前記生成された等価
性判定回路のゲーテッドクロック設計された部分を修正
する。
The gated clock partial correction section 6 determines whether or not a partial circuit (logical circuit) included in the equivalence judgment circuit generated by the equivalence judgment circuit generation section 3 is designed as a gated clock and the CK port of the register. Judgment is made based on whether the input has a gate such as AND or OR. When the gated clock is designed, the generated equivalence determination circuit is configured so that the clock inputs of the registers of the two logic circuits become equal while referring to additional information regarding the gated clock design as necessary. Fix the designed part of the gated clock.

【0036】ここでは、ゲーテッドクロック設計された
部分を修正するため、修正すべき論理回路のレジスタに
対してデータロードとデータ保持の選択を行なうマルチ
プレクサを生成するとともに、このマルチプレクサの選
択論理にクロックイネーブル論理を使用するように回路
を変更するようにしている。修正された等価性判定回路
は、等価性判定回路格納部4に格納される。
Here, in order to correct the gated clock designed portion, a multiplexer for selecting data load and data retention for the register of the logic circuit to be corrected is generated, and a clock enable is applied to the selection logic of this multiplexer. I am trying to change the circuit to use logic. The corrected equivalence determination circuit is stored in the equivalence determination circuit storage unit 4.

【0037】等価性判定部7は、前記等価性判定回路生
成部3で生成された等価性判定回路又は前記ゲーテッド
クロック部分修正部6で修正された等価性判定回路に基
づいて、検証すべき少なくとも2つの論理回路の論理又
は機能の等価性を判定する。
At least the equivalence judgment unit 7 should be verified based on the equivalence judgment circuit generated by the equivalence judgment circuit generation unit 3 or the equivalence judgment circuit corrected by the gated clock partial correction unit 6. Determine equivalence of logic or function of two logic circuits.

【0038】上記各部からなる論理回路検証装置10
は、キーボード、マウス、ライトペン、又はフレキシブ
ルディスク装置などの入力装置、CPU、及びこのCP
Uに接続されたROM,RAM、磁気ディスクなどの記
憶装置、ディスプレイ装置やプリンタ装置などの出力装
置を含む通常のコンピュータシステムにより構成され
る。
A logic circuit verification device 10 including the above-mentioned respective parts
Is an input device such as a keyboard, a mouse, a light pen, or a flexible disk device, a CPU, and this CP
It is constituted by an ordinary computer system including a ROM, RAM, a storage device such as a magnetic disk connected to the U, and an output device such as a display device and a printer device.

【0039】次に、上述のように構成された論理回路検
証装置10において、検証すべき論理回路の論理又は機
能の等価性を判定する場合の処理手順を図2のフローチ
ャートにより説明する。
Next, in the logic circuit verification device 10 configured as described above, the processing procedure for determining the equivalence of the logic or function of the logic circuit to be verified will be described with reference to the flowchart of FIG.

【0040】まず、回路情報入力部1から検証すべき2
つの論理回路に関する情報を入力し(ステップ10
1)、続いてドントケア情報入力部2から前記2つの論
理回路に関するドントケア情報を入力する(ステップ1
02)。なお、この時に、必要に応じてゲーテッドクロ
ック情報入力部5から前記論理回路のゲーテッドクロッ
ク設計に関する付加情報を入力する。次に、等価性判定
回路生成部3は、入力された2つの論理回路に関するド
ントケア情報があるかどうかを判定する(ステップ10
3)。ここで、ドントケア情報がない場合は、前記2つ
の論理回路に関する情報に基づいて、例えば図3に示す
ような論理の等価性を判定するための等価性判定回路を
生成する(ステップ104)。また、ドントケア情報が
ある場合は、前記2つの論理回路に関するドントケア情
報と、これら論理回路に関するドントケア情報に基づい
て、例えば図4に示すような機能の等価性を判定するた
めの等価性判定回路を生成する(ステップ105)。な
お、図4において、dc_ol等の符号は出力またはレ
ジスタのドントケア関数を表わしている。上記ステップ
104又はステップ105で生成された等価性判定回路
の回路データは等価性判定回路格納部4へ格納される。
First, 2 to be verified from the circuit information input section 1
Enter information about one logic circuit (step 10
1) and subsequently, don't care information input section 2 inputs don't care information about the two logic circuits (step 1).
02). At this time, additional information regarding the gated clock design of the logic circuit is input from the gated clock information input unit 5 as needed. Next, the equivalence determination circuit generation unit 3 determines whether there is don't care information regarding the two input logic circuits (step 10).
3). If there is no don't care information, an equivalence judgment circuit for judging the logic equivalence as shown in FIG. 3 is generated based on the information about the two logic circuits (step 104). If there is don't care information, an equivalence judgment circuit for judging the equivalence of the functions as shown in FIG. 4, for example, based on the don't care information about the two logic circuits and the don't care information about these logic circuits. It is generated (step 105). In FIG. 4, symbols such as dc_ol represent don't care functions of outputs or registers. The circuit data of the equivalence judgment circuit generated in step 104 or step 105 is stored in the equivalence judgment circuit storage unit 4.

【0041】次に、ゲーテッドクロック部分修正部6
は、前記生成された等価性判定回路がゲーテッドクロッ
ク設計されているかどうかを判定する(ステップ10
6)。ここで、ゲーテッドクロック設計されている場合
は、必要に応じてゲーテッドクロック設計に関する付加
情報を参照して、前記等価性判定回路のうちゲーテッド
クロック設計された部分の回路を修正する。
Next, the gated clock partial correction unit 6
Determines whether the generated equivalence checking circuit is designed as a gated clock (step 10).
6). Here, when the gated clock is designed, the gated clock designed portion of the equivalence determination circuit is corrected by referring to the additional information regarding the gated clock design as necessary.

【0042】まず、等価性判定回路格納部4に格納され
ている等価性判定回路について、ゲーテッドクロック設
計された部分のイネーブル信号を取り出し(ステップ1
07)、このイネーブル信号を制御信号としたマルチプ
レクサをレジスタのデータ入力部分に生成するととも
に、このマルチプレクサの選択論理にクロックイネーブ
ル論理を使用するように回路を変更し、さらにゲーテッ
ドクロック部分を除去する(ステップ108)。次に、
ゲーテッドクロック情報に基づいて、等価性判定に関係
しない回路部分を除去する(ステップ109)。このス
テップ107〜ステップ109で修正された等価性判定
回路の回路データは等価性判定回路格納部4に格納され
る。
First, with respect to the equivalence judgment circuit stored in the equivalence judgment circuit storage unit 4, an enable signal of a portion having a gated clock design is taken out (step 1).
07), a multiplexer having this enable signal as a control signal is generated in the data input portion of the register, the circuit is modified to use the clock enable logic as the selection logic of this multiplexer, and the gated clock portion is further removed ( Step 108). next,
Based on the gated clock information, the circuit portion not related to the equivalence determination is removed (step 109). The circuit data of the equivalence judgment circuit modified in steps 107 to 109 is stored in the equivalence judgment circuit storage unit 4.

【0043】次に、等価性判定部7は、等価性判定回路
格納部4に格納されている等価性判定回路、すなわち前
記等価性判定回路生成部3で生成された等価性判定回
路、又は前記ゲーテッドクロック部分修正部6で修正さ
れた等価性判定回路に基づいて、検証すべき少なくとも
2つの論理回路の論理又は機能の等価性を判定する(ス
テップ110)。
Next, the equivalence judgment unit 7 is an equivalence judgment circuit stored in the equivalence judgment circuit storage unit 4, that is, the equivalence judgment circuit generated by the equivalence judgment circuit generation unit 3, or the equivalence judgment circuit. Based on the equivalence determination circuit corrected by the gated clock partial correction unit 6, the equivalence of logic or function of at least two logic circuits to be verified is determined (step 110).

【0044】なお、判定結果は、図示しないディスプレ
イ装置上に、等価である又は等価でないというメッセー
ジを表示したり、プリンタ装置により同様のメッセージ
をプリント出力することにより行う。ここで、等価でな
いという判定がなされたときには、上記メッセージに加
えて、出力結果がともに1にならない入力の組合せを表
示又はプリント出力するようにしてもよい。この場合、
設計者は出力結果がともに1にならない入力の組合せに
基づいて論理回路の論理を検討することにより、元の論
理回路の設計変更を容易に行うことができる。
The determination result is obtained by displaying an equivalent or non-equivalent message on a display device (not shown) or by printing out the same message by the printer device. If it is determined that they are not equivalent, in addition to the above message, a combination of inputs whose output results are not 1 may be displayed or printed out. in this case,
The designer can easily change the design of the original logic circuit by examining the logic of the logic circuit based on the combination of inputs whose output results are not 1.

【0045】次に、上述した論理回路検証装置10にお
いて、論理回路の等価性を判定する場合の具体例を実施
形態1、実施形態2として説明する。なお、実施形態1
は検証すべき論理回路に関するドントケア情報が無い場
合、実施形態2はドントケア情報が有る場合の例を示
す。
Next, specific examples of the case of determining the equivalence of logic circuits in the logic circuit verification device 10 described above will be described as the first and second embodiments. The first embodiment
Shows an example in which there is no don't care information about the logic circuit to be verified, and the second embodiment shows an example in which there is don't care information.

【0046】[実施形態1]まず、図5(a)、(b)
に示すような2つの論理回路回路1及び回路2が回路情
報入力部1から入力されたとする。図5(a)はゲーテ
ッドクロック設計されておらず、同図(b)はゲーテッ
ドクロック設計されている。この例では、入力された回
路にドントケア情報は無いので、等価性判定回路生成部
3は、図6に示すような論理の等価性を判定するための
等価性判定回路を生成して等価性判定回路格納部4に格
納する。なお、図6において、部分回路201は図5
(a)に、部分回路202は図5(b)にそれぞれ対応
している。
[First Embodiment] First, FIGS. 5A and 5B.
It is assumed that two logic circuit circuits 1 and 2 as shown in (1) are input from the circuit information input unit 1. FIG. 5A does not have a gated clock design, and FIG. 5B has a gated clock design. In this example, since the input circuit has no don't care information, the equivalence judgment circuit generation unit 3 generates the equivalence judgment circuit for judging the logic equivalence as shown in FIG. It is stored in the circuit storage unit 4. In FIG. 6, the partial circuit 201 is shown in FIG.
The partial circuit 202 corresponds to FIG. 5A and corresponds to FIG.

【0047】図6の部分回路201ではDタイプフリッ
プフロップFF1のQポート出力をFF1_Qとしたと
き、FF1のDポート入力FF1_Dの論理はブール式
で^I2*FF1_Q+I2*I1と表わせる。ここ
で、*は論理積、+は論理和、^は否定論理を表わす。
また、図6の部分回路202では、FF1のDポートF
F1_Dの論理は^I1*I2と表わせて、図6の部分
回路201とは異なる。一方、出力端子O1では図4の
部分回路201、部分回路202とも論理はI3*FF
1_Qと表わせて同じ論理となる。図6の回路では、F
F1のDポート入力の論理が異なるので、結果として図
6におけるout_checkは常に1とはならず、こ
のままの等価性判定回路では等価でないと判定されてし
まう。
In the partial circuit 201 of FIG. 6, when the Q port output of the D type flip-flop FF1 is FF1_Q, the logic of the D port input FF1_D of FF1 can be expressed by a Boolean expression as ^ I2 * FF1_Q + I2 * I1. Here, * represents a logical product, + represents a logical sum, and ^ represents a negative logic.
Further, in the partial circuit 202 of FIG. 6, the D port F of FF1
The logic of F1_D is expressed as ^ I1 * I2, which is different from the partial circuit 201 of FIG. On the other hand, at the output terminal O1, the logic is I3 * FF for both the partial circuits 201 and 202 of FIG.
The same logic can be expressed as 1_Q. In the circuit of FIG. 6, F
Since the logic of the D port input of F1 is different, as a result, out_check in FIG. 6 does not always become 1, and the equivalence determination circuit as it is determines that it is not equivalent.

【0048】そこで、ゲーテッドクロック部分修正部6
は、図6の等価性判定回路に対して2つのフリップフロ
ップFF1のCKポート入力が同じ信号となるように修
正を行う。この修正は次のように行なわれる。すなわち
図6の部分回路201ではFF1のCKポート入力の論
理はCLKであり、部分回路202ではFF1のCKポ
ート入力の論理はCLK+^I2なので、両方のCKポ
ート入力の論理をCLKとするような回路変更を行な
う。
Therefore, the gated clock partial correction unit 6
Corrects the equivalence determination circuit of FIG. 6 so that the CK port inputs of the two flip-flops FF1 become the same signal. This modification is done as follows. That is, in the partial circuit 201 of FIG. 6, the logic of the CK port input of FF1 is CLK, and in the partial circuit 202, the logic of the CK port input of FF1 is CLK + ^ I2, so that the logic of both CK port inputs is CLK. Change the circuit.

【0049】まず、図6の部分回路201ではすでにC
LKとなっているので、操作は行なわない。一方、図6
の部分回路202では、^I2が1のとき、すなわちI
2が0のときにFF1のポートにクロックが供給されな
い。すなわち、I2が0でないときはFF1の値が保持
される。このため、図6の部分回路202におけるFF
1のCKポート入力の論理をCLKとするためには、I
2が0のときはFF1の値が保持される論理を付加すれ
ば良い。この例では、FF1に対してデータロードとデ
ータ保持の選択を行うMUX51をFF1のDポート入
力に接続し、このMUX51の選択論理にクロックイネ
ーブル論理を与えるように回路を修正している。このよ
うな修正を行なった結果、図7に示すような等価性判定
回路が生成される。なお、図7における回路要素MUX
51は、例えば図8に示すような論理回路により構成す
ることができる。
First, in the partial circuit 201 of FIG.
Since it is LK, no operation is performed. On the other hand, FIG.
In the partial circuit 202 of, when ^ I2 is 1, that is, I
When 2 is 0, the clock is not supplied to the port of FF1. That is, when I2 is not 0, the value of FF1 is held. Therefore, the FF in the partial circuit 202 of FIG.
To set the logic of CK port input of 1 to CLK, I
When 2 is 0, a logic for holding the value of FF1 may be added. In this example, the MUX 51 for selecting data loading and data holding for the FF1 is connected to the D port input of the FF1, and the circuit is modified so that the clock enable logic is given to the selection logic of this MUX51. As a result of such modification, the equivalence judgment circuit as shown in FIG. 7 is generated. The circuit element MUX in FIG.
51 can be constituted by a logic circuit as shown in FIG. 8, for example.

【0050】前記修正により等価性判定回路格納部4に
格納された図7の等価性判定回路は等価性判定部7にお
いて等価性が判定される。図7の回路について見てみる
と、出力端子O1では部分回路203、部分回路204
ともに論理はI3*FF1_Qと表せて同じ論理とな
る。また、FF1のDポート入力FF1_Dの論理につ
いても、部分回路203、部分回路204ともにBDD
を用いて表現すると図9(a)のように同じ形式で表わ
され、同じ論理であることがわかる。
The equivalence judgment circuit of FIG. 7 stored in the equivalence judgment circuit storage unit 4 by the above modification is judged to be equivalent by the equivalence judgment unit 7. Looking at the circuit of FIG. 7, the partial circuit 203 and the partial circuit 204 are provided at the output terminal O1.
In both cases, the logic can be expressed as I3 * FF1_Q and the same logic is obtained. Further, regarding the logic of the D port input FF1_D of FF1, both the partial circuit 203 and the partial circuit 204 are BDD.
When expressed using, it is understood that they are expressed in the same format as in FIG. 9A and have the same logic.

【0051】すなわち図9(a)において、FF1_D
のI2に0を代入すると(0の破線矢印)、FF1_Q
が残り、ここでFF1_Qが0であれば(0の破線矢
印)、出力は0となる。また、FF1_Qが1であれば
(1の実線矢印)、出力は1となる。また、FF1_D
のI1に0を代入すると(1の実線矢印)、I1が残
り、ここでI1が0であれば(0の破線矢印)、出力は
0となる。また、I1が1であれば(1の実線矢印)、
出力は1となる。前記部分回路203、部分回路204
ともに、I1、I2に同じ組合せの0、1を入力した場
合には、同じ経路の矢印方向へ進み、FF1のDポート
入力FF1_Dは同じ出力結果となる。したがって、図
7におけるout_checkの論理を表わすBDD
は、図9(b)のように常に1となる。このため、等価
性判定部6では図5(a)の論理回路と(b)の論理回
路は等価であると判断される。
That is, in FIG. 9A, FF1_D
Substituting 0 for I2 of (the dashed arrow of 0), FF1_Q
, And if FF1_Q is 0 here (broken line arrow of 0), the output becomes 0. If FF1_Q is 1 (solid arrow 1), the output will be 1. Also, FF1_D
When 0 is substituted for I1 (solid arrow of 1), I1 remains, and when I1 is 0 (broken arrow of 0), the output becomes 0. If I1 is 1 (solid arrow 1),
The output is 1. The partial circuit 203 and the partial circuit 204
In both cases, when 0 and 1 of the same combination are input to I1 and I2, the process proceeds in the arrow direction of the same path, and the D port input FF1_D of FF1 has the same output result. Therefore, BDD representing the logic of out_check in FIG.
Is always 1 as shown in FIG. Therefore, the equivalence determination unit 6 determines that the logic circuit of FIG. 5A and the logic circuit of FIG. 5B are equivalent.

【0052】[実施形態2]次に、別の実施形態を示し
て説明する。まず図10に示すような2つの論理回路が
回路情報入力部1から入力されたとする。図10(a)
ではゲーテッドクロック設計されておらず、同図(b)
ではゲーテッドクロック設計されている。この例では、
フリップフロップFF1に対するドントケア関数として
Bが、また出力端子O1に対するドントケア関数として
^I2がドントケア情報入力部2より入力されたとす
る。
[Embodiment 2] Next, another embodiment will be described. First, it is assumed that two logic circuits as shown in FIG. 10 are input from the circuit information input unit 1. Figure 10 (a)
In the figure, the gated clock is not designed.
It is designed with a gated clock. In this example,
It is assumed that B as a don't care function for the flip-flop FF1 and ^ I2 as a don't care function for the output terminal O1 are input from the don't care information input unit 2.

【0053】次に、等価性判定回路生成部3では、ドン
トケア情報を考慮して図11に示すような機能の等価性
を判定する等価性判定回路を生成して等価性判定回路格
納部4に格納する。図11ではドントケア情報を考慮し
ても、FF1のDポート入力の機能が部分回路205と
部分回路206では異なり、out_checkは常に
1とはならずに、このままの等価性判定回路では等価で
ないと判定されてしまう。
Next, the equivalence judgment circuit generation unit 3 generates an equivalence judgment circuit for judging the equivalence of the functions as shown in FIG. 11 in consideration of the don't care information and stores it in the equivalence judgment circuit storage unit 4. Store. In FIG. 11, even if the don't care information is taken into consideration, the function of the D port input of the FF1 is different between the partial circuit 205 and the partial circuit 206, and out_check is not always 1, and it is determined that the equivalence determination circuit is not equivalent. Will be done.

【0054】そこで、ゲーテッドクロック部分修正部6
は、図11の等価性判定回路に対して2つのフリップフ
ロップFF1のCKポート入力が同じ信号となるように
修正を行なう。ここで、ゲーテッドクロック情報入力部
5より、フリップフロップENA_FFはクロックイネ
ーブル論理におけるグリッジを除去するために挿入され
たフリップフロップであるという情報が入力されたとす
る。ゲーテッドクロック部分修正部6ではENA_FF
のDポート入力の論理がクロックイネーブル論理である
と認識する。図11の部分回路206では、ENA_F
FのQポート出力が0のときにFF1のCKポートにク
ロックが供給されない。これは上記のように認識された
イネーブル論理が0の場合、すなわち論理式^A+Bが
1のときにFF1の値が保持される。このため、図11
の部分回路206において、^A+Bが1のときにFF
1の値が保持される論理を付加する。この例では、EN
A_FFを削除し、FF1に対してデータロードとデー
タ保持の選択を行うMUX61をFF1のDポート入力
に接続して、このMUX61の選択論理にクロックイネ
ーブル論理を与えるように回路を修正している。このよ
うな修正を行なった結果、図12に示すような等価性判
定回路が生成される。一方、図11の部分回路205で
はFF1のCKポート入力がCLKなので、論理の付加
は行なわれない。この修正により等価性判定回路格納部
4に生成された図12に示す等価性判定回路は、等価性
判定部6において等価性を判定される。この結果、図1
2におけるout_checkの論理を表わすBDDは
図9(b)のようになり、常に1であることがわかるた
め、等価性判定部7では図10(a)の論理回路と図1
0(b)の論理回路は等価であると判定される。
Therefore, the gated clock partial correction unit 6
Corrects the equivalence determination circuit of FIG. 11 so that the CK port inputs of the two flip-flops FF1 become the same signal. Here, it is assumed that the gated clock information input unit 5 inputs information that the flip-flop ENA_FF is a flip-flop inserted to remove a glitch in the clock enable logic. In the gated clock partial correction unit 6, ENA_FF
Recognize that the logic of the D port input of is the clock enable logic. In the partial circuit 206 of FIG. 11, ENA_F
When the Q port output of F is 0, no clock is supplied to the CK port of FF1. This is because when the enable logic recognized as described above is 0, that is, when the logical expression ^ A + B is 1, the value of FF1 is held. Therefore, FIG.
In the partial circuit 206 of, FF when ^ A + B is 1
A logic in which a value of 1 is held is added. In this example, EN
The circuit is modified so that the A_FF is deleted, the MUX 61 for selecting data loading and data holding for the FF 1 is connected to the D port input of the FF 1, and the clock enable logic is given to the selection logic of the MUX 61. As a result of such modification, the equivalence judgment circuit as shown in FIG. 12 is generated. On the other hand, in the partial circuit 205 of FIG. 11, since the CK port input of FF1 is CLK, no logic is added. The equivalence judgment circuit shown in FIG. 12 generated in the equivalence judgment circuit storage unit 4 by this modification is judged in the equivalence judgment unit 6 for equivalence. As a result,
The BDD representing the logic of out_check in No. 2 is as shown in FIG. 9B, and it can be seen that it is always 1. Therefore, the equivalence determination unit 7 has the logic circuit of FIG.
The 0 (b) logic circuits are determined to be equivalent.

【0055】上述したように、ゲーテッドクロック設計
はレジスタのクロック入力ポート(CK)に対して論理
回路を付加するものであるため、2つの部分回路は機能
的には等価であっても、従来の論理回路検証装置ではこ
の2つの部分回路の論理または機能的等価性が判断でき
ず、等価でないと判定されていた。しかし、本実施形態
の論理回路検証装置によれば、2つの論理回路のレジス
タのクロック入力が等しくなるように回路を修正するこ
とにより、ゲーテッドクロック設計された部分の検証が
可能となるため、従来装置では正しい検証を行うことが
できなかったゲーテッドクロック設計された論理回路の
論理又は機能的な等価性の検証が可能となる。
As described above, the gated clock design adds a logic circuit to the clock input port (CK) of the register, so that even if the two partial circuits are functionally equivalent, the conventional The logic circuit verification device cannot judge the logical or functional equivalence of these two partial circuits, and it has been judged that they are not equivalent. However, according to the logic circuit verification device of the present embodiment, it is possible to verify the gated clock designed portion by modifying the circuits so that the clock inputs of the registers of the two logic circuits become equal. It becomes possible to verify the logical or functional equivalence of a gated clock designed logic circuit that could not be correctly verified by the device.

【0056】なお、上記実施形態では、I1、I2を1
ビットとして説明しているが、32ビット又は64ビッ
トの場合であっても適用することができる。とくに、入
力のビット数が多くなった場合には、シミュレータを使
った場合に比べて計算時間を大幅に短縮することが可能
となる。
In the above embodiment, I1 and I2 are 1
Although described as bits, the case of 32 bits or 64 bits can be applied. In particular, when the number of input bits is large, the calculation time can be significantly shortened as compared with the case where a simulator is used.

【0057】また、上記実施形態では、論理回路の論理
又は機能的な等価性を2つの回路について検証している
が、等価性の検証は複数の論理回路について実施するこ
ともできる。さらに、上記実施形態では、検証すべき論
理回路としてフリップフロップにより構成されたレジス
タ回路を例として示したが、同期型メモリ(同期型RA
M)のようにクロックに同期してデータの書き込みを行
うようなメモリセルにより構成したレジスタ回路にも適
用することができる。
Further, in the above embodiment, the logic or functional equivalence of the logic circuit is verified with respect to the two circuits, but the equivalence verification can be carried out with respect to a plurality of logic circuits. Further, in the above-described embodiment, the register circuit configured by the flip-flop is shown as an example of the logic circuit to be verified, but the synchronous memory (synchronous RA
It can also be applied to a register circuit composed of memory cells that write data in synchronization with a clock as in M).

【0058】上述した論理回路検証装置の動作を実現す
るためのプログラムはコンピュータにより読みとり可能
な記録媒体に保存することができる。この記録媒体をコ
ンピュータシステムにより読み込ませ、前記プログラム
を実行してコンピュータを制御することにより、上述し
た論理回路検証装置による処理を実現することができ
る。ここで、前記記録媒体とは、例えばメモリ装置、磁
気ディスク装置、光ディスク装置などのプログラムを記
録できるようなすべての記録装置が含まれる。
The program for realizing the operation of the logic circuit verification device described above can be stored in a computer-readable recording medium. By reading this recording medium by a computer system and executing the program to control the computer, the processing by the logic circuit verification device described above can be realized. Here, the recording medium includes, for example, all recording devices such as a memory device, a magnetic disk device, and an optical disk device capable of recording a program.

【0059】[0059]

【発明の効果】以上説明したように、この発明に係わる
論理回路検証装置、論理回路検証方法及び論理回路検証
プログラムを格納したコンピュータ読み取り可能な記録
媒体によれば、生成した等価性判定回路のゲーテッドク
ロック設計された部分の検証が可能となるように回路を
修正するようにしたので、従来装置では正しい検証を行
うことができなかったゲーテッドクロック設計された論
理回路の論理又は機能的な等価性の検証が可能となる。
As described above, according to the logic circuit verification device, the logic circuit verification method, and the computer-readable recording medium storing the logic circuit verification program according to the present invention, the generated equivalence judgment circuit is gated. Since the circuit is modified so that the clock-designed portion can be verified, the logic or functional equivalence of the gated-clock-designed logic circuit, which cannot be correctly verified by the conventional device, can be obtained. Verification is possible.

【図面の簡単な説明】[Brief description of drawings]

【図1】実施形態に係わる論理回路検証装置の機能的な
構成を示したブロック図。
FIG. 1 is a block diagram showing a functional configuration of a logic circuit verification device according to an embodiment.

【図2】論理回路検証装置において論理回路の論理又は
機能の等価性を判定する場合の処理手順を示すフローチ
ャート。
FIG. 2 is a flowchart showing a processing procedure when determining the equivalence of logic or function of a logic circuit in a logic circuit verification device.

【図3】等価性判定回路生成部により生成される論理の
等価性を判定するための等価性判定回路の一例を示す回
路構成図。
FIG. 3 is a circuit configuration diagram showing an example of an equivalence judgment circuit for judging equivalence of logics generated by an equivalence judgment circuit generation unit.

【図4】等価性判定回路生成部により生成される機能の
等価性を判定するための等価性判定回路の一例を示す回
路構成図。
FIG. 4 is a circuit configuration diagram showing an example of an equivalence judgment circuit for judging equivalence of functions generated by an equivalence judgment circuit generation unit.

【図5】(a)及び(b)は実施形態1で回路情報入力
部から入力された論理回路を示す回路構成図。
5A and 5B are circuit configuration diagrams showing a logic circuit input from a circuit information input unit in the first embodiment.

【図6】実施形態1の等価性判定回路生成部により生成
される論理の等価性を判定するための等価性判定回路を
示す回路構成図。
FIG. 6 is a circuit configuration diagram showing an equivalence judgment circuit for judging the equivalence of the logic generated by the equivalence judgment circuit generation unit of the first embodiment.

【図7】実施形態1の等価性判定回路生成部により生成
される論理の等価性を判定するための等価性判定回路を
示す回路構成図。
FIG. 7 is a circuit configuration diagram showing an equivalence judgment circuit for judging equivalence of logics generated by the equivalence judgment circuit generation unit of the first embodiment.

【図8】MUXの論理構造図。FIG. 8 is a logical structure diagram of MUX.

【図9】(a)及び(b)は等価性判定部で生成された
BDDの一例を示す説明図。
9A and 9B are explanatory diagrams showing an example of a BDD generated by an equivalence determination unit.

【図10】(a)及び(b)は実施形態2で回路情報入
力部から入力された論理回路を示す回路構成図。
10A and 10B are circuit configuration diagrams showing a logic circuit input from a circuit information input unit in the second embodiment.

【図11】実施形態2の等価性判定回路生成部により生
成される論理の等価性を判定するための等価性判定回路
を示す回路構成図。
FIG. 11 is a circuit configuration diagram showing an equivalence judgment circuit for judging equivalence of logic generated by an equivalence judgment circuit generation unit according to the second exemplary embodiment.

【図12】実施形態2の等価性判定回路生成部により生
成される機能の等価性を判定するための等価性判定回路
を示す回路構成図。
FIG. 12 is a circuit configuration diagram showing an equivalence judgment circuit for judging equivalence of functions generated by an equivalence judgment circuit generation unit according to the second exemplary embodiment.

【図13】従来の論理回路検証装置で生成される論理等
価性判定回路の一例を示す回路構成図。
FIG. 13 is a circuit configuration diagram showing an example of a logical equivalence determination circuit generated by a conventional logic circuit verification device.

【図14】(a)はドントケア条件を説明するための論
理回路図、(b)は制御信号とALUの機能との関係を
示す説明図。
14A is a logic circuit diagram for explaining a don't care condition, and FIG. 14B is an explanatory diagram showing a relationship between a control signal and a function of an ALU.

【図15】(a)はゲーテッドクロック設計されていな
い部分回路を示す回路構成図、(b)はゲーテッドクロ
ック設計された部分回路を示す回路構成図。
15A is a circuit configuration diagram showing a partial circuit for which a gated clock is not designed, and FIG. 15B is a circuit configuration diagram showing a partial circuit for which a gated clock is designed.

【符号の説明】[Explanation of symbols]

1 回路情報入力部 2 ドントケア情報入力部 3 等価性判定回路生成部 4 等価性判定回路格納部 5 ゲーテッドクロック設計対応部 6 等価性判定部 7 ゲーテッドクロック情報入力部 1 Circuit information input section 2 Don't care information input section 3 Equivalence determination circuit generator 4 Equivalence determination circuit storage 5 Gated clock design support section 6 Equivalence determination unit 7 Gated clock information input section

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 検証すべき少なくとも2つの論理回路に
関する情報及び該論理回路に関するドントケア情報を入
力する回路情報入力手段と、 前記論理回路に関する情報と該論理回路に関するドント
ケア情報に基づいて、前記少なくとも2つの論理回路を
含む等価性判定回路を生成する等価性判定回路生成手段
と、 前記等価性判定回路にゲーテッドクロック設計されてい
る論理回路が含まれる場合は、前記少なくとも2つの論
理回路に含まれるレジスタのクロック入力が等しくなる
ように、前記ゲーテッドクロック設計されている論理回
路にマルチプレクサを挿入して、前記等価性判定回路を
修正するゲーテッドクロック部分修正手段と、 前記等価性判定回路生成手段で生成された等価性判定回
路又は前記ゲーテッドクロック部分修正手段で修正され
た等価性判定回路に基づいて、検証すべき少なくとも2
つの論理回路の論理又は機能の等価性を判定する等価性
判定手段とを備えたことを特徴とする論理回路検証装
置。
1. A circuit information input means for inputting information about at least two logic circuits to be verified and don't care information about the logic circuits, and the at least 2 based on the information about the logic circuits and the don't care information about the logic circuits. Equivalence judgment circuit generating means for generating an equivalence judgment circuit including two logic circuits, and a gated clock design for the equivalence judgment circuit.
If at least two logic circuits are included,
Clock inputs of registers included in the logic circuit become equal
The gated clock is designed as a logical time
A gated clock partial correction means for correcting the equivalence judgment circuit by inserting a multiplexer in the path, and the equivalence judgment circuit generated by the equivalence judgment circuit generation means or the equivalence corrected by the gated clock partial correction means. At least 2 to be verified based on the sex determination circuit
A logic circuit verification device, comprising: an equivalence judging means for judging equivalence of logic or function of one logic circuit.
【請求項2】 回路情報入力手段と、等価性判定回路生
成手段と、ゲーテッドクロック部分修正手段と、等価性
判定手段とを備えた論理回路検証装置を用いて、少なく
とも2つの論理回路の論理又は機能の等価性を判定する
論理回路検証方法であって、 前記回路情報入力手段が、検証すべき少なくとも2つの
論理回路に関する情報及び該論理回路に関するドントケ
ア情報を入力する回路情報入力ステップと、 前記等価性判定回路生成手段が、前記論理回路に関する
情報と該論理回路に関するドントケア情報に基づいて、
前記少なくとも2つの論理回路を含む等価性判定回路を
生成する等価性判定回路生成ステップと、 前記ゲーテッドクロック部分修正手段が、前記等価性判
定回路にゲーテッドクロック設計されている論理回路が
含まれる場合は、前記少なくとも2つの論理回路に含ま
れるレジスタのクロック入力が等しくなるように、前記
ゲーテッドクロック設計されている論理回路にマルチプ
レクサを挿入して、前記等価性判定回路を修正するゲー
テッドクロック部分修正ステップと、 前記等価性判定手段が、前記等価性判定回路生成ステッ
プで生成された等価性判定回路又は前記ゲーテッドクロ
ック部分修正ステップで修正された等価性判定回路に基
づいて、検証すべき少なくとも2つの論理回路の論理又
は機能の等価性を判定する等価性判定ステップとを含む
ことを特徴とする論理回路検証方法。
2. A logic circuit verifying device comprising circuit information input means, equivalence judgment circuit generation means, gated clock partial correction means, and equivalence judgment means is used to determine the logic or logic of at least two logic circuits. A logic circuit verification method for determining the equivalence of functions, wherein the circuit information input means inputs information about at least two logic circuits to be verified and don't care information about the logic circuits, the circuit information input step Based on the information about the logic circuit and the don't care information about the logic circuit,
An equivalence judgment circuit generating step of generating an equivalence judgment circuit including at least two logic circuits; and a case where the gated clock partial correction means includes a logic circuit having a gated clock design in the equivalence judgment circuit. A gated clock partial correction step of correcting the equivalence judgment circuit by inserting a multiplexer into the logic circuit having the gated clock design so that clock inputs of registers included in the at least two logic circuits become equal. At least two logic circuits to be verified by the equivalence judgment means based on the equivalence judgment circuit generated in the equivalence judgment circuit generation step or the equivalence judgment circuit modified in the gated clock partial modification step. Equivalence judgment step to judge equivalence of logic or function of Logic circuit verification method, which comprises a.
【請求項3】 検証すべき少なくとも2つの論理回路に
関する情報及び該論理回路に関するドントケア情報を入
力する回路情報入力ステップと、 前記論理回路に関する情報と該論理回路に関するドント
ケア情報に基づいて、前記少なくとも2つの論理回路を
含む等価性判定回路を生成する等価性判定回路生成ステ
ップと、 前記等価性判定回路にゲーテッドクロック設計されてい
る論理回路が含まれる場合は、前記少なくとも2つの論
理回路に含まれるレジスタのクロック入力が等しくなる
ように、前記ゲーテッドクロック設計されている論理回
路にマルチプレクサを挿入して、前記等価性判定回路を
修正するゲーテッドクロック部分修正ステップと、 前記等価性判定回路生成ステップで生成された等価性判
定回路又は前記ゲーテッドクロック部分修正ステップで
修正された等価性判定回路に基づいて、検証すべき少な
くとも2つの論理回路の論理又は機能の等価性を判定す
る等価性判定ステップとを含み、これらステップをコン
ピュータに実行させることを特徴とする論理回路検証プ
ログラムを格納したコンピュータ読み取り可能な記録媒
体。
3. A circuit information input step of inputting information about at least two logic circuits to be verified and don't care information about the logic circuits, and the at least 2 based on the information about the logic circuits and the don't care information about the logic circuits. An equivalence judgment circuit generating step of generating an equivalence judgment circuit including two logic circuits; and, if the equivalence judgment circuit includes a logic circuit having a gated clock design, registers included in the at least two logic circuits. Generated by the gated clock partial correction step of correcting the equivalence judgment circuit by inserting a multiplexer into the logic circuit having the gated clock design so that the clock inputs of are equal to each other, and the equivalence judgment circuit generation step. Equivalence determination circuit or the gated clock An equivalence judgment step of judging equivalence of logic or functions of at least two logic circuits to be verified based on the equivalence judgment circuit corrected in the partial correction step, and causing a computer to execute these steps. A computer-readable recording medium storing a characteristic logic circuit verification program.
JP15390297A 1997-06-11 1997-06-11 Logic circuit verification device, logic circuit verification method, and computer-readable recording medium storing logic circuit verification program Expired - Fee Related JP3394888B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15390297A JP3394888B2 (en) 1997-06-11 1997-06-11 Logic circuit verification device, logic circuit verification method, and computer-readable recording medium storing logic circuit verification program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15390297A JP3394888B2 (en) 1997-06-11 1997-06-11 Logic circuit verification device, logic circuit verification method, and computer-readable recording medium storing logic circuit verification program

Publications (2)

Publication Number Publication Date
JPH113361A JPH113361A (en) 1999-01-06
JP3394888B2 true JP3394888B2 (en) 2003-04-07

Family

ID=15572613

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15390297A Expired - Fee Related JP3394888B2 (en) 1997-06-11 1997-06-11 Logic circuit verification device, logic circuit verification method, and computer-readable recording medium storing logic circuit verification program

Country Status (1)

Country Link
JP (1) JP3394888B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001195441A (en) 2000-01-13 2001-07-19 Nec Ic Microcomput Syst Ltd Output don't care designation method, processing device using the same, processing method, and recording medium recording processing program
JP5942417B2 (en) * 2011-12-22 2016-06-29 富士通株式会社 Simulation device, simulation method, and simulation program

Also Published As

Publication number Publication date
JPH113361A (en) 1999-01-06

Similar Documents

Publication Publication Date Title
JP3357813B2 (en) Gated clock design support method, gated clock design support device, and computer-readable recording medium storing gated clock design support program
JP2002073719A (en) Circuit behavior model description generation method and logic design verification device
JP5040758B2 (en) Simulation apparatus, simulation method, and program
US8042074B2 (en) Circuit design device, circuit design program, and circuit design method
US20030149945A1 (en) Method and system of data processor design
JP3394888B2 (en) Logic circuit verification device, logic circuit verification method, and computer-readable recording medium storing logic circuit verification program
US6457167B1 (en) Gated clock design supporting method, gated clock design supporting apparatus, and computer readable memory storing gated clock design supporting program
US7080333B1 (en) Verifying logic synthesizers
JP3660097B2 (en) Logic circuit type verification apparatus and verification method
US7225419B2 (en) Methods for modeling latch transparency
JP3654941B2 (en) Logic simulation method and logic simulator
JP3105782B2 (en) Logic generation method for electronic circuits
JP3561661B2 (en) Semiconductor integrated circuit and method of designing semiconductor integrated circuit
JP3759007B2 (en) Asynchronous circuit timing verification apparatus and timing verification method thereof
JPH0934927A (en) Logic simulation apparatus and logic circuit information creation method
JP3664988B2 (en) Low power LSI design method
JP4039347B2 (en) Equivalence verification system and program for delay optimization circuit by latch conversion
JP3077617B2 (en) Delay simulator
TW421792B (en) Built-in self-test circuit of memory device
JP2006163600A (en) Internal signal monitoring method and logic simulation apparatus
US20060282250A1 (en) Logic simulation method and system
JPH0619733A (en) Input pattern evaluation method for simulation
JP2019175179A (en) Design support device, design support method, program, and storage medium
JP2002236713A (en) Digital circuit verification device and verification method
JP2000040096A (en) Apparatus and method for generating delay information for logic simulation

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080131

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090131

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100131

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees