JP2806459B2 - A logic simulation device that can evaluate flip-flops - Google Patents

A logic simulation device that can evaluate flip-flops

Info

Publication number
JP2806459B2
JP2806459B2 JP4094236A JP9423692A JP2806459B2 JP 2806459 B2 JP2806459 B2 JP 2806459B2 JP 4094236 A JP4094236 A JP 4094236A JP 9423692 A JP9423692 A JP 9423692A JP 2806459 B2 JP2806459 B2 JP 2806459B2
Authority
JP
Japan
Prior art keywords
register
evaluation
logic
value
circuit
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
JP4094236A
Other languages
Japanese (ja)
Other versions
JPH05290123A (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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP4094236A priority Critical patent/JP2806459B2/en
Publication of JPH05290123A publication Critical patent/JPH05290123A/en
Application granted granted Critical
Publication of JP2806459B2 publication Critical patent/JP2806459B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】近年、計算機などの論理回路装置
の設計において、開発品質の向上・設計期間の短縮など
にともない、論理シミュレーション・システムの重要性
が認識されており、その高速化が常に望まれている。こ
のため、様々な手法が考案されているが、過去、基本的
な設計単位として使われてきたAND/OR等の基本論
理素子の中にフリップフロップ、ラッチ、メモリ(RA
M,ROMなど)等のように内部状態を有する論理素子
(以下FF回路と称す)が基本論理素子として論理回路
の設計に使われるようになっていながら、シミュレーシ
ョンにおいて、FF回路の評価は特殊処理として、扱わ
れているのが現状である。
In recent years, the importance of a logic simulation system has been recognized in the design of logic circuit devices such as computers with the improvement of development quality and shortening of the design period. Is desired. For this reason, various methods have been devised, but a flip-flop, a latch, and a memory (RA) are included in basic logic elements such as AND / OR used as basic design units in the past.
Although a logic element having an internal state (hereinafter referred to as an FF circuit) such as an M or a ROM is used as a basic logic element in the design of a logic circuit, the evaluation of the FF circuit is performed by a special process in the simulation. At present.

【0002】本発明は、論理回路のシミュレーションに
おいて、上記のようなFFを有する回路の動作を模擬す
ることができる、フリップフロップが評価可能な論理シ
ミュレーション装置に関する。
[0002] The present invention relates to a logic simulation apparatus capable of simulating the operation of a circuit having the above-described FF in a logic circuit simulation and capable of evaluating a flip-flop.

【0003】[0003]

【従来の技術】論理素子のシミュレーションにおいて、
その対象となる論理素子には、論理素子への入力が決ま
れば常に一種類の出力値が定まる通常の論理素子(例え
ば、AND/OR素子等、以下このような論理素子を通
常論理素子と称す)と、論理素子の入力の値だけでな
く、論理素子の内部状態の値をも考慮しなければならな
いFF回路がある。
2. Description of the Related Art In a simulation of a logic element,
The target logical element is a normal logical element (for example, such a logical element such as an AND / OR element or the like) for which one type of output value is always determined when an input to the logical element is determined. ), And an FF circuit in which not only the value of the input of the logic element but also the value of the internal state of the logic element must be considered.

【0004】上記FF回路を評価するため、従来、次の
手法が用いられていた。 通常論理素子を評価する論理シミュレーション装置
を用いた、FF回路の評価。一般に、FF回路はフィー
ドバックを有する通常論理素子の組み合わせにより表現
することができる。したがって、FF回路を上記のよう
に、通常論理素子からなる基本論理素子に展開すれば、
通常論理素子を評価する論理シミュレーション装置によ
り評価することができる。
Conventionally, the following method has been used to evaluate the above FF circuit. Evaluation of FF circuits using a logic simulation device for evaluating normal logic elements. Generally, an FF circuit can be represented by a combination of normal logic elements having feedback. Therefore, if the FF circuit is expanded to a basic logic element composed of a normal logic element as described above,
It can be evaluated by a logic simulation device for evaluating a normal logic element.

【0005】図4は従来の上記した通常論理素子(例え
ば、AND/OR素子など)を評価する論理シミュレー
ション装置を示す図であり、同図において、311,3
12,314,315,317はレジスタであり、レジ
スタ311は論理素子の属性を保持するレジスタ、レジ
スタ312は論理素子への外部入力を保持するレジス
タ、レジスタ314は論理演算結果値を保持するレジス
タ、レジスタ315は評価前の値を保持するレジスタ、
レジスタ317は評価結果を保持するレジスタであり、
また、313は演算機構、316は評価機構である。
FIG. 4 is a diagram showing a conventional logic simulation apparatus for evaluating the above-described ordinary logic elements (eg, AND / OR elements). In FIG.
12, 314, 315, and 317 are registers; a register 311 is a register that holds an attribute of a logical element; a register 312 is a register that holds an external input to the logical element; a register 314 is a register that holds a logical operation result value; A register 315 for holding a value before evaluation;
The register 317 is a register for holding the evaluation result.
Reference numeral 313 is an arithmetic mechanism, and 316 is an evaluation mechanism.

