JP3257535B2 - Logical collator - Google Patents

Logical collator

Info

Publication number
JP3257535B2
JP3257535B2 JP08252799A JP8252799A JP3257535B2 JP 3257535 B2 JP3257535 B2 JP 3257535B2 JP 08252799 A JP08252799 A JP 08252799A JP 8252799 A JP8252799 A JP 8252799A JP 3257535 B2 JP3257535 B2 JP 3257535B2
Authority
JP
Japan
Prior art keywords
circuit
logic
logical
small
matching
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
JP08252799A
Other languages
Japanese (ja)
Other versions
JP2000276507A (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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP08252799A priority Critical patent/JP3257535B2/en
Publication of JP2000276507A publication Critical patent/JP2000276507A/en
Application granted granted Critical
Publication of JP3257535B2 publication Critical patent/JP3257535B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、2つの論理回路間
で同名の回路素子を切り口として小回路に分割し、分割
された小回路に対して論理照合を行う論理照合システム
に用いて好適な装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention is suitable for use in a logic matching system in which a circuit element having the same name is divided into two small circuits between two logic circuits, and a logic check is performed on the divided small circuits. Related to the device .

【0002】[0002]

【従来の技術】論理回路の設計において、すでに設計を
終えた後に、遅延時間の調整等の理由で当該論理回路の
構成を修正する必要が生じる場合がある。この場合、当
該論理回路の論理を変更せずに、その構成のみを変更し
なければならない。そのため、修正前後における2つの
論理回路の論理等価性を検証することが必要となる。こ
のように2つの論理回路の等価性を調べることを論理照
合といい、BDD(二分決定木)やブール式(積和形論
理式)による手法が一般的に使用されている。従来、2
つの論理回路の論理照合は、論理回路の規模が大きくな
ると照合処理に多大な時間を要してしまうため、2つの
論理回路間で同名の回路素子を切り口として小回路に分
割し、分割された小回路に対して論理照合を実行してい
た。この方法は例えば、特開平1−237473号公報
に詳細に開示されている。
2. Description of the Related Art In the design of a logic circuit, it may be necessary to modify the configuration of the logic circuit after the design is already completed, for example, to adjust the delay time. In this case, only the configuration of the logic circuit must be changed without changing the logic of the logic circuit. Therefore, it is necessary to verify the logical equivalence of the two logic circuits before and after the correction. Examining the equivalence of two logic circuits in this way is called logical collation, and a method using a BDD (Binary Decision Tree) or a Boolean expression (product-sum logical expression) is generally used. Conventionally, 2
In the logical comparison of two logic circuits, a large amount of time is required for the matching process when the scale of the logic circuit becomes large. Therefore, the two logic circuits are divided into small circuits by using a circuit element having the same name as a cutoff between the two logic circuits. Logical matching was performed on small circuits. This method is disclosed in detail in, for example, JP-A-1-237473.

【0003】[0003]

【発明が解決しようとする課題】ところで、上述した、
2つの論理回路間で同名の回路素子を切り口として小回
路に分割し、分割された小回路に対して論理照合を行う
方法において、切り口となる回路素子を跨ぐ論理変更を
行う場合は、論理照合の結果が不正に不一致となってし
まう可能性がある。例えば、図2に示すような「修正
前」回路と「修正後」回路の論理照合の場合、同名の回
路素子“SEL”でそれぞれの回路を小回路に分割する
ため、論理照合は、1(修正前:A−I1)(修正後:
A−V1−I1)、2(修正前:B−I2)(修正後:
B−V2−I2)、3(修正前:C−I3)(修正後:
C−I3)、4(修正前:O−D)(修正後:O−V3
−D)の4組の小回路の組合せで行われる。この場合、
回路全体の論理は、「修正前」も「修正後」も同じはず
であるが、小回路に分割した論理照合の結果は、前記小
回路の組合せのうち、1、2、4で不一致となり、正常
な論理照合結果を得ることができない。
By the way, as described above,
In a method in which a circuit element having the same name is divided into small circuits between two logic circuits as a cut and a logical check is performed on the divided small circuits, when performing a logical change across the cut circuit element, a logical check is performed. May incorrectly result in a mismatch. For example, in the case of the logical comparison between the “before correction” circuit and the “after correction” circuit as shown in FIG. 2, since each circuit is divided into small circuits by the circuit element “SEL” having the same name, the logical comparison is 1 ( Before modification: A-I1) (After modification:
A-V1-I1), 2 (before modification: B-I2) (after modification:
B-V2-I2), 3 (before modification: C-I3) (after modification:
CI-3), 4 (before modification: O-D) (after modification: O-V3)
-D) is performed by a combination of four sets of small circuits. in this case,
The logic of the whole circuit should be the same before and after the correction, but the result of the logical comparison divided into small circuits will be mismatched at 1, 2, and 4 among the combinations of the small circuits, Normal logical collation results cannot be obtained.

【0004】本発明は上記事情に鑑みてなされたもので
あり、2つの論理回路の等価性を検証する論理照合装置
において、2つの論理回路間で同名の回路素子で論理回
路を小回路に分割して論理照合を行い、その結果反転論
理による論理不一致が発生した場合は、不一致が発生し
た小回路に対し、当該小回路を生成した同名回路素子の
入力方向の小回路の論理照合結果と、当該同名回路素子
の論理を考慮して論理照合を行うことにより、論理照合
のために要する処理時間を短縮し、かつ、切り口となる
回路素子を跨ぐ論理変更を行う場合であっても正常な論
理照合結果を得ることのできる論理照合装置を提供する
ことを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above circumstances, and in a logic matching device for verifying the equivalence of two logic circuits, a logic circuit having the same name is used between the two logic circuits. When the logical comparison is performed by dividing the circuit into small circuits and a logical mismatch due to inverted logic occurs as a result, the logic of the small circuit in the input direction of the circuit element having the same name that generated the small circuit is compared with the small circuit where the mismatch occurred. In the case where the logical matching is performed in consideration of the matching result and the logic of the same-named circuit element, the processing time required for the logical matching is reduced, and the logical change is performed across the circuit element to be cut. It is another object of the present invention to provide a logical matching device capable of obtaining a normal logical matching result.

