JPH05216953A - Logic simulation method and logic simulator - Google Patents

Logic simulation method and logic simulator

Info

Publication number
JPH05216953A
JPH05216953A JP4020310A JP2031092A JPH05216953A JP H05216953 A JPH05216953 A JP H05216953A JP 4020310 A JP4020310 A JP 4020310A JP 2031092 A JP2031092 A JP 2031092A JP H05216953 A JPH05216953 A JP H05216953A
Authority
JP
Japan
Prior art keywords
logic
event
signal
data
trace
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.)
Withdrawn
Application number
JP4020310A
Other languages
Japanese (ja)
Inventor
Masahiko Sudo
正彦 須藤
Kazuhiko Nakayama
和彦 中山
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.)
Fujitsu VLSI Ltd
Fujitsu Ltd
Original Assignee
Fujitsu VLSI Ltd
Fujitsu 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 Fujitsu VLSI Ltd, Fujitsu Ltd filed Critical Fujitsu VLSI Ltd
Priority to JP4020310A priority Critical patent/JPH05216953A/en
Publication of JPH05216953A publication Critical patent/JPH05216953A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To shorten signal value tracing processing time in logic simulation and to shorten the logic designing period of a semiconductor logic integrated circuit, as to a logic simulation method and a logic simulator. CONSTITUTION:A trace element connection part 7 connects a trace element to the output terminal of a certain logic element desired to be traced in logic circuit data. An event assignment part 10 assigns each event to each logic element or each trace element. A logic circuit element part 11 calculates the signal change of the output terminal of each logic element based on the event assigned to each logic element and registers the calculated respective signal change as a new event. When the event is assigned to an arbitrary trace element and the event is different from a signal value retained for the trace element, a trace element part 12 outputs the event as trace information.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、半導体論理集積回路を
設計する際に、その半導体論理集積回路の設計が正しく
行われているかどうかを検証するための論理シミュレー
ション方法及び論理シミュレータに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a logic simulation method and a logic simulator for verifying whether or not a semiconductor logic integrated circuit is correctly designed when designing the semiconductor logic integrated circuit.

【0002】近年の半導体論理集積回路の大規模化に伴
い、論理設計作業を検証し、回路内部の信号の状態を知
るために論理シミュレーションを行っている。最近で
は、半導体論理集積回路の大規模化による内部の論理素
子数の増大に伴い、信号値をトレースすべき論理素子の
増大、またはトレースすべき回路内部の状態の増加によ
って、論理シミュレーションにおけるトレース処理に要
する時間が増大してきている。
With the recent increase in the scale of semiconductor logic integrated circuits, logic design work is verified and logic simulation is performed in order to know the state of signals inside the circuit. Recently, as the number of internal logic elements has increased due to the increase in the scale of semiconductor logic integrated circuits, the number of logic elements whose signal values should be traced, or the state inside the circuit which should be traced, has increased. The time required for is increasing.

【0003】そのため、トレース処理を高速化すること
により、論理シミュレーション時間の短縮化を図る必要
がある。
Therefore, it is necessary to shorten the logic simulation time by speeding up the trace processing.

【0004】[0004]

【従来の技術】従来のイベント駆動方式の論理シミュレ
ータでは、半導体論理集積回路を構成する内部の論理素
子の出力端子の信号値をトレースするために、論理シミ
ュレーションの前処理において図8に示すトレースデー
タテーブル71が作成されるとともに、図9に示す現在
時刻信号値データテーブル72が作成される。現在時刻
信号値データテーブル72にはアドレスをネット番号
(例えばN1,N2,・・・)として論理回路データの
各論理素子間を接続する全てのネットが登録され、各ネ
ットに対応する記憶領域にはそのときの内部時刻におけ
る信号値データが格納される。トレースデータテーブル
71には信号値をトレースすべき全ての論理素子を指示
することにより、それらの各論理素子の出力端子のネッ
トのネット番号及び当該ネットの最新のトレース信号値
データとが格納される。
2. Description of the Related Art In a conventional event-driven logic simulator, in order to trace the signal value of the output terminal of an internal logic element which constitutes a semiconductor logic integrated circuit, the trace data shown in FIG. The table 71 is created, and the current time signal value data table 72 shown in FIG. 9 is created. In the current time signal value data table 72, all the nets that connect the respective logic elements of the logic circuit data are registered with the addresses as net numbers (for example, N1, N2, ...), and stored in the storage area corresponding to each net. Stores the signal value data at the internal time at that time. By designating all the logic elements whose signal values should be traced, the trace data table 71 stores the net numbers of the nets of the output terminals of those logic elements and the latest trace signal value data of the nets. ..

【0005】図5は従来のイベント駆動方式の論理シミ
ュレータの一時刻における処理を示す。まず、ステップ
40で図7に示すイベント処理を実行し、ステップ41
で期待値とシミュレーション結果との比較を行うストロ
ーブ処理を行う。次のステップ42で図7に示す信号変
化の検出を装置外部へ通知するトレース処理を行った
後、ステップ43で内部時刻をそのときの内部時刻に一
定時間だけ加算した時刻に更新する現在時刻更新処理を
行い、その更新した内部時刻が終了時刻でないときには
ステップ40〜43の処理を繰り返し実行するようにな
っている。
FIG. 5 shows a process at one time of a conventional event-driven logic simulator. First, in step 40, the event process shown in FIG. 7 is executed, and in step 41
Strobe processing is performed to compare the expected value with the simulation result. In the next step 42, after the trace processing for notifying the outside of the apparatus of the detection of the signal change shown in FIG. 7, the internal time is updated in step 43 to the time obtained by adding a certain time to the internal time at that time. When the updated internal time is not the end time, the processing of steps 40 to 43 is repeatedly executed.