【0006】同図において、通常論理素子を評価する場
合には、レジスタ311より演算機構313に論理素子
の属性(例えば、AND素子、0R素子等)を入力する
とともに、レジスタ312より外部入力(例えば、
「1」,「0」など)を入力する。演算機構313は、
例えば、真理値表、ワイヤード・ロジツク、ソフトウェ
アなどにより、レジスタ311より与えられる論理素子
の属性およびレジスタ312より与えられる外部入力値
に基づき、論理演算結果を求める。
In FIG. 1, when evaluating a normal logic element, an attribute (eg, an AND element, a 0R element, etc.) of the logic element is input from a register 311 to an operation mechanism 313, and an external input (eg, an AND element) is input from a register 312. ,
"1", "0", etc.). The arithmetic mechanism 313 includes:
For example, a logical operation result is obtained by a truth table, wired logic, software, or the like, based on the attribute of the logic element provided from the register 311 and the external input value provided from the register 312.

【0007】演算機構313により演算された論理演算
結果はレジスタ314に保持され、評価機構316にお
いて、レジスタ315に保持された評価前の値と比較さ
れる。レジスタ314に保持された論理演算結果がレジ
スタ315に保持されている評価前の値と異なる場合に
は、評価機構316はイベント・データをレジスタ31
7へ出力するとともに、論理演算結果は、次にこの論理
素子を評価する時の評価前の値として、レジスタ315
に保持される。
[0007] The logical operation result calculated by the operation mechanism 313 is held in the register 314, and is compared in the evaluation mechanism 316 with the value before evaluation held in the register 315. If the logical operation result held in the register 314 is different from the value before evaluation held in the register 315, the evaluation mechanism 316 stores the event data in the register 31.
7 and the result of the logical operation is stored in the register 315 as a value before the next evaluation of this logical element.
Is held.

【0008】また、レジスタ314に保持された論理演
算結果がレジスタ315に保持されている評価前の値と
同じ場合には、イベント・データは出力されず、レジス
タ315、レジスタ317の値は前の値を保持する。図
4の論理シミュレーション装置を用いて、FF回路を評
価する場合には、例えば、図5の(a)に示すようなR
SタイプのFF回路は同図(b)に示すように、NAN
D素子を用いて表現することができるから、同図(b)
に示すNAND素子からなる論理回路について、図4の
論理シミュレーション装置を用いて評価すればFF回路
の評価をすることができる。 通常論理素子を評価する演算機構に加えてFF回路
を評価する専用の演算機構を設けたシミュレーション装
置によるFF回路の評価。
If the result of the logical operation held in the register 314 is the same as the value before evaluation held in the register 315, no event data is output, and the values of the registers 315 and 317 are changed to the previous values. Hold the value. When an FF circuit is evaluated using the logic simulation apparatus of FIG. 4, for example, R as shown in FIG.
The S type FF circuit has a NAN as shown in FIG.
Since it can be expressed using the D element, FIG.
The FF circuit can be evaluated by evaluating the logic circuit composed of the NAND elements shown in FIG. 1 using the logic simulation apparatus shown in FIG. Evaluation of an FF circuit by a simulation apparatus provided with a dedicated arithmetic mechanism for evaluating an FF circuit in addition to an arithmetic mechanism for evaluating a normal logic element.

【0009】図6はFF回路を評価するFF回路専用演
算機構を設けた論理シミュレーション装置の一例を示す
図であり、同図において、411,412,414,4
15,417,418,420はレジスタであり、レジ
スタ411は論理素子の属性を保持するレジスタ、レジ
スタ412は論理素子への外部入力を保持するレジス
タ、レジスタ414は論理演算結果値を保持するレジス
タ、レジスタ415は評価前の値を保持するレジスタ、
レジスタ417は評価結果を保持するレジスタ、レジス
タ418は内部状態値を保持するレジスタ、レジスタ4
20はFF回路の論理演算結果を保持するレジスタであ
り、また、413は演算機構、416は評価機構、41
9はFF回路専用演算機構、421はセレクタである。
FIG. 6 is a diagram showing an example of a logic simulation apparatus provided with an operation mechanism dedicated to the FF circuit for evaluating the FF circuit. In FIG. 6, 411, 412, 414, 4
15, 417, 418, and 420 are registers; a register 411 is a register for holding an attribute of a logical element; a register 412 is a register for holding an external input to the logical element; a register 414 is a register for holding a logical operation result value; A register 415 holds a value before the evaluation,
A register 417 is a register for holding an evaluation result, a register 418 is a register for holding an internal state value, and a register 4
Reference numeral 20 denotes a register for holding a logical operation result of the FF circuit; 413, an operation mechanism; 416, an evaluation mechanism;
Reference numeral 9 denotes an operation mechanism dedicated to the FF circuit, and reference numeral 421 denotes a selector.