【0005】[0005]

【課題を解決するための手段】上述した課題を解決する
ために請求項1記載の論理照合装置は、論理照合の対象
となる修正前、後のそれぞれの論理回路が格納される第
1、第2の論理回路格納手段と、前記第1、第2の論理
回路格納手段に格納されている論理回路から同名の回路
素子を抽出し、該同名の回路素子を切り口として前記第
1、第2の論理回路格納手段に格納されている論理回路
から小回路を出力方向から抽出する同名回路素子抽出手
段と、前記抽出された小回路のそれぞれに対して論理照
合を実行する第1の論理照合実行手段と、該第1の論理
照合手段による論理照合の結果、反転論理による論理不
一致があれば、該当する小回路を逐次小回路再生成手段
に渡し、反転論理による論理不一致がなければ処理を終
了する論理照合結果判定手段と、反転論理による論理不
一致となった小回路を作成する際の切り口となった同名
回路素子の中から、入力方向の同名回路素子の入力信号
に接続している小回路の論理照合結果を参照し、その結
果が反転論理による論理不一致ならば反転入力信号と
し、論理一致ならば正常入力信号とした同名回路素子の
論理を反転論理による論理不一致となった修正後の小回
路に接続した小回路と、同名回路素子の入力をすべて正
常入力信号として修正前の小回路に接続した小回路を新
たに生成する小回路再生成手段と、該小回路再生成手段
により再生成された小回路のそれぞれに対し論理照合を
行う第2の論理照合実行手段とを有することを特徴とす
る。
According to a first aspect of the present invention, there is provided a logical matching apparatus, comprising:
The first and second logic circuits before and after
First and second logic circuit storage means, and the first and second logic circuits
From the logic circuit stored in the circuit storage means to the circuit of the same name
The element is extracted, and the circuit element of the same name
1. Logic circuits stored in the second logic circuit storage means
Circuit element extraction method to extract small circuit from output direction
Stage and a logical reference to each of the extracted small circuits.
First logical collation executing means for performing a combination,
As a result of logical matching by the matching means,
If there is a match, the corresponding small circuit is sequentially regenerated by the small circuit.
And terminates the process if there is no logic mismatch due to inversion logic.
Logical comparison result determination means that completes the
The same name that became the starting point when creating a matching small circuit
From the circuit elements, the input signal of the circuit element of the same name in the input direction
Refers to the logical comparison result of the small circuit connected to
If the result does not match the logic of the inverted logic,
If the logic matches, a circuit element with the same name as a normal input signal
Small times after correction that resulted in logic mismatch due to inverted logic
Correct the input of the small circuit connected to the
A small circuit connected to the small circuit before correction is added as a normal input signal.
Small circuit regenerating means for newly generating and small circuit regenerating means
Logical comparison for each of the small circuits regenerated by
And a second logical collation executing means for performing .

【0006】[0006]

【0007】本発明は、2つの論理回路の等価性を検証
する論理照合装置において、2つの論理回路間で同名の
回路素子で論理回路を小回路に分割して論理照合を行
い、その結果反転論理による論理不一致が発生した場合
は、不一致が発生した小回路に対し、当該小回路を生成
した同名回路素子の入力方向の小回路の論理照合結果
と、当該同名回路素子の論理を考慮して論理照合を行う
ものであり、このことにより、論理照合のために要する
処理時間を短縮でき、かつ、切り口となる回路素子を跨
ぐ論理変更を行う場合であっても正常な論理照合結果を
得ることができ、信頼性の向上がはかれる。
According to the present invention, in a logic matching device for verifying the equivalence of two logic circuits, a logic circuit is divided into small circuits by circuit elements having the same name between the two logic circuits, and the logic matching is performed. When a logic mismatch occurs due to logic, the logic matching result of the small circuit in the input direction of the same-named circuit element that generated the small circuit and the logic of the same-named circuit element are considered for the small circuit in which the mismatch occurred. Performs logical matching, thereby reducing the processing time required for logical matching and obtaining a normal logical matching result even when performing a logical change across circuit elements to be cut. And improve reliability.

【0008】[0008]

【発明の実施の形態】図1は本発明の実施形態を示すブ
ロック図である。本発明の論理照合装置は、論理回路格
納手段1、2、同名回路素子抽出手段3、同名回路素子
格納手段4、小回路抽出手段5、小回路格納手段6、論
理照合実行手段7、論理照合結果格納手段8、論理照合
結果判定手段9、反転入力による小回路作成手段10、
反転入力による小回路格納手段11、論理照合実行手段
12、論理照合結果格納手段13で構成される。
FIG. 1 is a block diagram showing an embodiment of the present invention. The logical matching device of the present invention includes logic circuit storage means 1 and 2, circuit element extracting means 3 with the same name, circuit element storing means 4 with the same name, small circuit extracting means 5, small circuit storing means 6, logical matching executing means 7, logical matching A result storage means 8, a logical collation result determination means 9, a small circuit creation means 10 by inversion input,
It is composed of a small circuit storage means 11 by inversion input, a logic matching execution means 12, and a logic matching result storage means 13.