【0006】イベント処理は図6に示すように、ステッ
プ50で入力信号、即ち、外部信号データの信号変化が
あるか否かを判定し、入力信号があるときにはステップ
51でその入力信号をイベントとして登録するととも
に、ステップ52でイベントカウンタのカウント値に
「1」を加算する。
In the event processing, as shown in FIG. 6, in step 50, it is judged whether or not there is a signal change of the input signal, that is, the external signal data. If there is an input signal, the input signal is treated as an event in step 51. While registering, "1" is added to the count value of the event counter in step 52.

【0007】ステップ53では現在時刻に処理すべきイ
ベント、即ち、入力信号又はLSIの内部信号変化があ
るか否かを判定する。そして、ステップ53で処理すべ
きイベントがあると判定すると、ステップ54でイベン
トカウンタのカウント値から「1」を減算するととも
に、ステップ55にてそのイベントによる信号変化演算
を行って現在時刻以降に発生するLSIの内部信号変化
を算出する。ステップ56で信号値が変化しているか否
か、即ち、イベントが発生したか否かを判定し、イベン
トが発生したと判定すると、ステップ57でその発生し
たイベントを登録するとともに、ステップ58でイベン
トカウンタのカウント値に「1」を加算する。ステップ
53〜58は現在時刻に処理すべきイベントの数だけ繰
り返し実行される。
In step 53, it is determined whether or not there is an event to be processed at the present time, that is, there is a change in the input signal or the internal signal of the LSI. Then, when it is determined that there is an event to be processed in step 53, "1" is subtracted from the count value of the event counter in step 54, and the signal change calculation by the event is performed in step 55 to generate after the current time. The change in the internal signal of the LSI is calculated. In step 56, it is determined whether the signal value has changed, that is, whether an event has occurred. If it is determined that an event has occurred, the event that occurred is registered in step 57, and the event occurs in step 58. "1" is added to the count value of the counter. Steps 53 to 58 are repeatedly executed by the number of events to be processed at the current time.

【0008】そして、トレース処理は図7に示すよう
に、まず、ステップ60でトレースカウンタの初期値を
「0」に設定し、次のステップ61で図7に示すトレー
スデータテーブル71のデータ数「n」を入力する。
In the trace processing, as shown in FIG. 7, first, in step 60, the initial value of the trace counter is set to "0", and in the next step 61, the number of data in the trace data table 71 shown in FIG. Enter "n".

【0009】次に、ステップ62でトレースカウンタ値
に「1」を加算し、ステップ63でトレースカウンタ値
とデータ数「n」とを比較する。トレースカウンタ値が
データ数「n」以下であると判定すると、ステップ64
に進む。ステップ64ではトレースカウンタ値が指示す
るトレースデータテーブル71の1番目のネット番号及
び過去出力信号値(最新のトレース信号値データ)を検
索するとともに、現在時刻信号値データテーブル72か
らそのネット番号の現在信号値を検索し、過去出力信号
値と現在信号値とが一致するか否かを判定する。
Next, in step 62, "1" is added to the trace counter value, and in step 63, the trace counter value and the number of data "n" are compared. If it is determined that the trace counter value is less than or equal to the data number "n", step 64
Proceed to. In step 64, the first net number and the past output signal value (latest trace signal value data) in the trace data table 71 indicated by the trace counter value are searched, and the current time signal value data table 72 is searched for the current net number. The signal value is searched and it is determined whether or not the past output signal value and the current signal value match.

【0010】ステップ64で過去出力信号値と現在信号
値とが不一致であると判定すると、ステップ65に進み
トレースデータテーブル71のそのネット番号に対応す
る過去信号値領域へ現在信号値を代入する。そして、続
くステップ66でトレースデータテーブル71の1番目
の内容、即ち、ネット番号及び過去出力信号値を出力
し、前記ステップ62に戻る。又、ステップ64で過去
出力信号値と現在信号値とが一致すると判定すると、前
記ステップ62に戻る。
When it is determined in step 64 that the past output signal value and the present signal value do not match, the process proceeds to step 65, and the present signal value is substituted into the past signal value area corresponding to the net number in the trace data table 71. Then, in the following step 66, the first contents of the trace data table 71, that is, the net number and the past output signal value are output, and the process returns to step 62. If it is determined in step 64 that the past output signal value and the current signal value match, the process returns to step 62.

【0011】ステップ62ではトレースカウンタ値に
「1」を加算し、前記ステップ62〜66までの処理を
トレースカウンタ値が「n」になるまで繰り返し実行
し、トレースデータテーブル71の各ネットについて過
去出力信号値と現在信号値とが不一致となったネット番
号及び書き換えた後の過去出力信号値を出力する。
In step 62, "1" is added to the trace counter value, and the processes in steps 62 to 66 are repeatedly executed until the trace counter value becomes "n", and past output is performed for each net in the trace data table 71. The net number at which the signal value and the current signal value do not match and the past output signal value after rewriting are output.

【0012】そして、ステップ63でトレースカウンタ
値がデータ数「n」より大きいと判定するとステップ6
4に進み、処理を終了する。
If it is determined in step 63 that the trace counter value is larger than the number of data "n", step 6
Then, the processing is terminated.

【0013】[0013]

【発明が解決しようとする課題】しかしながら、上記従
来のトレース処理ではトレースデータテーブル71に指
定された各ネットについて、現在時刻信号値データテー
ブル72から現在信号値を検索し、さらに当該ネットの
過去出力信号値と検索した現在信号値とを比較し、それ
らが不一致のときのみ信号出力を行うという大きな手間
をかけていた。このためのトレース処理時間は総シミュ
レーション時間の50%〜70%にのぼることもあり、
このトレース処理により論理シミュレーションの処理速
度が低下するという問題があった。
However, in the above conventional trace processing, for each net designated in the trace data table 71, the current signal value is searched from the current time signal value data table 72, and the past output of the net is performed. It takes a great deal of effort to compare the signal value with the retrieved current signal value and to output the signal only when they do not match. The trace processing time for this may reach 50% to 70% of the total simulation time,
This trace processing has a problem that the processing speed of the logic simulation is reduced.