【0010】同図において、論理素子の属性を保持する
レジスタ411、論理素子への外部入力を保持するレジ
スタ412、演算機構413、論理演算結果値を保持す
るレジスタ414、評価前の値を保持するレジスタ41
5、評価機構416、評価結果を保持するレジスタ41
7からなる部分は図4に示したシミュレーション装置と
同一であり、この例の場合には、図4のシミュレーショ
ン装置に加えて、内部状態値を保持するレジスタ41
8、FF回路専用演算機構419、FF素子の論理演算
結果を保持するレジスタ420、セレクタ421が付加
されている。
In FIG. 1, a register 411 for holding an attribute of a logic element, a register 412 for holding an external input to the logic element, an operation mechanism 413, a register 414 for holding a logical operation result value, and a value before evaluation are held. Register 41
5, evaluation mechanism 416, register 41 for holding the evaluation result
7 is the same as that of the simulation apparatus shown in FIG. 4. In this example, in addition to the simulation apparatus shown in FIG.
8, an operation mechanism 419 for exclusive use of the FF circuit, a register 420 for holding a logical operation result of the FF element, and a selector 421 are added.

【0011】図6において、評価すべき論理素子属性が
FF素子であることが、レジスタ411より入力され、
また、レジスタ412よりFF回路への外部入力値が入
力されると、FF回路専用演算機構419はFF回路の
内部状態値を記憶しているメモリ418より、FF回路
の内部状態値を読み出す。次に、FF回路専用演算機構
419は、例えば、真理値表、ワイヤード・ロジツク、
ソフトウェアなどにより、メモリ418に記憶されてい
る内部状態値およびレジスタ312より与えられる外部
入力値に基づき、論理演算結果を求め、論理演算結果を
レジスタ420に与える。
In FIG. 6, the fact that the logical element attribute to be evaluated is an FF element is input from a register 411,
When an external input value to the FF circuit is input from the register 412, the dedicated FF circuit operation mechanism 419 reads the internal state value of the FF circuit from the memory 418 that stores the internal state value of the FF circuit. Next, the FF circuit-dedicated operation mechanism 419 includes, for example, a truth table, wired logic,
Based on the internal state value stored in the memory 418 and the external input value provided from the register 312, a logical operation result is obtained by software or the like, and the logical operation result is provided to the register 420.

【0012】セレクタ421は論理素子の属性がFF回
路の場合には、レジスタ420側に切り換わっており、
レジスタ420に保持された論理演算結果はセレクタ4
21を介して評価機構416に与えられ、メモリ415
より読み出された評価前の値と比較される。そして、評
価前の値と論理演算結果が異なると、イベント・データ
がレジスタ417に出力されるとともに、論理演算結果
がメモリ415に記憶される。
When the attribute of the logic element is the FF circuit, the selector 421 is switched to the register 420 side.
The logical operation result held in the register 420 is
21 to the evaluator 416 and the memory 415
This is compared with the value before the evaluation read out. If the value before the evaluation is different from the logical operation result, the event data is output to the register 417 and the logical operation result is stored in the memory 415.

【0013】[0013]

【発明が解決しようとする課題】上記した従来のFF回
路の評価方式において、に示した評価方式は、シミュ
レーションの対象となる論理回路をシミュレーションの
ために通常の論理素子のみで表現する必要があることか
ら、特殊なシミュレーション・モデルの作成が必要にな
るとともに、評価すべき論理素子の数が増えることにな
るので、シミュレーションの高速化を阻害する一因とな
る。
In the above-described conventional FF circuit evaluation method, the evaluation method described in (1) requires that a logic circuit to be simulated be expressed only by ordinary logic elements for simulation. Therefore, a special simulation model needs to be created, and the number of logic elements to be evaluated increases, which hinders the speeding up of the simulation.

【0014】また、の示した評価方式は、FF回路を
通常の論理素子に展開する必要はなく、シミュレーショ
ン対象となる論理回路の論理素子数を増やすことなくシ
ミュレーション・モデルを作成することができるが、通
常の論理素子を評価する論理演算機構に加えて、FF回
路評価専用の特殊な論理演算機構をシミュレーション装
置に組み込む必要がある。
In the evaluation method described above, it is not necessary to expand the FF circuit into normal logic elements, and a simulation model can be created without increasing the number of logic elements of a logic circuit to be simulated. In addition to a logical operation mechanism for evaluating a normal logic element, a special logical operation mechanism dedicated to FF circuit evaluation needs to be incorporated in the simulation device.

【0015】しかも、このFF回路評価専用の特殊な論
理演算機構は、内部状態を記憶する機構を別途必要と
し、FF回路の入力だけでなく、保持された内部状態の
値を制御/利用することでFF回路の論理演算を行う機
構を備えているため、シミュレーション装置が巨大化、
複雑化する原因となる。本発明は上記した従来技術の欠
点を改善するためになされたものであって、論理素子の
評価前の値を保持する機構を利用することにより、FF
回路の演算機構を通常の論理素子の評価機構と同様の装
置で実現することができ、構成が簡単で、かつ、高速な
シミュレーションを行うことができるフリップフロップ
が評価可能な論理シミュレーション装置を提供すること
を目的とする。
In addition, the special logic operation mechanism dedicated to the evaluation of the FF circuit requires a mechanism for storing the internal state separately, and controls / uses not only the input of the FF circuit but also the value of the held internal state. FF circuit has a mechanism to perform logical operation, so the simulation device becomes huge,
This can be complicated. SUMMARY OF THE INVENTION The present invention has been made to improve the above-described disadvantages of the related art.
Provided is a logic simulation device capable of realizing a circuit operation mechanism with a device similar to a normal logic element evaluation mechanism, having a simple configuration, and capable of evaluating a flip-flop capable of performing high-speed simulation. The purpose is to:

【0016】[0016]

【課題を解決するための手段】図1(a) および(b) は本
発明の原理を示す図であり、同図(a) は基本構成図、同
図(b) は同図(a) における評価前の論理値を保持するレ
ジスタ5 の分割の態様を示す図である。本発明は上記課
題を解決するため、図1(a) に示すように構成したもの
であり、論理素子の属性1と外部入力値2に基づき論理
演算結果4を求める演算機構3と、評価の対象となって
いる論理素子の評価前の論理値を保持するレジスタ5
と、演算機構3により求めた論理演算結果4とレジスタ
5に保持された評価前の論理値とを比較する評価機構6
とを備え、演算機構3により求めた論理演算結果4とレ
ジスタ5に保持された評価前の論理値とを評価機構6に
おいて比較し、両者が不一致の場合にイベント・データ
を出力するように構成した論理シミュレーション装置に
おいて、フリップフロップ、ラッチ、メモリ等の内部状
態を有する論理素子を評価するにあたり、論理素子の評
価前の論理値を保持するレジスタ5のnビットを図1
(b) に示すように、kビットとmビット(n≧k+m)
に2分割し、その一方に内部状態を有する論理素子の内
部状態値を保持させるとともに、残りの一方に評価の対
象となっている論理素子の評価前の論理値を保持させ、
上記レジスタ5に保持された内部状態値を演算機構3に
外部入力信号として入力するように構成したものであ
る。
FIGS. 1 (a) and 1 (b) are diagrams showing the principle of the present invention. FIG. 1 (a) is a basic configuration diagram, and FIG. 1 (b) is a diagram showing the same principle. FIG. 6 is a diagram showing a mode of division of a register 5 for holding a logical value before evaluation in FIG. In order to solve the above-mentioned problem, the present invention is configured as shown in FIG. 1 (a), and comprises an operation mechanism 3 for obtaining a logical operation result 4 based on an attribute 1 of a logical element and an external input value 2; Register 5 that holds the logical value of the target logical element before evaluation
And an evaluation mechanism 6 for comparing the logical operation result 4 obtained by the operation mechanism 3 with the logical value before evaluation held in the register 5
The evaluation unit 6 compares the logical operation result 4 obtained by the operation unit 3 with the logical value before evaluation held in the register 5, and outputs event data if they do not match. When evaluating a logic element having an internal state, such as a flip-flop, a latch, or a memory, the n-bit of the register 5 that holds the logic value before the evaluation of the logic element is evaluated in FIG.
As shown in (b), k bits and m bits (n ≧ k + m)
Divided into two, one of which holds an internal state value of a logic element having an internal state, and the other of which holds a logic value before evaluation of a logic element to be evaluated,
The internal state value held in the register 5 is input to the operation mechanism 3 as an external input signal.

【0017】[0017]

【作用】演算機構3に、論理素子の属性1および外部入
力値2が与えられると、演算機構3はレジスタ5に保持
されているnビットのデータの内、FF回路の内部状態
値を表すkもしくはmビットを読み出し、読み出された
内部状態値、論理素子の属性1および外部入力値2に基
づき論理演算を行い論理演算結果4を出力する。
When the attribute 1 of the logic element and the external input value 2 are given to the arithmetic unit 3, the arithmetic unit 3 sets the k representing the internal state value of the FF circuit among the n-bit data held in the register 5. Alternatively, m bits are read, a logical operation is performed based on the read internal state value, the attribute 1 of the logical element, and the external input value 2, and a logical operation result 4 is output.

【0018】一方、レジスタ5に記憶されたnビットの
データの内、FF回路の評価前の値であるmもしくはk
ビットのデータがレジスタ5より読み出され、評価機構
6において、論理演算結果4と比較される。そして、論
理演算結果4がレジスタ5に保持されている評価前の値
と異なる場合には、評価機構6はイベント・データを出
力するとともに、論理演算結果4を、次にこの論理素子
を評価する時の評価前の値として、レジスタ5に保持さ
せる。
On the other hand, of the n-bit data stored in the register 5, m or k, which are values before the evaluation of the FF circuit,
The bit data is read from the register 5 and compared with the logical operation result 4 in the evaluation mechanism 6. If the logical operation result 4 is different from the pre-evaluation value held in the register 5, the evaluation mechanism 6 outputs the event data, and evaluates the logical operation result 4 and then this logical element. The value is stored in the register 5 as the value before the evaluation.

【0019】[0019]

【実施例】図2は本発明の1実施例を示す図であり、同
図において、21,22,24,27はレジスタであ
り、レジスタ21は論理素子の属性を保持するレジス
タ、レジスタ22は論理素子への外部入力を保持するレ
ジスタ、レジスタ24は論理演算結果値を保持するレジ
スタ、レジスタ25は評価前の値およびFF回路の評価
における内部状態値を保持するレジスタ、レジスタ27
は評価結果を保持するレジスタであり、また、23は演
算機構、23aは前処理/アドレス生成機構、23bは
真理値表を格納したメモリ、26は評価機構である。
FIG. 2 is a diagram showing an embodiment of the present invention. In FIG. 2, reference numerals 21, 22, 24 and 27 are registers, a register 21 is a register for holding the attribute of a logical element, and a register 22 is a register. A register holding an external input to the logic element, a register 24 is a register holding a logical operation result value, a register 25 is a register holding a value before evaluation and an internal state value in evaluation of the FF circuit, and a register 27.
Is a register for holding the evaluation result, 23 is an operation mechanism, 23a is a preprocessing / address generation mechanism, 23b is a memory storing a truth table, and 26 is an evaluation mechanism.

