JPH04163672A - Logic simulating system - Google Patents

Logic simulating system

Info

Publication number
JPH04163672A
JPH04163672A JP2288361A JP28836190A JPH04163672A JP H04163672 A JPH04163672 A JP H04163672A JP 2288361 A JP2288361 A JP 2288361A JP 28836190 A JP28836190 A JP 28836190A JP H04163672 A JPH04163672 A JP H04163672A
Authority
JP
Japan
Prior art keywords
event
propagation
logic
events
simulation
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
JP2288361A
Other languages
Japanese (ja)
Inventor
Kunio Iwawaki
岩脇 邦夫
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP2288361A priority Critical patent/JPH04163672A/en
Publication of JPH04163672A publication Critical patent/JPH04163672A/en
Pending legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To reduce the number of times of the evaluation of an expression, and to speed up logic simulation by giving a function to keep the propagation of an event waiting. CONSTITUTION:A logic simulator 11 executes the logic simulation of an existing function level and an existing gate level. When the event is generated, an event counter 12 provided for every signal name increases a count value only when the event corresponds to its signal. When the value of the event counter 12 becomes over some definite value, an event propagation stop function module 13 stops the propagation until another event comes to an end, and it suppresses the generation to the event more than necessitated in this way. Thus, the logic simulation can be speeded up.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) この発明は、動作レベルあるいは構造レベルの記述を検
証するイベント駆動による論理シミュレータに用いて好
適な論理シミュレーション方式(従来の技術) 動作レベルあるいは構造レベルの記述を検証する方法と
してはシミュレーションが一般的である。シミュレーシ
ョンによらずに記述の正当性を確認する研究もなされて
いるが実用的なものはない。シミュレーションの方式に
はコンパイル方式とイベント駆動方式がある。コンパイ
ル方式は回路をあるマシンの命令コードに変換して直接
実行する手法である。実行速度が速いという長所を持つ
が、遅延を考慮したシミュレーションが難しく、また扱
える範囲にも制限がある。これに対してイベント駆動方
式は回路をテーブル形式で表現し、それをたどりながら
シミュレーションする手法である。
[Detailed Description of the Invention] [Objective of the Invention] (Industrial Application Field) This invention is a logic simulation method (conventional technology ) Simulation is a common method for verifying descriptions at the behavioral or structural level. Although some research has been conducted to confirm the validity of descriptions without using simulations, there is nothing practical. There are two types of simulation methods: a compilation method and an event-driven method. The compilation method is a method of converting a circuit into instruction code for a certain machine and directly executing it. Although it has the advantage of fast execution speed, it is difficult to perform simulations that take delay into account, and there are limits to the range that can be handled. On the other hand, the event-driven method represents a circuit in a table format and simulates it while following it.

従来のイベント駆動方式の論理シミュレータでは、同一
シミュレーション時刻に発生したイベントは全てそのイ
ベントが入力となる論理式やネットリストに伝播されて
いた。第3図にハードウエア記述例を示す。図において
、各信号の値がそれぞれA−0,B−1,C−0,D−
0,S−0゜T−1,U−0,X−0,Y−1,Z−1
であったとする。この時、Cにイベントが発生し、C−
1になると第3図中の式31が評価されA−1となる。
In conventional event-driven logic simulators, all events that occur at the same simulation time are propagated to logic formulas and netlists that serve as inputs. Figure 3 shows an example of hardware description. In the figure, the values of each signal are A-0, B-1, C-0, D-, respectively.
0,S-0゜T-1,U-0,X-0,Y-1,Z-1
Suppose it was. At this time, an event occurs in C, and C-
When it becomes 1, equation 31 in FIG. 3 is evaluated and becomes A-1.

そしてAを入力する第3図中の弐32が評価されS−1
となる。すると第3図中の式33が評価されX−1とな
る。次に同一シミュレーション時刻においてBにイベン
トが発生しB−0となったとすると再び式31を評価し
A−0なり、次に式32を評価しS−Oとなり次に弐3
3を評価しX−Oになる。このようにしてイベントが発
生する都度、式を評価していく。
Then, 232 in Figure 3, which inputs A, is evaluated and S-1
becomes. Then, equation 33 in FIG. 3 is evaluated and becomes X-1. Next, if an event occurs at B at the same simulation time and it becomes B-0, then Equation 31 is evaluated again and it becomes A-0, then Equation 32 is evaluated and it becomes S-O, and then 23
Evaluate 3 and get X-O. In this way, the expression is evaluated every time an event occurs.