【0014】本発明は上記問題点を解決するためになさ
れたものであって、論理シミュレーションにおける信号
値トレース処理時間を短縮し、半導体論理集積回路の論
理設計期間を短縮することを目的とする。
The present invention has been made to solve the above problems, and it is an object of the present invention to shorten the signal value trace processing time in a logic simulation and shorten the logic design period of a semiconductor logic integrated circuit.

【0015】[0015]

【課題を解決するための手段】上記目的を達成するた
め、第1発明は、複数の論理素子データ及びネットデー
タ等からなるLSIの論理回路データと、このLSIに
入力しその動作を調べるための外部信号データとを入力
し、そのときの内部時刻における外部信号データの信号
変化又は各論理素子の出力端子の信号変化をそれぞれイ
ベントとして対応する各論理素子の入力端子に割り付
け、そのときの内部時刻における各イベントに基づいて
その内部時刻以降に発生する各論理素子の信号変化を算
出してその算出した出力端子の信号変化をそのときの内
部時刻から所定時間だけ後の新たなイベントとして登録
するとともに、所定の論理素子の出力端子の信号変化を
トレースした後、そのときの内部時刻を順次更新するよ
うにした論理シミュレーション方法において、前記論理
回路データにおけるトレースしたい所定の論理素子につ
いてその出力端子にトレース素子を設定するとともに、
各トレース素子に対して各論理素子と同様にイベントを
割り付け、任意のトレース素子に対して割り付けられた
イベントが当該トレース素子に保持されている信号値と
異なるとき、そのイベントを当該トレース素子に対応す
る論理素子のトレース情報として出力するようにした。
In order to achieve the above object, a first invention is to provide logic circuit data of an LSI composed of a plurality of logic element data, net data, etc. and input to this LSI to check its operation. Input the external signal data, and assign the signal change of the external signal data or the signal change of the output terminal of each logic element at the internal time at that time to the input terminal of each corresponding logic element as an event, and the internal time at that time Based on each event in, the signal change of each logic element that occurs after the internal time is calculated, and the calculated signal change of the output terminal is registered as a new event after a predetermined time from the internal time at that time. , A logic simulator that traces a signal change at the output terminal of a predetermined logic element and then sequentially updates the internal time at that time. In Deployment method, it sets the trace elements to the output terminal for a predetermined logic element to be traced in the logic circuit data,
An event is assigned to each trace element in the same way as each logic element, and when the event assigned to an arbitrary trace element differs from the signal value held in that trace element, that event is assigned to that trace element. The trace information of the logic element to be output is output.

【0016】又、第2発明は、複数の論理素子データ及
びネットデータ等からなるLSIの論理回路データを記
憶した論理回路データ記憶部と、このLSIに入力しそ
の動作を調べるための外部信号データを記憶した外部信
号データ記憶部と、論理シミュレーションにおける内部
時刻を管理する内部時刻管理部と、内部時刻管理部に管
理されたそのときの内部時刻における外部信号データの
信号変化を入力する外部信号入力回路部と、外部からの
トレース素子設定データに基づいて前記論理回路データ
におけるトレースしたい所定の論理素子についてその出
力端子にトレース素子を接続するトレース素子接続部
と、前記論理回路データ及びトレース素子接続部により
接続されたトレース素子データを入力するとともに、外
部信号入力回路部からの外部信号データを入力し、内部
時刻管理部に管理されたそのときの内部時刻における外
部信号データの信号変化又は各論理素子の出力端子の信
号変化をそれぞれイベントとし、そのときの内部時刻に
おける各イベントに基づいてその内部時刻以降に発生す
る各論理素子の出力端子の信号変化を算出するととも
に、その算出した各出力端子の信号変化をそのときの内
部時刻から所定の信号伝搬遅延値だけ後の新たなイベン
トとして登録するイベント処理回路部と、前記イベント
処理回路部の処理結果を出力する信号変化出力回路部と
を備え、前記イベント処理回路部を、各イベントを対応
する各論理素子又は各トレース素子の入力端子に割付け
るイベント割付部と、イベント割付部により各論理素子
にイベントが割付けられたとき、当該イベントに基づい
てその内部時刻以降に発生する各論理素子の出力端子の
信号変化を算出するとともに、その算出した各出力端子
の信号変化をそのときの内部時刻から所定の信号伝搬遅
延値だけ後の新たなイベントとして登録する論理回路素
子部と、イベント割付部により任意のトレース素子にイ
ベントが割付けられたとき、そのイベントが当該トレー
ス素子に保持されている信号値と異なるとき、そのイベ
ントを当該トレース素子に対応する論理素子のトレース
情報として出力するトレース素子部とを備えて構成し
た。
A second aspect of the present invention is a logic circuit data storage unit for storing logic circuit data of an LSI consisting of a plurality of logic element data, net data, etc., and external signal data for inputting to this LSI to check its operation. An external signal data storage unit that stores the internal time, an internal time management unit that manages the internal time in the logic simulation, and an external signal input that inputs a signal change of the external signal data at the internal time managed by the internal time management unit. A circuit section, a trace element connecting section for connecting a trace element to an output terminal of a predetermined logic element to be traced in the logic circuit data based on external trace element setting data, the logic circuit data and the trace element connecting section Input the trace element data connected by the The external signal data of is input and the signal change of the external signal data at the internal time at that time managed by the internal time management unit or the signal change of the output terminal of each logic element is used as an event, and Based on the event, the signal change of the output terminal of each logic element that occurs after that internal time is calculated, and the calculated signal change of each output terminal is calculated by the predetermined signal propagation delay value from the internal time at that time. An event processing circuit unit for registering as a new event, and a signal change output circuit unit for outputting the processing result of the event processing circuit unit are provided, and the event processing circuit unit is provided with each logic element or each trace corresponding to each event. When an event is assigned to each logic element by the event assigner that assigns to the input terminal of the element and the event assigner, The signal change of the output terminal of each logic element that occurs after that internal time is calculated based on the input signal, and the calculated signal change of each output terminal is calculated from the internal signal at that time by a predetermined signal propagation delay value. When an event is assigned to a trace element by the logic circuit element section to be registered as a new event and the event assignment section, and that event is different from the signal value held in the trace element, the event is traced. And a trace element section for outputting as trace information of a logic element corresponding to the element.