【0020】同図において、論理素子の属性を記憶する
レジスタ21は25ビットのレジスタであり、その内、
22ビットで論理素子の属性を表し、残り2ビットはパ
リティーとして用いられる。外部入力を保持するレジス
タ22は18ビットのレジスタであり、4ビットで1つ
の外部入力信号を表し、全部で4つの外部入力信号を保
持している。すなわち、外部入力信号に16ビットを用
い、残り2ビットはパリティーとして用いられる。
In FIG. 1, a register 21 for storing the attribute of a logic element is a 25-bit register.
22 bits represent the attribute of the logic element, and the remaining 2 bits are used as parity. The register 22 for holding the external input is an 18-bit register, and one bit of one external input signal is represented by four bits, and four external input signals are held in all. That is, 16 bits are used for the external input signal, and the remaining 2 bits are used as parity.

【0021】また、1つの外部入力信号を表すために、
「0」、「1」、「X」、「Z」の4状態とその強弱の
全部で8状態、すなわち、4ビットを必要とする。ここ
で、「X」はアンノウンを表し、「Z」はハイ・インピ
ーダンス状態を表す。演算機構23における前処理/ア
ドレス生成機構23aは入力データの反転処理、データ
の整理等の前処理を行うとともに、レジスタ21に保持
された論理素子の属性情報およびレジスタ22に保持さ
れた外部入力情報に基づき真理値表23bのアドレスを
生成する手段であり、また、真理値表23bには、各論
理素子について、内部状態値、外部入力信号に対する論
理演算結果が記憶されている。
In order to represent one external input signal,
It requires four states “0”, “1”, “X”, and “Z” and a total of eight strengths, that is, four bits. Here, “X” represents unknown, and “Z” represents a high impedance state. The pre-processing / address generation mechanism 23a in the arithmetic mechanism 23 performs pre-processing such as inversion processing of input data, rearrangement of data, and the like, and attribute information of the logic element held in the register 21 and external input information held in the register 22. This is a means for generating an address of the truth table 23b based on the above, and the truth table 23b stores, for each logic element, an internal state value and a logical operation result with respect to an external input signal.

【0022】評価前の値を保持するレジスタ25は4ビ
ットのレジスタであり、通常の論理素子の論理演算にお
いては、上記したように「0」、「1」、「X」、
「Z」の4状態とその強弱の全部で8状態、すなわち、
4ビットを用いて、評価前の値を保持し、また、FF回
路の論理演算の場合には、強弱信号を保持せず、4ビッ
トの内の2ビットで評価前の値を保持し(「0」、
「1」、「X」、「Z」の状態のみ保持)、残りの2ビ
ットでFF回路の内部状態を保持する。
The register 25 for holding the value before the evaluation is a 4-bit register. In a logical operation of a normal logic element, as described above, "0", "1", "X",
There are four states of "Z" and eight states in total, that is,
The value before the evaluation is held by using 4 bits, and in the case of the logical operation of the FF circuit, the value before the evaluation is held by 2 bits of the 4 bits without holding the strength signal ("" 0 ",
Only the states of "1", "X", and "Z" are held), and the remaining two bits hold the internal state of the FF circuit.

【0023】図3は評価前の値を保持するレジスタ25
における、データの分割の態様を示す図であり、同図に
示すように、レジスタ25は4ビットのレジスタであ
り、通常の論理素子の評価を行う場合には、同図(a)
に示すように、4ビットにより1信号を表し、また、F
F回路を評価する場合には、同図(b)に示すように、
A部分で評価前の値を保持し、B部分でFF回路の内部
状態を保持する。
FIG. 3 shows a register 25 for holding a value before evaluation.
FIG. 3 is a diagram showing a mode of data division in FIG. 3. As shown in FIG. 4, the register 25 is a 4-bit register, and when a normal logic element is evaluated, FIG.
As shown in FIG. 7, one signal is represented by four bits, and F
When evaluating the F circuit, as shown in FIG.
The value before evaluation is held in part A, and the internal state of the FF circuit is held in part B.

【0024】すなわち、FF回路においては、通常、外
部入力信号の強弱を示す信号は必要ないことから、評価
前の値を保持するレジスタ25において、評価前の値と
して4ビットの内2ビットは必要はなく、本実施例にお
いては、この2ビットを用いて、FF回路の内部状態を
保持する。評価機構26は従来例の図4、図6において
説明したものと同様、レジスタ25に保持された評価前
の値とレジスタ24に保持された論理演算結果を比較す
る手段であって、2つの入力値が異なる場合には、イベ
ント・データをレジスタ27に出力するとともに、評価
前の値を保持するレジスタ25の値を論理演算結果によ
り更新する。
That is, since a signal indicating the strength of an external input signal is not normally required in an FF circuit, two bits out of four bits are required as a value before evaluation in a register 25 for holding a value before evaluation. However, in this embodiment, the internal state of the FF circuit is held using these two bits. The evaluation mechanism 26 is a means for comparing the value before evaluation held in the register 25 with the result of the logical operation held in the register 24, as described with reference to FIGS. If the values are different, the event data is output to the register 27, and the value of the register 25 holding the value before the evaluation is updated with the result of the logical operation.