(発明が解決しようとする課題) 上述した従来例に従えば、1つの式の入力信号が多かっ
たり、フィードバックループがあったりすると同じ式を
繰返し何度も評価することになり、結果的に論理シミュ
レーション時間が長くなってしまうといった欠点があっ
た。
(Problem to be Solved by the Invention) According to the conventional example described above, if one formula has many input signals or there is a feedback loop, the same formula will be evaluated over and over again, resulting in logic There was a drawback that the simulation time became long.

この発明は上記事情に鑑みてなされたものてあり、論理
シミュレーションが高速化できる論理シミュレーション
方式を提供することを目的とする。
The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a logic simulation method that can speed up logic simulation.

[発明の構成] (課題を解決するための手段) 本発明は、動作レベルあるいは構造レベルの記述をシミ
ュレーションにより検証する論理シミュレータにおいて
、同一シミュレーション時刻において各信号名毎発生し
たイベントの数をカウントするカウンタと、このカウン
タが所定の値となったことを検出してイベントの伝播を
一時停止し、他のイベントが無くなった時点でイベント
の伝播を許可する機能モジュールとを具備し、この機能
モジュールを読み出し実行することにより必要以上のイ
ベントの発生を抑制することを特徴とする。
[Structure of the Invention] (Means for Solving the Problems) The present invention counts the number of events occurring for each signal name at the same simulation time in a logic simulator that verifies descriptions at the behavioral level or structural level through simulation. It is equipped with a counter, and a function module that detects that the counter reaches a predetermined value, suspends event propagation, and allows event propagation when there are no other events. It is characterized by suppressing the occurrence of more events than necessary by executing reading.

(作 用) 上述した構成にて、同一シミュレーション時刻で各信号
名毎に発生したイベントの数をカウントするカウンタが
ある一定以上の値になったらイベントが先に伝播するこ
とを停止させ、このことにより、必要以上のイベント発
生を抑制し、論理シミュレーションの高速化を実現する
(Function) With the configuration described above, when the counter that counts the number of events that occur for each signal name at the same simulation time reaches a certain value or more, the event is stopped from being propagated first. This suppresses the occurrence of unnecessary events and speeds up logic simulation.

このことにより、論理シミュレーションの高速化がはか
れ、しいては計算機使用時間の短縮、論理シミュレーシ
ョンコストの削減等の効果が得られる。
As a result, the speed of logic simulation can be increased, and effects such as reduction in computer usage time and reduction in logic simulation cost can be obtained.

(実施例) 以下、図面を使用して本発明実施例について説明する。(Example) Embodiments of the present invention will be described below using the drawings.

第1図は本発明の実施例を示すブロック図である。図に
おいて、符号11は論理シミュレータであり、既存の機
能レベルまたはゲートレベルの論理シミュレーションを
行う。符号12は各信号名毎に設けられたイベントカウ
ンタであり、イベントが発生するとその信号に対応して
いる場合に限りカウント値をインクリメントする。符号
13はイベント伝播停止機能モジュールであり、イベン
トカウンタ12の値がある一定以上になると他のイベン
トが収束するまで伝播をストップさせる機能モジュール
である。
FIG. 1 is a block diagram showing an embodiment of the present invention. In the figure, reference numeral 11 is a logic simulator, which performs logic simulation at an existing functional level or gate level. Reference numeral 12 is an event counter provided for each signal name, and when an event occurs, the count value is incremented only if it corresponds to that signal. Reference numeral 13 denotes an event propagation stop function module, which stops propagation when the value of the event counter 12 reaches a certain level or more until other events converge.