【0009】図1において、論理回路格納手段1には論
理照合を行おうとしている修正前の論理回路が、論理回
路格納手段2には、論理照合を行おうとしている修正後
の論理回路が格納される。同名回路素子抽出手段3は、
論理回路格納手段1に格納されている論理回路と論理回
路情報2に格納されている論理回路から、同名の回路素
子を抽出し、同名回路素子格納手段4に格納する。小回
路抽出手段5は、同名回路素子格納手段4に格納されて
いる回路素子を切り口として、論理回路格納手段1に格
納されている論理回路と論理回路格納手段2に格納され
ている論理回路から小回路を出力方向から抽出し、小回
路格納手段6に格納する。論理照合実行手段7は、小回
路格納手段6に格納されている小回路に対して論理照合
を実行し、その結果を論理照合結果格納手段8に格納す
る。
In FIG. 1, the logic circuit storage means 1 stores a logic circuit before correction to be subjected to logical comparison, and the logic circuit storage means 2 stores a corrected logic circuit to be subjected to logical comparison. Is done. The circuit element extracting means 3 having the same name
From the logic circuit stored in the logic circuit storage means 1 and the logic circuit stored in the logic circuit information 2, a circuit element having the same name is extracted and stored in the circuit element storage means 4 with the same name. The small circuit extracting means 5 uses the circuit element stored in the circuit element storing means 4 of the same name as a cut-off point to extract the logical circuit stored in the logical circuit storing means 1 and the logical circuit stored in the logical circuit storing means 2. The small circuit is extracted from the output direction and stored in the small circuit storage means 6. The logical matching executing means 7 performs a logical matching on the small circuit stored in the small circuit storing means 6 and stores the result in the logical matching result storing means 8.

【0010】論理照合結果判定手段9は、論理照合結果
格納手段8に格納されている論理照合結果の中に、「反
転論理による論理不一致」結果があれば、その不一致結
果となった小回路を反転入力による小回路作成手段10
に渡し、「反転論理による論理不一致」結果がなければ
すべての処理を終了させる。反転入力による小回路作成
手段10は、「反転論理による論理不一致」となった小
回路を作成する際の切り口となった同名回路素子の中か
ら、入力方向の同名回路素子の入力信号に接続している
小回路の論理照合結果を参照し、その結果が「反転論理
による論理不一致」ならば反転入力信号とし、論理一致
ならば正常入力信号とした同名回路素子の論理を反転論
理による論理不一致となった修正後の小回路に接続した
小回路と、同名回路素子の入力をすべて正常入力信号と
して修正前の小回路に接続した小回路を新たに生成し、
生成された小回路を反転入力による小回路格納手段11
に格納する。論理照合実行手段12は、反転入力による
小回路格納手段11に格納されている小回路に対して論
理照合を実行し、実行結果を論理照合結果格納手段13
に格納する。以上の論理照合結果判定手段9から論理照
合結果格納手段13までの一連の作業は、論理照合結果
格納手段8に格納されている「反転論理による論理不一
致」結果となっているすべての小回路に対して行う。な
お、論理照合の実行手法としては、ここではブール式
(積和形論理式)を利用して変換比較するものとし、す
なわち、2つの論理回路をそれぞれブール式に変換し、
所定の条件を満足するか否か照明する方式を採用してい
る。具体的手法については本発明の主旨から逸脱するた
めこれ以上の詳細は省略する。
If the logical comparison result stored in the logical comparison result storage means 8 includes a result of “logical mismatch due to inverted logic”, the logical matching result determination means 9 determines the small circuit having the mismatch result. Small circuit creation means 10 by inverting input
, And if there is no “logic mismatch due to inversion logic” result, all processes are terminated. The inverting input small circuit creating means 10 connects the input signal of the same-named circuit element in the input direction from among the same-named circuit elements that have become the cut ends when creating a small circuit that has “logic mismatch due to inverted logic”. The logic matching result of the small circuit is referred to, and if the result is "logic mismatch due to inverted logic", it is regarded as an inverted input signal, and if the result is logically matched, it is regarded as a normal input signal. A new small circuit connected to the small circuit after the correction and a small circuit connected to the small circuit before the correction as all normal circuit input signals of the same-named circuit elements are newly generated.
Small circuit storage means 11 by inverting the generated small circuit
To be stored. The logical comparison executing means 12 performs a logical comparison on the small circuit stored in the small circuit storing means 11 by inverting input, and stores the execution result in the logical matching result storing means 13.
To be stored. The above-described series of operations from the logical collation result determination means 9 to the logical collation result storage means 13 are performed on all the small circuits which are stored in the logical collation result storage means 8 and have resulted in “logical mismatch due to inverted logic”. Do it for Here, as a method of executing the logical comparison, here, conversion and comparison are performed using a Boolean expression (product-sum logical expression), that is, each of the two logic circuits is converted into a Boolean expression.
A method of illuminating whether a predetermined condition is satisfied is adopted. Since the specific method deviates from the gist of the present invention, further details are omitted.