【0017】[0017]

【作用】第1及び第2発明によれば、論理回路データに
おけるトレースしたい所定の論理素子についてその出力
端子にトレース素子を接続し、各トレース素子にイベン
トが割付けれられそのイベントが当該トレース素子に保
持されている信号値と異なるとき、そのイベントが当該
トレース素子に対応する論理素子のトレース情報として
出力される。従って、信号値トレース処理時間を低減し
つつ、多数の論理素子の信号値トレースを行うことが可
能となり、論理シミュレーション時間が短縮化され、半
導体論理集積回路の論理設計期間が短縮化される。
According to the first and second inventions, a trace element is connected to the output terminal of a predetermined logic element to be traced in logic circuit data, an event is assigned to each trace element, and the event is assigned to the trace element. When the signal value is different from the held signal value, the event is output as the trace information of the logic element corresponding to the trace element. Therefore, it becomes possible to trace the signal value of a large number of logic elements while reducing the signal value trace processing time, the logic simulation time is shortened, and the logic design period of the semiconductor logic integrated circuit is shortened.

【0018】[0018]

【実施例】以下、本発明を具体化した一実施例を図1〜
図4に従って説明する。尚、説明の便宜上、図5〜図7
と同様の構成については同一の符号を付してその説明を
一部省略する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment embodying the present invention will now be described with reference to FIGS.
It will be described with reference to FIG. For convenience of explanation, FIGS.
The same reference numerals are given to the same configurations as those and the description thereof is partially omitted.

【0019】図1に示すように、論理シミュレータ1
は、論理回路データ記憶部としての論理回路データファ
イル2、外部信号データ記憶部としての外部信号データ
ファイル3、内部時刻管理部4、外部信号入力回路部
5、イベント処理回路部6、トレース素子接続部7、信
号変化出力回路部8等を備えて構成されており、論理回
路データファイル2の論理回路データと、外部信号デー
タファイル3の外部信号データとに基づいてLSIの論
理シミュレーションを実行するようになっている。
As shown in FIG. 1, the logic simulator 1
Is a logic circuit data file 2 as a logic circuit data storage unit, an external signal data file 3 as an external signal data storage unit, an internal time management unit 4, an external signal input circuit unit 5, an event processing circuit unit 6, a trace element connection. And a signal change output circuit section 8 and the like, so as to execute a logic simulation of an LSI based on the logic circuit data of the logic circuit data file 2 and the external signal data of the external signal data file 3. It has become.

【0020】論理回路データファイル2には複数の論理
素子データ及びネットデータ等からなるLSIの論理回
路データが記憶されている。図4は一例の論理回路デー
タ20を示し、論理素子21〜24及びネットN1〜N
6等で構成されている。外部信号データファイル3には
LSIに入力し、その動作を調べるための外部信号デー
タ及びストローブ信号データ等が記憶されている。
The logic circuit data file 2 stores LSI logic circuit data composed of a plurality of logic element data and net data. FIG. 4 shows an example of logic circuit data 20, which includes logic elements 21 to 24 and nets N1 to N.
It is composed of 6 etc. The external signal data file 3 stores external signal data, strobe signal data, and the like, which are input to the LSI and used to check the operation thereof.

【0021】内部時刻管理部4は論理シミュレーション
におけるそのときの内部時刻(以下、現在時刻という)
を管理しており、外部信号入力回路部5、イベント処理
回路部6及び信号変化出力回路部8に現在時刻を出力す
る。内部時刻管理部4はそのときの内部時刻におけるイ
ベント処理回路部6によるイベント処理及び信号変化出
力回路部8による信号出力処理が終了すると、現在時刻
をそのときの現在時刻に一定時間だけ加算した時刻に更
新するようになっている。
The internal time management unit 4 is an internal time at that time in the logic simulation (hereinafter, referred to as current time).
The current time is output to the external signal input circuit unit 5, the event processing circuit unit 6, and the signal change output circuit unit 8. When the internal time management unit 4 finishes the event processing by the event processing circuit unit 6 and the signal output processing by the signal change output circuit unit 8 at the internal time at that time, a time obtained by adding the current time to the current time at that time by a fixed time. It is supposed to be updated.

【0022】外部信号入力回路部5は前記内部時刻管理
部4に管理された現在時刻に基づいて、その現在時刻に
対応する外部信号データの信号変化、即ち、立ち上がり
又は立ち下がりエッジを入力してイベント処理回路部6
に出力する。
The external signal input circuit section 5 inputs the signal change of the external signal data corresponding to the current time, that is, the rising or falling edge, based on the current time managed by the internal time management section 4. Event processing circuit unit 6
Output to.