第2図は本発明実施例の動作を示すフローチャートであ
る。図において、符号21はイベントカウンタ12をク
リアするステップであり、シミュレーションタイムtの
処理を開始する前にすべてのイベントカウンタ12の値
を0にする。符号22はイベントカウンタ12をインク
リメントするステップであり、イベントの発生した信号
(名)に対応するイベントカウンタ12の値をインクリ
メントする。符号23はイベントの伝播を行うがどうか
を判断するステップであり、同一信号(名)に対して発
生したイベントの数がある一定の値を越えているかどう
かをチエツクする。符号24はイベントの伝播を一時ス
トップするステップであり、イベントの発生数がある一
定の値を越えたものは、イベントを伝播するのを一時ス
トップし、他のイベントが無くなった時点でイベントを
伝播する。
FIG. 2 is a flowchart showing the operation of the embodiment of the present invention. In the figure, reference numeral 21 is a step for clearing the event counters 12, and the values of all event counters 12 are set to 0 before starting the process at simulation time t. Reference numeral 22 is a step for incrementing the event counter 12, and the value of the event counter 12 corresponding to the signal (name) in which an event has occurred is incremented. Reference numeral 23 is a step for determining whether or not to propagate an event, in which it is checked whether the number of events occurring for the same signal (name) exceeds a certain value. Reference numeral 24 is a step to temporarily stop the propagation of the event, and when the number of events that occur exceeds a certain value, the propagation of the event is temporarily stopped, and the event is propagated when there are no other events. do.

以下、本発明実施例の動作について説明する。The operation of the embodiment of the present invention will be explained below.

本発明は、イベント駆動方式に従う機能レベルまたはゲ
ートレベルの論理シミュレータであって、第1図に示す
ように各信号名毎にイベントカウンタ12を持つ。例え
ば第3図のような3つの論理式をシミュレーションする
場合は、信号名が10個あるのでイベントカウンタ12
も10個用意する。シミュレーションを開始すると、各
シミュレーションタイムの処理を開始する前に第2図ス
テップ21に示すようにすべてのイベントカウンタ12
の値をOにする。次にシミュレーションしながら信号A
にイベントが発生したら信号A用のイベントカウンタ1
2をインクリメントし、信号Sにイベントが発生したら
信号S用のイベントカウンタ12をインクリメントする
(ステップ22)。
The present invention is a functional-level or gate-level logic simulator that follows an event-driven method, and has an event counter 12 for each signal name, as shown in FIG. For example, when simulating three logical expressions as shown in Figure 3, there are 10 signal names, so the event counter 12
Prepare 10 pieces. When the simulation starts, all event counters 12 are set as shown in step 21 of FIG. 2 before starting the processing of each simulation time.
Set the value to O. Next, while simulating the signal A
When an event occurs, event counter 1 for signal A
2 is incremented, and when an event occurs on the signal S, the event counter 12 for the signal S is incremented (step 22).

他の信号にイベントが発生した場合も同様である。The same applies when an event occurs on another signal.

ステップ22のインクリメント動作により、対応するイ
ベントカウンタ12の値がある値(たとえば10)を越
えたならば(ステップ23)、そのイベントは伝播せず
に他のイベントが無くなるまで待たせておく(ステップ
24)。具体的には、例えば信号Sに対して発生したイ
ベントが10を越えたならば、第3図に示す式33にイ
ベントを伝播するのをやめて、他のイベントの処理を行
い、すべて終了したらこの弐33にイベントを伝播し評
価する。
If the value of the corresponding event counter 12 exceeds a certain value (for example, 10) due to the increment operation in step 22 (step 23), that event is not propagated and is made to wait until there are no other events (step 23). 24). Specifically, for example, if the number of events that occur for the signal S exceeds 10, stop propagating the event to Equation 33 shown in Figure 3, process other events, and when all events are completed, use this Propagate the event to 233 and evaluate it.

以上のようにイベントの伝播を待たせるという機能を持
たせたことにより、式の評価回数を減らすことができ、
論理シミュレーションの高速化がはかれる。
By providing the function of waiting for event propagation as described above, the number of expression evaluations can be reduced.
Logic simulation speed can be increased.