【0025】次に図2の実施例の動作を説明する。通常
論理素子を評価する場合、演算機構23に、論理素子の
属性を記憶するレジスタ21より論理素子の属性が与え
られ、また、外部入力を保持するレジスタ22より最大
4の外部入力信号が与えられると、演算機構23におけ
る前処理/アドレス生成機構23aは、外部入力信号の
順序を並べ変え、信号の反転処理等の前処理を行った
後、論理素子の属性情報および外部入力信号に基づき真
理値表23bのアドレスを生成する。
Next, the operation of the embodiment shown in FIG. 2 will be described. When evaluating a normal logic element, the arithmetic mechanism 23 is provided with the attribute of the logic element from the register 21 storing the attribute of the logic element, and is supplied with up to four external input signals from the register 22 holding the external input. And the preprocessing / address generation mechanism 23a in the arithmetic mechanism 23 rearranges the order of the external input signal, performs preprocessing such as signal inversion processing, and then performs a truth value based on the attribute information of the logic element and the external input signal. Generate the address in Table 23b.

【0026】真理値表23bには、前記したように、各
論理素子について、内部状態値、外部入力信号に対する
論理演算結果が記憶されているので、前処理/アドレス
生成機構23aより論理素子の属性情報および外部入力
信号に対応したアドレスが入力されると、そのアドレス
に対応した4ビットの論理演算結果を出力する。真理値
表23bにより求められた論理演算結果は、従来例にお
いて説明したのと同様、レジスタ24に保持され、評価
機構26において、レジスタ25に保持された評価前の
値と比較される。
As described above, the truth table 23b stores, for each logic element, a logical operation result with respect to an internal state value and an external input signal. When an address corresponding to information and an external input signal is input, a 4-bit logical operation result corresponding to the address is output. The logical operation result obtained from the truth table 23b is held in the register 24 and compared with the value before evaluation held in the register 25 in the evaluation mechanism 26, as described in the conventional example.

【0027】レジスタ24に保持された論理演算結果が
レジスタ25に保持されている評価前の値と異なる場合
には、評価機構26はイベント・データをレジスタ27
へ出力するとともに、論理演算結果は、次にこの論理素
子を評価する時の評価前の値として、レジスタ25に保
持される。また、図2のシミュレーション装置により,
FF回路を評価する場合には、演算機構23に、論理素
子の属性(FF回路の場合にはその属性)および外部入
力信号が与えられると、演算機構23における前処理/
アドレス生成機構23aは、外部入力信号の順序を並べ
変え、信号の反転処理等の前処理を行う。
If the result of the logical operation held in the register 24 is different from the value before evaluation held in the register 25, the evaluation mechanism 26 stores the event data in the register 27.
And the result of the logical operation is held in the register 25 as a value before the next evaluation of the logical element. In addition, by the simulation device of FIG.
When the FF circuit is evaluated, when the attribute of the logic element (the attribute in the case of the FF circuit) and the external input signal are given to the arithmetic unit 23, the preprocessing /
The address generation mechanism 23a rearranges the order of the external input signal and performs preprocessing such as signal inversion.

【0028】ついで、前処理/アドレス生成機構23a
は、レジスタ25に保持されている4ビットのデータの
内、FF回路の内部状態値の2ビットを読み出し、読み
出された内部状態値、レジスタ21、レジスタ22に保
持されている論理素子の属性情報および外部入力信号に
基づき真理値表23bのアドレスを生成する。真理値表
23bには、前記したように、各論理素子について、内
部状態値、外部入力信号に対する論理演算結果が記憶さ
れているので、前処理/アドレス生成機構23aよりア
ドレスが入力されると、そのアドレスに対応した論理演
算結果を出力し、論理演算結果はレジスタ24に保持さ
れる。
Next, the preprocessing / address generation mechanism 23a
Reads out 2 bits of the internal state value of the FF circuit from the 4-bit data held in the register 25, and reads the read internal state value and the attribute of the logical element held in the registers 21 and 22. The address of the truth table 23b is generated based on the information and the external input signal. As described above, since the truth table 23b stores the logical operation result for the internal state value and the external input signal for each logic element, when an address is input from the preprocessing / address generation mechanism 23a, The logical operation result corresponding to the address is output, and the logical operation result is held in the register 24.

【0029】一方、レジスタ25に記憶された4ビット
のデータの内、FF回路の評価前の値である2ビットの
データがレジスタ25より読み出され、評価機構26に
おいて、レジスタ24に保持された論理演算結果と比較
される。そして、通常論理素子の評価の場合と同様、レ
ジスタ24に保持された論理演算結果がレジスタ25に
保持されている評価前の値と異なる場合には、評価機構
26はイベント・データをレジスタ27へ出力するとと
もに、論理演算結果は、次にこの論理素子を評価する時
の評価前の値として、レジスタ25に保持される。
On the other hand, of the 4-bit data stored in the register 25, 2-bit data, which is the value before the evaluation of the FF circuit, is read out from the register 25 and held in the register 24 in the evaluation mechanism 26. This is compared with the result of the logical operation. When the result of the logical operation held in the register 24 is different from the value before the evaluation held in the register 25 as in the case of the evaluation of the normal logic element, the evaluation mechanism 26 sends the event data to the register 27. In addition to the output, the result of the logical operation is held in the register 25 as a value before the next evaluation of the logical element.