【0023】トレース素子接続部7はキーボード等を使
用して外部から入力されるトレース素子設定データに基
づいて前記論理回路データにおけるトレースしたい所定
の論理素子についてその出力端子にトレース素子を接続
するようになっている。即ち、図4に示す論理回路デー
タ20において論理素子24をトレースしたい論理素子
として指示すると、論理素子24の出力端子のネットN
5に対してトレース素子25を接続するようになってい
る。
The trace element connection unit 7 connects the trace element to the output terminal of a predetermined logic element to be traced in the logic circuit data based on the trace element setting data input from the outside using a keyboard or the like. Is becoming That is, when the logic element 24 is designated as the logic element to be traced in the logic circuit data 20 shown in FIG. 4, the net N of the output terminal of the logic element 24 is designated.
The trace element 25 is connected to 5.

【0024】イベント処理回路部6はイベント割付部1
0、論理回路素子部11及びトレース素子部12等を備
えて構成されている。イベント処理回路部6は論理回路
データ及びトレース素子接続部7により接続されたトレ
ース素子データを入力するとともに、外部信号入力回路
部5からの外部信号データを入力する。そして、イベン
ト処理回路部6は内部時刻管理部4に管理されたそのと
きの内部時刻における外部信号データの信号変化又は各
論理素子の出力端子の信号変化をそれぞれイベントと
し、そのときの内部時刻における各イベントに基づいて
その内部時刻以降に発生する各論理素子の出力端子の信
号変化を算出するとともに、その算出した各出力端子の
信号変化をそのときの内部時刻から所定の信号伝搬遅延
値だけ後の新たなイベントとして登録するようになって
いる。
The event processing circuit section 6 is the event allocation section 1
0, a logic circuit element section 11, a trace element section 12 and the like. The event processing circuit section 6 inputs the logic circuit data and the trace element data connected by the trace element connecting section 7, and also inputs the external signal data from the external signal input circuit section 5. Then, the event processing circuit unit 6 uses the signal change of the external signal data or the signal change of the output terminal of each logic element at the internal time at that time managed by the internal time management unit 4 as an event, and at the internal time at that time. Based on each event, the signal change of the output terminal of each logic element that occurs after that internal time is calculated, and the calculated signal change of each output terminal is delayed by a predetermined signal propagation delay value from the internal time at that time. It will be registered as a new event of.

【0025】即ち、イベント割付部10は内部時刻管理
部4に管理されたときの内部時刻における外部信号デー
タの信号変化又は各論理素子の出力端子の信号変化をそ
れぞれイベントとし、各イベントを対応する論理素子又
は各トレース素子の入力端子に割付ける。
That is, the event allocating section 10 regards the signal change of the external signal data or the signal change of the output terminal of each logic element at the internal time when managed by the internal time management section 4 as an event, and corresponds each event. Assign to the input terminal of logic element or each trace element.

【0026】論理回路素子部11はイベント割付部10
により各論理素子に割付けられた各イベントに基づいて
その内部時刻以降に発生する各論理素子の出力端子の信
号変化を算出するとともに、その算出した各出力端子の
信号変化をそのときの内部時刻から所定の信号伝搬遅延
値だけ後の新たなイベントとして登録する。
The logic circuit element section 11 is the event allocation section 10
Based on each event assigned to each logic element, calculate the signal change of the output terminal of each logic element that occurs after that internal time, and calculate the calculated signal change of each output terminal from the internal time at that time. Register as a new event after a predetermined signal propagation delay value.

【0027】トレース素子部12はイベント割付部10
により任意のトレース素子にイベントが割付けられたと
き、そのイベントが当該トレース素子に保持されている
信号値と異なるとき、そのイベントを当該トレース素子
に対応する論理素子のトレース情報として出力する。
The trace element section 12 is the event allocation section 10.
When an event is assigned to an arbitrary trace element by, when the event is different from the signal value held in the trace element, the event is output as the trace information of the logic element corresponding to the trace element.

【0028】信号変化出力回路部8は前記内部時刻管理
部4に記憶された現在時刻において処理すべき全てのイ
ベントについてイベント処理回路部6による処理が終了
したとき、イベント処理回路部6による処理結果と期待
値とを比較するストローブ処理を実行するとともに、ト
レース処理を実行し、トレースリスト9を出力するよう
になっている。
When the event processing circuit unit 6 finishes processing all the events to be processed at the current time stored in the internal time management unit 4, the signal change output circuit unit 8 outputs the processing result by the event processing circuit unit 6. And the expected value are compared with the strobe processing, and the trace processing is executed and the trace list 9 is output.

【0029】次に上記のように構成された論理シミュレ
ータ1が実施する一時刻の処理を図2に従って説明する
と、イベント処理回路部6によりステップ30でイベン
ト処理が実行され、このイベント処理の最中においてト
レース素子部12によりトレース処理が実行される。そ
して、信号変化出力回路部8によりステップ41のスト
ローブ処理が実行され、この後、内部時刻管理部4によ
りステップ43で内部時刻が一定時間だけ加算した時刻
に更新される。
Next, the one-time processing executed by the logic simulator 1 configured as described above will be described with reference to FIG. 2. The event processing circuit section 6 executes the event processing in step 30, and during the event processing. At, the trace processing is executed by the trace element unit 12. Then, the signal change output circuit section 8 executes the strobe processing in step 41, and thereafter, in step 43, the internal time management section 4 updates the internal time to a time obtained by adding a fixed time.

【0030】又、図3はイベント処理回路部6のイベン
ト処理を示している。まず、ステップ50で入力信号、
即ち、外部信号データの信号変化があるか否かを判定
し、入力信号があるときにはステップ51でその入力信
号をイベントとして登録するとともに、ステップ52で
イベントカウンタのカウント値に「1」を加算する。ス
テップ50〜52は入力信号の数だけ繰り返し実行され
る。
FIG. 3 shows the event processing of the event processing circuit section 6. First, in step 50, the input signal,
That is, it is determined whether or not there is a signal change in the external signal data, and when there is an input signal, the input signal is registered as an event in step 51, and "1" is added to the count value of the event counter in step 52. .. Steps 50 to 52 are repeatedly executed by the number of input signals.