【0011】図2、図3は本発明の動作原理を説明する
ために引用した図であり、修正前後における論理回路の
構成を真理値表付きで示した図、本発明により修正前後
の回路から再生成した小回路の例を真理値表付きで示し
た図のそれぞれを示す。本発明は、2つの論理回路の等
価性を検証する論理照合方法において、2つの論理回路
間で同名の回路素子で論理回路を小回路に分割して論理
照合を行い、その結果反転論理による論理不一致が発生
した場合は、不一致が発生した小回路に対し、当該小回
路を生成した同名回路素子の入力方向の小回路の論理照
合結果と、当該同名回路素子の論理を考慮して論理照合
を行うことを特徴とすることは上述したとおりである。
FIGS. 2 and 3 are diagrams cited for explaining the operation principle of the present invention. FIG. 2 is a diagram showing the configuration of a logic circuit before and after correction with a truth table. Each of the figures shows an example of a regenerated small circuit with a truth table. The present invention relates to a logic matching method for verifying the equivalence of two logic circuits, performing logic matching by dividing a logic circuit into small circuits by using circuit elements having the same name between the two logic circuits, and performing logic matching based on inverted logic as a result. If a mismatch occurs, the logic matching is performed on the small circuit in which the mismatch has occurred in consideration of the logic matching result of the small circuit in the input direction of the same name circuit element that generated the small circuit and the logic of the same name circuit element. The feature of performing is as described above.

【0012】具体的に、図2において、「修正前」と
「修正後」の回路は、真理値表に示すように同じ論理
(入力I3が“0”のとき入力I1のαをDに出力、入
力I3が“1”のとき入力I2のβをDに出力)を持つ
回路である。論理照合を本発明方法で実施する場合、2
つの回路間で同名の回路素子“SEL”で「修正前」と
「修正後」の回路それぞれを小回路に分割する。分割の
結果、「修正前」の回路からは、A−I1(SEL)、B
−I2(SEL)、C−I3(SEL)、O(SEL)−Dの
小回路が生成され、「修正後」の回路からは、A−V1
−I1(SEL)、B−V2−I2(SEL)、C−I3
(SEL)、O(SEL)−V3−Dの小回路が生成され
る。 論理照合操作は、1(修正前:A−I1)(修正
後:A−V1−I1)、2(修正前:B−I2)(修正
後:B−V2−I2)、3(修正前:C−I3)(修正
後:C−I3)、4(修正前:O−D)(修正後:O−
V3−D)の4組の小回路で行う。
Specifically, in FIG. 2, the "before" and "after" circuits have the same logic as shown in the truth table (when input I3 is "0", α of input I1 is output to D). , When the input I3 is “1”, β of the input I2 is output to D). When the logical matching is performed by the method of the present invention, 2
In each of the circuits, a circuit element “before correction” and a circuit “after correction” are divided into small circuits by a circuit element “SEL” having the same name. As a result of the division, A-I1 (SEL), B
-I2 (SEL), C-I3 (SEL), O (SEL) -D sub-circuits are generated, and A-V1
-I1 (SEL), B-V2-I2 (SEL), C-I3
A small circuit of (SEL), O (SEL) -V3-D is generated. The logical collation operation is 1 (before modification: A-I1) (after modification: A-V1-I1), 2 (before modification: B-I2) (after modification: B-V2-I2), 3 (before modification: C-I3) (after correction: C-I3), 4 (before correction: O-D) (after correction: O-
V3-D).

【0013】ここで、4組の論理照合結果のうち、3は
「論理一致」、1、2、4は「反転論理による論理不一
致」となり、「反転論理による論理不一致」が発生した
小回路1、2、4については、以下に示す(1)(2)
の手順で再生成される。 (1)4の小回路を生成した際の切り口である同名回路
素子“SEL”の入力信号に接続している小回路1、
2、3の論理照合結果を参照し、1、2は反転論理によ
る論理不一致、3は論理一致であるため、“SEL”の
入力信号I1、I2は反転論理、I3は正常にした“S
EL”を4の修正後の小回路に接続する。 (2)入力信号I1、I2、I3を正常信号にした“S
EL”を4の修正前の小回路に接続する。 上記の手順に従って図3に示す小回路が生成され、ここ
で生成された小回路に対し、再度論理照合を実行する。
ここでの論理照合の結果は「論理一致」となり、図2の
修正前の回路と修正後の回路は「論理一致」と証明され
たことになる。上述した論理照合方法では、2つの論理
回路間で同名の回路素子を切り口として小回路に分割
し、分割された小回路に対して論理照合を実行すること
で論理照合の処理時間を短縮し、かつ、正常な論理照合
結果を得ることが可能となる。
Here, among the four sets of logical comparison results, 3 is "logical match", 1, 2, and 4 are "logical mismatch by inverted logic", and the small circuit 1 in which "logical mismatch by inverted logic" occurs. About (2) and (4), (1) (2)
It is regenerated in the procedure of. (1) The small circuit 1 connected to the input signal of the circuit element “SEL” having the same name, which is a cut when the four small circuits are generated,
Reference is made to the logical comparison results of 2 and 3, and 1 and 2 are logically inconsistent by inverted logic, and 3 is logically coincident. Therefore, the input signals I1 and I2 of "SEL" are inverted logical, and I3 is normal "S".
EL "is connected to the modified small circuit of 4. (2)" S "in which the input signals I1, I2 and I3 are made normal signals
EL "is connected to the small circuit before the correction of 4. The small circuit shown in FIG. 3 is generated according to the above procedure, and the generated small circuit is subjected to logical comparison again.
The result of the logical comparison here is “logical match”, and the circuit before correction and the circuit after correction in FIG. 2 are proved as “logical match”. In the logical matching method described above, a circuit element having the same name is divided into small circuits between two logical circuits, and the logical matching is performed on the divided small circuits, thereby shortening the processing time of the logical matching. In addition, it is possible to obtain a normal logical collation result.