【0030】以上のように、本実施例においては、FF
回路を評価する場合には、FF回路の論理演算結果を2
ビットで表すとともに、FF回路の内部状態を2ビット
で表し、評価前の値を記憶する4ビットのレジスタ25
の内の2ビットをFF回路を評価する場合の内部状態値
の保持に用い、FF回路の論理演算を行うに際して、レ
ジスタ25に保持されたデータの内2ビットの内部状態
値を分離して演算機構23に外部入力として与えるよう
に構成したので、FF回路を通常論理素子に展開して評
価したり、FF回路専用の演算機構を設けることなく、
FF回路の評価を行うことができる。
As described above, in this embodiment, the FF
When evaluating a circuit, the result of the logical operation of the FF circuit should be 2
A 4-bit register 25 that represents the internal state of the FF circuit with 2 bits and stores the value before evaluation.
Are used to hold the internal state value when evaluating the FF circuit, and when performing the logical operation of the FF circuit, the two-bit internal state value of the data held in the register 25 is separated and calculated. Since the configuration is such that the input is given to the mechanism 23 as an external input, the FF circuit is developed into a normal logic element for evaluation, and without providing an arithmetic mechanism dedicated to the FF circuit,
The evaluation of the FF circuit can be performed.

【0031】なお、上記実施例においては、論理素子の
属性を記憶するレジスタ21に25ビットのレジスタ、
外部入力を保持するレジスタ22に18ビットのレジス
タを用い、通常論理素子の1外部入力を4ビット、FF
回路の内部状態値を2ビットで表す例を示したが、本発
明は上記実施例に限定されるものではなく、その必要に
応じて、任意のビット数とすることができる。
In the above embodiment, the register 21 for storing the attribute of the logic element is a 25-bit register,
An 18-bit register is used as the register 22 for holding the external input.
Although an example in which the internal state value of the circuit is represented by 2 bits has been described, the present invention is not limited to the above-described embodiment, and may have an arbitrary number of bits as needed.

【0032】また、上記実施例においては、論理演算結
果を求める手段として、真理値表を用いる例を示した
が、本発明は上記実施例に限定されるものではなく、そ
のた、ワイヤード・ロジック、ソフトウエアなどにより
論理演算結果を求めることもできる。
Further, in the above-described embodiment, an example in which a truth table is used as means for obtaining a logical operation result has been described. However, the present invention is not limited to the above-described embodiment, and a wired logic The result of the logical operation can be obtained by software or the like.

【0033】[0033]

【発明の効果】以上説明したことから明らかなように、
本発明においては、評価前の値を保持するレジスタを2
つに分割し、その1つにFF回路における内部状態値を
保持し、FF回路の評価において、上記内部状態値を演
算機構に入力して論理演算を行うようにしたので下記の
効果をうることができる。 FF回路をシミュレーションするにあたり、FF回
路専用の演算機構やFF回路の内部状態値のみを保持す
るメモリ等の機構をシミュレーション装置内に備えるこ
となくシミュレーション装置を構成することができ、装
置の構成を簡易化することができるとともに、その信頼
性の向上を図ることができる。 シミュレーションの対象となる回路内のFF回路を
通常論理素子に展開する必要がないので、シミュレーシ
ョン対象論理素子の数を増やすことなくシミュレーショ
ンをおこなうことができ、高速にシミュレーションを行
うことができる。
As is apparent from the above description,
In the present invention, the register holding the value before the evaluation is 2
Since the internal state value in the FF circuit is held in one of them and the above-mentioned internal state value is input to the operation mechanism in the evaluation of the FF circuit and the logical operation is performed, the following effects can be obtained. Can be. In simulating the FF circuit, the simulation apparatus can be configured without having a calculation mechanism dedicated to the FF circuit or a mechanism such as a memory that holds only the internal state value of the FF circuit in the simulation apparatus, thereby simplifying the configuration of the apparatus. And its reliability can be improved. Since it is not necessary to expand the FF circuit in the circuit to be simulated into a normal logic element, the simulation can be performed without increasing the number of simulated logic elements, and the simulation can be performed at high speed.

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

【図1】本発明の原理図である。FIG. 1 is a principle diagram of the present invention.

【図2】本発明の実施例を示す図である。FIG. 2 is a diagram showing an embodiment of the present invention.

【図3】評価前の論理値を保持するレジスタの分割の態
様を示す図である。
FIG. 3 is a diagram showing a mode of division of a register holding a logical value before evaluation.

【図4】第1の従来例を示す図である。FIG. 4 is a diagram showing a first conventional example.

【図5】FF回路を通常論理素子に展開した1例を示す
図である。
FIG. 5 is a diagram showing an example in which an FF circuit is developed into a normal logic element.