【0031】そして、ステップ53では現在時刻に処理
すべきイベント、即ち、入力信号又はLSIの内部信号
変化があるか否かを判定する。そして、ステップ53で
処理すべきイベントがあると判定すると、ステップ54
でイベントカウンタのカウント値から「1」を減算し、
次のステップ31でそのイベントが論理素子又はトレー
ス素子のいずれに対応するかを判定する。
Then, in step 53, it is determined whether or not there is an event to be processed at the current time, that is, there is a change in the input signal or the internal signal of the LSI. If it is determined in step 53 that there is an event to be processed, step 54
And subtract "1" from the count value of the event counter,
In the next step 31, it is determined whether the event corresponds to a logic element or a trace element.

【0032】ステップ31でそのイベントが論理素子に
対応するものであると判定すると、ステップ55にてそ
のイベントによる信号変化演算を行って現在時刻以降に
発生するLSIの内部信号変化を算出する。ステップ5
6でイベントが発生した、即ち、内部信号変化があった
か否かを判定し、イベントが発生したと判定すると、ス
テップ57でその発生したイベントを登録するととも
に、ステップ58でイベントカウンタのカウント値に
「1」を加算する。
When it is determined in step 31 that the event corresponds to the logic element, in step 55, the signal change calculation according to the event is performed to calculate the internal signal change of the LSI occurring after the current time. Step 5
In step 6, it is determined whether or not an event has occurred, that is, whether or not there is an internal signal change. If it is determined that an event has occurred, the event that has occurred is registered in step 57 and the count value of the event counter is set to " 1 ”is added.

【0033】又、前記ステップ31でそのイベントがト
レース素子に対応するものであると判定すると、ステッ
プ32でそのイベントの信号値が当該トレース素子に保
持されている信号値から変化しているか、即ち、異なっ
ているか否かを判定し、信号値が変化していると判定す
ると、ステップ33でそのイベントを当該トレース素子
に保持させるとともに、そのイベントを当該トレース素
子に対応する論理素子のトレース情報として信号変化出
力回路部8に出力する。
When it is determined in step 31 that the event corresponds to the trace element, in step 32 the signal value of the event has changed from the signal value held in the trace element, that is, , If it is determined that the signal value has changed, the event is held in the trace element in step 33, and the event is used as trace information of the logic element corresponding to the trace element. It outputs to the signal change output circuit unit 8.

【0034】従って、例えば、図4に示すトレース素子
25にイベントが割付けられ、その割付けられたイベン
トの信号値が「1」で、トレース素子25が保持してい
る信号値が「0」であるときには、信号値「1」がトレ
ース素子25に保持されるとともに、信号値「1」が論
理素子24のトレース情報として出力される。
Therefore, for example, an event is assigned to the trace element 25 shown in FIG. 4, the signal value of the assigned event is "1", and the signal value held by the trace element 25 is "0". Sometimes, the signal value “1” is held in the trace element 25, and the signal value “1” is output as the trace information of the logic element 24.

【0035】前記ステップ53,54,31,55〜5
8及びステップ32,33は現在時刻に処理すべきイベ
ントの数だけ繰り返し実行される。このように、本実施
例ではトレース素子接続部7により外部からのトレース
素子設定データに基づいて論理回路データにおけるトレ
ースしたい所定の論理素子についてその出力端子にトレ
ース素子を接続した。又、イベント処理回路部6にはト
レース素子部12を設け、イベント割付部10により任
意のトレース素子にイベントが割付けられそのイベント
が当該トレース素子に保持されている信号値と異なると
き、トレース素子部12によりそのイベントを当該トレ
ース素子に対応する論理素子のトレース情報として出力
するようにした。
Steps 53, 54, 31, 55-5
8 and steps 32 and 33 are repeatedly executed by the number of events to be processed at the current time. As described above, in this embodiment, the trace element connection unit 7 connects the trace element to the output terminal of the predetermined logic element to be traced in the logic circuit data based on the trace element setting data from the outside. Further, the event processing circuit section 6 is provided with a trace element section 12, and when an event is assigned to an arbitrary trace element by the event assigning section 10 and the event is different from the signal value held in the trace element, the trace element section 12 is provided. By 12, the event is output as the trace information of the logic element corresponding to the trace element.

【0036】このため、従来の論理シミュレーションに
おけるトレース処理のようにトレースデータテーブル7
1の全てのトレースしたい論理素子のデータについてト
レース処理をすることなく、トレースしたい論理素子が
信号変化を起こしたときにのみ信号変化出力回路部8を
動作させることによって信号値トレース処理時間を低減
しつつ、多数の論理素子の信号値トレースを行うことが
可能となり、論理シミュレーションを高速化でき、よっ
て半導体論理集積回路の論理設計期間を短縮化すること
ができる。
Therefore, like the trace processing in the conventional logic simulation, the trace data table 7
The signal value trace processing time is reduced by operating the signal change output circuit section 8 only when the logic element to be traced causes a signal change without performing the trace processing on the data of all the logic elements to be traced in 1. At the same time, it becomes possible to trace the signal values of a large number of logic elements, which makes it possible to speed up the logic simulation, thereby shortening the logic design period of the semiconductor logic integrated circuit.

【0037】尚、本実施例ではトレース素子部12によ
り各トレース素子に割付けられたイベントの信号値が当
該トレース素子に保持されている信号値から変化してい
るか否かを判定するようにしたが、この判定は信号変化
出力回路部8にて行うようにしてもよい。
In the present embodiment, the trace element unit 12 determines whether or not the signal value of the event assigned to each trace element has changed from the signal value held in the trace element. The signal change output circuit unit 8 may make this determination.

【0038】又、本実施例ではトレース素子接続部7に
よりトレースしたい所定の論理素子の出力端子にトレー
ス素子を接続するようにしたが、論理回路データにおけ
るトレースしたい論理素子の出力端子に予めトレース素
子を設定した論理回路データを使用してもよい。
In the present embodiment, the trace element connecting portion 7 connects the trace element to the output terminal of the predetermined logic element to be traced. However, the trace element is previously connected to the output terminal of the logic element to be traced in the logic circuit data. You may use the logic circuit data which set.

【0039】[0039]

【発明の効果】以上詳述したように、本発明によれば、
論理シミュレーションにおける信号値トレース処理時間
を短縮し、半導体論理集積回路の論理設計期間を短縮す
ることができる優れた効果がある。
As described in detail above, according to the present invention,
There is an excellent effect that the signal value trace processing time in the logic simulation can be shortened and the logic design period of the semiconductor logic integrated circuit can be shortened.

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

【図1】一実施例の論理シミュレータを示すブロック図
である。
FIG. 1 is a block diagram showing a logic simulator according to an embodiment.

【図2】一実施例の論理シミュレータの一時刻の処理を
示すフローチャートである。
FIG. 2 is a flowchart showing processing of a logic simulator at one time according to an embodiment.

【図3】一実施例のイベント処理を示すフローチャート
である。
FIG. 3 is a flowchart showing event processing according to an embodiment.

【図4】論理回路データの一例を示す図である。FIG. 4 is a diagram showing an example of logic circuit data.

【図5】従来の論理シミュレータの一時刻の処理を示す
フローチャートである。
FIG. 5 is a flowchart showing processing of a conventional logic simulator at one time.

【図6】従来のイベント処理を示すフローチャートであ
る。
FIG. 6 is a flowchart showing conventional event processing.

【図7】従来のトレース処理を示すフローチャートであ
る。
FIG. 7 is a flowchart showing conventional trace processing.

【図8】トレースデータテーブルを示すフローチャート
である。
FIG. 8 is a flowchart showing a trace data table.

【図9】現在時刻信号値データテーブルを示す図であ
る。
FIG. 9 is a diagram showing a current time signal value data table.

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