【0014】図4〜図6は、図1に示す本発明実施形態
の具体的な動作を説明するために引用した図であり、そ
れぞれ、修正前後における論理回路の回路構成例(1)
を示す図、小回路の組み合わせ例(1)を表形式で示し
た図、再生成された修正前後における小回路の構成例
(1)を示す図である。論理回路格納手段1には、図4
に示す「修正前」の回路が格納され、論理回路格納手段
2には図4の「修正後」の回路が格納されている。論理
回路素子抽出手段3は、論理回路格納手段1と論理回路
格納手段2に格納されている回路内で同名の回路素子
“SEL”、“A1”を抽出し、同名回路素子格納手段
4に格納する。小回路抽出手段5は、論理回路格納手段
1と論理回路格納手段2に格納されているそれぞれの回
路から、同名回路素子格納手段4に格納されている同名
回路素子“SEL”、“A1”を切り口として、出力方
向から小回路を抽出し、図5に示す6つの小回路の組合
せを小回路格納手段6に格納する。論理照合実行手段7
は、小回路格納手段6に格納されている6つの組合せの
小回路に対し論理照合を実行し、実行結果を論理照合結
果格納手段8に格納する。論理照合結果格納手段8に
は、図5に示すの組合せの小回路に対しては「論
理一致」の結果が格納され、の組合せの小回路に
対しては、「反転論理による論理不一致」の結果が格納
される。ここで、論理照合結果判定手段9は、論理照合
結果格納手段8に格納されている論理照合の結果の中か
ら、「反転論理による論理不一致」となっている小回路
の組合せを順番に検索し、図5のの小回路の組合せを
反転入力による小回路作成手段10に渡す。
FIGS. 4 to 6 are diagrams cited for explaining the specific operation of the embodiment of the present invention shown in FIG. 1, and are each a circuit configuration example (1) of a logic circuit before and after correction.
, A diagram showing a combination example (1) of small circuits in a table format, and a diagram showing a configuration example (1) of a small circuit before and after a regenerated correction. FIG. 4 shows the logic circuit storage means 1.
4 is stored, and the logic circuit storage means 2 stores the "after correction" circuit of FIG. The logic circuit element extraction means 3 extracts the circuit elements “SEL” and “A1” having the same name in the circuits stored in the logic circuit storage means 1 and the logic circuit storage means 2 and stores them in the circuit element storage means 4 having the same name. I do. The small circuit extracting means 5 extracts the circuit elements “SEL” and “A1” having the same name stored in the circuit element storing means 4 from the respective circuits stored in the logical circuit storing means 1 and the logical circuit storing means 2. As a cut end, a small circuit is extracted from the output direction, and a combination of the six small circuits shown in FIG. Logical matching execution means 7
Performs logical comparison on the six combinations of small circuits stored in the small circuit storage unit 6 and stores the execution result in the logical comparison result storage unit 8. The logical matching result storage means 8 stores the result of “logical match” for the small circuit of the combination shown in FIG. 5, and the result of “logical mismatch by inverted logic” for the small circuit of the combination. The result is stored. Here, the logical-matching-result determining means 9 sequentially searches the logical-matching results stored in the logical-matching-result storing means 8 for combinations of small circuits having “logical mismatch due to inverted logic”. , The combination of the small circuits shown in FIG.

【0015】反転入力による小回路作成手段10は、図
5のの小回路を作成する際の切り口となった同名回路
素子“SEL”、“A1”のうち、入力方向の“SE
L”の各入力信号に接続している小回路の論理照合結果
を参照し、“I1”に接続している図5の結果と、
“I2”に接続している図5の結果が、「反転論理に
よる論理不一致」となっているため、“SEL”の入力
信号“I1”と“I2”を反転入力信号とし、“I3”
に接続している図5の結果が「論理一致」となってい
るため、“SEL”の入力信号“I3”を正常入力信号
とした回路を図5の修正後小回路に接続した回路と、
“SEL”の入力信号“I1”、“I2”、“I3”を
すべて正常入力信号とした回路を図5の修正前小回路
に接続した回路を作成し、図6に示す回路を反転入力に
よる小回路格納手段11に格納する。論理照合実行手段
12は、反転入力による小回路格納手段11に格納され
ている図6の回路に対して論理照合を実行し、論理照合
結果である「論理一致」を論理照合結果格納手段13に
格納する。図6の回路が「論理一致」となったことは、
図4の修正前の回路中の点線で囲った部分と修正後の回
路中の点線で囲った部分は「論理一致」であることを示
す。
The small-circuit creating means 10 based on the inverting input outputs the input signal "SE" of the circuit elements "SEL" and "A1" of the same name, which have been cut when creating the small circuit of FIG.
Referring to the result of logical comparison of the small circuit connected to each input signal of "L", the result of FIG.
Since the result of FIG. 5 connected to “I2” is “logic mismatch due to inverted logic”, the input signals “I1” and “I2” of “SEL” are used as inverted input signals, and “I3”
5 is "logically coincident", the circuit in which the input signal "I3" of "SEL" is a normal input signal is connected to the modified small circuit in FIG.
A circuit in which all the input signals "I1", "I2", and "I3" of "SEL" are normal input signals is connected to the small circuit before correction in FIG. 5, and the circuit shown in FIG. It is stored in the small circuit storage means 11. The logical collation executing means 12 performs logical collation on the circuit of FIG. 6 stored in the small circuit storage means 11 based on the inverted input, and outputs the logical collation result “logical match” to the logical collation result storage means 13. Store. The fact that the circuit of FIG.
The portion enclosed by a dotted line in the circuit before correction in FIG. 4 and the portion enclosed by a dotted line in the circuit after correction indicate "logical coincidence".

【0016】図7〜9は、図1に示す本発明実施形態の
具体的な動作を説明するために引用した図であり、それ
ぞれ、修正前後における論理回路の回路構成例(2)を
示す図、小回路の組み合わせ例(2)を表形式で示す
図、再生成された修正前後における小回路の構成例
(2)を示す図である。論理回路格納手段1には、図7
の「修正前」の回路が格納され、論理回路格納手段2に
は、図7の「修正後」の回路が格納されている。図1の
論理回路素子抽出手段3は、論理回路格納手段1と論理
回路格納手段2に格納されている回路内で同名の回路素
子“SEL”、“B1”を抽出し、同名回路素子格納手
段4に格納する。小回路抽出手段5は、論理回路格納手
段1と論理回路格納手段2に格納されているそれぞれの
回路から、同名回路素子格納手段4に格納されている同
名回路素子“SEL”、“B1”を切り口として、出力
方向から小回路を抽出し、図8に示す5つの小回路の組
合せを図1の小回路格納手段6に格納する。
FIGS. 7 to 9 are diagrams cited for explaining the specific operation of the embodiment of the present invention shown in FIG. 1, and are diagrams showing circuit configuration examples (2) of a logic circuit before and after correction, respectively. FIG. 9 is a diagram showing a combination example (2) of a small circuit in a table format, and a diagram showing a configuration example (2) of a small circuit before and after a regenerated correction. FIG. 7 shows the logic circuit storage means 1.
The circuit before “correction” is stored, and the circuit after “correction” in FIG. 7 is stored in the logic circuit storage means 2. The logic circuit element extraction means 3 of FIG. 1 extracts circuit elements "SEL" and "B1" having the same name from the circuits stored in the logic circuit storage means 1 and the logic circuit storage means 2, and stores the same circuit element storage means. 4 is stored. The small circuit extracting means 5 extracts the circuit elements "SEL" and "B1" of the same name stored in the circuit element storing means 4 from the respective circuits stored in the logical circuit storing means 1 and the logical circuit storing means 2. As a cut, a small circuit is extracted from the output direction, and a combination of the five small circuits shown in FIG. 8 is stored in the small circuit storage means 6 in FIG.

【0017】論理照合実行手段7は、小回路格納手段6
に格納されている5つの組合せの小回路に対し論理照合
を実行し、実行結果を論理照合結果格納手段8に格納す
る。論理照合結果格納手段8には、図8のの組合せ
の小回路に対しては「論理一致」の結果が格納され、
の組合せの小回路に対しては、「反転論理による論
理不一致」の結果が格納される。図1の論理照合結果判
定手段9は、論理照合結果格納手段8に格納されている
論理照合の結果の中から、「反転論理による論理不一
致」となっている小回路の組合せを順番に検索し、図8
のの小回路の組合せを図1の反転入力による小回路作
成手段10に渡す。
The logical matching executing means 7 is provided with the small circuit storing means 6
The logical matching is performed on the small circuits of the five combinations stored in the logical matching result storage unit 8. The logical matching result storage means 8 stores the result of “logical match” for the small circuit of the combination of FIG.
The result of "logic mismatch due to inverted logic" is stored for the small circuit of the combination. The logical collation result determining means 9 in FIG. 1 sequentially searches the logical collation results stored in the logical collation result storage means 8 for a combination of small circuits having "logical mismatch due to inverted logic". , FIG.
Are passed to the small circuit creating means 10 based on the inverting input of FIG.

【0018】反転入力による小回路作成手段10は、図
8のの小回路を作成する際の切り口となった同名回路
素子“B1”の入力信号に接続している小回路の論理照
合結果を参照し、“I”に接続している図8が「論理
一致」となっているため、さらに、の小回路を作成す
る際の切り口となった同名回路素子“SEL”の各入力
信号に接続している小回路の論理照合結果を参照し、
“I1”に接続している図8の結果と、“I2”に接
続している図8の結果が、「反転論理による論理不一
致」となっているため、“SEL”の入力信号“I1”
と“I2”を反転入力信号とし、“I3”に接続してい
る図8の結果が「論理一致」となっているため、“S
EL”の入力信号“I3”を正常入力信号とした回路を
図8の修正後小回路に接続した回路と、“SEL”の
入力信号“I1”、“I2”、“I3”をすべて正常入
力信号とした回路を図8の修正前小回路に接続した回
路を作成し、図9に示す回路を反転入力による小回路格
納手段11に格納する。論理照合実行手段12は、反転
入力による小回路格納手段11に格納されている図9の
回路に対して論理照合を実行し、論理照合結果である
「論理一致」を論理照合結果格納手段13に格納する。
図9の回路が「論理一致」となったことは、図7の修正
前の回路と修正後の回路は「論理一致」であることを示
す。尚、本発明実施形態では、論理回路格納手段と論理
照合実行手段のいずれも第1、第2と表示し別体として
扱い説明したが、特に区別する必要はなく一つの手段で
共有処理しても何等支障はないものである。
The small-circuit creating means 10 based on the inverting input refers to the logical collation result of the small circuit connected to the input signal of the circuit element "B1" of the same name, which has become a starting point when the small circuit of FIG. 8 is created. Since FIG. 8 connected to “I” is “logically coincident”, it is further connected to each input signal of the circuit element “SEL” of the same name, which has become a cut when creating a small circuit. Refers to the logical matching result of the small circuit
Since the result of FIG. 8 connected to “I1” and the result of FIG. 8 connected to “I2” are “logic mismatch due to inverted logic”, the input signal “I1” of “SEL”
Since the result of FIG. 8 connected to “I3” and “I3” is “logical coincidence”, “S
The circuit in which the input signal "I3" of EL is a normal input signal is connected to the modified small circuit of FIG. 8, and the input signals "I1", "I2" and "I3" of "SEL" are all normally input. A circuit in which the signal circuit is connected to the small circuit before correction shown in Fig. 8 is created, and the circuit shown in Fig. 9 is stored in the small circuit storage means 11 using inverted input. The logical comparison is performed on the circuit of FIG. 9 stored in the storage unit 11, and the “logical match” as the logical comparison result is stored in the logical comparison result storage unit 13.
The fact that the circuit in FIG. 9 is “logically coincident” indicates that the circuit before modification and the circuit after modification in FIG. 7 are “logically coincident”. In the embodiment of the present invention, both the logic circuit storage unit and the logic comparison execution unit are described as first and second and are treated as separate units. There is no problem at all.

