JPH01140246A - Logic simulator - Google Patents
Logic simulatorInfo
- Publication number
- JPH01140246A JPH01140246A JP62299128A JP29912887A JPH01140246A JP H01140246 A JPH01140246 A JP H01140246A JP 62299128 A JP62299128 A JP 62299128A JP 29912887 A JP29912887 A JP 29912887A JP H01140246 A JPH01140246 A JP H01140246A
- Authority
- JP
- Japan
- Prior art keywords
- simulation
- comparator
- counter
- decrementor
- value
- 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
Links
- 238000004088 simulation Methods 0.000 claims abstract description 53
- 238000000034 method Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000012805 post-processing Methods 0.000 description 2
- 230000010365 information processing Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Abstract
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明は論理シミュレータに関する。[Detailed description of the invention] [Industrial application field] The present invention relates to a logic simulator.
(従来の技術〕 従来の論理シミュレータでは、 ・ある信号が指定状態値になった時に停止する。(Conventional technology) In traditional logic simulators, ・Stop when a certain signal reaches a specified state value.
・シミュレータ起動時に、クロック数またはパターン数
を指定し、指定数のシミュレーションを行なった後に停
止する。- Specify the number of clocks or patterns when starting the simulator, and stop after performing the specified number of simulations.
ようになっていた(特願昭61−185931.情報処
理1984年10月号PIθ48〜P1055シミュレ
ーダー般)。(Japanese Patent Application No. 61-185931. Information Processing October 1984 issue PIθ48-P1055 Simulator).
上述した従来の論理シミュレータでは、シミュレーショ
ン時に動的に停止指定ができず、また、複数の異なる時
刻の停止指定を一度にできないため、たとえば、シミュ
レーションの制御として、ある事象が生じた場合に前処
理(被検証論理回路からI10装置への割込み処理等)
を行ない、ある時刻後に後処理(I10装置からリード
した内容を被検証論理回路のメモリへの書き込み等)を
行なうような処理が必要な場合、前記事象が不定期に生
じると、後処理を行なうために必要なシミュレーション
の停止を指定できないという欠点がある。With the conventional logic simulators mentioned above, it is not possible to dynamically specify a stop during simulation, and it is not possible to specify a stop at multiple different times at once. (Interrupt processing from the logic circuit to be verified to the I10 device, etc.)
If it is necessary to carry out post-processing (such as writing the contents read from the I10 device to the memory of the logic circuit to be verified) after a certain time, if the above event occurs irregularly, the post-processing may be performed after a certain time. This method has the disadvantage that it is not possible to specify the stop of the simulation necessary to perform the simulation.
C問題点を解決するための手段〕
本発明の論理シミュレータは、1クロツク毎に一定数減
算または加算するカウンタと、該カウンタの保持する値
が所定の値か否かを判断する比較器とを、あるシミュレ
ーション条件が成立してシミュレーションが停止したと
きにシミュレーションモデル上に作り出す手段と、前記
カウンタに初期値を設定するとともに、シミュレーショ
ン再開指令が発せられると、前記カウンタを動作させる
手段と、前記比較器によって前記カウンタの保持゛する
値が前記所定の値であると判断された場合にシミュレー
ションを停止させる手段とを有している。Means for Solving Problem C] The logic simulator of the present invention includes a counter that subtracts or adds a fixed number every clock, and a comparator that determines whether the value held by the counter is a predetermined value. , means for creating on a simulation model when a certain simulation condition is met and the simulation is stopped; means for setting an initial value in the counter and operating the counter when a simulation restart command is issued; and the comparison method. and means for stopping the simulation when the value held by the counter is determined by the device to be the predetermined value.
したがって、シミュレーション時に停止時刻を動的に指
定できる。Therefore, the stop time can be dynamically specified during simulation.
次に、本発明の実施例について図面を参照して説明する
。Next, embodiments of the present invention will be described with reference to the drawings.
第1図は本発明の論理シミュレータの一実施例のブロッ
ク図である。FIG. 1 is a block diagram of an embodiment of the logic simulator of the present invention.
デクリメンタ・比較器作成部1は、シミュレーションモ
デル71をシミュレーションモデル72へ変更する。シ
ミュレーションモデル71およびシミュレーションモデ
ル72は、デクリメンタ2と比較器3とを含んでいる。The decrementer/comparator creation unit 1 changes the simulation model 71 to a simulation model 72. The simulation model 71 and the simulation model 72 include a decrementer 2 and a comparator 3.
シミュレーションモデル71上では比較器3は不一致を
示している。シミュレーション部6はシミュレーション
制御部5によって動作手順が制御される。ロード部4は
、クロック数をデクリメンタ2にロードする機能を有し
ている。シミュレーション制御部5は、比較器3が一致
を示した時に、論理シミュレーションの実行を停止する
機能を有する。なお、本実施例では比較器3、デクリメ
ンタ3は3組設けられ、シミュレーションの停止時刻を
3つ設定できるようになっているが、勿論−組でもよい
。On the simulation model 71, the comparator 3 indicates a mismatch. The operation procedure of the simulation section 6 is controlled by the simulation control section 5. The loading section 4 has a function of loading the clock number into the decrementer 2. The simulation control unit 5 has a function of stopping execution of the logic simulation when the comparator 3 indicates a match. In this embodiment, three sets of comparators 3 and decrementers 3 are provided so that three simulation stop times can be set, but of course, a - set may also be used.
かかる構成において、論理シミュレーション実行中に、
ある事実が生じ、その結果、論理シミュレーションの実
行が停止すると、デクリメンタ・比較器作成部1は、デ
クリメンタ2の出力と比較器3の入力とを接続する。こ
の接続は、接続線8によって行なわれている。この結果
比較器3は、デクリメンタ2の出力と”0”とを比較す
るようになる。次に、クロック数がロード部4を通して
デクリメンタ2にロードされる。シミュレーション再開
指令がシミュレーション制御部5によって発せられ、シ
ミュレーション部6が論理シミュレーションを再開する
と、デクリメンタ2は1クロック毎に減算される。クロ
ック数分、論理シミュレーションが実行されると、比較
器3によりデクリメンタ2の値がOと判断される。この
判断が判断信号としてシミュレーション制御部5へ供給
され、これに応答してシミュレーション制御部5はシミ
ュレーション動作停止指令をシミュレーション部6へ送
出する。これによって論理シミュレーション実行中に別
の事象が生じた場合も、同様に 4してシミュレーショ
ンの停止をクロック数によって指定できる。また、事象
毎に実行うロック数をあらかじめ定義しておくことによ
り、シミュレーション実行時に動的に停止指定を行なう
ことが可能となる。In such a configuration, during execution of logical simulation,
When a certain fact occurs and, as a result, the execution of the logic simulation is stopped, the decrementer/comparator creation unit 1 connects the output of the decrementer 2 and the input of the comparator 3. This connection is made by a connecting line 8. As a result, the comparator 3 compares the output of the decrementer 2 with "0". Next, the clock number is loaded into the decrementer 2 through the loading section 4. When a simulation restart command is issued by the simulation control unit 5 and the simulation unit 6 restarts the logic simulation, the decrementer 2 is decremented every clock. When the logic simulation is executed for the number of clocks, the comparator 3 determines that the value of the decrementer 2 is O. This judgment is supplied as a judgment signal to the simulation control section 5, and in response, the simulation control section 5 sends a simulation operation stop command to the simulation section 6. With this, even if another event occurs during execution of a logical simulation, you can similarly specify the stop of the simulation by the number of clocks. Furthermore, by predefining the number of locks to be executed for each event, it is possible to dynamically specify a stop during simulation execution.
なお、比較器3で比較する値は0でなくてもよく、また
デクリメンタ2の代りにインクリメンタを用いてもよい
。Note that the value compared by the comparator 3 does not have to be 0, and an incrementer may be used instead of the decrementer 2.
以上説明したように本発明は、1クロック毎に一定数減
算または加算するカウンタとカウンタの保持する値が所
定の値か否かを判断する比較器とをシミュレーションモ
デル上に作り出す出段と、前記カウンタに初期値を設定
する手段と、前記比較器によって前記カウンタの保持す
る値が所定の値と判断された場合にシミュレーションを
停止する手段とを論理シミュレータに設けることにより
、シミュレーション時に停止時刻を動的に設定できる効
果がある。As explained above, the present invention provides an output stage that creates a counter that subtracts or adds a certain number every clock and a comparator that determines whether the value held by the counter is a predetermined value on a simulation model; By providing a logic simulator with means for setting an initial value in the counter and means for stopping the simulation when the comparator determines that the value held by the counter is a predetermined value, the stop time can be changed during simulation. There are effects that can be set.
第1図は本発明の論理シミュレータの一実施例のブロッ
ク図である。
1・・・・・・デクリメンタ・比較器作成部、2・・・
・・・デクリメンタ、3−−−−−−比較器、4・・・
・・・ロード部、
5・・・・・・シミュレーション制御部、6−−−−−
・シミュレーション部、
71−−−−−−シミュレーションモデル、72−−−
−−−シミュレーションモデル、8・・・・・・接続線
。FIG. 1 is a block diagram of an embodiment of the logic simulator of the present invention. 1...Decrementer/comparator creation section, 2...
...Decrementer, 3---Comparator, 4...
...Load section, 5...Simulation control section, 6------
・Simulation department, 71------ Simulation model, 72---
---Simulation model, 8... Connection line.
Claims (1)
該カウンタの保持する値が所定の値か否かを判断する比
較器とを、あるシミュレーション条件が成立してシミュ
レーションが停止したときにシミュレーションモデル上
に作り出す手段と、前記カウンタに初期値を設定すると
ともに、シミュレーション再開指令が発せられると、前
記カウンタを動作させる手段と、 前記比較器によって前記カウンタの保持する値が前記所
定の値であると判断された場合にシミュレーションを停
止させる手段とを含むことを特徴とする論理シミュレー
タ。[Claims] In a logic simulator, a counter that subtracts or adds a fixed number every clock;
means for creating a comparator for determining whether the value held by the counter is a predetermined value on a simulation model when a certain simulation condition is satisfied and the simulation is stopped; and setting an initial value for the counter. and means for operating the counter when a simulation restart command is issued; and means for stopping the simulation when the comparator determines that the value held by the counter is the predetermined value. A logic simulator featuring:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP62299128A JPH01140246A (en) | 1987-11-26 | 1987-11-26 | Logic simulator |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP62299128A JPH01140246A (en) | 1987-11-26 | 1987-11-26 | Logic simulator |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH01140246A true JPH01140246A (en) | 1989-06-01 |
Family
ID=17868487
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP62299128A Pending JPH01140246A (en) | 1987-11-26 | 1987-11-26 | Logic simulator |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH01140246A (en) |
-
1987
- 1987-11-26 JP JP62299128A patent/JPH01140246A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2018022317A (en) | HIL simulation system and control method thereof | |
JPH01140246A (en) | Logic simulator | |
JPS62221729A (en) | Microprogram control system | |
JPH0573296A (en) | Microcomputer | |
JP2614931B2 (en) | Interrupt control circuit | |
JPS62221736A (en) | Virtual computer system | |
JPH0683652A (en) | Microcomputer system | |
JPS61241843A (en) | Information processor | |
JPH09219638A (en) | Reset sequence control circuit | |
JPS5870361A (en) | Input controlling system | |
JPS62219136A (en) | Logical simulator | |
JPS63263543A (en) | Multilevel programming system | |
JPH04195316A (en) | Power saving circuit | |
JPS61286936A (en) | Step operation control system | |
JPS61235925A (en) | Operating system for electronic computer system | |
JPH01213725A (en) | Microprocessor for evaluation | |
JPS62197834A (en) | Microprogram controller | |
JPS58114242A (en) | Stop controlling method of computer | |
JPS63282535A (en) | Signal processor | |
JPH0392927A (en) | Data processor | |
JPH0331940A (en) | Microprogram controller | |
JPS60209851A (en) | Program sequence stop system | |
JPH04270441A (en) | Data processor | |
JPS63223930A (en) | Simulation system for program of exclusive processor | |
JPS61211745A (en) | Microcomputer |