JP2000250949A - Simulation device - Google Patents

Simulation device

Info

Publication number
JP2000250949A
JP2000250949A JP11049594A JP4959499A JP2000250949A JP 2000250949 A JP2000250949 A JP 2000250949A JP 11049594 A JP11049594 A JP 11049594A JP 4959499 A JP4959499 A JP 4959499A JP 2000250949 A JP2000250949 A JP 2000250949A
Authority
JP
Japan
Prior art keywords
simulation
state
information
fifo
time
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
JP11049594A
Other languages
Japanese (ja)
Inventor
Masanobu Mizuno
雅信 水野
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP11049594A priority Critical patent/JP2000250949A/en
Publication of JP2000250949A publication Critical patent/JP2000250949A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To prevent the increase of manhour due to the second execution of simulation and also to suppress the storage capacity that is required for a computer. SOLUTION: This device includes a simulation execution means 1, a FIFO means 2 which stores successively the simulation states and a storage control means 3 which stores the simulation states every time the simulation time is updated. If an abnormal simulation result is detected and the simulation is discontinued, the simulation result can be analyzed according to the information stored in the means 2 without executing again the simulation. Plural abnormal states are sometimes detected by the simulation of a single time.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、複数の機能モジュ
ールを集積する大規模なシステムLSIの設計検証に用
いる機能論理シミュレーション装置に関する。特に大規
模なシステムLSIの不具合を効率良く解析するシミュ
レーション装置に関する。
The present invention relates to a functional logic simulation apparatus used for design verification of a large-scale system LSI integrating a plurality of functional modules. In particular, the present invention relates to a simulation device that efficiently analyzes a failure of a large-scale system LSI.

【0002】[0002]

【従来の技術】LSIの微細化、集積技術の進展によ
り、1チップLSI にシステムレベルの大規模回路を集積
することが可能となっている。一方、システムLSI設
計における処理方式から、機能、論理、レイアウトまで
を短期間に設計し、早期に製品化を図ることが必要とな
っている。従って、設計規模の増大に伴い、設計生産性
の向上、設計効率化を可能とする技術が強く求められて
いる。特に設計検証では、設計規模の増大と検証ケース
の複雑化により長大な検証工数を要するため、その効率
化が不可欠である。
2. Description of the Related Art With the miniaturization of LSIs and the development of integration technologies, it has become possible to integrate large-scale circuits at the system level in one-chip LSI. On the other hand, it is necessary to design from the processing method in the system LSI design to the function, logic, and layout in a short period of time, and to commercialize the product early. Therefore, with the increase in the design scale, there is a strong demand for a technology capable of improving design productivity and increasing design efficiency. In particular, in design verification, an increase in the design scale and the complexity of the verification case require a long verification man-hour.

【0003】従来の機能論理設計検証では、主にハード
ウェア記述言語を用いた回路記述と、そのテストベクタ
記述を行ない、その回路動作をコンピュータ上でシミュ
レーションする。回路動作の検証では、シミュレーショ
ン実行中、特定の回路上の信号を観測し、設計仕様上そ
の信号のとるべき期待値との照合を行なうことによって
設計に誤りのないことを確認する。あるいは、シミュレ
ーション実行中の仕様上とり得る動作状態の条件を設定
し、その条件の範囲内で動作することを確認する。
In the conventional functional logic design verification, a circuit description using a hardware description language and its test vector description are mainly performed, and the circuit operation is simulated on a computer. In the verification of the circuit operation, a signal on a specific circuit is observed during the execution of the simulation, and it is confirmed that there is no error in the design by comparing the signal with an expected value to be taken in the design specification. Alternatively, a condition of an operation state which can be taken in specifications during the execution of the simulation is set, and it is confirmed that the operation is performed within the range of the condition.

【0004】この際、期待値との不一致や動作条件違反
として現れる設計不具合が発生すると、不具合が発生し
た素子、信号から順次、その不具合のある素子、信号線
の入力側の直前の状態を探索し、不具合の原因を特定
し、必要な回路修正を行なう。このデバッグ作業では、
不具合を生じさせる動作状態を再現させるため、少なく
とも1回、シミュレーションを再実行する。さらにすべ
てのシミュレーション実行を通じて不具合が発生しなく
なるまでデバッグ作業を繰り返し行なう。
[0004] At this time, if a design defect that appears as a mismatch with an expected value or a violation of operating conditions occurs, the defective element and the state immediately before the input side of the signal line are searched sequentially from the defective element and the signal. Then, the cause of the failure is specified, and necessary circuit correction is performed. In this debugging work,
The simulation is re-executed at least once in order to reproduce the operation state causing the failure. Further, the debugging work is repeated until no trouble occurs through all the simulations.

【0005】従来のシミュレーション装置、あるいはシ
ミュレーション方法では、不具合の解析、デバッグ作業
を行なうために、シミュレーション実行中の回路の動作
状態を監視し、期待値違反等の不具合と判断される状態
が発生するとシミュレーションを一時停止させ、動作状
態の解析や単位時間毎のステップ実行を行なう手段を備
えていた。また、長大な処理時間を要する大規模LSI
の1チップのシミュレーションでは、シミュレーション
実行中、定期的にシミュレーション状態を保存し、全シ
ミュレーション完了後に保存されたシミュレーション状
態を復帰させ、特定時刻からのシミュレーションの再実
行、デバッグを行なう手段を備えていた。
In the conventional simulation apparatus or simulation method, in order to perform a failure analysis and a debugging operation, the operation state of the circuit during the simulation is monitored, and when a state determined to be a failure such as an expected value violation occurs. The system is provided with means for temporarily stopping the simulation, analyzing the operation state, and performing step execution per unit time. Large-scale LSI requiring a long processing time
The one-chip simulation includes means for periodically saving the simulation state during the execution of the simulation, restoring the saved simulation state after completion of all simulations, and re-executing and debugging the simulation from a specific time. .

【0006】[0006]

【発明が解決しようとする課題】しかしながら、従来の
シミュレーション装置、あるいはシミュレーション方法
では、不具合を検出するとシミュレーションを一時停止
し、デバッグ作業に入ることが可能であるが、不具合の
原因を特定するためには、過去の状態を探索する必要か
ら、シミュレーションを再実行するために多大の処理時
間、工数を要するという問題点を有していた。大規模L
SIのシミュレーションでは、数十時間から数日に渡る
シミュレーション時間を必要とし、特にこうした長時間
のシミュレーション実行の後、不具合が発生した場合
は、デバッグ、解析のためにシミュレーションを再実行
する期間が開発スケジュールに与える影響は致命的とな
り、大きな問題であった。
However, in the conventional simulation apparatus or simulation method, when a failure is detected, the simulation can be temporarily stopped and the debugging operation can be started. Has a problem that a large amount of processing time and man-hours are required to re-execute the simulation because it is necessary to search for a past state. Large L
Simulation of SI requires simulation time ranging from several tens of hours to several days. In particular, if a problem occurs after such a long simulation run, a period for re-executing the simulation for debugging and analysis has been developed. The impact on the schedule was fatal and a major problem.

【0007】一方、これに対してシミュレーション状態
を定期的に保存する手段を用いることによって、不具合
が発生した場合、直前に保存された状態を復帰させ、回
路動作、その状態変化を追跡できるため、比較的デバッ
グで工数を抑えることができる可能性がある。しかし、
不具合が発生する時刻を予測することはできないため、
シミュレーション開始直後から繰り返しシミュレーショ
ン状態を保存する必要があり、大規模LSIのシミュレ
ーションでは計算機上に多大の記憶容量を要する。特に
大規模LSIのシミュレーションでは、1時刻のシミュ
レーション状態であっても、その状態を保存するために
大きな記憶領域を要し、効率良くデバッグ、解析が可能
とする記憶領域を確保することが困難であるという問題
を有していた。
On the other hand, by using means for periodically saving the simulation state, if a failure occurs, the state saved immediately before can be restored, and the circuit operation and its state change can be tracked. There is a possibility that man-hours can be relatively reduced by debugging. But,
Because we ca n’t predict when a failure will occur,
It is necessary to repeatedly save the simulation state immediately after the start of the simulation, and a large-scale LSI simulation requires a large storage capacity on a computer. In particular, in the simulation of a large-scale LSI, even in the simulation state at one time, a large storage area is required to save the state, and it is difficult to secure a storage area that enables efficient debugging and analysis. There was a problem that there is.

【0008】本発明は上記問題点に鑑み、シミュレーシ
ョンの再実行による工数増を防ぐとともに計算機上に要
する記憶容量も抑えることのできるシミュレーション装
置を提供することを目的とする。
SUMMARY OF THE INVENTION In view of the above problems, an object of the present invention is to provide a simulation apparatus capable of preventing an increase in man-hours due to re-execution of a simulation and suppressing a storage capacity required on a computer.

【0009】[0009]

【課題を解決するための手段】請求項1記載のシミュレ
ーション装置は、LSIの機能論理設計検証に用いるシ
ミュレーション装置であって、LSIの設計情報、入力
信号情報に基づき回路動作をシミュレートし、かつ任意
の時点のシミュレーション状態の保存と復帰を行なうシ
ミュレーション実行手段と、シミュレーション状態を順
次記憶するとともに先入れ先出し方式で一定以上の記憶
を削除するFIFO手段と、シミュレーション実行中、シミ
ュレーション時刻を更新する毎にシミュレーション状態
をFIFO手段に保存させる保存制御手段とを備えたもので
ある。
According to a first aspect of the present invention, there is provided a simulation apparatus for use in verifying a functional logic design of an LSI, which simulates a circuit operation based on LSI design information and input signal information. Simulation execution means for saving and restoring the simulation state at any point in time, FIFO means for sequentially storing the simulation state and deleting a certain amount of memory in a first-in first-out manner, and simulation every time the simulation time is updated during simulation execution Storage control means for storing the state in the FIFO means.

【0010】請求項1記載のシミュレーション装置によ
れば、シミュレーション実行中、FIFO手段で使用する一
定容量の記憶領域で、シミュレーション結果を保存する
ことができる。これにより、不具合の発生点など任意の
時点でシミュレーションを中断させても、シミュレーシ
ョンの再実行を要せず、一定のシミュレーション期間の
状態を時間を遡って解析でき、設計検証作業を効率化す
ることができる。また、複数の中断点を設定してもFIFO
手段の情報を中断点の各々に保存することによって、各
々に対して回路動作を解析することができる。その結
果、大規模なシステムLSIの機能シミュレーション、
機能検証を効率的に行う事が可能となる。
According to the first aspect of the present invention, during the execution of the simulation, the simulation result can be stored in the storage area of a fixed capacity used by the FIFO means. As a result, even if the simulation is interrupted at any point, such as at the point where a failure occurs, the simulation can be analyzed retrospectively for a certain simulation period without re-executing the simulation, thus improving the efficiency of design verification work. Can be. Even if multiple break points are set, the FIFO
By storing the means information at each of the breakpoints, the circuit operation can be analyzed for each. As a result, large-scale system LSI function simulation,
Function verification can be performed efficiently.

【0011】請求項2記載のシミュレーション装置は、
請求項1において、FIFO手段が、シミュレーション状態
の変化を比較し、変化した信号状態のみを抽出した差分
状態情報を生成する状態差分手段と、差分状態情報を記
憶する差分情報記憶手段と、特定時刻の差分状態情報を
削除する削除手段と、差分情報記憶手段に記憶される各
時刻の差分状態情報から一連のシミュレーション状態を
生成するシミュレーション状態合成手段を備え、シミュ
レーション状態を状態差分手段を用いて差分状態情報に
変換した上で差分情報記憶手段に記憶し、削除手段を用
いて先入れ先出し方式で一定以上の差分状態情報を削除
し、かつシミュレーション状態合成手段によって一連の
シミュレーション状態を生成するものである。
According to a second aspect of the present invention, there is provided a simulation apparatus comprising:
2. The method according to claim 1, wherein the FIFO means compares the change in the simulation state and generates difference state information by extracting only the changed signal state; a difference information storage means for storing the difference state information; And a simulation state synthesis means for generating a series of simulation states from the difference state information at each time stored in the difference information storage means. After being converted into state information, the state information is stored in a difference information storage means, a certain state or more of the difference state information is deleted by a first-in first-out method using a deletion means, and a series of simulation states is generated by a simulation state synthesis means.