[発明の効果コ 以上説明のように本発明によれば以下に列挙する効果が
得られる。
[Effects of the Invention] As explained above, according to the present invention, the following effects can be obtained.

(1)論理シミュレーションを高速化できる。(1) Logic simulation can be accelerated.

(2)計算機使用時間を短縮できる。(2) Computer usage time can be reduced.

(3)論理シミュレーションコストを削減できる。(3) Logic simulation costs can be reduced.

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

第1図は本発明の実施例を示すブロック図、第2図は本
発明実施例の動作を示すフローチャート、第3図はハー
ドウェア記述例を示す図である。 11・・・論理シミュレータ、12・・・イベントカウ
ンタ、13・・・イベント伝播停止機能モジュール。 出願人代理人 弁理士 鈴江武彦 第1図 第2図 A = (B & C) !D −一−−−(31)S
=(T ! U)aA −=−−(32)X 、 va
zas   −−−−−(33)a′論理積 1 ′論理和 <>:2算の優先順位 第3図
FIG. 1 is a block diagram showing an embodiment of the invention, FIG. 2 is a flowchart showing the operation of the embodiment of the invention, and FIG. 3 is a diagram showing an example of hardware description. 11...Logic simulator, 12...Event counter, 13...Event propagation stop function module. Applicant's agent Patent attorney Takehiko Suzue Figure 1 Figure 2 A = (B & C)! D -1---(31)S
=(T!U)aA −=−−(32)X, va
zas ------- (33) a' Logical product 1 ' Logical sum <>: Priority order of 2 arithmetic Figure 3

Claims (1)

【特許請求の範囲】[Claims] 動作レベルあるいは構造レベルの記述をシミュレーショ
ンにより検証する論理シミュレータにおいて、同一シミ
ュレーション時刻において各信号名毎発生したイベント
の数をカウントするカウンタと、このカウンタが所定の
値となったことを検出してイベントの伝播を一時停止し
、他のイベントが無くなった時点でイベントの伝播を許
可する機能モジュールとを具備し、この機能モジュール
を読み出し実行することにより必要以上のイベントの発
生を抑制することを特徴とする論理シミュレーション方
式。
In a logic simulator that verifies behavioral level or structural level descriptions through simulation, there is a counter that counts the number of events that occur for each signal name at the same simulation time, and an event is detected when this counter reaches a predetermined value. It is characterized by having a function module that temporarily stops the propagation of the event and allows the propagation of the event when there are no other events, and by reading and executing this function module, it suppresses the occurrence of more events than necessary. A logical simulation method.
JP2288361A 1990-10-29 1990-10-29 Logic simulating system Pending JPH04163672A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2288361A JPH04163672A (en) 1990-10-29 1990-10-29 Logic simulating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2288361A JPH04163672A (en) 1990-10-29 1990-10-29 Logic simulating system

Publications (1)

Publication Number Publication Date
JPH04163672A true JPH04163672A (en) 1992-06-09

Family

ID=17729209

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2288361A Pending JPH04163672A (en) 1990-10-29 1990-10-29 Logic simulating system

Country Status (1)

Country Link
JP (1) JPH04163672A (en)

Similar Documents

Publication Publication Date Title
Cheng et al. Self-timed carry-lookahead adders
JPS61110071A (en) Simulation system and simulator for logical circuit
US20150120268A1 (en) Method and apparatus for simulating a digital circuit
US5184308A (en) Fault simulation method
CN101689216B (en) Compact circuit-simulation output
US5805859A (en) Digital simulator circuit modifier, network, and method
JP3144950B2 (en) Logic simulation method
JP2590179B2 (en) Parallel logic simulation control method
Wong et al. Performance analysis and design of a logic simulation machine
US5737583A (en) Digital circuit simulation
Miyoshi et al. Speed up techniques of logic simulation
JP2727615B2 (en) Logic simulation equipment
JP2921087B2 (en) Real Chip Simulation Method for Hardware Accelerator
JP3121921B2 (en) Logic circuit division method in logic simulation
Miczo et al. The Effects of Modeling on Simulator Performance
JP2923893B1 (en) Hardware logic simulation device
JP3670681B2 (en) Functional simulation method
JPH04337869A (en) Logical simulation device
JP3139011B2 (en) Fixed-point processor
JP2614931B2 (en) Interrupt control circuit
JPH01197868A (en) Logical simulation method
Safar et al. Fast Transaction-Level Model for Direct Memory Access Controller
Pandey et al. A semantic model of VHDL for validating rewriting algebras
JPH03134774A (en) Logic simulation method
JPH04266167A (en) Logical operation system