【図6】第2の従来例を示す図である。FIG. 6 is a diagram showing a second conventional example.

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

5,21,22,24,27 レジスタ 3,23 演算機構 23a 前処理/アドレス生成機
構 23b 真理値表を格納したメモ
リ 6,26 評価機構
5, 21, 22, 24, 27 Register 3, 23 Arithmetic unit 23a Preprocessing / address generation unit 23b Memory storing truth table 6,26 Evaluation unit

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 論理素子の属性(1) と外部入力値(2) に
基づき論理演算結果(4) を求める演算機構(3) と、 評価の対象となっている論理素子の評価前の論理値を保
持するレジスタ(5) と、 演算機構(3) により求めた論理演算結果(4) とレジスタ
(5) に保持された評価前の論理値とを比較する評価機構
(6) とを備え、 演算機構(3) により求めた論理演算結果(4) とレジスタ
(5) に保持された評価前の論理値とを評価機構(6) にお
いて比較し、両者が不一致の場合にイベント・データを
出力するように構成した論理シミュレーション装置にお
いて、 フリップフロップ、ラッチ、メモリ等の内部状態を有す
る論理素子を評価するにあたり、論理素子の評価前の論
理値を保持するレジスタ(5) を2分割し、その一方に内
部状態を有する論理素子の内部状態値を保持させるとと
もに、残りの一方に評価の対象となっている論理素子の
評価前の論理値を保持させ、上記レジスタ(5) に保持さ
れた内部状態値を演算機構(3) に外部入力信号として入
力することにより、内部状態値をもつ論理素子を評価す
るようにしたことを特徴とするフリップフロップが評価
可能な論理シミュレーション装置。
An operation mechanism (3) for obtaining a logical operation result (4) based on an attribute (1) of a logic element and an external input value (2), and a logic element before evaluation of a logic element to be evaluated. A register (5) that holds the value, a logical operation result (4) obtained by the arithmetic mechanism (3), and a register
Evaluation mechanism that compares the logical value before evaluation stored in (5)
(6), and the logical operation result (4) obtained by the operation mechanism (3) and the register
In the logic simulator configured to compare the logic value before evaluation held in (5) with the logic value before evaluation in the evaluation mechanism (6) and to output event data when the two do not match, the flip-flop, the latch, and the memory In evaluating a logic element having an internal state such as that described above, the register (5) for holding the logic value before the evaluation of the logic element is divided into two parts, and one of them is made to hold the internal state value of the logic element having the internal state. The other one holds the logical value of the logic element to be evaluated before the evaluation, and inputs the internal state value held in the register (5) to the arithmetic mechanism (3) as an external input signal. A logic simulation device capable of evaluating a flip-flop, wherein a logic element having an internal state value is evaluated.
JP4094236A 1992-04-14 1992-04-14 A logic simulation device that can evaluate flip-flops Expired - Fee Related JP2806459B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4094236A JP2806459B2 (en) 1992-04-14 1992-04-14 A logic simulation device that can evaluate flip-flops

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4094236A JP2806459B2 (en) 1992-04-14 1992-04-14 A logic simulation device that can evaluate flip-flops

Publications (2)

Publication Number Publication Date
JPH05290123A JPH05290123A (en) 1993-11-05
JP2806459B2 true JP2806459B2 (en) 1998-09-30

Family

ID=14104679

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4094236A Expired - Fee Related JP2806459B2 (en) 1992-04-14 1992-04-14 A logic simulation device that can evaluate flip-flops

Country Status (1)

Country Link
JP (1) JP2806459B2 (en)

Also Published As

Publication number Publication date
JPH05290123A (en) 1993-11-05

Similar Documents

Publication Publication Date Title
US4899273A (en) Circuit simulation method with clock event suppression for debugging LSI circuits
JPS5948424B2 (en) parallel computing system
JPS5916050A (en) Dynamic gate array
JPH05189518A (en) Method and apparatus for optimizing logic network
US5184308A (en) Fault simulation method
JP2752634B2 (en) Sorting device
JPH07177005A (en) Bit pattern detector circuit and bit pattern detecting method
JP2806459B2 (en) A logic simulation device that can evaluate flip-flops
US6789222B2 (en) Single-pass methods for generating test patterns for combinational circuits
JPS6141017B2 (en)
US4879675A (en) Parity generator circuit and method
Pomeranz et al. Test generation for path delay faults based on learning
JPH0836034A (en) Multiple-bit test pattern generating unit
JP2001155496A (en) Pattern generating method, pattern generator, and memory test device
JPS58166419A (en) One-chip microcomputer
US5467292A (en) Logical operation method employing parallel arithmetic unit
JP2924222B2 (en) Logic simulator
JPH06201779A (en) Test circuit
JPS60101643A (en) Data processor
JP2752800B2 (en) Bit error addition circuit
JP2729061B2 (en) Zero-delay operation processing method for simulation equipment
JP2839574B2 (en) Matching method for logic circuits containing indefinite values
JPH05346451A (en) Short circuit tester
JPS62195570A (en) Simulation processor for logic circuit
JP2000105780A (en) Logical simulation system

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: 19980707

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

Free format text: PAYMENT UNTIL: 20080724

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20090724

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees