JPH03158972A - Simulator - Google Patents

Simulator

Info

Publication number
JPH03158972A
JPH03158972A JP1300531A JP30053189A JPH03158972A JP H03158972 A JPH03158972 A JP H03158972A JP 1300531 A JP1300531 A JP 1300531A JP 30053189 A JP30053189 A JP 30053189A JP H03158972 A JPH03158972 A JP H03158972A
Authority
JP
Japan
Prior art keywords
bit pattern
simulation
breakpoint
detected
break point
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.)
Pending
Application number
JP1300531A
Other languages
Japanese (ja)
Inventor
Seiji Tsuboi
坪井 清次
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP1300531A priority Critical patent/JPH03158972A/en
Publication of JPH03158972A publication Critical patent/JPH03158972A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To highly precisely detect a break point and to interrupt simulation at necessary timing by detecting the break point by setting the break point in accordance with the variation of the prescribed number of times of a bit pattern. CONSTITUTION:A variation detecting means 11 to detect the variation of the bit pattern during the simulation and a comparing means 10 to compare the detected variation of the bit pattern with the set bit pattern are provided. Then, the setting of the break point to interrupt the simulation is set in accordance with the variations of the prescribed number of times of the bit pattern of a binary signal, and the variation of the bit pattern during the simulation is detected, and every time it is detected, it is compared successively with the set bit pattern, and when all compared results coincide, the break point is detected. Thus, the break point by a micro pulse comes not to be misdetected, and detecting precision is improved, and the simulation can be interrupted at the necessary timing.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、論理回路等の被測定回路をシミュレートし
てその不良箇所を検出するシミュレータに関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a simulator that simulates a circuit under test such as a logic circuit and detects defective parts thereof.

〔従来の技術〕[Conventional technology]

第4図は例えば特開昭62−156739号公報に開示
された従来のシミュレータの構成を示すブロック図であ
る。図において3はCPUであり、該CPU3にはキー
人力装置2及びデイスプレィ装置lが接続されている。
FIG. 4 is a block diagram showing the configuration of a conventional simulator disclosed in, for example, Japanese Unexamined Patent Publication No. Sho 62-156739. In the figure, 3 is a CPU, and a key manual device 2 and a display device 1 are connected to the CPU 3.

デイスプレィ装置1には逆トレースする場合に論理回路
等の図示し゛ない被測定回路の各ゲートの入出力信号の
状態が図形表示される。
The display device 1 graphically displays the state of input/output signals of each gate of a circuit under test (not shown) such as a logic circuit when performing reverse tracing.

またキー人力装置2からは逆トレースする場合にブレー
クポイントの設定及び信号名の設定がなされる。またC
PU3にはパスライン13を介して、シミュレーション
途中の結果を記憶する記憶モジュール4、各ゲート毎の
シミュレーションを行うイベント処理モジュール5、設
定されたブレークポイントから逆トレースを行うバック
トレースモジュール6、表示モジュール7、指定された
ブレークポイントに達したか否かを検出するブレークポ
イント検出モジュール8及び逆トレースするとき記憶モ
ジュール4から1つ前に記憶された状態値を読み出し復
元する状態復元モジュール9が接続されている。
Also, from the key manual device 2, break points and signal names are set when performing reverse tracing. Also C
The PU 3 includes, via a path line 13, a storage module 4 that stores results during simulation, an event processing module 5 that performs simulation for each gate, a backtrace module 6 that performs reverse tracing from set breakpoints, and a display module. 7. A breakpoint detection module 8 for detecting whether a specified breakpoint has been reached and a state restoration module 9 for reading out and restoring the state value stored immediately before from the storage module 4 when performing reverse tracing are connected. ing.

