JPH0566632B2 - - Google Patents
Info
- Publication number
- JPH0566632B2 JPH0566632B2 JP60080211A JP8021185A JPH0566632B2 JP H0566632 B2 JPH0566632 B2 JP H0566632B2 JP 60080211 A JP60080211 A JP 60080211A JP 8021185 A JP8021185 A JP 8021185A JP H0566632 B2 JPH0566632 B2 JP H0566632B2
- Authority
- JP
- Japan
- Prior art keywords
- flip
- time
- signal value
- logic circuit
- flop
- 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 - Lifetime
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/26—Functional testing
- G06F11/261—Functional testing by simulating additional hardware, e.g. fault simulation
Landscapes
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Description
【発明の詳細な説明】
〔発明の利用分野〕
本発明は、アンドゲート、オアゲートあるいは
フリツプフロツプなどの基本論理素子で実現され
るデイジタル論理回路のシミユレーシヨン方法に
関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Application of the Invention] The present invention relates to a method for simulating a digital logic circuit realized with basic logic elements such as an AND gate, an OR gate, or a flip-flop.
論理回路シミユレーシヨンは、製造前にデイジ
タル論理装置と等価な論理回路モデルを汎用目的
コンピユータ上に構築し、これが正しく動作する
か否かを確認することにある。従来、このような
論理回路シミユレーシヨンを実現する方法は、例
えば「シー・エーシーエム」(C・ACM)(12巻、
102〜110頁、1969年)に「エクスクルーシブ シ
ミユレーシヨン オブ アクテイビイテイ イン
デイジタル ネツトワーク」(Exclusive
Simulation of Activity in Digital Networks)
と題して開示されている。この方法によれば、論
理回路を構成する全ての基本論理素子の出力信号
値が詳細に計算できるが、フリツプフロツプのよ
うに、入力印加信号値の組合せで不確定値を出力
する状態が発生し、ある時間経過後に出力信号値
が確定する素子の場合、入力印加信号値の組合せ
によつては出力信号値がローレベル又はハイレベ
ルのいずれに確定するかは保証されず、また、こ
れらを逐一計算することは極めて困難である。
Logic circuit simulation involves constructing a logic circuit model equivalent to a digital logic device on a general-purpose computer before manufacturing, and checking whether it operates correctly. Conventionally, methods for realizing such logic circuit simulations have been described, for example, in "C.ACM" (Volume 12,
102-110, 1969) and ``Exclusive Simulation of Activities in Digital Networks'' (Exclusive
Simulation of Activity in Digital Networks)
It is published under the title. According to this method, the output signal values of all the basic logic elements constituting the logic circuit can be calculated in detail. In the case of an element whose output signal value is determined after a certain period of time has passed, it is not guaranteed whether the output signal value will be determined at low level or high level depending on the combination of input applied signal values, and these values must be calculated one by one. It is extremely difficult to do so.
第2図にフリツプフロツプを含む簡単な論理回
路を示す。第2図中、20はゲート、21と22
はフリツプフロツプである。フリツプフロツプ2
1,22は一般的にデータ入力端子D、クロツク
入力端子T、セツト入力端子S、リセツト入力端
子Rおよび出力データ端子Q0,Q1で構成され、
データ入力端子Dの信号値はクロツク入力端子T
の信号値を変化させることで出力値に反映され
る。第3図aは該フリツプフロツプ21,22の
正常動作時のタイムチヤートを示したものであ
る。 FIG. 2 shows a simple logic circuit including a flip-flop. In Figure 2, 20 is a gate, 21 and 22
is a flip-flop. flipflop 2
1 and 22 generally consist of a data input terminal D, a clock input terminal T, a set input terminal S, a reset input terminal R, and output data terminals Q 0 and Q 1 ,
The signal value of data input terminal D is the clock input terminal T.
is reflected in the output value by changing the signal value. FIG. 3a shows a time chart during normal operation of the flip-flops 21 and 22.
ところが、データ入力端子Dの変化時刻TDと
クロツク入力端子Tの変化時刻TCが、フリツプ
フロツプ21,22にデータ入力信号値を設定す
るのに必要な時間関係にない時、すなわち入力セ
ツトアツプ時間31、入力ホールド時間32が論
理素子の制限値を満足しない時、出力信号値は一
時不確定となり、ある時刻経過後に確定する。こ
の場合のタイムチヤートを示したのが第3図bで
ある。従来、このようなフリツプフロツプに物理
的に存在する不確定信号値の発生状態を論理回路
シミユレーシヨンで表現することについては考慮
されていない。 However, when the change time T D of the data input terminal D and the change time T C of the clock input terminal T are not in the time relationship required to set the data input signal value in the flip-flops 21 and 22, that is, when the input setup time 31 , when the input hold time 32 does not satisfy the limit value of the logic element, the output signal value becomes temporarily uncertain and becomes fixed after a certain time elapses. FIG. 3b shows a time chart in this case. Conventionally, no consideration has been given to expressing the generation state of an uncertain signal value that physically exists in such a flip-flop using a logic circuit simulation.
本発明の目的は、フリツプフロツプを含む論理
回路のシミユレーシヨンにおいて、フリツプフロ
ツプの不安定状態を特定の時刻に確定させ、後段
回路の動作確認を容易に行うことにある。
An object of the present invention is to determine the unstable state of a flip-flop at a specific time in a simulation of a logic circuit including a flip-flop, and to easily check the operation of subsequent stage circuits.
本発明の要点は、前記フリツプフロツプの不確
定出力信号値発生から出力信号確定の動作を論理
回路シユミレーシヨンで行わせ、論理回路の誤動
作要因の追求を容易にしたことである。すなわち
本発明では、フリツプフロツプが不確定となる要
因が発生した時、その出力信号値を不確定値とし
た後、フリツプフロツプが確定し得る時刻を経過
後に確定信号値として後段の論理素子モデルへ印
加するようにしたことである。
The gist of the present invention is that the operation of determining the output signal from the generation of the undefined output signal value of the flip-flop is performed by logic circuit simulation, thereby facilitating the investigation of the cause of malfunction of the logic circuit. In other words, in the present invention, when a factor that causes the flip-flop to become uncertain occurs, the output signal value is made into an uncertain value, and after the time at which the flip-flop can be made certain has elapsed, it is applied as a definite signal value to the subsequent logic element model. This is what I did.
第4図は論理回路モデルをコンピユータの主記
憶装置上で表現するための接続関係を示す。第4
図において、41,42は素子テーブルであり、
第2図の例えばフリツプフロツプ21,22に対
応する。各素子テーブルの情報は、当該素子の種
類(AND、OR、フリツプフロツプなど)、素子
デイレ時間(信号値を入力端子から出力端子へ伝
搬するのに要する時間)、不安定値時間幅(不安
定値発生から出力信号が確定するのに要する時
間)、信号値テーブルアドレス、ソース素子アド
レス、シンク素子アドレスよりなる。素子テーブ
ル41は、その素子アドレスで前段の素子テーブ
ル(図示せず)とつながり、シンク素子アドレス
で後段の素子テーブル42、その他の同様の素子
テーブルとつながつている。ソース素子アドレス
は、前段の素子テーブルが格納されている主記憶
装置上のアドレスを示し、シンク素子アドレス
は、後段の素子テーブルが格納されている主記憶
装置上のアドレスを示す。43は素子テーブル4
1に付属する信号値テーブルであり、その主記憶
装置上の格納アドレスは素子テーブル内の信号値
テーブルアドレスで示される。信号値テーブル4
3は当該素子の入出信号値(0あるいは1)を保
持するためのものであるが、本発明では、これに
不確定打切り時刻、および入力信号(例えばフリ
ツプフロツプD、S、T)の変化時刻の情報をも
たらせる。
FIG. 4 shows a connection relationship for expressing a logic circuit model on the main memory of a computer. Fourth
In the figure, 41 and 42 are element tables,
This corresponds to, for example, the flip-flops 21 and 22 in FIG. The information in each element table includes the type of element (AND, OR, flip-flop, etc.), element delay time (the time required to propagate the signal value from the input terminal to the output terminal), unstable value time width (unstable value The signal value table address, source element address, and sink element address. The element table 41 is connected to the preceding element table (not shown) by its element address, and connected to the succeeding element table 42 and other similar element tables by its sink element address. The source element address indicates an address on the main memory where the previous stage element table is stored, and the sink element address indicates an address on the main memory where the subsequent stage element table is stored. 43 is element table 4
1, and its storage address on the main memory is indicated by the signal value table address in the element table. Signal value table 4
3 is for holding the input/output signal value (0 or 1) of the element in question, but in the present invention, it is also used to hold the uncertain cutoff time and the change time of the input signal (for example, flip-flop D, S, T). can bring information.
第5図はタイムループと呼ばれるもので、タイ
ムループ自体は前記文献で開示されているものと
同じである。タイムループ50の各スロツトは、
論理回路シミユレーシヨンの経過時刻T、T+1
…に相当し、イベントレコード51,52,5
3、…が接続される。イベントレコードは信号値
と、該信号値が伝搬する素子(シンク素子)の素
子アドレスからなる。例えば第2図の論理回路の
例において、時刻Tに信号INが“1”になつて
ゲート20の出力が“0”から“1”に変化した
場合、イベントレコード51には信号値とし
“1”が設定され、素子アドレスとしてはフリツ
プフロツプ21の素子テーブルのアドレスが設定
される。 FIG. 5 is called a time loop, and the time loop itself is the same as that disclosed in the above-mentioned document. Each slot of time loop 50 is
Elapsed time T, T+1 of logic circuit simulation
...corresponds to event records 51, 52, 5
3.... are connected. An event record consists of a signal value and an element address of an element (sink element) to which the signal value propagates. For example, in the example of the logic circuit shown in FIG. 2, if the signal IN becomes "1" at time T and the output of the gate 20 changes from "0" to "1", the event record 51 records the signal value as "1". " is set, and the address of the element table of the flip-flop 21 is set as the element address.
次に、第1図により本発明の論理回路シミユレ
ーシヨンの処理手順を説明する。 Next, the processing procedure of the logic circuit simulation of the present invention will be explained with reference to FIG.
第5図のタイムループ50が進み時刻Tになる
と、そのスロツトに接続されるイベントレコード
51,54,55を取り出す(ステツプ11)。そ
して、取り出したインベントレコードで示された
素子アドレスのシンク素子への信号値を伝搬し
て、該素子アドレスで示されたシンク素子テーブ
ル(第4図)を読み出し、該シンク素子の出力信
号値を計算し、次のシンク素子へ伝搬すべき信号
値と該素子テーブルで示される素子アドレスのイ
ベントレコードを素子デイレイ時刻後のスロツト
につなげる(ステツプ15、16、17など)。この時、
シンク素子へ伝搬する信号値が不確定値となり、
処理中の素子がフリツプフロツプでさらに不確定
発生条件を満すときは、データ入力信号値の否定
値を素子デイレイ時刻Dに不安定値時刻幅TWを
加えた時刻後のイベントレコードにつながる。第
5図のイベントレコード52がこれで、「X」は
信号値が不確定であることを示す。また、素子テ
ーブルに付属する信号値テーブルより不確定打切
り時刻を得て、該時刻のスロツトに信号値の確定
したイベントレコードをつなげる。第5図のイベ
ントレコード53はこれを示す。 When the time loop 50 in FIG. 5 advances to time T, the event records 51, 54, and 55 connected to that slot are retrieved (step 11). Then, the signal value to the sink element of the element address indicated in the retrieved event record is propagated, the sink element table (Fig. 4) indicated by the element address is read, and the output signal value of the sink element is read. The signal value to be calculated and propagated to the next sink element and the event record of the element address shown in the element table are connected to the slot after the element delay time (steps 15, 16, 17, etc.). At this time,
The signal value propagating to the sink element becomes an uncertain value,
When the element being processed further satisfies the uncertainty generation condition in the flip-flop, the negative value of the data input signal value is connected to an event record after the time equal to the element delay time D plus the unstable value time width TW . This is the event record 52 in FIG. 5, where "X" indicates that the signal value is uncertain. Furthermore, an uncertain termination time is obtained from the signal value table attached to the element table, and an event record with a determined signal value is connected to the slot at that time. Event record 53 in FIG. 5 shows this.
タイムループが進み、イベントレコード52を
実行する時、前段の素子テーブルのソース素子ア
ドレスから取り出し、ソース素子の不確定打切り
時刻と著しく、また、不確定打切り用のイベント
レコードの時、そのイベントレコードの処理を行
い、条件が満たない時はそのイベントレコードを
実行しない(ステツプ12、13、14など)。 When the time loop progresses and the event record 52 is executed, it is extracted from the source element address in the previous stage element table, and if it is significantly different from the uncertain termination time of the source element, and if it is an event record for uncertain termination, the event record's Perform processing, and if the condition is not met, do not execute the event record (steps 12, 13, 14, etc.).
以上のようにして、あらかじめ設定した時刻に
到達するまで、論理回路シミユレーシヨンが進め
られる。 In the manner described above, the logic circuit simulation continues until the preset time is reached.
本発明によれば、フリツプフロツプの不安定状
態を特定の時刻に確定させることで、フリツプフ
ロツプを含むデイジタル論理装置の論理動作を論
理回路シミユレーシヨンで確認することができ、
また誤動作要因の追求を容易にすることができ
る。
According to the present invention, by determining the unstable state of a flip-flop at a specific time, the logical operation of a digital logic device including a flip-flop can be confirmed by logic circuit simulation.
Additionally, it is possible to easily find the cause of the malfunction.
第1図は本発明による論理回路シミユレーシヨ
ン方法を説明するためのフローチヤート、第2図
は論理回路の一例を示す図、第3図は第2図の動
作タイムチヤート、第4図は本発明で用いる素子
テーブルと素子信号値テーブルを示す図、第5図
はタイムループとイベントレコードの関係を示す
図である。
41,42……素子テーブル、43……素子信
号値テーブル、50……タイムループ、51〜5
5……イベントレコード。
FIG. 1 is a flowchart for explaining the logic circuit simulation method according to the present invention, FIG. 2 is a diagram showing an example of the logic circuit, FIG. 3 is an operation time chart of FIG. 2, and FIG. 4 is a flowchart for explaining the logic circuit simulation method according to the present invention. A diagram showing an element table and an element signal value table to be used, and FIG. 5 is a diagram showing the relationship between a time loop and an event record. 41, 42...Element table, 43...Element signal value table, 50...Time loop, 51-5
5...Event record.
Claims (1)
な論理回路モデルを構築し、外部から与えられる
入力印加信号刺戟をもとに論理回路シミユレーシ
ヨンを実行する方法において、前記論理回路モデ
ルにフリツプフロツプ論理素子の不安定値時間幅
情報を設定して、フリツプフロツプ論理素子の不
安定状態を判別し、不安定状態の場合、該当フリ
ツプフロツプ論理素子モデルの出力信号値を不確
定値とした後、安定するとみなされる時刻を経過
後、前記フリツプフロツプ論理素子モデルの出力
信号値をその入力信号値をもとに確定させ、後段
の論理素子モデルへ不安定状態が継続するのを防
止せしめることを特徴とする論理回路シミユレー
シヨン方法。1. A method in which a logic circuit model equivalent to a digital logic circuit is constructed on an electronic computer and a logic circuit simulation is executed based on input signal stimulation applied from the outside, in which a flip-flop logic element is not included in the logic circuit model. The stable value time width information is set to determine whether the flip-flop logic element is in an unstable state. If the flip-flop logic element is in an unstable state, the output signal value of the flip-flop logic element model is set to an uncertain value, and then the time when it is considered stable is determined. A logic circuit simulation method characterized in that, after the elapse of time, the output signal value of the flip-flop logic element model is determined based on the input signal value, thereby preventing continuation of an unstable state to the logic element model at a subsequent stage.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60080211A JPS61240337A (en) | 1985-04-17 | 1985-04-17 | Simulation method of logic circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60080211A JPS61240337A (en) | 1985-04-17 | 1985-04-17 | Simulation method of logic circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS61240337A JPS61240337A (en) | 1986-10-25 |
| JPH0566632B2 true JPH0566632B2 (en) | 1993-09-22 |
Family
ID=13712050
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP60080211A Granted JPS61240337A (en) | 1985-04-17 | 1985-04-17 | Simulation method of logic circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS61240337A (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5191541A (en) * | 1990-05-14 | 1993-03-02 | Sun Microsystems, Inc. | Method and apparatus to improve static path analysis of digital circuits |
-
1985
- 1985-04-17 JP JP60080211A patent/JPS61240337A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS61240337A (en) | 1986-10-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6173241B1 (en) | Logic simulator which can maintain, store, and use historical event records | |
| CN112100969B (en) | Timing analysis method, circuit, device and storage medium | |
| US5805859A (en) | Digital simulator circuit modifier, network, and method | |
| US20030125921A1 (en) | Circuit simulation apparatus, circuit simulation method, circuit simulation program, and storage medium storing circuit simulation program | |
| JPH0566632B2 (en) | ||
| US6301188B1 (en) | Method and apparatus for registering free flow information | |
| CN116205174A (en) | Asynchronous microprocessor verification method and system based on UVM | |
| JP2937139B2 (en) | Logic circuit delay verification method | |
| JPS6323581B2 (en) | ||
| JP3329221B2 (en) | LSI test equipment | |
| JP3003645B2 (en) | Logic simulation method and recording medium on which control program is recorded | |
| JP3123982B2 (en) | Logic simulation method | |
| JP2001155043A (en) | Timing check method in logic simulation and recording medium recording timing check method | |
| JPH117461A (en) | Logic simulation method and test pattern generation device | |
| JP3119793B2 (en) | Clock transfer circuit | |
| JP2924968B2 (en) | Time interactive simulation device | |
| EP0397532A2 (en) | Simulation system | |
| JP2990813B2 (en) | Failure simulation method | |
| JP2912700B2 (en) | Simulation method for semiconductor integrated circuit | |
| JP3087319B2 (en) | Timing verification system | |
| JP2638337B2 (en) | Error counter circuit | |
| JPH09146980A (en) | Logical delay simulation method | |
| JPH07182381A (en) | Logic simulation method and logic simulation system considering delay time variation | |
| JPS60173484A (en) | Logical simulation system | |
| JPS59148971A (en) | Logic circuit simulation method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| EXPY | Cancellation because of completion of term |