2 論理回路データ記憶部としての論理回路データファ
イル 3 外部信号データ記憶部としての外部信号データファ
イル 4 内部時刻管理部 5 外部信号入力回路部 6 イベント処理回路部 7 トレース素子接続部 8 信号変化出力回路部 10 イベント割付部 11 論理回路素子部 12 トレース素子部
2 Logic circuit data file as logic circuit data storage unit 3 External signal data file as external signal data storage unit 4 Internal time management unit 5 External signal input circuit unit 6 Event processing circuit unit 7 Trace element connection unit 8 Signal change output circuit Part 10 Event allocation part 11 Logic circuit element part 12 Trace element part

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 複数の論理素子データ及びネットデータ
等からなるLSIの論理回路データと、このLSIに入
力しその動作を調べるための外部信号データとを入力
し、そのときの内部時刻における外部信号データの信号
変化又は各論理素子の出力端子の信号変化をそれぞれイ
ベントとして対応する各論理素子の入力端子に割り付
け、そのときの内部時刻における各イベントに基づいて
その内部時刻以降に発生する各論理素子の信号変化を算
出してその算出した出力端子の信号変化をそのときの内
部時刻から所定時間だけ後の新たなイベントとして登録
するとともに、所定の論理素子の出力端子の信号変化を
トレースした後、そのときの内部時刻を順次更新するよ
うにした論理シミュレーション方法において、 前記論理回路データにおけるトレースしたい所定の論理
素子についてその出力端子にトレース素子を設定すると
ともに、各トレース素子に対して各論理素子と同様にイ
ベントを割り付け、任意のトレース素子に対して割り付
けられたイベントが当該トレース素子に保持されている
信号値と異なるとき、そのイベントを当該トレース素子
に対応する論理素子のトレース情報として出力するよう
にしたことを特徴とする論理シミュレーション方法。
1. An external signal at an internal time at that time, by inputting logic circuit data of an LSI composed of a plurality of logic element data and net data, and external signal data for inputting to this LSI to check its operation. Each logic element that occurs after the internal time based on each event at the internal time at that time is assigned to the input terminal of each corresponding logic element by assigning a data signal change or a signal change at the output terminal of each logic element as an event. After registering the calculated signal change of the output terminal as a new event after a predetermined time from the internal time at that time, and tracing the signal change of the output terminal of the predetermined logic element, In the logic simulation method in which the internal time at that time is sequentially updated, A trace element is set to the output terminal of a predetermined logic element to be connected, an event is assigned to each trace element in the same manner as each logic element, and the event assigned to an arbitrary trace element is the trace element concerned. The logic simulation method is characterized in that, when the signal value is different from the signal value held in, the event is output as trace information of the logic element corresponding to the trace element.
【請求項2】 複数の論理素子データ及びネットデータ
等からなるLSIの論理回路データを記憶した論理回路
データ記憶部(2)と、 このLSIに入力しその動作を調べるための外部信号デ
ータを記憶した外部信号データ記憶部(3)と、 論理シミュレーションにおける内部時刻を管理する内部
時刻管理部(4)と、 内部時刻管理部(4)に管理されたそのときの内部時刻
における外部信号データの信号変化を入力する外部信号
入力回路部(5)と、 外部からのトレース素子設定データに基づいて前記論理
回路データにおけるトレースしたい所定の論理素子につ
いてその出力端子にトレース素子を接続するトレース素
子接続部(7)と、 前記論理回路データ及びトレース素子接続部(7)によ
り接続されたトレース素子データを入力するとともに、
外部信号入力回路部(5)からの外部信号データを入力
し、内部時刻管理部(4)に管理されたそのときの内部
時刻における外部信号データの信号変化又は各論理素子
の出力端子の信号変化をそれぞれイベントとし、そのと
きの内部時刻における各イベントに基づいてその内部時
刻以降に発生する各論理素子の出力端子の信号変化を算
出するとともに、その算出した各出力端子の信号変化を
そのときの内部時刻から所定の信号伝搬遅延値だけ後の
新たなイベントとして登録するイベント処理回路部
(6)と、 前記イベント処理回路部(6)の処理結果を出力する信
号変化出力回路部(8)とを備え、 前記イベント処理回路部(6)を、各イベントを対応す
る各論理素子又は各トレース素子の入力端子に割付ける
イベント割付部(10)と、 イベント割付部(10)により各論理素子にイベントが
割付けられたとき、当該イベントに基づいてその内部時
刻以降に発生する各論理素子の出力端子の信号変化を算
出するとともに、その算出した各出力端子の信号変化を
そのときの内部時刻から所定の信号伝搬遅延値だけ後の
新たなイベントとして登録する論理回路素子部(11)
と、 イベント割付部(10)により任意のトレース素子にイ
ベントが割付けられたとき、そのイベントが当該トレー
ス素子に保持されている信号値と異なるとき、そのイベ
ントを当該トレース素子に対応する論理素子のトレース
情報として出力するトレース素子部(12)とを備えて
構成したことを特徴とする論理シミュレータ。
2. A logic circuit data storage section (2) storing logic circuit data of an LSI, which is composed of a plurality of logic element data and net data, and external signal data for inputting to this LSI and checking its operation. The external signal data storage unit (3), the internal time management unit (4) that manages the internal time in the logic simulation, and the signal of the external signal data at the internal time managed by the internal time management unit (4) An external signal input circuit section (5) for inputting a change, and a trace element connection section for connecting a trace element to an output terminal of a predetermined logic element to be traced in the logic circuit data based on external trace element setting data ( 7), and inputting the logic circuit data and the trace element data connected by the trace element connection unit (7) Together,
External signal data from the external signal input circuit section (5) is input, and the signal change of the external signal data or the signal change of the output terminal of each logic element at the internal time at that time managed by the internal time management section (4). Is defined as an event, and the signal change of the output terminal of each logic element that occurs after that internal time is calculated based on each event at the internal time at that time, and the calculated signal change of each output terminal is calculated at that time. An event processing circuit section (6) for registering as a new event after a predetermined signal propagation delay value from the internal time, and a signal change output circuit section (8) for outputting the processing result of the event processing circuit section (6). An event allocating unit (10) for allocating the event processing circuit unit (6) to an input terminal of each corresponding logic element or each trace element, When an event is assigned to each logic element by the vent assignment unit (10), the signal change of the output terminal of each logic element occurring after the internal time is calculated based on the event and the calculated output terminal is calculated. Logic circuit element section (11) for registering the signal change of as a new event after a predetermined signal propagation delay value from the internal time at that time
When an event is assigned to an arbitrary trace element by the event assigning section (10) and the event is different from the signal value held in the trace element, the event is assigned to the logic element corresponding to the trace element. A logic simulator comprising a trace element section (12) for outputting as trace information.
JP4020310A 1992-02-05 1992-02-05 Logic simulation method and logic simulator Withdrawn JPH05216953A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4020310A JPH05216953A (en) 1992-02-05 1992-02-05 Logic simulation method and logic simulator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4020310A JPH05216953A (en) 1992-02-05 1992-02-05 Logic simulation method and logic simulator

Publications (1)

Publication Number Publication Date
JPH05216953A true JPH05216953A (en) 1993-08-27

Family

ID=12023570

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4020310A Withdrawn JPH05216953A (en) 1992-02-05 1992-02-05 Logic simulation method and logic simulator

Country Status (1)

Country Link
JP (1) JPH05216953A (en)

Similar Documents

Publication Publication Date Title
US5650947A (en) Logic simulation method and logic simulator
US7086019B2 (en) Systems and methods for determining activity factors of a circuit design
US6463576B1 (en) Method for designing an ASIC and ASIC designing apparatus
CN112597718B (en) Verification method, verification device and storage medium for integrated circuit design
CN111624475B (en) Method and system for testing large-scale integrated circuit
JPH06274568A (en) Expansion method for hierarchical graphic data
US5418931A (en) Method and apparatus for detecting timing errors in digital circuit designs
JPH10207920A (en) Method and device for circuit design
US6536020B2 (en) Efficient generation of optimum test data
US20030188272A1 (en) Synchronous assert module for hardware description language library
US20220327269A1 (en) Computing device and method for detecting clock domain crossing violation in design of memory device
US7031889B1 (en) Method and apparatus for evaluating the design quality of network nodes
JPH05216953A (en) Logic simulation method and logic simulator
CN111400994A (en) Netlist form verification method and device, computer equipment and storage medium
JP3161314B2 (en) Logic simulation apparatus and logic simulation method
US10614181B2 (en) Electronic design tools using non-synthesizable circuit elements
JP3654941B2 (en) Logic simulation method and logic simulator
JP2785708B2 (en) Logic simulation method
US20060190235A1 (en) Verilog HDL simulation model for retain time
JP2023117352A (en) hardware trojan detection device and hardware trojan detection program
JPH05266123A (en) Method for logical simulation and simulator therefor
JPH029370B2 (en)
JPH04337871A (en) Logical simulation method and logical simulator
JPH08171585A (en) Logic simulating method and logic simulator
JPH0676016A (en) Logical simulation method

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19990518