【0012】請求項2記載のシミュレーション装置によ
れば、請求項1と同様な効果のほか、さらにFIFO手段に
記憶する情報も差分情報化し圧縮するサンプル化して間
引くことにより、シミュレーションに必要とするFIFO手
段が使用する記憶領域を削減できかつシミュレーション
状態の再現を可能とする。
According to the simulation apparatus of the second aspect, in addition to the same effects as those of the first aspect, the information to be stored in the FIFO means is sampled to be converted into differential information, compressed, and decimated to reduce the FIFO required for the simulation. The storage area used by the means can be reduced and the simulation state can be reproduced.

【0013】請求項3記載のシミュレーション装置は、
請求項1において、保存制御手段が、指定のスケジュー
ルにてシミュレーション状態のFIFO手段への保存を制御
するものである。
According to a third aspect of the present invention, there is provided a simulation apparatus comprising:
In claim 1, the storage control means controls the storage of the simulation state in the FIFO means on a designated schedule.

【0014】請求項3記載のシミュレーション装置によ
れば、請求項1と同様な効果のほか、常にシミュレーシ
ョン単位時間毎に状態を保存するのではなく、解析上必
要な周期でシミュレーション状態を保存し、FIFO手段が
必要とする記憶領域を削減することができる。
According to the simulation apparatus of the third aspect, in addition to the same effects as those of the first aspect, the simulation state is not stored at every simulation unit time but the simulation state is stored at a period required for analysis. The storage area required by the FIFO means can be reduced.

【0015】請求項4記載のシミュレーション装置は、
請求項1において、保存制御手段が、被シミュレーショ
ン回路の特定信号の状態変化と同期してシミュレーショ
ン状態のFIFO手段への保存の有無を制御するものであ
る。
According to a fourth aspect of the present invention, there is provided a simulation apparatus comprising:
In claim 1, the storage control means controls whether or not the simulation state is stored in the FIFO means in synchronization with a state change of the specific signal of the circuit to be simulated.

【0016】請求項4記載のシミュレーション装置によ
れば、請求項1と同様な効果のほか、保存制御手段が例
えば同期回路等に対して被シミュレーション回路の特定
信号の状態変化と同期してシミュレーション状態のFIFO
手段への保存の有無を制御することにより、記憶領域を
削減できる。
According to the simulation apparatus of the fourth aspect, in addition to the same effects as those of the first aspect, the storage control means can synchronize the simulation state with a synchronous circuit or the like in synchronization with the state change of the specific signal of the circuit to be simulated. FIFO
The storage area can be reduced by controlling the presence or absence of storage in the means.

【0017】請求項5記載のシミュレーション装置は、
請求項1において、被シミュレーション回路の記憶素子
の状態値のみを保存する手段を備え、記憶素子の状態の
みをFIFO手段に保存するものである。
According to a fifth aspect of the present invention, there is provided a simulation apparatus comprising:
In the first aspect, there is provided means for storing only the state value of the storage element of the circuit to be simulated, and only the state of the storage element is stored in the FIFO means.

【0018】請求項5記載のシミュレーション装置によ
れば、請求項1と同様な効果のほか、記憶素子の状態の
みをFIFO手段に保存することでFIFO手段が使用する
記憶領域を削減できる。
According to the simulation apparatus of the fifth aspect, in addition to the same effects as those of the first aspect, the storage area used by the FIFO unit can be reduced by storing only the state of the storage element in the FIFO unit.

【0019】請求項6記載のシミュレーション装置は、
請求項1において、シミュレーション実行中、被シミュ
レーション回路の動作状態を監視し、停止条件に基づき
シミュレーション実行を停止させるとともに、FIFO手段
に記憶する一連のシミュレーション状態を保存する停止
制御手段を備えるものである。
According to a sixth aspect of the present invention, there is provided a simulation apparatus comprising:
2. The apparatus according to claim 1, further comprising a stop control unit that monitors an operation state of the simulated circuit during the execution of the simulation, stops the simulation execution based on the stop condition, and saves a series of simulation states stored in the FIFO unit. .

【0020】請求項6記載のシミュレーション装置によ
れば、請求項1と同様な効果のほか、停止条件として、
期待値違反等の不具合の発生を設定すると、不具合を検
出すると同時にシミュレーションを中断し、FIFO手段に
記憶される情報を元に必要な解析を即座に行う事ができ
る。
According to the simulation device of the sixth aspect, in addition to the same effects as those of the first aspect, the stop conditions include:
When the occurrence of a defect such as an expected value violation is set, the simulation is interrupted at the same time that the defect is detected, and the necessary analysis can be immediately performed based on the information stored in the FIFO means.

【0021】請求項7記載のシミュレーション装置は、
請求項1において、シミュレーション実行中、被シミュ
レーション回路の動作状態を監視し、所定の条件が成立
するとFIFO手段に記憶する一連のシミュレーション状態
をFIFO保存手段に順次追加保存する保存制御手段を備え
るものである。
According to a seventh aspect of the present invention, there is provided a simulation apparatus comprising:
2. A storage control unit according to claim 1, further comprising: a storage control unit that monitors an operation state of the circuit to be simulated during a simulation, and sequentially stores a series of simulation states stored in the FIFO unit in the FIFO storage unit when a predetermined condition is satisfied. is there.

【0022】請求項7記載のシミュレーション装置によ
れば、請求項1と同様な効果のほか、所定の条件とし
て、例えば期待値違反等の不具合の発生を設定し、シミ
ュレーションを実行すると、不具合が生じたときFIFO手
段に記憶される情報を別途保存し、シミュレーションを
続行する。。シミュレーションが終了すると、異なる複
数の不具合の発生に対して、各々について解析を行うた
めの個別の情報をFIFO保存手段より得る事ができる。こ
れにより、いくつかの異なる不具合を含む設計の検証に
対して、一度のシミュレーション実行によって不具合を
解析することができ、設計検証を効率化できる。
According to the simulation apparatus of the seventh aspect, in addition to the same effects as those of the first aspect, when the occurrence of a failure such as an expected value violation is set as a predetermined condition and the simulation is executed, the failure occurs. Then, the information stored in the FIFO means is separately saved, and the simulation is continued. . When the simulation is completed, individual information for performing an analysis for each of a plurality of different failures can be obtained from the FIFO storage unit. Thus, for verification of a design including several different defects, the defects can be analyzed by executing a single simulation, and the design verification can be made more efficient.

【0023】請求項8記載のシミュレーション装置は、
請求項1において、シミュレーション実行中、被シミュ
レーション回路の動作状態を監視し、所定の条件が成立
すると一定の時間シミュレーションを実行の後、FIFO手
段に記憶する一連のシミュレーション状態をFIFO保存手
段に順次追加保存する保存制御手段を備えるものであ
る。
[0023] The simulation device according to claim 8 is
2. The simulation method according to claim 1, wherein during the execution of the simulation, the operation state of the circuit to be simulated is monitored, and when a predetermined condition is satisfied, the simulation is executed for a predetermined time, and then a series of simulation states stored in the FIFO means are sequentially added to the FIFO storage means. It is provided with storage control means for storing.

【0024】請求項8記載のシミュレーション装置によ
れば、請求項1と同様な効果のほか、複数の不具合を解
析する情報として不具合が発生したシミュレーション時
点の前後の回路動作を観測することができ、不具合の回
路動作への影響も含め不具合の状況を解析、判断するこ
とができる。
According to the simulation apparatus of the eighth aspect, in addition to the same effects as those of the first aspect, it is possible to observe the circuit operation before and after the simulation at which the failure occurred as information for analyzing a plurality of failures. It is possible to analyze and determine the status of the fault, including the effect of the fault on the circuit operation.

【0025】[0025]

【発明の実施の形態】以下、本発明の実施の形態を図面
を参照して説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0026】(第1の実施の形態)本発明の第1の実施
の形態を図1から図6により説明する。図1は、本発明
の第1の実施の形態のシミュレーション装置の構成図を
示す。
(First Embodiment) A first embodiment of the present invention will be described with reference to FIGS. FIG. 1 shows a configuration diagram of a simulation device according to a first embodiment of the present invention.

【0027】図1の1は、ハードウェア記述言語で記述
されたLSI回路情報5とテストベクタ6を入力してL
SIシミュレーションを行うシミュレーション実行手段
である。シミュレーション実行手段1は、シミュレーシ
ョン時刻0よりシミュレーションを開始し、単位時間毎
の動作状態をシミュレーションし、所定の時刻でシミュ
レーションを終了する。シミュレーション実行手段1
は、シミュレーション実行中、当該時刻のシミュレーシ
ョン状態8を出力する機能を備える。
In FIG. 1, reference numeral 1 denotes an input of LSI circuit information 5 and a test vector 6 described in a hardware description language,
Simulation execution means for performing SI simulation. The simulation executing means 1 starts a simulation at a simulation time 0, simulates an operation state per unit time, and ends the simulation at a predetermined time. Simulation execution means 1
Has a function of outputting the simulation state 8 at the time during the execution of the simulation.

【0028】図2に第1の実施の形態においてシミュレ
ーション実行手段1が保存するシミュレーション状態の
構成を示す。図2に示す情報は、当該シミュレーション
状態が保存されたシミュレーション時刻を格納する時刻
情報81、被シミュレーション回路の入出力または内部
信号を示す各識別子とその信号値から成る信号状態82
から構成される。第1の実施の形態ではシミュレーショ
ン実行手段1を、イベント駆動方式の論理シミュレータ
によって実現する。
FIG. 2 shows a configuration of a simulation state stored by the simulation executing means 1 in the first embodiment. The information shown in FIG. 2 includes time information 81 for storing a simulation time at which the simulation state is stored, a signal state 82 including identifiers indicating input / output or internal signals of the simulated circuit and signal values thereof.
Consists of In the first embodiment, the simulation executing means 1 is realized by an event-driven logic simulator.

【0029】図1の2は、シミュレーション実行手段1
が出力するシミュレーション状態8を順次記憶するFI
FO手段である。FIFO手段2は、先入れ先出し方式
でシミュレーション状態8を記憶するとともに、格納順
に記憶したシミュレーション状態を削除し、シミュレー
ション状態の記憶サイズを一定に保つ。
FIG. 1 shows a simulation execution means 1.
That sequentially store the simulation state 8 output by the
FO means. The FIFO unit 2 stores the simulation states 8 in a first-in first-out manner, deletes the simulation states stored in the storage order, and keeps the storage size of the simulation states constant.

【0030】図1の3は、シミュレーション実行手段1
におけるシミュレーション時刻の更新とシミュレーショ
ン状態8の出力、その出力のFIFO手段2への格納を
制御する保存制御手段である。図1の4は、停止条件情
報7を入力し、これに基づき被シミュレーション回路の
状態を観測し、シミュレーションの実行停止を制御する
停止制御手段である。停止制御手段4は、FIFO手段
2から解析情報9の出力を制御する。解析情報9は、F
IFO手段2が格納する一連のシミュレーション状態で
ある。停止条件情報7は、シミュレーション時刻、被シ
ミュレーション回路の入出力及び内部信号の各識別子と
その信号値を引数とする論理式を表す情報である。
FIG. 1 shows a simulation execution means 1.
Is a storage control means for controlling the updating of the simulation time and the output of the simulation state 8 and the storage of the output in the FIFO means 2. Reference numeral 4 in FIG. 1 denotes stop control means for inputting stop condition information 7, observing the state of the circuit to be simulated based on the stop condition information 7, and controlling the execution stop of the simulation. The stop control unit 4 controls output of the analysis information 9 from the FIFO unit 2. The analysis information 9 is F
This is a series of simulation states stored by the IFO means 2. The stop condition information 7 is information representing a logical expression having the simulation time, the input / output of the circuit to be simulated, and the identifiers of the internal signals and their signal values as arguments.

【0031】次に図1の第1の実施の形態におけるシミ
ュレーション実行の流れ、及びシミュレーション方法を
図3を用いて説明する。図3の第1のステップでは、シ
ミュレーション実行手段1が、シミュレーションのセッ
トアップとしてLSI回路情報、テストベクタの読み込
みを行ない、内部データのセットアップを行なう。この
際、シミュレーション開始時刻の設定、入力信号のイベ
ントの登録も行なわれる。次に第2のステップ以降、シ
ミュレーション時刻を更新しながら、各時刻の回路の動
作を計算し、シミュレーションを進める。第2のステッ
プで、まずシミュレーション時刻を更新し、第3のステ
ップでシミュレーション終了時刻に該当するかを判定
し、シミュレーション終了時刻でなければ、第4のステ
ップへ進み、当該シミュレーション時刻の回路状態を計
算する。第4のステップでは、イベント駆動方式に基づ
き、当該シミュレーション時刻でスケジュールされたイ
ベントを取り出し、シミュレーション状態の更新を行な
うともに新たに発生するイベントの登録を行なう。次に
第5のステップでは、保存制御手段3によって、シミュ
レーション状態の出力を行ない、FIFO手段2に対し
てシミュレーション状態を格納する制御301を行な
う。この際、FIFO手段2では、シミュレーション実
行手段1の出力するシミュレーション状態を格納すると
ともに、最も古い情報を削除する。次に第6のステップ
において、停止制御手段4によって、停止情報を読み込
み、停止条件を示す論理式を評価し、停止の判断を行な
う。停止条件が成立しない場合は、第2のステップに戻
り、シミュレーションを続行する。停止条件が成立する
場合、及び、第3のステップにてシミュレーション終了
時刻と判断した場合、第7のステップに進み、停止制御
手段4の制御401によって、FIFO手段2に格納す
る一連のシミュレーション状態をすべて、解析情報9と
して出力し、シミュレーションを終了する。
Next, the flow of the simulation execution and the simulation method in the first embodiment of FIG. 1 will be described with reference to FIG. In the first step of FIG. 3, the simulation executing means 1 reads LSI circuit information and a test vector as a setup for a simulation, and sets up internal data. At this time, the simulation start time is set, and the event of the input signal is also registered. Next, after the second step, the operation of the circuit at each time is calculated while updating the simulation time, and the simulation proceeds. In the second step, the simulation time is updated first, and it is determined in the third step whether the simulation end time is met. If the simulation end time is not reached, the process proceeds to the fourth step, and the circuit state at the simulation time is changed. calculate. In the fourth step, an event scheduled at the simulation time is extracted based on the event driving method, the simulation state is updated, and a newly generated event is registered. Next, in a fifth step, the storage control unit 3 outputs a simulation state, and the FIFO unit 2 performs control 301 for storing the simulation state. At this time, the FIFO unit 2 stores the simulation state output from the simulation execution unit 1 and deletes the oldest information. Next, in a sixth step, the stop control means 4 reads the stop information, evaluates a logical expression indicating the stop condition, and determines whether to stop. If the stop condition is not satisfied, the process returns to the second step and the simulation is continued. When the stop condition is satisfied and when the simulation end time is determined in the third step, the process proceeds to a seventh step, and the control 401 of the stop control means 4 controls a series of simulation states stored in the FIFO means 2. All are output as the analysis information 9, and the simulation ends.

【0032】次に第1の実施の形態のシミュレーション
を具体例を用いて説明する。具体例では、15単位時間
のシミュレーションにおいて、FIFO手段2に格納す
るシミュレーション状態数を6とするシミュレーション
を説明する。この際、停止条件として出力期待値不一致
を示す論理式を与え、停止制御を行なう。
Next, a simulation of the first embodiment will be described using a specific example. In a specific example, a simulation in which the number of simulation states stored in the FIFO unit 2 is 6 in a simulation of 15 unit time will be described. At this time, a logical expression indicating that the output expected values do not match is given as a stop condition, and stop control is performed.

【0033】まず、図4は被シミュレーション回路の構
造を示す図である。図4の回路は、3段のフリップフロ
ップ51、52、55、56とORゲート53、54か
ら構成される。図4の501、502、503、504
は入力信号であり、501はクロック信号となる。50
5、506、507、508、509は内部信号、50
10は出力信号である。図4の入力信号501、50
2、503、504の信号値はテストベクタとして与え
られる。
FIG. 4 is a diagram showing the structure of the circuit to be simulated. The circuit in FIG. 4 includes three stages of flip-flops 51, 52, 55, 56 and OR gates 53, 54. 501, 502, 503, 504 in FIG.
Is an input signal, and 501 is a clock signal. 50
5, 506, 507, 508, 509 are internal signals, 50
10 is an output signal. The input signals 501, 50 of FIG.
The signal values of 2, 503 and 504 are provided as test vectors.

【0034】図5は、図4の回路において15単位時間
シミュレーションを実行した際の各信号値変化を示すタ
イミングチャートである。図5では、シミュレーション
時刻毎の各素子、信号の変化と出力期待値を示す。図5
に示すシミュレーションでは、周期2単位時間のクロッ
ク信号が501に入力される。入力信号502は、単位
時刻8において、信号値がHからLへ変化する。入力信号
503は、単位時刻2において、信号値がHからLへ変
化し、単位時刻4で再びHへ変化する。入力信号504
はHに固定される。これに対し、入力信号502の変化
は、次のクロック信号501の立ち上がりエッジ、単位
時刻3でフリップフロップ51にラッチされ、505か
らORゲート53にL信号が入力されるが、504側から
のORゲート入力信号506がHのため、出力信号507
は常にHとなる。また、単位時刻8において、入力信号
502が変化し、信号値LがORゲート54に入力される
が、同じくORゲートの入力信号507がHのため、その出力
信号508はHに固定されている。ここで、図5のシミ
ュレーション例では、フリップフロップ51、52、5
5、56の初期値はHとしている。
FIG. 5 is a timing chart showing changes in signal values when a 15-unit time simulation is executed in the circuit of FIG. FIG. 5 shows the change of each element and signal and the expected output value at each simulation time. FIG.
In the simulation shown in (1), a clock signal having a period of 2 unit time is input to 501. At the unit time 8, the signal value of the input signal 502 changes from H to L. The signal value of the input signal 503 changes from H to L at the unit time 2, and changes to H again at the unit time 4. Input signal 504
Is fixed to H. On the other hand, the change of the input signal 502 is latched by the flip-flop 51 at the next rising edge of the clock signal 501 and the unit time 3, and the L signal is input to the OR gate 53 from 505, but the OR signal from the 504 side is input. Since the gate input signal 506 is H, the output signal 507
Is always H. Also, at unit time 8, the input signal 502 changes and the signal value L is input to the OR gate 54. Since the input signal 507 of the OR gate is also H, the output signal 508 is fixed at H. . Here, in the simulation example of FIG. 5, the flip-flops 51, 52, 5
The initial values of 5, 56 are H.

【0035】一方、図5に示す期待値は、図4のORゲー
ト53、54がともにANDゲートであった回路の出力信
号5010の変化を示すものである。期待値では、単位
時刻2、4での入力信号503の変化が伝播し、単位時
刻7、9で信号値が変化する。また、単位時刻8での入
力信号502の変化により、単位時刻11に出力信号5
010がLへ変化する。
On the other hand, the expected value shown in FIG. 5 indicates a change in the output signal 5010 of the circuit in which the OR gates 53 and 54 in FIG. 4 are both AND gates. In the expected value, the change of the input signal 503 at the unit times 2 and 4 propagates, and the signal value changes at the unit times 7 and 9. Also, the change of the input signal 502 at the unit time 8 causes the output signal 5 to change at the unit time 11.
010 changes to L.

【0036】次に停止条件は、シミュレーションの各時
刻における出力信号5010の期待値不一致を表す論理
式として、「value(5010,T) !=E」の形式で与え
るものとする。ここで、value(5010,T)は、出力
信号5010の当該単位時刻Tにおける信号値、Eは期
待値を示す。”!=”は不等号の論理演算子である。
Next, the stop condition is given in the form of "value (5010, T)! = E" as a logical expression indicating an expected value mismatch of the output signal 5010 at each time of the simulation. Here, value (5010, T) indicates a signal value of the output signal 5010 at the unit time T, and E indicates an expected value. "! =" Is the inequality logical operator.

【0037】以上のシミュレーション実行例に対して、
第1の実施の形態の動作例では、単位時刻0より順次シ
ミュレーションを実行し、図5の通り、回路の各信号の
状態値を計算する。停止条件が成立する単位時刻7まで
シミュレーション時刻を更新する。単位時刻7では、
「value(5010,7) がHであるため、「value(50
10,7) !=L」が成立し、シミュレーションを停止
し、解析情報としてFIFO手段2の記憶内容を出力す
る。単位時刻1から単位時刻7の間、保存制御手段3に
よって各単位時刻毎にFIFO手段2に記憶される単位
時刻1、2、7でシミュレーション状態を図6に示す。
201、202、207は各々シミュレーション時刻
1、2、7のFIFO手段2の記憶内容である。80
1、802、803、804、805、806、807
は各々単位時刻1、2、3、4、5、6、7のシミュレ
ーション状態である。単位時刻1のFIFO手段2の内
容201では、単位時刻1のシミュレーション状態が格
納され、順に202では、単位時刻2のシミュレーショ
ン状態が追加される。単位時刻7のFIFO手段2の内
容207では、記憶可能なシミュレーション状態数6を
超えるため、単位時刻1のシミュレーション状態を削除
し、単位時刻7のシミュレーション状態を記憶するため
単位時刻2から7までの各時刻の6シミュレーション状
態を記憶する。また、単位時刻7で、停止条件が成立す
るため、FIFO手段2の内容207が解析情報として
出力される。
With respect to the above simulation execution example,
In the operation example of the first embodiment, the simulation is sequentially performed from the unit time 0, and the state value of each signal of the circuit is calculated as shown in FIG. The simulation time is updated until the unit time 7 at which the stop condition is satisfied. At unit time 7,
Since “value (5010,7) is H,“ value (5010,7)
10, 7)! = L "is established, the simulation is stopped, and the stored contents of the FIFO means 2 are output as analysis information. FIG. 6 shows a simulation state at unit times 1, 2, and 7 stored in the FIFO unit 2 for each unit time by the storage control unit 3 during the unit time 1 to the unit time 7.
Reference numerals 201, 202, and 207 denote storage contents of the FIFO means 2 at simulation times 1, 2, and 7, respectively. 80
1, 802, 803, 804, 805, 806, 807
Are simulation states at unit times 1, 2, 3, 4, 5, 6, and 7, respectively. The simulation state of the unit time 1 is stored in the content 201 of the FIFO unit 2 at the unit time 1, and the simulation state of the unit time 2 is added in the order 202. In the content 207 of the FIFO means 2 at the unit time 7, the number of storable simulation states exceeds 6, so the simulation state at the unit time 1 is deleted, and the simulation state at the unit time 7 is stored from the unit times 2 to 7. The six simulation states at each time are stored. Since the stop condition is satisfied at the unit time 7, the contents 207 of the FIFO unit 2 are output as analysis information.

【0038】第1の実施の形態では、機能論理シミュレ
ーション装置に、シミュレーション時点から所定の期間
前迄のシミュレーション結果を常時保存するFIFO手段2
を設け、シミュレーション結果に不具合を検出し、シミ
ュレーションを停止すると、FIFO手段2に記憶された情
報により、再度シミュレーション実行しなくてもシミュ
レーション結果の解析を可能とする。
In the first embodiment, the FIFO means 2 always stores the simulation result from the simulation time to a predetermined period before the simulation in the functional logic simulation apparatus.
When a failure is detected in the simulation result and the simulation is stopped, the analysis of the simulation result can be performed without executing the simulation again by using the information stored in the FIFO unit 2.

【0039】以上のように本発明では、シミュレーショ
ン実行中、期待値エラーとして不具合が検出され、シミ
ュレーションが停止すると解析情報207を得ることが
できる。これを解析し、出力信号5010の入力側を、
1クロック前の単位時刻5の509、55、さらに1ク
ロック前の単位時刻3の508、54、502、50
7、53、505,506の信号値をシミュレーション
時刻を遡って追跡し、53がANDゲートではなくOR
ゲートであった設計誤りを検出することができる。この
際のシミュレーションでは、FIFO手段2を用いるこ
とによって解析情報の格納に要する記憶領域を6単位時
間分のシミュレーション状態に必要なサイズに抑えるこ
とができる。
As described above, according to the present invention, when the simulation is executed, a defect is detected as an expected value error, and when the simulation is stopped, the analysis information 207 can be obtained. By analyzing this, the input side of the output signal 5010 is
509, 55 of unit time 5 one clock before, and 508, 54, 502, 50 of unit time 3 one clock before.
7, 53, 505 and 506 are traced back to the simulation time, and 53 is an OR gate instead of an AND gate.
A gate design error can be detected. In the simulation at this time, by using the FIFO means 2, the storage area required for storing the analysis information can be reduced to the size required for the simulation state for six unit times.

【0040】なお、第1の実施の形態では、シミュレー
ション状態として、シミュレーション制御情報、イベン
ト情報の保存を行うことによって、シミュレーションが
一度停止した後も、再び解析情報9にある最新のシミュ
レーション状態を復帰させ、シミュレーションを再開す
ることができる。
In the first embodiment, the simulation control information and the event information are saved as the simulation state, so that even after the simulation is stopped once, the latest simulation state in the analysis information 9 is restored again. And the simulation can be restarted.

【0041】(第2の実施の形態)本発明の第2の実施
の形態を図7から図14により説明する。図1のFIF
O手段2として、図7に示す構成のFIFO手段を備え
るシミュレーション装置を説明する。図7の21は、シ
ミュレーション状態8の変化を比較し、変化した信号状
態のみを抽出した差分状態情報を生成する状態差分手段
であり、22は差分状態情報を記憶する差分情報記憶手
段である。23は、特定時刻の差分状態情報を削除する
削除手段であり、24は差分情報記憶手段22に記憶さ
れる各時刻の差分状態情報から一連のシミュレーション
状態8を生成するシミュレーション状態合成手段であ
る。
(Second Embodiment) A second embodiment of the present invention will be described with reference to FIGS. FIF of FIG.
A description will be given of a simulation apparatus including a FIFO unit having the configuration shown in FIG. Reference numeral 21 in FIG. 7 denotes state difference means for comparing changes in the simulation state 8 and generating difference state information by extracting only the changed signal state. Reference numeral 22 denotes difference information storage means for storing difference state information. Reference numeral 23 denotes a deletion unit that deletes the difference state information at a specific time, and reference numeral 24 denotes a simulation state synthesis unit that generates a series of simulation states 8 from the difference state information at each time stored in the difference information storage unit 22.

【0042】図8に状態差分手段21によって生成さ
れ、差分状態情報記憶手段22に記憶される差分状態情
報の構成を示す。図8に示す差分状態情報2003は、
当該シミュレーション状態が保存されたシミュレーショ
ン時刻を記憶する時刻2001、被シミュレーション回
路の入出力または内部信号を示す各識別子とその信号値
から成る信号状態2002から構成される。
FIG. 8 shows the structure of the difference state information generated by the state difference means 21 and stored in the difference state information storage means 22. The difference state information 2003 shown in FIG.
It is composed of a time 2001 for storing a simulation time at which the simulation state is stored, and a signal state 2002 including signal values indicating respective identifiers indicating input / output or internal signals of the circuit under simulation.

【0043】図8の最新のシミュレーション時刻T(2
001)の差分状態情報はすべての信号の信号値を格納
し、1時刻前の時刻T−1の差分状態情報では、時刻T
の対応する信号に対して、異る信号値を持つ信号のみの
状態情報が記憶される。以降、各時刻の状態情報は、当
該時刻以後の時刻で、当該の信号に対して記憶される信
号値と異る値を持つ場合にのみ記憶される。従って、最
新時刻には、すべての信号の信号状態が記憶される。
The latest simulation time T (2
001) stores the signal values of all the signals, and the differential state information at time T−1 one time earlier indicates the time T
The state information of only the signal having a different signal value is stored for the corresponding signal. Thereafter, the state information at each time is stored only when the signal after the time has a value different from the signal value stored for the signal. Therefore, at the latest time, the signal states of all the signals are stored.

【0044】次に第2の実施の形態のFIFO手段にお
いてシミュレーション状態を記憶・削除する手順を図9
を用いて説明する。まず、第51のステップで当該シミ
ュレーション時刻のシミュレーション状態を入力する。
次に第52ステップにて、差分状態情報記憶手段22で
記憶する差分状態情報数が制限数であるかを判定し、制
限数である場合は、第53ステップへ進み差分状態情報
を削除手段23によって削除する。削除手段23は差分
情報記憶手段24に記憶される最も古い時刻の差分状態
情報を検索し、これに区分される信号状態をすべて削除
する。次に第54ステップでは差分状態情報記憶手段2
4が空であるか(すなわち既情報が無しか)を判定し、
空の場合は第56ステップへ進み、第51ステップで入
力したシミュレーション状態を差分状態情報として差分
状態情報記憶手段22に記憶する。差分状態情報記憶手
段22が空でない場合は、第55ステップに進み、状態
差分手段21を用いて差分状態情報を生成する。
Next, a procedure for storing and deleting a simulation state in the FIFO means of the second embodiment is shown in FIG.
This will be described with reference to FIG. First, in a fifty-first step, a simulation state at the simulation time is input.
Next, in a 52nd step, it is determined whether or not the number of pieces of differential state information stored in the difference state information storage means 22 is a limited number. To delete. The deletion unit 23 searches the difference state information at the oldest time stored in the difference information storage unit 24, and deletes all signal states classified into the difference state information. Next, in a fifty-fourth step, the difference state information storage means 2
4 is empty (that is, there is no information already),
If it is empty, the process proceeds to step 56, where the simulation state input in step 51 is stored in the difference state information storage means 22 as difference state information. If the difference state information storage means 22 is not empty, the process proceeds to a 55th step, and the state difference means 21 is used to generate difference state information.

【0045】この手順を図10を用いて説明する。ま
ず、状態差分手段21では、第551ステップで、差分
状態情報記憶手段22に記憶される最新時刻Tの差分状
態情報を検索し、第552ステップで時刻Tに区分され
る各信号状態について、シミュレーション状態として入
力される現時刻T+1の同一の信号の信号値を検索す
る。第553ステップで、時刻T+1と時刻Tの同一の
信号の信号値が一致する場合、第554ステップに進
み、時刻Tの当該信号状態を削除し、第555ステップ
へ進む。第553ステップで一致しなければ、そのまま
第555ステップに進み、未比較の信号状態情報を検索
し、未比較の信号状態があれば、第552ステップから
の処理を繰り返し、時刻Tのすべての信号状態を比較す
ると終了する。次に図9の手順に戻り、第56ステップ
へ進み、第51ステップで入力したシミュレーション状
態を差分状態情報として差分状態情報記憶手段22に記
憶し、終了する。
This procedure will be described with reference to FIG. First, in step 551, the state difference means 21 searches for difference state information at the latest time T stored in the difference state information storage means 22, and in step 552, simulation is performed for each signal state divided into time T. The signal value of the same signal at the current time T + 1 input as the state is searched. If the signal value of the same signal at time T + 1 matches the signal value at time T in step 553, the process proceeds to step 554, where the signal state at time T is deleted, and the process proceeds to step 555. If there is no match in the 553th step, the process directly proceeds to the 555th step to search for uncompared signal state information. If there is an uncompared signal state, the processing from the 552th step is repeated, and all signals at time T are repeated. When the states are compared, the process ends. Next, returning to the procedure of FIG. 9, the process proceeds to step 56, where the simulation state input in step 51 is stored as difference state information in the difference state information storage means 22, and the processing is terminated.

【0046】次にシミュレーション状態合成手段24に
おいて差分情報記憶手段22に記憶される差分状態情報
から一連のシミュレーション状態を生成する手順を図1
1、図12を用いて説明する。まず第57ステップにお
いて、シミュレーション状態に含まれる信号状態情報の
一覧を作成する。信号状態情報の一覧は、FIFO手段
に記憶する最新時刻の差分状態情報より作成する。次に
第58ステップに進み、時刻順に差分状態情報から当該
時刻のシミュレーション状態情報を生成する。第58ス
テップの詳細手順を図12を用いて説明する。まず、第
581ステップで信号状態情報の一覧を対応する信号状
態情報を当該差分状態情報から検索する。第582ステ
ップで該当する信号状態情報の有無を判定し、該当する
信号状態情報が有れば、第584ステップへ進み、該当
する信号状態情報がない場合には、1時刻後の差分状態
情報を検索し、該当する信号状態情報を得るまで時刻を
進めて繰り返し検索を行う。第584ステップでは、該
当する信号状態情報を当該時刻のシミュレーション情報
の信号状態情報として出力する。
Next, a procedure for generating a series of simulation states from the difference state information stored in the difference information storage means 22 in the simulation state synthesis means 24 is shown in FIG.
This will be described with reference to FIG. First, in step 57, a list of signal state information included in the simulation state is created. The list of signal status information is created from the latest time difference status information stored in the FIFO means. Next, the process proceeds to a step 58, where the simulation state information at the time is generated from the difference state information in the order of time. The detailed procedure of the fifty-eighth step will be described with reference to FIG. First, in step 581, a list of signal state information is searched for corresponding signal state information from the differential state information. At step 582, the presence or absence of the corresponding signal state information is determined. If there is the corresponding signal state information, the process proceeds to step 584. If there is no corresponding signal state information, the difference state information one time later is obtained. The search is repeated, and the time is advanced until the corresponding signal state information is obtained. In the 584th step, the corresponding signal state information is output as the signal state information of the simulation information at the time.

【0047】次に第585ステップに進み、信号状態情
報一覧のすべての信号状態情報を得るまで第581ステ
ップからの手順を繰り返す。次に図11にもどって第5
8ステップから第59ステップに進み、差分状態情報の
有りか無しかを判定し有りの場合に第58ステップに戻
り、無しの場合に終了する。
Next, proceeding to step 585, the procedure from step 581 is repeated until all the signal state information in the signal state information list is obtained. Next, returning to FIG.
The process proceeds from the 8th step to the 59th step, where it is determined whether or not there is difference state information.

【0048】次に第2の実施の形態のシミュレーショ
ン、特にFIFO手段による差分状態を記憶する具体例
を説明する。具体例では、15単位時間のシミュレーシ
ョンにおいて、FIFO手段に格納するシミュレーショ
ン状態数を4とする。被シミュレーション回路として図
4の回路を用い、図5のタイミングチャートに示す動作
をシミュレーションする。図13は、図5のシミュレー
ション時の単位時刻1、2、3の各差分情報記憶手段2
4に記憶される内容を示す図である。図13の221
は、単位時刻1の差分情報記憶手段24の記憶内容を示
し、2211は単位時刻1の差分状態情報である。差分
状態情報2211は、単位時刻0で差分情報記憶手段2
4が空であるため、入力されるシミュレーション状態を
そのまま記憶する。図13の222は単位時刻2の差分
情報記憶手段24の記憶内容を示し、2221、222
2は、各々単位時刻1、2の差分状態情報である。差分
状態情報2221は、単位時刻2のシミュレーション状
態を記憶する際、差分情報記憶手段22に単位時刻1で
記憶されていた差分状態情報2211と、対応する信号
状態の比較を行い生成される差分状態情報である。差分
状態情報2221は、単位時刻1の差分状態情報221
1から単位時刻2のシミュレーション状態と異なる信号
値を持つ信号状態を残したものである。単位時刻2のシ
ミュレーション状態は、差分状態情報2222として差
分情報記憶手段24にそのまま記憶される。同じく単位
時刻3では、単位時刻2の差分状態情報2222を差分
状態情報2232に置きかえ、差分状態情報2223
1、2233と共に記憶する。以降、FIFO手段で
は、同様に4単位時刻分の差分状態情報を記憶する。
Next, a description will be given of a simulation of the second embodiment, in particular, a specific example of storing a difference state by the FIFO means. In a specific example, it is assumed that the number of simulation states stored in the FIFO means is 4 in a simulation of 15 unit times. Using the circuit of FIG. 4 as the circuit to be simulated, the operation shown in the timing chart of FIG. 5 is simulated. FIG. 13 shows each difference information storage means 2 at unit times 1, 2, and 3 in the simulation of FIG.
FIG. 4 is a diagram showing the contents stored in No. 4; 221 in FIG.
Indicates the content stored in the difference information storage means 24 at unit time 1, and 2211 indicates difference state information at unit time 1. The difference state information 2211 is stored in the difference information storage unit 2 at the unit time 0.
Since 4 is empty, the input simulation state is stored as it is. Reference numeral 222 in FIG. 13 indicates the storage contents of the difference information storage unit 24 at unit time 2,
Reference numeral 2 denotes difference state information at unit times 1 and 2, respectively. When storing the simulation state at the unit time 2, the difference state information 2221 is a difference state generated by comparing the corresponding signal state with the difference state information 2211 stored at the unit time 1 in the difference information storage unit 22. Information. The difference state information 2221 is the difference state information 221 of the unit time 1.
Signal states having signal values different from the simulation state from 1 to the unit time 2 are left. The simulation state at the unit time 2 is stored as it is as the difference state information 2222 in the difference information storage unit 24. Similarly, at the unit time 3, the difference state information 2222 of the unit time 2 is replaced with the difference state information 2232, and the difference state information 2223
1 and 2233. Thereafter, the FIFO means similarly stores the difference state information for four unit times.

【0049】次に、単位時刻7では停止制御手段4によ
ってシミュレーションを停止し、差分情報記憶手段22
に記憶される差分状態情報からシミュレーション状態合
成手段24によって、単位時刻7、6、5、4のシミュ
レーション状態を合成し、解析情報9として出力する。
この処理の入出力を図14に示す。シミュレーション状
態合成手段24では、まず信号一覧220を作成し、こ
の一覧中の信号501から5010について、各単位時
刻のシミュレーション状態を合成する。単位時刻4のシ
ミュレーション状態の合成では、差分情報記憶手段24
に記憶される内容227の差分状態情報2274から信
号一覧220の各信号に対応する信号状態状態を検索す
る。信号501については、差分状態情報2274の信
号値Lの信号状態情報を得る。信号502については、
差分状態情報2274に記憶されていないため、1単位
時刻遡って、単位時刻5の差分状態情報2275を検索
する。ここでも信号502の信号状態情報を得ることが
できないため、さらに1単位時刻遡って、単位時刻6の
差分状態情報2276を検索する。同じく信号502の
信号状態情報を得ることができないため、単位時刻7の
差分状態情報2277を検索し、信号値Hの信号状態情
報を得る。以下、各信号についても同様の処理を行い、
単位時刻4のシミュレーション状態804を出力する。
単位時刻5、6、7についても同様に差分情報記憶手段
24の差分状態情報2275、2276、2277から
順に対応するシミュレーション状態805、806、8
07を合成する。
Next, at unit time 7, the simulation is stopped by the stop control means 4, and the difference information storage means 22
The simulation state combining unit 24 combines the simulation states at the unit times 7, 6, 5, and 4 from the difference state information stored in the simulation state information, and outputs the result as the analysis information 9.
FIG. 14 shows the input and output of this processing. The simulation state synthesizing unit 24 first creates a signal list 220, and synthesizes the simulation state at each unit time for the signals 501 to 5010 in the list. In the synthesis of the simulation state at the unit time 4, the difference information storage unit 24
The signal state corresponding to each signal of the signal list 220 is searched from the difference state information 2274 of the content 227 stored in the. As for the signal 501, the signal state information of the signal value L of the difference state information 2274 is obtained. For signal 502,
Since it is not stored in the difference state information 2274, the difference state information 2275 at the unit time 5 is searched by going back one unit time. Also here, since the signal state information of the signal 502 cannot be obtained, the difference state information 2276 at the unit time 6 is searched further one unit time. Similarly, since the signal state information of the signal 502 cannot be obtained, the difference state information 2277 at the unit time 7 is searched to obtain the signal state information of the signal value H. Hereinafter, the same processing is performed for each signal.
The simulation state 804 at the unit time 4 is output.
Similarly, with respect to the unit times 5, 6, and 7, the simulation states 805, 806, and 8 corresponding to the difference state information 2275, 2276, and 2277 of the difference information storage unit 24 in this order.
07 are synthesized.

【0050】以上、第2の実施の形態を用いる場合、状
態差分手段21、差分情報記憶手段22、削除手段2
3、およびシミュレーション状態合成手段24を備えた
FIFO手段によって一定時間範囲のシミュレーション
状態を保存する際、変化点のみを示す差分情報のみを保
存し、これに要する記憶領域を削減することができる。
これによって大規模回路シミュレーションに対して効率
的な解析、デバッグを行うことができる。
As described above, when the second embodiment is used, the state difference means 21, the difference information storage means 22, and the deletion means 2
3, when the simulation state is stored in the fixed time range by the FIFO unit including the simulation state synthesis unit 24, only the difference information indicating only the change point can be stored, and the storage area required for this can be reduced.
Thus, efficient analysis and debugging can be performed for a large-scale circuit simulation.

【0051】(第3の実施の形態)本発明の第3の実施
の形態を図15から図19により説明する。図15は図
1の構成に保存タイミング定義手段10、及び記憶素子
選択手段11を加えた構成をとる。
(Third Embodiment) A third embodiment of the present invention will be described with reference to FIGS. FIG. 15 shows a configuration in which a storage timing definition unit 10 and a storage element selection unit 11 are added to the configuration of FIG.

【0052】保存タイミング定義手段10は、保存制御
手段3を用いてシミュレーション状態をFIFO手段2へ出
力する際の制御条件を定義する手段であり、指定のスケ
ジュールとして、当該シミュレーション時刻のシミュレ
ーション状態を出力するタイミングを記述する。保存タ
イミング定義は、被シミュレーション回路の信号値、イ
ベントを元に記述される。保存制御手段3では、シミュ
レーション実行結果に応じて保存の有無を判定し、シミ
ュレーション状態の出力を制御する。記憶素子選択手段
11は、出力されたシミュレーション状態情報8から、
記憶素子の状態のみを選択した情報、記憶素子状態情報
12をFIFO手段2に引き渡す。記憶素子状態情報12の
構成は元になるシミュレーション状態情報8と同一の構
成をとる。
The save timing defining means 10 is a means for defining control conditions for outputting the simulation state to the FIFO means 2 using the save control means 3, and outputs the simulation state at the simulation time as a specified schedule. Describe the timing to perform. The storage timing definition is described based on the signal value and the event of the simulated circuit. The storage control means 3 determines the presence or absence of storage according to the simulation execution result, and controls the output of the simulation state. The storage element selection means 11 calculates the simulation state information 8
Information that selects only the state of the storage element, that is, storage element state information 12, is transferred to the FIFO unit 2. The configuration of the storage element state information 12 has the same configuration as that of the simulation state information 8 on which it is based.

【0053】以上のシミュレーション方法の手順を図1
6を用いて説明する。図16の第1のステップでは、シ
ミュレーション実行手段1が、シミュレーションのセッ
トアップとしてLSI回路情報、テストベクタの読み込
みを行ない、内部データのセットアップを行なう。この
際、シミュレーション開始時刻の設定、入力信号のイベ
ントの登録も行なわれる。また、保存タイミング定義手
段10によって定義されたシミュレーション状態の保存
タイミングも入力される。
FIG. 1 shows the procedure of the above simulation method.
6 will be described. In the first step of FIG. 16, the simulation executing means 1 reads LSI circuit information and test vectors as a simulation setup, and sets up internal data. At this time, the simulation start time is set, and the event of the input signal is also registered. Further, the storage timing of the simulation state defined by the storage timing definition means 10 is also input.

【0054】次に第2のステップ以降、シミュレーショ
ン時刻を更新しながら、各時刻の回路の動作を計算し、
シミュレーションを進める。第2のステップで、まずシ
ミュレーション時刻を更新し、第3のステップでシミュ
レーション終了時刻に該当するかを判定し、シミュレー
ション終了時刻でなければ、第4のステップへ進み、当
該シミュレーション時刻の回路状態を計算する。第4の
ステップでは、イベント駆動方式に基づき、当該シミュ
レーション時刻でスケジュールされたイベントを取り出
し、シミュレーション状態の更新を行なうともに新たに
発生するイベントの登録を行なう。
Next, after the second step, the operation of the circuit at each time is calculated while updating the simulation time.
Proceed with the simulation. In the second step, the simulation time is updated first, and it is determined in the third step whether the simulation end time is met. If the simulation end time is not reached, the process proceeds to the fourth step, and the circuit state at the simulation time is changed. calculate. In the fourth step, an event scheduled at the simulation time is extracted based on the event driving method, the simulation state is updated, and a newly generated event is registered.

【0055】次に第5のステップでは、保存制御手段3
によって、保存タイミングかどうかを判定し、保存タイ
ミングであれば、第6ステップでシミュレーション状態
を出力する。シミュレーション実行手段1から出力され
るシミュレーション状態は記憶素子選択手段11を通し
て記憶素子の情報のみが選択され、記憶素子状態として
FIFO手段2に記憶される。
Next, in the fifth step, the storage control means 3
It is determined whether or not it is the save timing, and if it is the save timing, the simulation state is output in the sixth step. In the simulation state output from the simulation execution means 1, only the information of the storage element is selected through the storage element selection means 11, and the storage element state is selected.
It is stored in the FIFO means 2.

【0056】次に第7のステップにおいて、停止制御手
段4によって停止情報を読み込み、停止条件を示す論理
式を評価し停止の判断を行なう。停止条件が成立しない
場合は第2のステップに戻り、シミュレーションを続行
する。
Next, in a seventh step, the stop control means 4 reads the stop information, evaluates a logical expression indicating the stop condition, and determines whether to stop. If the stop condition is not satisfied, the process returns to the second step and the simulation is continued.

【0057】停止条件が成立する場合、及び第3のステ
ップにてシミュレーション終了時刻と判断した場合第8
のステップに進み、停止制御手段4の制御401によっ
て、FIFO手段2に格納する一連のシミュ レーショ
ン状態をすべて、解析情報9として出力し、シミュレー
ションを終了する。
When the stop condition is satisfied, and when it is determined in the third step that the simulation end time is reached,
Then, the control 401 of the stop control means 4 outputs all the series of simulation states stored in the FIFO means 2 as the analysis information 9 and ends the simulation.

【0058】次に第3の実施の形態のシミュレーション
装置の具体的動作例を説明する。本動作例は、第1の実
施の形態の動作例と同一のシミュレーションを実行し、
被シミュレーション回路として図4の回路を用い、図5
のタイミングチャートに示す15単位時間の動作を同一
の停止条件、期待値でシミュレーションする。この際、
保存タイミング定義手段10には、図17に示す記述に
よって保存タイミングを定義する。図17の記述中、5
01は図4の被シミュレーション回路のクロック信号5
01を示し、変数saveは、シミュレーション状態の保存
を指定するイベント変数である。図17の記述では、ク
ロック信号501の変化点で、501が1に変化した場
合は、saveを1にセットし、シミュレーション状態を出
力することを定義する。
Next, a specific operation example of the simulation apparatus according to the third embodiment will be described. This operation example executes the same simulation as the operation example of the first embodiment,
Using the circuit of FIG. 4 as the circuit to be simulated, FIG.
The operation for 15 unit time shown in the timing chart of FIG. On this occasion,
The storage timing defining means 10 defines the storage timing according to the description shown in FIG. In the description of FIG.
01 is the clock signal 5 of the simulated circuit of FIG.
01, and the variable save is an event variable that specifies saving of the simulation state. In the description of FIG. 17, when 501 changes to 1 at the changing point of the clock signal 501, save is set to 1 and the output of the simulation state is defined.

【0059】以上のタイミングでシミュレーション状態
の保存を実行すると、シミュレーション状態は、図5の
タイミングチャートのクロック信号501の立ち上がり
エッジの時刻、1、3、5、7で出力される。本動作例
では、単位時刻7でシミュレーションが停止する単位時
刻7までとなる。図18に単位時刻1、3、5、7での
各シミュレーション状態8001、8003、800
5、8007を示す。図19の1201、1203、1
205、1207は、各々シミュレーション状態800
1、8003、8005、8007から記憶素子選択手
段11により選択された記憶素子状態情報を示す。各々
の記憶素子状態では、図4のフリップフロップ51、5
2、55、56の状態のみが選択される。FIFO手段
2には3単位時刻分の記憶素子状態を格納し、単位時刻
1では記憶素子状態情報1201を格納し、単位時刻3
では記憶素子状態情報1201、1203を格納し、単
位時刻5では記憶素子状態情報1201、1203,1
205を格納し、単位時刻7でシミュレーションが停止
した際には、記憶素子状態情報1203、1205、1
207を格納する。解析情報には、単位時刻7のFIF
O手段2の内容が出力される。
When the saving of the simulation state is executed at the above timing, the simulation state is output at times 1, 3, 5, and 7 of the rising edge of the clock signal 501 in the timing chart of FIG. In this operation example, the operation is performed until the unit time 7 when the simulation stops at the unit time 7. FIG. 18 shows simulation states 8001, 8003, and 800 at unit times 1, 3, 5, and 7.
5,8007. 1201, 1203, and 1 in FIG.
205 and 1207 each represent a simulation state 800
The storage element state information selected by the storage element selection unit 11 from 1, 8003, 8005, and 8007 is shown. In each storage element state, the flip-flops 51, 5 in FIG.
Only states 2, 55 and 56 are selected. The FIFO unit 2 stores the storage element states for three unit times, and
In 1, the storage element state information 1201 is stored, and the unit time 3
Stores the storage element status information 1201 and 1203, and at the unit time 5, the storage element status information 1201, 1203 and 1
When the simulation is stopped at the unit time 7, the storage element state information 1203, 1205, and 1 are stored.
207 is stored. The analysis information includes the FIF of unit time 7
The contents of the O means 2 are output.

【0060】単位時刻7でシミュレーションが停止した
際には、解析情報9を解析することにより、出力501
0が期待値と一致しない原因をクロック周期で遡って解
析できる。単位時刻3でフリップフロップ51がLであ
るにも関わらず、単位時刻5でフリップフロップ55の
値がHであることがわかり、51、52を入力とする論
理素子53が仕様にあるANDゲートでないことが解析
できる。
When the simulation is stopped at the unit time 7, the output 501 is obtained by analyzing the analysis information 9.
The reason why 0 does not match the expected value can be analyzed retroactively in the clock cycle. It is found that the value of the flip-flop 55 is H at the unit time 5 even though the flip-flop 51 is L at the unit time 3, and the logic element 53 having the inputs 51 and 52 is not an AND gate specified in the specification. Can be analyzed.

【0061】以上のように第3の実施の形態では、シミ
ュレーションを停止した際、解析情報9によって設計の
不具合を解析できるとともにFIFO手段2に記憶するシミ
ュレーション状態をクロック周期で間引き、かつ記憶素
子以外の信号状態を間引いて必要とする記憶領域を大幅
に削減することができる。あるいは、FIFO記憶手段
2のシミュレーション状態記憶数が同一であっても、幅
広い時間帯の情報を記憶できる。
As described above, in the third embodiment, when the simulation is stopped, the design failure can be analyzed by the analysis information 9, the simulation state stored in the FIFO means 2 is thinned out at the clock cycle, and the simulation state other than the storage element is used. The required storage area can be greatly reduced by thinning out the signal states of the above. Alternatively, even if the number of simulation states stored in the FIFO storage unit 2 is the same, information in a wide time zone can be stored.

【0062】なお、記憶素子選択手段11を選択制御手
段とし、指定の信号を選択することにより、シミュレー
ション解析の目的に応じてFIFO記憶手段2の記憶領
域あるいはシミュレーション状態記憶数を調整する実施
の形態が可能である。
An embodiment in which the storage element selection means 11 is used as selection control means and a designated signal is selected to adjust the storage area of the FIFO storage means 2 or the number of simulation state storages according to the purpose of simulation analysis. Is possible.

【0063】(第4の実施の形態)本発明の第4の実施
の形態を図20から図24により説明する。図20は本
発明のシミュレーション装置の第4の実施の形態き構成
図を示す。図20の構成では、図1の構成にFIFO保
存手段13を加え、さらに図1の停止制御手段4に替え
てFIFO保存制御手段14を備える。
(Fourth Embodiment) A fourth embodiment of the present invention will be described with reference to FIGS. FIG. 20 shows a configuration diagram of a simulation apparatus according to a fourth embodiment of the present invention. In the configuration of FIG. 20, a FIFO storage unit 13 is added to the configuration of FIG. 1, and a FIFO storage control unit 14 is provided instead of the stop control unit 4 of FIG.

【0064】FIFO保存手段13は、FIFO保存制
御手段14の保存信号1401により、FIFO手段2
が出力する解析情報9を順次追加記憶する記憶手段であ
る。FIFO保存制御手段14は、FIFO保存制御情
報15を入力し、これに基づき被シミュレーション回路
の状態を観測し、FIFO手段2の解析情報9の出力を
制御する。FIFO保存制御情報15は、シミュレーシ
ョン時刻、被シミュレーション回路の入出力及び内部信
号の各識別子とその信号値を引数として、解析情報9を
出力するシミュレーション状態の条件と、条件成立時刻
から解析情報を出力させるまでの単位時間単位の遅延時
間を定義する情報である。FIFO保存制御手段14
は、指定のタイミングでの制御を行うために内部カウン
タを備え、所定を検出したシミュレーション状態の時刻
から遅延して保存信号1401を出力する制御を可能と
する。
The FIFO storage means 13 receives the storage signal 1401 from the FIFO storage control means 14, and
Is a storage unit for sequentially and additionally storing the analysis information 9 output by. The FIFO storage control unit 14 receives the FIFO storage control information 15, observes the state of the circuit to be simulated based on the input, and controls the output of the analysis information 9 of the FIFO unit 2. The FIFO storage control information 15 outputs simulation information based on the simulation time, the simulation state condition for outputting the analysis information 9 using the identifiers of the input / output of the circuit to be simulated and the internal signal and their signal values as arguments, and the time when the condition is satisfied. This is information that defines a delay time of a unit time unit until it is performed. FIFO storage control means 14
Has an internal counter for performing control at a specified timing, and enables control to output a save signal 1401 with a delay from the time of a simulation state in which a predetermined state is detected.

【0065】次に図20の第4の実施の形態におけるシ
ミュレーション実行の流れ、及びシミュレーション方法
を図21を用いて説明する。
Next, the flow of simulation execution and the simulation method in the fourth embodiment of FIG. 20 will be described with reference to FIG.

【0066】図21の第1のステップでは、シミュレー
ション実行手段1が、シミュレーションのセットアップ
としてLSI回路情報5、テストベクタ6の読み込みを
行ない、内部データのセットアップを行なう。この際、
シミュレーション開始時刻の設定、入力信号のイベント
の登録も行なわれる。次に第2のステップ以降、シミュ
レーション時刻を更新しながら、各時刻の回路の動作を
計算し、シミュレーションを進める。
In the first step of FIG. 21, the simulation executing means 1 reads the LSI circuit information 5 and the test vector 6 as a simulation setup, and sets up internal data. On this occasion,
The simulation start time is set and the event of the input signal is registered. Next, after the second step, the operation of the circuit at each time is calculated while updating the simulation time, and the simulation proceeds.

【0067】第2のステップで、まずシミュレーシ ョ
ン時刻を更新し、第3のステップでシミュレーション終
了時刻に該当するかを判定し、シミュ レーション終了
時刻でなければ、第4のステップへ進み、当該シミュレ
ーション時刻の回路状態を計算する。第4のステップで
は、イベント駆動方式に基づき、当該シミュレーション
時刻でスケジュールされたイベントを取り出し、シミュ
レーション状態の更新を行なうともに新たに発生するイ
ベントの登録を行なう。
In the second step, the simulation time is updated first, and in the third step, it is determined whether the simulation end time is reached. If the simulation end time is not reached, the process proceeds to the fourth step. The circuit state at the simulation time is calculated. In the fourth step, an event scheduled at the simulation time is extracted based on the event driving method, the simulation state is updated, and a newly generated event is registered.

【0068】次に第5のステップでは、保存制御手段3
によって、シミュレー ション状態の出力を行ない、F
IFO手段2に対してシミュレーション状態を格納する
制御301を行なう。この際、FIFO手段2では、シ
ミュレーション実行手段1の出力するシミュレーション
状態を格納するとともに、最も古い情報を削除する。
Next, in the fifth step, the storage control means 3
The simulation state is output by F
The control 301 for storing the simulation state is performed on the IFO means 2. At this time, the FIFO unit 2 stores the simulation state output from the simulation execution unit 1 and deletes the oldest information.

【0069】次に第6のステップにおいて、FIFO保
存制御手段14によって、FIFO保存制御情報を読み
込み、解析情報9の出力およびFIFO保存手段13へ
の格納を実行する時刻の判定を行う。第6ステップで解
析情報9を保存する時刻に該当する場合は、第7ステッ
プで解析情報9の出力およびFIFO保存手段13への
格納を実行し、第2ステップへ戻る。第6ステップで該
当しない場合は、そのまま第2ステップへ戻り、シミュ
レーションを続行する。
Next, in a sixth step, the FIFO storage control unit 14 reads the FIFO storage control information, and determines the time at which the analysis information 9 is output and stored in the FIFO storage unit 13. If the time corresponds to the time when the analysis information 9 is stored in the sixth step, the output of the analysis information 9 and the storage in the FIFO storage unit 13 are executed in the seventh step, and the process returns to the second step. If it does not correspond to the sixth step, the process returns to the second step and the simulation is continued.

【0070】FIFO保存制御手段14では、内部カウ
ンタを備え、各シミュレーション時刻で、図22の手順
を繰り返す。まず、第61ステップで、内部カウンタを
用いた単位時間カウントの有無を、カウントフラグによ
って判定し、カウント中でなければ、第62ステップで
当該時刻のシミュレーション状態から保存条件を判定す
る。ここで保存条件が成立すると、第63ステップで指
定の遅延時間をカウンタに設定し、カウントフラグをセ
ットする。一方、第61ステップでカウント中であれ
ば、第64ステップへ進み、カウント値をデクリメント
する。
The FIFO storage control means 14 has an internal counter and repeats the procedure of FIG. 22 at each simulation time. First, in step 61, the presence or absence of a unit time count using an internal counter is determined by a count flag, and if not counting, in step 62, the storage condition is determined from the simulation state at the time. Here, if the storage condition is satisfied, a designated delay time is set in the counter in a 63rd step, and a count flag is set. On the other hand, if counting is being performed in the 61st step, the process proceeds to the 64th step, and the count value is decremented.

【0071】次に第65ステップでカウント値を判定
し、カウント値、即ち遅延時間が0であれば、第66ス
テップで保存信号1401を出力し、かつカウントフラ
グをリセットし、終了する。第65ステップでカウント
値が0でなければ、そのまま終了する。
Next, in step 65, the count value is determined. If the count value, that is, the delay time is 0, the save signal 1401 is output in step 66, the count flag is reset, and the process ends. If the count value is not 0 in the 65th step, the process ends.

【0072】なお、以上のFIFO保存制御手段14の
手順では、保存条件が連続したシミュレーション時刻で
成立した場合、先の時刻でカウントフラグがセットされ
るため、後続する時刻で保存条件が成立しても無視され
る。この場合、複数のカウンタを設けることにより、平
行して複数の保存制御タイミングを判定する構成をとる
ことが可能である。
In the above-described procedure of the FIFO storage control means 14, if the storage conditions are satisfied at successive simulation times, the count flag is set at the previous time, so that the storage conditions are satisfied at the subsequent time. Is also ignored. In this case, by providing a plurality of counters, it is possible to adopt a configuration in which a plurality of storage control timings are determined in parallel.

【0073】次に第4の実施の形態のシミュレーション
を具体例を用いて説明する。具体例では、図4に示す回
路に対して、図5のタイミングチャートで示す15単位
時間のシミュレーションを説明する。図5のシミュレー
ションでは、図4の回路で論理ゲート53、54がAN
Dゲートから誤ってORゲートに差し替えられ、2度に
渡って期待値不一致を起こす例である。
Next, a simulation of the fourth embodiment will be described using a specific example. In a specific example, a simulation for 15 units of time shown in the timing chart of FIG. 5 will be described for the circuit shown in FIG. In the simulation of FIG. 5, the logic gates 53 and 54 in the circuit of FIG.
In this example, the D gate is erroneously replaced with the OR gate, and the expected value does not match twice.

【0074】ここで、FIFO手段2に格納するシミュ
レーション状態数を6とする。FIFO保存制御情報に
は、保存条件として、シミュレーションの各時刻におけ
る図4の出力信号5010の期待値不一致を表す論理式
「value(5010,T) != E」を与えるものとする。
Here, the number of simulation states stored in the FIFO means 2 is six. It is assumed that a logical expression “value (5010, T)! = E” representing the mismatch of the expected value of the output signal 5010 in FIG. 4 at each time of the simulation is given to the FIFO storage control information as the storage condition.

【0075】ここで、value(5010,T)は、出力信号
5010の当該単位時刻Tにおける信号値、Eは期待値
を示す。”!=”は不等号の論理演算子である。さらに遅
延時間として2単位時間が入力されるものとする。
Here, value (5010, T) indicates the signal value of the output signal 5010 at the unit time T, and E indicates the expected value. "! =" Is the inequality logical operator. Further, it is assumed that two unit times are input as the delay time.

【0076】以上のシミュレーション実行において、図
23に保存条件が成立するタイミングと保存信号140
1の出力タイミングを示す。まず、単位時刻7で期待値
不一致が成立し、論理式「value(5010, T) !=E」
がHとなり、ステップ62でカウント値2がセットされ
る。これに2単位時間後、カウント値が0となり、単位
時刻9で保存信号1401がHとなる。同様に単位時刻
11で期待値不一致となり、単位時刻13で保存信号1
401がHとなる。単位時刻9と13でのFIFO保存
手段13に格納される解析情報を図24に示す。図24
は、図23のタイミングチャート上で、解析情報として
出力される信号値を図示する図である。図24の130
9、1313は、各々単位時刻9と13でのFIFO保
存手段13の内容であり、各々単位時刻9と13で格納
される解析情報9である。以上の解析情報は、単位時刻
15でシミュレーションが終了すると、FIFO保存手段1
3より得られる。解析情報1309は、単位時刻9で得
られる単位時刻4から単位時刻9までのシミュレーショ
ン状態を示し、単位時刻7での期待値不一致の原因が、
単位時刻4でORゲート53の出力に誤りがあることが
解析できる。さらに単位時刻5で、ORゲート53の入
力信号505がHになって、この結果、単位時刻9で出
力5010の期待値不一致が解消されることも確認でき
る。解析情報1313は、単位時刻13で得られる単位
時刻8から単位時刻13までのシミュレーション状態を
示す。単位時刻11で発生する期待値不一致が単位時刻
8での入力信号502の変化に対して、ORゲート54
の出力に誤りがあったことが解析できる。
In the above simulation, the timing at which the storage condition is satisfied and the storage signal 140 are shown in FIG.
1 shows the output timing. First, the expected value mismatch is established at the unit time 7, and the logical expression “value (5010, T)! = E”
Becomes H, and the count value 2 is set in step 62. Two unit times after this, the count value becomes 0, and the save signal 1401 becomes H at unit time 9. Similarly, the expected value does not match at unit time 11 and the stored signal 1 at unit time 13
401 becomes H. FIG. 24 shows the analysis information stored in the FIFO storage unit 13 at the unit times 9 and 13. FIG.
FIG. 24 is a diagram illustrating signal values output as analysis information on the timing chart of FIG. 130 in FIG.
Reference numerals 9 and 1313 denote the contents of the FIFO storage unit 13 at the unit times 9 and 13, respectively, and are the analysis information 9 stored at the unit times 9 and 13, respectively. The above analysis information is stored in the FIFO storage unit 1 when the simulation ends at the unit time 15.
Obtained from 3. The analysis information 1309 indicates a simulation state from the unit time 4 to the unit time 9 obtained at the unit time 9, and the cause of the expected value mismatch at the unit time 7 is as follows.
At unit time 4, it can be analyzed that there is an error in the output of the OR gate 53. Further, at unit time 5, the input signal 505 of the OR gate 53 becomes H. As a result, it can be confirmed that the expected value mismatch of the output 5010 at unit time 9 is resolved. The analysis information 1313 indicates a simulation state from the unit time 8 to the unit time 13 obtained at the unit time 13. When the expected value mismatch that occurs at the unit time 11 changes the input signal 502 at the unit time 8, the OR gate 54
Can be analyzed that there was an error in the output.

【0077】第4の実施の形態では、不具合を検出した
際に、シミュレーションを停止せず、FIFO手段2の情報
を別途保存してシミュレーションを続行し、複数の不具
合を一度のシミュレーションで検出し、かつ各々の不具
合に対してFIFO手段2に記憶された情報によって解析を
可能とする。
In the fourth embodiment, when a defect is detected, the simulation is not stopped, the information of the FIFO means 2 is separately stored, the simulation is continued, and a plurality of defects are detected in one simulation. In addition, it is possible to analyze each defect based on information stored in the FIFO means 2.

【0078】以上のように本発明によって、期待値不一
致となった2ヶ所の設計不具合に対して、一度のシミュ
レーション実行によって解析することができる。このた
め、個々の不具合に関して、重複してシミュレーション
を繰り返す工数を削減することが可能になる。また、シ
ミュレーション終了後に期待値エラー時刻から後の動作
も確認することができ、不具合の影響の解析を効率よく
行うことができる。
As described above, according to the present invention, it is possible to analyze two design failures that have mismatched expected values by executing a single simulation. For this reason, it is possible to reduce the number of steps for repeating the simulation for each defect. Further, the operation after the expected value error time can be confirmed after the simulation is completed, and the effect of the failure can be analyzed efficiently.

【0079】[0079]

【発明の効果】請求項1記載のシミュレーション装置に
よれば、シミュレーション実行中、FIFO手段で使用する
一定容量の記憶領域で、シミュレーション結果を保存す
ることができる。これにより、不具合の発生点など任意
の時点でシミュレーションを中断させても、シミュレー
ションの再実行を要せず、一定のシミュレーション期間
の状態を時間を遡って解析でき、設計検証作業を効率化
することができる。また、複数の中断点を設定してもFI
FO手段の情報を中断点の各々に保存することによって、
各々に対して回路動作を解析することができる。その結
果、大規模なシステムLSIの機能シミュレーション、
機能検証を効率的に行う事が可能となる。
According to the simulation apparatus of the first aspect, during the execution of the simulation, the simulation result can be stored in the storage area of a fixed capacity used by the FIFO means. As a result, even if the simulation is interrupted at any point, such as at the point where a failure occurs, the simulation can be analyzed retrospectively for a certain simulation period without re-executing the simulation, thus improving the efficiency of design verification work. Can be. In addition, even if multiple interruption points are set,
By storing the information of the FO means at each of the break points,
The circuit operation can be analyzed for each. As a result, large-scale system LSI function simulation,
Function verification can be performed efficiently.

【0080】請求項2記載のシミュレーション装置によ
れば、請求項1と同様な効果のほか、さらにFIFO手段に
記憶する情報も差分情報化し圧縮するサンプル化して間
引くことにより、シミュレーションに必要とするFIFO手
段が使用する記憶領域を削減できかつシミュレーション
状態の再現を可能とする。
According to the simulation apparatus of the second aspect, in addition to the same effects as those of the first aspect, the information to be stored in the FIFO means is sampled and converted to differential information, compressed, and decimated. The storage area used by the means can be reduced and the simulation state can be reproduced.

【0081】請求項3記載のシミュレーション装置によ
れば、請求項1と同様な効果のほか、常にシミュレーシ
ョン単位時間毎に状態を保存するのではなく、解析上必
要な周期でシミュレーション状態を保存し、FIFO手段が
必要とする記憶領域を削減することができる。
According to the simulation apparatus of the third aspect, in addition to the same effect as the first aspect, the simulation state is not always stored for each simulation unit time, but the simulation state is stored at a period required for analysis. The storage area required by the FIFO means can be reduced.

【0082】請求項4記載のシミュレーション装置によ
れば、請求項1と同様な効果のほか、保存制御手段が例
えば同期回路等に対して被シミュレーション回路の特定
信号の状態変化と同期してシミュレーション状態のFIFO
手段への保存の有無を制御することにより、記憶領域を
削減できる。
According to the simulation apparatus of the fourth aspect, in addition to the same effects as those of the first aspect, the storage control means may synchronize the simulation state with a synchronous circuit or the like in synchronization with a state change of a specific signal of the circuit to be simulated. FIFO
The storage area can be reduced by controlling the presence or absence of storage in the means.

【0083】請求項5記載のシミュレーション装置によ
れば、請求項1と同様な効果のほか、記憶素子の状態の
みをFIFO手段に保存することでFIFO手段が使用する
記憶領域を削減できる。
According to the simulation apparatus of the fifth aspect, in addition to the same effects as those of the first aspect, the storage area used by the FIFO means can be reduced by storing only the state of the storage element in the FIFO means.

【0084】請求項6記載のシミュレーション装置によ
れば、請求項1と同様な効果のほか、停止条件として、
期待値違反等の不具合の発生を設定すると、不具合を検
出すると同時にシミュレーションを中断し、FIFO手段に
記憶される情報を元に必要な解析を即座に行う事ができ
る。
According to the simulation apparatus of the sixth aspect, in addition to the same effects as those of the first aspect, the stop condition is
When the occurrence of a defect such as an expected value violation is set, the simulation is interrupted at the same time that the defect is detected, and the necessary analysis can be immediately performed based on the information stored in the FIFO means.

【0085】請求項7記載のシミュレーション装置によ
れば、請求項1と同様な効果のほか、所定の条件とし
て、例えば期待値違反等の不具合の発生を設定し、シミ
ュレーションを実行すると、不具合が生じたときFIFO手
段に記憶される情報を別途保存し、シミュレーションを
続行する。。シミュレーションが終了すると、異なる複
数の不具合の発生に対して、各々について解析を行うた
めの個別の情報をFIFO保存手段より得る事ができる。こ
れにより、いくつかの異なる不具合を含む設計の検証に
対して、一度のシミュレーション実行によって不具合を
解析することができ、設計検証を効率化できる。
According to the simulation apparatus of the seventh aspect, in addition to the same effects as those of the first aspect, if a failure such as an expected value violation is set as a predetermined condition and the simulation is executed, the failure occurs. Then, the information stored in the FIFO means is separately saved, and the simulation is continued. . When the simulation is completed, individual information for performing an analysis for each of a plurality of different failures can be obtained from the FIFO storage unit. Thus, for verification of a design including several different defects, the defects can be analyzed by executing a single simulation, and the design verification can be made more efficient.

【0086】請求項8記載のシミュレーション装置によ
れば、請求項1と同様な効果のほか、複数の不具合を解
析する情報として不具合が発生したシミュレーション時
点の前後の回路動作を観測することができ、不具合の回
路動作への影響も含め不具合の状況を解析、判断するす
ることができる。
According to the simulation apparatus of the eighth aspect, in addition to the same effects as those of the first aspect, it is possible to observe the circuit operation before and after the time when the failure occurred as information for analyzing a plurality of failures, It is possible to analyze and determine the status of the fault, including the effect of the fault on the circuit operation.

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

【図1】本発明の第1の実施の形態にかかるシミュレー
ション装置の構成図である。
FIG. 1 is a configuration diagram of a simulation device according to a first embodiment of the present invention.

【図2】本発明の第1の実施の形態にかかるシミュレー
ション状態情報の構成図である。
FIG. 2 is a configuration diagram of simulation state information according to the first embodiment of the present invention.

【図3】本発明の第1の実施の形態にかかるシミュレー
ション制御の流れ図である。
FIG. 3 is a flowchart of simulation control according to the first embodiment of the present invention.

【図4】本発明の第1の実施の形態にかかるシミュレー
ション例で用いる回路図である。
FIG. 4 is a circuit diagram used in a simulation example according to the first embodiment of the present invention.

【図5】本発明の第1の実施の形態にかかるシミュレー
ション例のタイミングチャートである。
FIG. 5 is a timing chart of a simulation example according to the first embodiment of the present invention.

【図6】本発明の第1の実施の形態にかかるシミュレー
ション例でのFIFO手段の情報を示す図である。
FIG. 6 is a diagram showing information of FIFO means in a simulation example according to the first embodiment of the present invention.

【図7】本発明の第2の実施の形態にかかるFIFO手段の
構成図である。
FIG. 7 is a configuration diagram of FIFO means according to a second embodiment of the present invention.

【図8】本発明の第2の実施の形態にかかる差分状態情
報の構成図である。
FIG. 8 is a configuration diagram of difference state information according to the second embodiment of the present invention.

【図9】本発明の第2の実施の形態にかかるのシミュレ
ーション状態の記憶・削除の制御の流れ図である。
FIG. 9 is a flowchart of control of storage / deletion of a simulation state according to the second embodiment of the present invention.

【図10】本発明の第2の実施の形態にかかる差分状態
情報生成の制御の流れ図である。
FIG. 10 is a flowchart of control of differential state information generation according to the second embodiment of the present invention.

【図11】本発明の第2の実施の形態にかかるシミュレ
ーション制御の流れ図である。
FIG. 11 is a flowchart of simulation control according to the second embodiment of the present invention.

【図12】本発明の第2の実施の形態にかかるシミュレ
ーション装置の図11の第58ステップの詳細手順の流
れ図である。
FIG. 12 is a flowchart of a detailed procedure of a fifty-eighth step in FIG. 11 of the simulation apparatus according to the second embodiment of the present invention;

【図13】本発明の第2の実施の形態にかかる記憶手段
に記憶される差分状態情報の内容を示す説明図である。
FIG. 13 is an explanatory diagram showing contents of difference state information stored in a storage unit according to the second embodiment of the present invention.

【図14】本発明の第2の実施の形態にかかるシミュレ
ーション解析情報例を示す説明図である。
FIG. 14 is an explanatory diagram illustrating an example of simulation analysis information according to the second embodiment of the present invention;

【図15】本発明の第3の実施の形態にかかるシミュレ
ーション装置の構成図である。
FIG. 15 is a configuration diagram of a simulation device according to a third embodiment of the present invention.

【図16】本発明の第3の実施の形態にかかるシミュレ
ーション制御の流れ図である。
FIG. 16 is a flowchart of simulation control according to the third embodiment of the present invention.

【図17】本発明の第3の実施の形態にかかる保存タイ
ミング記述例を示す説明図である。
FIG. 17 is an explanatory diagram showing an example of a storage timing description according to the third embodiment of the present invention;

【図18】本発明の第3の実施の形態にかかるシミュレ
ーション例を示す図である。
FIG. 18 is a diagram illustrating a simulation example according to the third embodiment of the present invention.

【図19】本発明の第3の実施の形態にかかるシミュレ
ーション例を示す図8の各シミモレーション状態から記
憶素子選択手段により選択された記憶素子状態情報を示
す説明図である。
FIG. 19 is an explanatory diagram showing storage element state information selected by the storage element selecting means from each of the simulation states of FIG. 8 showing a simulation example according to the third embodiment of the present invention.

【図20】本発明の第4の実施の形態にかかるシミュレ
ーション装置の構成図である。
FIG. 20 is a configuration diagram of a simulation device according to a fourth embodiment of the present invention.

【図21】本発明の第4の実施の形態にかかるシミュレ
ーション制御の流れ図である。
FIG. 21 is a flowchart of simulation control according to a fourth embodiment of the present invention.

【図22】本発明の第4の実施の形態にかかるFIFO
保存制御手段における各シミュレーション時刻における
制御の流れ図である。
FIG. 22 is a diagram illustrating a FIFO according to a fourth embodiment of the present invention;
5 is a flowchart of control at each simulation time in a storage control unit.

【図23】本発明の第4の実施の形態において、第1の
実施の形態にかかるシミュレーション例のタイミングチ
ャートを示す図5における保存条件が成立するタイミン
グと保存信号の出力タイミングを示すタイミングチャー
トである。
23 is a timing chart showing a timing chart of a simulation example according to the first embodiment in the fourth embodiment of the present invention, and is a timing chart showing a timing at which a storage condition is satisfied and an output timing of a storage signal in FIG. 5; is there.

【図24】図23のタイミングチャート上で、解析情報
として出力される信号値を図示する説明図である。
FIG. 24 is an explanatory diagram illustrating signal values output as analysis information on the timing chart of FIG. 23;

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

1 シミュレーション実行手段 2 FIFO手段 3 保存制御手段 4 停止制御手段 11 記憶素子選択手段 13 FIFO保存手段 14 FIFO保存制御手段 21 状態差分手段 22 差分情報記憶手段 23 削除手段 24 シミュレーション状態合成手段 DESCRIPTION OF SYMBOLS 1 Simulation execution means 2 FIFO means 3 Save control means 4 Stop control means 11 Storage element selection means 13 FIFO save means 14 FIFO save control means 21 State difference means 22 Difference information storage means 23 Deletion means 24 Simulation state synthesis means

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 LSIの機能論理設計検証に用いるシミ
ュレーション装置であって、 LSIの設計情報、入力信号情報に基づき回路動作をシ
ミュレートし、かつ任意の時点のシミュレーション状態
の保存と復帰を行なうシミュレーション実行手段と、 前記シミュレーション状態を順次記憶するとともに先入
れ先出し方式で一定以上の記憶を削除するFIFO手段と、 シミュレーション実行中、シミュレーション時刻を更新
する毎にシミュレーション状態を前記FIFO手段に保存さ
せる保存制御手段とを備えたシミュレーション装置。
1. A simulation device for use in verifying a functional logic design of an LSI, wherein the simulation simulates a circuit operation based on LSI design information and input signal information, and saves and restores a simulation state at an arbitrary time. Executing means, FIFO means for sequentially storing the simulation state and deleting a certain amount of storage in a first-in-first-out manner, and storage control means for storing a simulation state in the FIFO means every time a simulation time is updated during simulation execution. Simulation device equipped with.
【請求項2】 FIFO手段は、シミュレーション状態の変
化を比較し、変化した信号状態のみを抽出した差分状態
情報を生成する状態差分手段と、差分状態情報を記憶す
る差分情報記憶手段と、特定時刻の差分状態情報を削除
する削除手段と、差分情報記憶手段に記憶される各時刻
の差分状態情報から一連のシミュレーション状態を生成
するシミュレーション状態合成手段を備え、シミュレー
ション状態を前記状態差分手段を用いて差分状態情報に
変換した上で前記差分情報記憶手段に記憶し、前記削除
手段を用いて先入れ先出し方式で一定以上の差分状態情
報を削除し、かつ前記シミュレーション状態合成手段に
よって一連のシミュレーション状態を生成する請求項1
記載のシミュレーション装置。
The FIFO means compares state changes of the simulation state and generates difference state information by extracting only the changed signal state; a difference information storage means storing the difference state information; And a simulation state synthesizing unit that generates a series of simulation states from the difference state information at each time stored in the difference information storage unit. The simulation state is calculated using the state difference unit. After being converted into difference state information, the difference state information is stored in the difference information storage means, a certain state or more of the difference state information is deleted by a first-in first-out method using the deletion means, and a series of simulation states is generated by the simulation state synthesis means. Claim 1
The simulation device according to the above.
【請求項3】 保存制御手段は、指定のスケジュールに
てシミュレーション状態のFIFO手段への保存を制御する
請求項1記載のシミュレーション装置。
3. The simulation apparatus according to claim 1, wherein the saving control means controls saving of the simulation state in the FIFO means on a designated schedule.
【請求項4】 保存制御手段は、被シミュレーション回
路の特定信号の状態変化と同期してシミュレーション状
態のFIFO手段への保存の有無を制御する請求項1記載の
シミュレーション装置。
4. The simulation apparatus according to claim 1, wherein the storage control means controls whether or not the simulation state is stored in the FIFO means in synchronization with a state change of a specific signal of the circuit to be simulated.
【請求項5】 被シミュレーション回路の記憶素子の状
態値のみを保存する手段を備え、記憶素子の状態のみを
FIFO手段に保存する請求項1記載のシミュレーショ
ン装置。
5. The simulation apparatus according to claim 1, further comprising means for storing only the state value of the storage element of the circuit to be simulated, and storing only the state of the storage element in the FIFO means.
【請求項6】 シミュレーション実行中、被シミュレー
ション回路の動作状態を監視し、停止条件に基づきシミ
ュレーション実行を停止させるとともに、FIFO手段に記
憶する一連のシミュレーション状態を保存する停止制御
手段を備える請求項1記載のシミュレーション装置。
6. A simulation system according to claim 1, further comprising a stop control unit for monitoring an operation state of the simulated circuit during the simulation, stopping the simulation based on the stop condition, and storing a series of simulation states stored in the FIFO unit. The simulation device according to the above.
【請求項7】 シミュレーション実行中、被シミュレー
ション回路の動作状態を監視し、所定の条件が成立する
とFIFO手段に記憶する一連のシミュレーション状態をFI
FO保存手段に順次追加保存する保存制御手段を備える請
求項1記載のシミュレーション装置。
7. During the execution of the simulation, the operation state of the circuit to be simulated is monitored, and when a predetermined condition is satisfied, a series of simulation states stored in the FIFO means is stored in the FIFO unit.
2. The simulation apparatus according to claim 1, further comprising a storage control unit for sequentially storing the FO storage unit.
【請求項8】 シミュレーション実行中、被シミュレー
ション回路の動作状態を監視し、所定の条件が成立する
と一定の時間シミュレーションを実行の後、FIFO手段に
記憶する一連のシミュレーション状態をFIFO保存手段に
順次追加保存する保存制御手段を備える請求項7記載の
シミュレーション装置。
8. During the execution of the simulation, the operation state of the circuit to be simulated is monitored, and when a predetermined condition is satisfied, the simulation is executed for a predetermined time, and then a series of simulation states stored in the FIFO means are sequentially added to the FIFO storage means. The simulation device according to claim 7, further comprising a storage control unit for storing.
JP11049594A 1999-02-26 1999-02-26 Simulation device Pending JP2000250949A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11049594A JP2000250949A (en) 1999-02-26 1999-02-26 Simulation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11049594A JP2000250949A (en) 1999-02-26 1999-02-26 Simulation device

Publications (1)

Publication Number Publication Date
JP2000250949A true JP2000250949A (en) 2000-09-14

Family

ID=12835572

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11049594A Pending JP2000250949A (en) 1999-02-26 1999-02-26 Simulation device

Country Status (1)

Country Link
JP (1) JP2000250949A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007528553A (en) * 2004-03-09 2007-10-11 セヤン ヤン DYNAMIC VERIFICATION FOR IMPROVING VERIFICATION PERFORMANCE AND VERIFICATION EFFICIENCY-A verification method based on a basic method and a verification methodology using the same
JP2010218229A (en) * 2009-03-17 2010-09-30 Nec Corp Logic simulation system, logical simulation method, and logic simulation program
JP2011237841A (en) * 2010-04-30 2011-11-24 Fujitsu Ltd Verification support program, verification support device, and verification support method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007528553A (en) * 2004-03-09 2007-10-11 セヤン ヤン DYNAMIC VERIFICATION FOR IMPROVING VERIFICATION PERFORMANCE AND VERIFICATION EFFICIENCY-A verification method based on a basic method and a verification methodology using the same
JP2010218229A (en) * 2009-03-17 2010-09-30 Nec Corp Logic simulation system, logical simulation method, and logic simulation program
JP2011237841A (en) * 2010-04-30 2011-11-24 Fujitsu Ltd Verification support program, verification support device, and verification support method

Similar Documents

Publication Publication Date Title
Clarke et al. Computer-aided verification
KR100921314B1 (en) High Performance Design Verification Apparatus Using Verification Results Re-use Technique and Its Rapid Verification Method Using the Same
US6557150B1 (en) Method of extracting timing characteristics of transistor circuits, storage medium storing timing characteristic library, LSI designing method, and gate extraction method
US7124070B2 (en) Method of and apparatus for, and program for verifying equivalence between behavioral description and register transfer level description
Wahba et al. Design error diagnosis in sequential circuits
Mousavi et al. Modeling and validating globally asynchronous design in synchronous frameworks
Boroday et al. Can a model checker generate tests for non-deterministic systems?
JP2000250949A (en) Simulation device
EP4205015A1 (en) Dynamic cdc verification method
Manna et al. Abstraction and modular verification of infinite-state reactive systems
Walker et al. Synthesis and analysis of temporal fault trees with PANDORA: The time of Priority AND gates
Walker et al. Pandora: The time of priority-AND gates
US8234618B2 (en) Trace reconstruction for silicon validation of asynchronous systems-on-chip
Guignard et al. A conformance relation for model-based testing of PLC
Gheorghe et al. GenericMethodology for the Design of Continuous/Discrete Co-Simulation Tools
Zheng et al. Compositional model checking of concurrent systems
US7581150B2 (en) Methods and computer program products for debugging clock-related scan testing failures of integrated circuits
Khoumsi Complete test graph synthesis for symbolic real-time systems
Chang et al. Deductive techniques for simulating logic circuits
KR102493046B1 (en) Performance Improvement Method in Prediction-based Parallel Gate-level Timing Logic Simulation Using Adaptive Prediction Data
JP2006202102A (en) Simulation apparatus
Bilinski et al. Synchronous parallel controller synthesis from behavioural multiple-process VHDL description
JP3052263B2 (en) Logic verification sufficiency evaluation method and system therefor
JP2005227958A (en) Simulation analysis system, accelerator device and emulator device
Fujita Post-silicon verification and debugging with control flow traces and patchable hardware