次に以上の如く構成された従来のシミュレータの動作に
ついて説明する。第5図はシミュレーション対象の論理
回路の回路図であり、この論理回路には入力信号A、B
、C,Dが与えられ、出力信号Gを出力する。入力信号
A、BはANDゲート20に与えられて、その論理積を
出力信号Eとして出力する。出力信号Eは入力信号Cと
共にANDゲート21に与えられ、その論理積を出力信
号Fとして出力する。出力信号Fは入力信号りと共にA
NDゲート22に与えられ、その論理積を出力信号Gと
して出力する。
Next, the operation of the conventional simulator configured as described above will be explained. FIG. 5 is a circuit diagram of a logic circuit to be simulated, and this logic circuit has input signals A and B.
, C, and D, and outputs an output signal G. Input signals A and B are applied to an AND gate 20, and the logical product thereof is outputted as an output signal E. The output signal E is applied to the AND gate 21 together with the input signal C, and the logical product thereof is outputted as the output signal F. The output signal F is equal to the input signal A
It is applied to the ND gate 22, and outputs the logical product as the output signal G.

第6図は、論理回路のシミュレーション結果を示す図で
あり、記憶モジュールAに記憶されている内容を示して
いる。時刻T=O11,2,3,4における各信号A、
B、C,D、Gの状態を示し、x”は不定を、61″は
Hレベルを示している。ここでは時刻T=4で出力信号
Gが“1”になることを示している。
FIG. 6 is a diagram showing the simulation results of the logic circuit, and shows the contents stored in the storage module A. Each signal A at time T=O11, 2, 3, 4,
The states of B, C, D, and G are shown, x'' indicates undefined, and 61'' indicates H level. Here, it is shown that the output signal G becomes "1" at time T=4.

第7図は第5図に示す論理回路を正常にシミュレーショ
ンしたときの各時刻Tにおけるイベントの発生状況を示
している。時刻T=1で信号へが変化するとANDゲー
ト20にイベントが発生し、時刻T=2で信号Bが変化
するとANDゲート20及び同21にイベントが発生す
ることを示している。同様に時刻T=3で信号Cが変化
するとANDゲート21及び同22にイベン1−が発生
し、時刻T=4で信号りが変化するとANDゲート22
にイベントが発生することを示している。
FIG. 7 shows the occurrence of events at each time T when the logic circuit shown in FIG. 5 is successfully simulated. When the signal B changes at time T=1, an event occurs at the AND gate 20, and when the signal B changes at time T=2, an event occurs at the AND gates 20 and 21. Similarly, when signal C changes at time T=3, event 1- occurs in AND gates 21 and 22, and when signal C changes at time T=4, AND gate 22
indicates that an event will occur.

次に動作の概要を説明する。第5図に示す論理回路で入
力信号A、B、C,Dが夫々“1”に変化すると、論理
回路が正常であれば出力信号Gは“1”となる。しかし
シミュレーションの結果、出力信号力11″にならない
場合、信号Gにブレークポイントを設定し、信号Gが1
”になるべきはずの時刻Tでシミュレーションを中断す
る。
Next, an overview of the operation will be explained. When the input signals A, B, C, and D change to "1" in the logic circuit shown in FIG. 5, the output signal G becomes "1" if the logic circuit is normal. However, as a result of the simulation, if the output signal strength does not become 11", a breakpoint is set on the signal G, and the signal G becomes 1".
”The simulation is interrupted at time T, which should be reached.

中断すると入力コマンド待ち状態となり、オペレータが
対話的に各ゲートの入力信号を設定して、論理回路の論
理状態を逆トレースする。このとき逆トレースした時刻
T毎に各信号の状態値をデイスプレィ装置1に表示する
。オペレータはその状態値から不良の信号名を指定して
逆トレースを続けることにより、論理回路の不良箇所を
検出できる。
When the process is interrupted, the process enters a waiting state for input commands, and the operator interactively sets the input signals of each gate and reverse traces the logic state of the logic circuit. At this time, the state value of each signal is displayed on the display device 1 at each reverse traced time T. The operator can detect a defective location in the logic circuit by specifying the name of the defective signal from the state value and continuing reverse tracing.

第8図は従来のシミュレータのシミュレーション動作の
詳細を示すフローチャートであり、ここでは第5図に示
す論理回路でANDゲート20と同21との間で断線し
た場合を例に説明する。最初にキー人力装置2により例
えば信号Gにブレークポイントを設定しくステップ11
00) 、シミュレーションを開始する。時刻T=1で
入力信号Aに“1”がセントされるとANDゲート20
のイベントが発生し、そのシミュレーションを行い(ス
テップ11101)、出力信号Eの状態が不定となる。
FIG. 8 is a flowchart showing the details of the simulation operation of the conventional simulator. Here, a case will be explained using as an example a case where a disconnection occurs between AND gates 20 and 21 in the logic circuit shown in FIG. First, set a breakpoint, for example, at signal G using the key manual device 2. Step 11
00), start the simulation. When “1” is sent to the input signal A at time T=1, the AND gate 20
An event occurs, its simulation is performed (step 11101), and the state of the output signal E becomes undefined.

しかし出力信号Eは初期値から変化していないので、イ
ベントの伝播は行われずステップ1102でその旨を判
断し、ステップ1104に進む。ステップ1104では
ブレークポイント検出モジュール8によりブレークポイ
ントか否かを検出するが、このときブレークポイントで
はないのでステップ1101に戻る。
However, since the output signal E has not changed from its initial value, the event is not propagated, and this is determined in step 1102, and the process proceeds to step 1104. In step 1104, the breakpoint detection module 8 detects whether or not it is a breakpoint, but since it is not a breakpoint at this time, the process returns to step 1101.

次に時刻T=2で入力信号Bに1″がセットされると、
ANDゲート20のイベントが再び発生し、ANDゲー
i・20のシミュレーションが行われ(ステップ111
01) 、信号Eが1”になる。しかしへNOゲート2
1への入力信号E′はその間の断線のため不定のままで
ある。時刻T=3で入力信号Cに11″がセントされる
と^NDゲート21のイベントが発生し、ANDゲート
21のシミュレーションが行われ(ステップ11101
) 、出力信号Fが不定になる。これも初期値から変化
していないので、イベントの伝播は行われない(ステッ
プ#102)。時刻T=4で入力信号りに1”がセット
されると、へNDゲート22のイベントが発生し、AN
Dゲート22のシミュレーションが行われる(ステップ
#101)。シミュレーションが行われると出力信号G
が不定となる。このように時刻T=1〜4では入力信号
A、B、C,Dが不定から1に変化するので、各時刻T
でそれらの変化値を記憶モジュール4に格納する(ステ
ップ#l03)。時刻T = 4でイベント処理(ステ
ップ1101)が全て終了すると、ブレークポイント検
出モジュール8によりキー人力装置2より入力されたビ
ットパターン(ブレークポイント条件)を−時記憶し、
イベントが発生する毎に記憶されたビットパターンと入
力されたビットパターンとを比較し、一致すればシミュ
レーションが中断され、次のステップ1105に進む(
ステップ1104)。
Next, when input signal B is set to 1'' at time T=2,
The AND gate 20 event occurs again, and the AND game i.20 is simulated (step 111).
01), the signal E becomes 1". However, to NO gate 2
The input signal E' to 1 remains undefined due to the disconnection therebetween. When 11'' is sent to the input signal C at time T=3, an event of the ND gate 21 occurs, and a simulation of the AND gate 21 is performed (step 11101).
), the output signal F becomes undefined. Since this value has also not changed from the initial value, the event is not propagated (step #102). When the input signal is set to 1'' at time T=4, an event occurs in the ND gate 22, and the AN
A simulation of the D gate 22 is performed (step #101). When the simulation is performed, the output signal G
becomes indeterminate. In this way, at times T=1 to 4, input signals A, B, C, and D change from indeterminate to 1, so each time T
Then, those change values are stored in the storage module 4 (step #l03). When all event processing (step 1101) is completed at time T = 4, the breakpoint detection module 8 stores the bit pattern (breakpoint condition) input from the key human power device 2 at - time, and
Each time an event occurs, the stored bit pattern and the input bit pattern are compared, and if they match, the simulation is interrupted and the process proceeds to the next step 1105 (
Step 1104).

第9〜11図は逆トレース時のデイスプレィ装置の表示
状態を示す図であり、ステップ1105ではANDゲー
ト22の入出力状態が第9図に示す如くに表示される。
9 to 11 are diagrams showing the display state of the display device during reverse tracing. In step 1105, the input/output state of the AND gate 22 is displayed as shown in FIG.

オペレータはそこでキー人力装置2から信号名Fを入力
する(ステップ11207)。すると状態復元モジュー
ル9により時刻T=3の状態がセントされ、バンクトレ
ースモジュール6でへNDケート21が求められて(ス
テップ11108) 、へNOゲート21の入出力状態
が第10図に示す如くに表示される。さらに同様にして
信号名E′をキー人力装置2より入力し、バックトレー
スを進めると第11図に示すような表示が表れ、信号E
とE′との間で断線していることが示される。このよう
にしてオペレータが信号名を指示することで回路の不良
箇所が検出できる。
The operator then inputs the signal name F from the key input device 2 (step 11207). Then, the state restoration module 9 sets the state at time T=3, the bank trace module 6 obtains the ND gate 21 (step 11108), and the input/output state of the NO gate 21 becomes as shown in FIG. Is displayed. Furthermore, if you input the signal name E' from the key input device 2 in the same way and proceed with the backtrace, a display as shown in FIG. 11 will appear, indicating that the signal E'
It is shown that there is a disconnection between and E'. In this way, the operator can detect a defective location in the circuit by specifying the signal name.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかしながら従来のシミュレータではブレークポイント
をある時刻におけるビットパターンにより設定し、その
ビットパターンと一致した情報が入力されたときにシミ
ュレーションの動作を中断させていたので、ICの遅延
時間等のノイズにより発生する微少パルスでブレークポ
イントが検出される虞があり、必要なタイミングでシミ
ュレーションを中断できないという問題があった。
However, in conventional simulators, breakpoints are set by bit patterns at a certain time, and the simulation operation is interrupted when information that matches that bit pattern is input. There was a problem that a breakpoint could be detected due to a minute pulse, making it impossible to interrupt the simulation at the necessary timing.

この発明は上記問題点を解消するためになされたもので
あり、ブレークポイントの設定を所定回のビットパター
ンの変化により行うことにより、高精度にブレークポイ
ントを検出でき、必要なタイミングでシミュレーション
を中断できるシミュレータを提供することを目的とする
This invention was made to solve the above problems, and by setting breakpoints by changing the bit pattern a predetermined number of times, breakpoints can be detected with high accuracy and simulation can be interrupted at the necessary timing. The purpose is to provide a simulator that can.

〔課題を解決するための手段〕[Means to solve the problem]

この発明に係るシミュレータは、ビットパターンの所定
回数の変化により設定するブレークポイント設定手段と
、シミュレート時のピントパタンの変化を検出する変化
検出手段と、検出されたビットパターンの変化と、設定
されたビットパターンとを比較する比較手段とを設け、
比較結果が所定回数一致したときに、ブレークポイント
を検出するようにしたものである。
The simulator according to the present invention includes: a breakpoint setting means for setting a breakpoint by a predetermined number of changes in a bit pattern; a change detection means for detecting a change in a focus pattern during simulation; and a comparison means for comparing with the bit pattern,
A breakpoint is detected when the comparison results match a predetermined number of times.

〔作用〕[Effect]

この発明においては、シミュレーションを中断するブレ
ークポイントの設定を2値信号のビットパターンの所定
回数の変化により設定し、シミュレート時のビットパタ
ーンの変化を検出し、検出の都度、設定されたピントパ
ターンを順に比較し、比較結果が全て一致したときにブ
レークポイントを検出する。これにより微少パルスによ
るブレークポイントを誤検出しなくなり、検出精度が向
」ニし、必要なタイミングでシミュレーションを中断で
きる。
In this invention, a breakpoint for interrupting the simulation is set by a predetermined number of changes in the bit pattern of a binary signal, a change in the bit pattern during simulation is detected, and each time a change in the bit pattern is detected, the set focus pattern is set. are compared in order, and a breakpoint is detected when all comparison results match. This prevents false detection of breakpoints due to minute pulses, improves detection accuracy, and allows simulation to be interrupted at the required timing.

〔実施例〕〔Example〕

以下、この発明をその実施例を示す図面に基づいて詳述
する。第1図はこの発明に係るシミュレータの構成を示
すブロック図である。図において3はCPUであり、該
cpu3にはブレークポイントの設定にも用いられるキ
ー人力装置2及びデイスプレィ装置1が接続されている
。デイスプレィ装置2には逆トレースする場合に論理回
路等の図示しない被測定回路の各ゲートの入出力状態が
図形表示される。またキー人力装置2からはブレークポ
イントのビットパターンの変化を所定回数入力すると共
に、バンクトレース時の各信号の設定等のシミュレーシ
ョンの入力操作が行われる。またCllU3はパスライ
ン13を介して、シミュ゛レーション途中の結果を記憶
すると共に、設定されたブレークポイントのビットパタ
ーンに記憶する記憶モジュール4、各ゲート毎にシミュ
レーションを行うイベント処理モジユール5、設定され
たブレークポイントから逆トレースを行うバンクトレー
スモジュール6、デイスプレィ装置1を制御する表示モ
ジュール7、指定されたブレークポイントに達したか否
か、即ち、設定された所定回のビットパターンがあった
か否かを検出するブレークポイント検出モジュール8.
1つ前に記憶された状態値を復元する状態復元モジュー
ル9、シミュレーション途中のビットパターンの変化を
検出する変化検出モジュール11、設定されたビットパ
ターンと変化したときのビットパターンとを比較する変
化検出モジュール10及び一致したときの回数をカウン
トするカウンタモジュール12とに接続されている。
Hereinafter, the present invention will be described in detail based on drawings showing embodiments thereof. FIG. 1 is a block diagram showing the configuration of a simulator according to the present invention. In the figure, reference numeral 3 denotes a CPU, and a key input device 2 and a display device 1, which are also used for setting break points, are connected to the CPU 3. The display device 2 graphically displays the input/output state of each gate of a circuit to be measured (not shown) such as a logic circuit when performing reverse tracing. Further, from the key input device 2, changes in bit patterns of break points are inputted a predetermined number of times, and simulation input operations such as setting of each signal during bank tracing are performed. The CllU 3 also has a memory module 4 that stores the results during the simulation and stores them in the bit pattern of the set breakpoint, an event processing module 5 that performs simulation for each gate, and a set A bank trace module 6 performs reverse tracing from the breakpoint set, a display module 7 controls the display device 1, and a display module 7 controls the display device 1 to determine whether a specified breakpoint has been reached, that is, whether or not a predetermined bit pattern has been set. Breakpoint detection module to detect8.
A state restoration module 9 that restores the previously stored state value, a change detection module 11 that detects changes in bit patterns during simulation, and a change detection module that compares the set bit pattern with the bit pattern at the time of change. It is connected to a module 10 and a counter module 12 that counts the number of matches.

次にこの発明のシミュレータの動作について説明する。Next, the operation of the simulator of this invention will be explained.

最初にキー人力装置2によりビットパターンの所定回数
の変化を入力し、ブレークポイントを設定する(ステッ
プ#100)。例えば4つの信号S、T、U、■のビッ
トが全て“1”から“l” J”。
First, a predetermined number of changes in the bit pattern are input using the key input device 2, and a break point is set (step #100). For example, the bits of the four signals S, T, U, ■ are all "1" to "l"J".

0″、“1”→″1″、“0”3“0″、1″→“1″
、“0′、“ON“0″→“1″ 0″、“1” ″】
→“ON “0″、“0″  “1″と6回変化したと
きにブレークポイントの条件を満たすと設定する(第4
図a参照)。ブレークポイントの設定が終了すると、そ
れが記憶モジュール4に記憶されると共にイベント処理
モジ1−ルによる各ゲート毎のシミュレーションがなさ
れ、イベント処理される(ステップ11101)。ここ
でピントパターンの変化が変化検出モジュール11で検
出され(ステップ11102)、変化したときはそのビ
ットパターンを記憶モジュール4に記憶する(ステップ
1103)。次に記憶モジュール4に記憶されたブレー
クポイントのピントパターンの最初のビットパターンを
読出し、それとステップ1103で記憶したビットパタ
ーンとを比較モジュール10で比較する(ステップ11
10) 、そして一致したときはカウンタモジュール1
2のカウント値をインクリメントしくステップ1111
1) 、次のブレークポイント1 のビットパターンを要求しくステップ11114) 、
カウンタモジュール12のカウント値が設定カウントに
達したか否かを判定する(ステップ11113)。設定
カウントに達していないとき、即ち所定回数(設定カウ
ント)ビットパターンが一致していないときはステップ
#101に戻る。
0", "1" → "1", "0"3 "0", 1" → "1"
, “0′, “ON “0” → “1” 0”, “1” ”]
→ “ON” Set the breakpoint condition to be met when it changes 6 times to “0”, “0” and “1” (4th
(see figure a). When the breakpoint setting is completed, it is stored in the storage module 4, and the event processing module simulates each gate and processes the event (step 11101). Here, a change in the focus pattern is detected by the change detection module 11 (step 11102), and when it has changed, the bit pattern is stored in the storage module 4 (step 1103). Next, the first bit pattern of the breakpoint focus pattern stored in the storage module 4 is read out, and the comparison module 10 compares it with the bit pattern stored in step 1103 (step 11
10), and when there is a match, counter module 1
Step 1111 to increment the count value of 2.
1), request the bit pattern of the next breakpoint 1 (step 11114),
It is determined whether the count value of the counter module 12 has reached the set count (step 11113). When the set count has not been reached, that is, when the bit patterns do not match the predetermined number of times (set count), the process returns to step #101.

またステップ11110でブレークポイントのビットパ
ターンと一致しないときは、カウンタモジュールI2の
カウント値をリセツトする(ステップ#112)。
Further, if it does not match the bit pattern of the breakpoint in step 11110, the count value of the counter module I2 is reset (step #112).

設定カウントに達すると、所定回数ビツトパターンが一
致したことになるので、そのことをブレークポイント検
出モジュール8が判断し、シミュレーションを中断し、
CPU3は入力待ち状態となる。
When the set count is reached, it means that the bit patterns have matched a predetermined number of times, so the breakpoint detection module 8 determines this and interrupts the simulation.
The CPU 3 enters an input waiting state.

次にゲートの入出力信号の状態を表示しくステップ11
105) 、バンクトレースモジュール6にヨリ逆トレ
ースしていき、ステップ#106でその終了を判定し、
終了していないとき、即ち不良箇所を見つけ出せないと
きはゲートの入出力信号を指定しくステップ1107)
、記憶モジュール4から1つ前の状態をリストアンプし
くステップ#10B> 、ステ2 ツブ#105に戻る。
Next, display the status of the input and output signals of the gate.Step 11
105), traces backward to the bank trace module 6, and determines the end of the trace in step #106,
If it is not completed, that is, if the defective part cannot be found, specify the input/output signal of the gate (step 1107).
, List the previous state from the storage module 4 Step #10B> Return to step #105 in Step 2.

第3図はこの発明の効果を示すタイミングヂャートであ
り4つの信号S、1゛、U、■が図に示すように変化し
ている。ブレークポイントを従来の如く、例えば4つの
信号S、T、U、■が全て“1”となるビットパターン
だけで設定すると、第3図にaで示すタイミングの他に
タイミングb及びCでもブレークポイントを検出するこ
とになるが、この発明ではタイミングaから所定回数ビ
ツトパターンが変化したとき、即ちタイミングaから矢
符で示す区間の間にビットパターンが変化したときにそ
れらのビットパターンと設定したビットパターンとが全
て一致したと判定しているので、ビットパターンの誤検
出が減少する。
FIG. 3 is a timing diagram showing the effect of this invention, and four signals S, 1', U, and ■ change as shown in the figure. If a breakpoint is set as before, for example, using only a bit pattern in which all four signals S, T, U, ■ are "1", breakpoints will be set at timings b and C in addition to the timing shown at a in Figure 3. However, in this invention, when the bit pattern changes a predetermined number of times from timing a, that is, when the bit pattern changes during the period shown by the arrow from timing a, those bit patterns and the set bit are detected. Since it is determined that all the patterns match, the number of false detections of bit patterns is reduced.

なおこの実施例では記憶モジュールシミュレーション途
中の結果と、ブレークポイントのビットパターンとを記
憶するようにしているが、この発明はこれに限るもので
はなく、これらは各別に記憶してもよい。
In this embodiment, the results of the storage module simulation and the breakpoint bit patterns are stored, but the present invention is not limited to this, and these may be stored separately.

またこの実施例では1つのタイミングのビントパターン
の変化でブレークポイントを設定したが、この発明はこ
れに限るものではなく、比較モジュールにAND、 O
R,NOT等の演算機能を付加することにより、複数の
タイミングの組合わせでブレークポイントを設定し、そ
れによりブレークポイントを検出してもよい。これによ
りさらに高精度にブレークポイントを検出できる。
Furthermore, in this embodiment, a breakpoint is set by a change in the bint pattern at one timing, but the invention is not limited to this, and the comparison module can be set by AND, O, etc.
By adding arithmetic functions such as R and NOT, breakpoints may be set at a combination of a plurality of timings, thereby allowing the breakpoint to be detected. This allows breakpoints to be detected with even higher precision.

〔発明の効果〕〔Effect of the invention〕

以上説明したとおり、この発明においては、ブレークポ
イントをビットパターンの所定回数の変化により設定し
、それによりブレークポイントを検出しているので、I
Cの遅延時間等により発生ずる微少パルスに影響される
ことなく、高精度にブレークポインI・を検出でき、必
要なタイミングでシミュレーションを中断できる等優れ
た効果を奏する。
As explained above, in this invention, breakpoints are set by changing the bit pattern a predetermined number of times, and breakpoints are detected thereby.
The break point I can be detected with high precision without being affected by minute pulses generated due to the delay time of C, etc., and the simulation can be interrupted at the necessary timing, which is an excellent effect.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図はこの発明に係るシミュレータの構成を示すブロ
ック図、第2図はシミュレータのシミュレーション動作
を示すフローチャート、第3図はこの発明の効果を示す
タイミングチャート、第4図は従来のシミュレータの構
成を示すブロック図、第5図は被測定回路である論理回
路の論理図、第6図は従来のシミュレーション結果を示
す図、第7図は正常にシミュレーションしたときのイヘ
ント発生状態を示す図、第8図は従来のシミュレータの
シミュレーション動作を示すフローチャート、第9〜第
11図は逆トレース時のデイスプレィ装置の表示状態を
示す図である。 2・・・キー人力装置  4・・・記憶モジュール8・
・・ブレークポイント検出モジュール  IO・・・比
較モジュール  11・・・変化検出モジュール  1
2・・・カウンタモジュール なお、図中、同一符号は同一、又は相当部分を示す。
Fig. 1 is a block diagram showing the configuration of a simulator according to the present invention, Fig. 2 is a flowchart showing the simulation operation of the simulator, Fig. 3 is a timing chart showing the effects of this invention, and Fig. 4 is the configuration of a conventional simulator. 5 is a logic diagram of the logic circuit that is the circuit under test. FIG. 6 is a diagram showing conventional simulation results. FIG. FIG. 8 is a flowchart showing the simulation operation of a conventional simulator, and FIGS. 9 to 11 are diagrams showing the display state of the display device during reverse tracing. 2... Key human power device 4... Memory module 8.
...Breakpoint detection module IO...Comparison module 11...Change detection module 1
2...Counter module In the drawings, the same reference numerals indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】[Claims] (1)2値信号を処理する被測定回路中にシミュレーシ
ョンを停止させるブレークポイントを設定して、前記被
測定回路のシミュレーションを行い、ブレークポイント
を検出したときにシミュレーションを停止して逆トレー
スを行い、前記被測定回路中の不良箇所を検出するシミ
ュレータにおいて、 前記ブレークポイントを前記2値信号のビ ットパターンの所定回数の変化で設定するブレークポイ
ント設定手段と、 シミュレート時の前記ビットパターンの変 化を検出する変化検出手段と、 設定されたブレークポイントのビットパタ ーンの変化を記憶する記憶手段と、 前記変化検出手段がビットパターンの変化 を検出する都度、検出されたビットパターンと、前記記
憶手段に記憶されたビットパターンとを比較する比較手
段と、 該比較手段の比較結果が前記所定回数一致 したとき、前記ブレークポイントを検出する手段と を備えることを特徴とするシミュレータ。
(1) Set a breakpoint to stop the simulation in the circuit under test that processes a binary signal, simulate the circuit under test, and when the breakpoint is detected, stop the simulation and perform reverse tracing. , the simulator for detecting a defective location in the circuit under test, further comprising breakpoint setting means for setting the breakpoint at a predetermined number of changes in the bit pattern of the binary signal; A change detection means for detecting a change, a storage means for storing a change in a bit pattern of a set breakpoint, and each time the change detection means detects a change in a bit pattern, the detected bit pattern and the storage means are stored in the storage means. A simulator comprising: a comparison means for comparing the bit patterns obtained by the comparison means; and means for detecting the break point when the comparison result of the comparison means matches the predetermined number of times.
JP1300531A 1989-11-16 1989-11-16 Simulator Pending JPH03158972A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1300531A JPH03158972A (en) 1989-11-16 1989-11-16 Simulator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1300531A JPH03158972A (en) 1989-11-16 1989-11-16 Simulator

Publications (1)

Publication Number Publication Date
JPH03158972A true JPH03158972A (en) 1991-07-08

Family

ID=17885942

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1300531A Pending JPH03158972A (en) 1989-11-16 1989-11-16 Simulator

Country Status (1)

Country Link
JP (1) JPH03158972A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05274385A (en) * 1992-03-25 1993-10-22 Hitachi Ltd Logic verification environment controlling device
JPH0736732A (en) * 1993-06-29 1995-02-07 Nec Corp Logical simulator

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05274385A (en) * 1992-03-25 1993-10-22 Hitachi Ltd Logic verification environment controlling device
JPH0736732A (en) * 1993-06-29 1995-02-07 Nec Corp Logical simulator

Similar Documents

Publication Publication Date Title
US6633838B1 (en) Multi-state logic analyzer integral to a microprocessor
US5845064A (en) Method for testing and verification of a CPU using a reference model
JPH02213950A (en) Error injection system
JPH03158972A (en) Simulator
US5818849A (en) IC testing apparatus
JPS6227831A (en) Checking circuit for computing element
SU1312580A1 (en) Device for checking and diagnostic testing of digital units
JPS60163143A (en) Detection of high impedance state
EP0396310A2 (en) Signature analysis in physical modeling
JP3340459B2 (en) Signal determination device and signal determination method
JP2957016B2 (en) Delay failure simulation method
JP2001318123A (en) Fail data log writing circuit
JPS60163142A (en) Modeling operation of complicated digital device
SU1709321A2 (en) Device for checking stability of program performance
JPS6213697B2 (en)
JPS5838879B2 (en) fail memory
JPS59148971A (en) Simulating method of logical circuit
JPH01250771A (en) Analyzing device for operation of logic circuit
SU660053A1 (en) Microprocessor checking arrangement
SU484521A1 (en) Device for detecting errors in digital machines
JPS5933079Y2 (en) Data event measurement device
JP3698269B2 (en) LSI delay measurement method
SU1278855A1 (en) Device for checking and diagnostic testing of digital units
JPH05232189A (en) Fault simulation apparatus
JPH0580121A (en) Diagnostic ratio evaluating method for test pattern for serial scan circuit