【0019】[0019]

【発明の効果】以上説明のように本発明は、2つの論理
回路の等価性を検証する論理照合方法において、2つの
論理回路間で同名の回路素子で論理回路を小回路に分割
して論理照合を行い、その結果反転論理による論理不一
致が発生した場合は、不一致が発生した小回路に対し、
当該小回路を生成した同名回路素子の入力方向の小回路
の論理照合結果と、当該同名回路素子の論理を考慮して
論理照合を行うものであり、このことにより、論理照合
に要する処理時間が短縮され、かつ、切り口となる回路
素子を跨ぐ論理変更を行う場合にも正常な論理照合結果
を得ることが可能となる
As described above, according to the present invention, in a logic matching method for verifying the equivalence of two logic circuits, the logic circuit is divided into small circuits by using circuit elements having the same name between the two logic circuits. If the matching is performed and a logic mismatch occurs due to the inverted logic, the small circuit where the mismatch occurred
The logic matching is performed by taking into account the logic matching result of the small circuit in the input direction of the same-named circuit element that generated the small circuit and the logic of the same-named circuit element. It is possible to obtain a normal logical comparison result even when shortening and making a logical change across circuit elements to be cut.

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

【図1】 本発明の実施形態を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】 本発明の動作原理を説明するために引用した
図であり、修正前後における論理回路の構成例を真理値
表付きで示す図である。
FIG. 2 is a diagram cited for explaining the operation principle of the present invention, and is a diagram showing a configuration example of a logic circuit before and after correction with a truth table.

【図3】 本発明の動作原理を説明するために引用した
図であり、修正前後における小回路から再生成される小
回路の構成例を真理値表付きで示す図である。
FIG. 3 is a diagram cited for explaining the operation principle of the present invention, and is a diagram illustrating a configuration example of a small circuit regenerated from a small circuit before and after correction with a truth table.

【図4】 図1に示す本発明実施形態の動作を説明する
ために引用した図であり、修正前後における論理回路の
構成例(1)を示す図である。
FIG. 4 is a diagram cited for explaining the operation of the embodiment of the present invention shown in FIG. 1, and is a diagram showing a configuration example (1) of a logic circuit before and after correction.

【図5】 図1に示す本発明実施形態の動作を説明する
ために引用した図であり、小回路の組み合わせの例
(1)を表形式で示した図である。
5 is a diagram cited for explaining the operation of the embodiment of the present invention shown in FIG. 1, and is a diagram showing an example (1) of a combination of small circuits in a table format.

【図6】 図1に示す本発明実施形態の動作を説明する
ために引用した図であり、修正前後における小回路から
再生成される小回路の例(1)を示す図である。
6 is a diagram cited for explaining the operation of the embodiment of the present invention shown in FIG. 1, and is a diagram showing an example (1) of a small circuit regenerated from a small circuit before and after correction.

【図7】 図1に示す本発明実施形態の動作を説明する
ために引用した図であり、修正前後における論理回路の
構成例(2)を示す図である。
7 is a diagram cited for explaining the operation of the embodiment of the present invention shown in FIG. 1, and is a diagram showing a configuration example (2) of a logic circuit before and after correction.

【図8】 図1に示す本発明実施形態の動作を説明する
ために引用した図であり、小回路の組み合わせの例
(2)を表形式で示した図である。
8 is a diagram cited for explaining the operation of the embodiment of the present invention shown in FIG. 1, and is a diagram showing an example (2) of a combination of small circuits in a table format.

【図9】 図1に示す本発明実施形態の動作を説明する
ために引用した図であり、修正前後における小回路から
再生成される小回路の例(2)を示す図である。
9 is a diagram cited for explaining the operation of the embodiment of the present invention shown in FIG. 1, and is a diagram showing an example (2) of a small circuit regenerated from a small circuit before and after correction.

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

1…論理回路格納手段(第1)、2…論理回路格納手段
(第2)、3…同名回路素子抽出手段、4…同名回路素
子格納手段、5…小回路抽出手段、6…小回路格納手
段、7…論理照合実行手段(第1)、8…論理照合結果
格納手段、9…論理照合結果判定手段、10…反転入力
による小回路作成手段(小回路再生成手段)、11…反
転入力による小回路格納手段、12…論理照合実行手段
(第2)、13…論理照合結果格納手段
DESCRIPTION OF SYMBOLS 1 ... Logic circuit storage means (1st), 2 ... Logic circuit storage means (2nd), 3 ... Same name circuit element extraction means, 4 ... Same name circuit element storage means, 5 ... Small circuit extraction means, 6 ... Small circuit storage Means 7 ... Logical collation execution means (first), 8 ... Logical collation result storage means, 9 ... Logical collation result determination means, 10 ... Small circuit creation means (small circuit regeneration means) by inversion input, 11 ... Inversion input 12 ... Logical collation executing means (second), 13 ... Logical collation result storage means

フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 17/50 664 Continuation of the front page (58) Field surveyed (Int.Cl. 7 , DB name) G06F 17/50 664

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 論理照合の対象となる修正前、後のそれ
ぞれの論理回路が格納される第1、第2の論理回路格納
手段と、前記第1、第2の論理回路格納手段に格納され
ている論理回路から同名の回路素子を抽出し、該同名の
回路素子を切り口として前記第1、第2の論理回路格納
手段に格納されている論理回路から小回路を出力方向か
ら抽出する同名回路素子抽出手段と、前記抽出された小
回路のそれぞれに対して論理照合を実行する第1の論理
照合実行手段と、該第1の論理照合手段による論理照合
の結果、反転論理による論理不一致があれば、該当する
小回路を逐次小回路再生成手段に渡し、反転論理による
論理不一致がなければ処理を終了する論理照合結果判定
手段と、反転論理による論理不一致となった小回路を作
成する際の切り口となった同名回路素子の中から、入力
方向の同名回路素子の入力信号に接続している小回路の
論理照合結果を参照し、その結果が反転論理による論理
不一致ならば反転入力信号とし、論理一致ならば正常入
力信号とした同名回路素子の論理を反転論理による論理
不一致となった修正後の小回路に接続した小回路と、同
名回路素子の入力をすべて正常入力信号として修正前の
小回路に接続した小回路を新たに生成する小回路再生成
手段と、該小回路再生成手段により再生成された小回路
のそれぞれに対し論理照合を行う第2の論理照合実行手
段とを有することを特徴とする論理照合装置。
Claims: 1. Before and after correction to be subjected to logical comparison
First and second logic circuit storage where respective logic circuits are stored
Means stored in the first and second logic circuit storage means.
Circuit element of the same name is extracted from the logic circuit
The first and second logic circuits are stored by using a circuit element as a cut.
From the logic circuit stored in the means to the output direction of the small circuit
Means for extracting circuit element having the same name
A first logic that performs a logic match on each of the circuits
Matching execution means and logical matching by the first logic matching means
As a result, if there is a logic mismatch due to inversion logic,
The small circuit is sequentially passed to the small circuit regenerating means, and the logic is inverted.
If there is no logical mismatch, terminate the process.
And a small circuit whose logic is inconsistent due to inverted logic.
Input from the circuit element of the same name
Of the small circuit connected to the input signal of the circuit element of the same name in the direction
Refers to the logical collation result, and the result is the logic
If they do not match, use the inverted input signal.
The logic of the same name circuit element as the force signal is inverted logic.
The small circuit connected to the corrected small circuit
All the input of the name circuit element as a normal input signal before correction
Small circuit regeneration that newly generates a small circuit connected to the small circuit
Means and a small circuit regenerated by the small circuit regenerating means
Of the second logical matching to perform logical matching for each of
A logical matching device comprising:
JP08252799A 1999-03-25 1999-03-25 Logical collator Expired - Fee Related JP3257535B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP08252799A JP3257535B2 (en) 1999-03-25 1999-03-25 Logical collator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP08252799A JP3257535B2 (en) 1999-03-25 1999-03-25 Logical collator

Publications (2)

Publication Number Publication Date
JP2000276507A JP2000276507A (en) 2000-10-06
JP3257535B2 true JP3257535B2 (en) 2002-02-18

Family

ID=13776999

Family Applications (1)

Application Number Title Priority Date Filing Date
JP08252799A Expired - Fee Related JP3257535B2 (en) 1999-03-25 1999-03-25 Logical collator

Country Status (1)

Country Link
JP (1) JP3257535B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101511604B1 (en) 2013-02-26 2015-04-14 한국항공우주산업 주식회사 Automatic Generating Device for a Circuit Test Program of Harness Drawings and Controlling Method for the Same

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101511604B1 (en) 2013-02-26 2015-04-14 한국항공우주산업 주식회사 Automatic Generating Device for a Circuit Test Program of Harness Drawings and Controlling Method for the Same

Also Published As

Publication number Publication date
JP2000276507A (en) 2000-10-06

Similar Documents

Publication Publication Date Title
EP3678346B1 (en) Blockchain smart contract verification method and apparatus, and storage medium
US5243538A (en) Comparison and verification system for logic circuits and method thereof
JP3257535B2 (en) Logical collator
CN102662630A (en) Code generation method
US6637009B2 (en) Optimization of a logic circuit having a hierarchical structure
CN116542191B (en) Logic correction method, device, equipment and storage medium
JP2001060240A (en) Format correcting method and data converting method
JP2746159B2 (en) Circuit division result collation device
JPH1021066A (en) Automatic program generating method
JPH05151309A (en) Optimizing method for logic circuit
JP2839574B2 (en) Matching method for logic circuits containing indefinite values
JPH09251483A (en) Cell library production method
JPH06168269A (en) Database system
JPH1097561A (en) Automatic diagnostic logic generation system
JP2850936B2 (en) Database update method
CN112988349A (en) Interrupt stack processing method, printing method and receiver supporting eCos system
JP2003015884A (en) Device and program for checking duplicate definition
JPS6041772B2 (en) Parity creation circuit
JPS635473A (en) Rewiring processing system
JPH0283748A (en) Method and device for checking microprogram
JP2000231477A (en) System and program for program execution and recording medium where program execution program is recorded
JPH02212943A (en) Control system for maintenance tool of software and firmware
JPS63206967A (en) Code error correcting device
JPS60101646A (en) Interruption processing method
JPS63216150A (en) Storage device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20011106

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

Free format text: PAYMENT UNTIL: 20071207

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20081207

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20091207

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20091207

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20101207

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees