JPH0822486A - Logic circuit simulation method - Google Patents

Logic circuit simulation method

Info

Publication number
JPH0822486A
JPH0822486A JP6175980A JP17598094A JPH0822486A JP H0822486 A JPH0822486 A JP H0822486A JP 6175980 A JP6175980 A JP 6175980A JP 17598094 A JP17598094 A JP 17598094A JP H0822486 A JPH0822486 A JP H0822486A
Authority
JP
Japan
Prior art keywords
logic
expression table
logic circuit
logic element
control signal
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
JP6175980A
Other languages
Japanese (ja)
Inventor
Yoshito Mizogami
良人 溝上
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP6175980A priority Critical patent/JPH0822486A/en
Publication of JPH0822486A publication Critical patent/JPH0822486A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To accelerate a logic simulation processing without influencing the connection form of a logic circuit by changing an input signal value for respective assemblies, using a net expression table and a logic element expression table newly generated for the respective assemblies and propagating the signal value. CONSTITUTION:The connection relation of respective logic elements and a flip-flop or the input terminal of an object logic circuit and connection states among the respective logic elements are prepared (101,) the connection states are classified by adding the division section numbers of flip-flop logic elements based on the parameters of the control signal lines of clocks or the like (102) and the respective logic elements of the object logic circuit are divided into the assemblies of a control signal unit (103.) A logic element stage number until the output terminal of an object assembly is traced and a connection stage number until an output terminal point is set (104.) The ones for which the division section of the control signal unit and an element function are the same and an input number is the same further are gathered and the new table is prepared.

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 used for logic verification of a processing circuit, and more particularly to an optimum logic integration method in a logic circuit to be logic verified.

【0002】[0002]

【従来の技術】デジタル論理回路の論理設計において、
設計対象の論理回路をハードウエアとして作成すること
なしに、その論理機能が正しいか否か検証する手段とし
て、論理シミュレーションを用いた動作確認を実施して
いる。これらの論理シミュレーション手法として、特開
昭63−211036号公報や特開平3−42736号
公報で示されるように、設計対象の論理回路を論理回路
シミュレーションに適した構造に論理素子を編集し、計
算機時間の短縮・使用メモリ量を削減する手法がある。
また、回路のゲ−ト種類で処理を分割し、並列の論理シ
ミュレ−ションを実現する手法として、特開平3−91
869号公報に示される手法があげられ、同一機能の論
理素子を1集合体として取り扱う論理回路シミュレ−シ
ョン方法としては、特開平5−46694号公報で提案
されているが、フリップフロップ単位を対象としてお
り、1集合体の出力端子を1本にまとめて各論理素子間
の信号変化を伝播する手段である信号変化イベント数を
削減する手法を用いているが、フリップフロップ以外の
論理素子については、これらの集合体としての考慮がな
されていない。
2. Description of the Related Art In the logic design of digital logic circuits,
As a means for verifying whether or not the logic function of the design target logic circuit is correct without creating it as hardware, operation confirmation using logic simulation is performed. As these logic simulation methods, as disclosed in Japanese Patent Laid-Open No. 63-211036 and Japanese Patent Laid-Open No. 3-42736, a logic circuit to be designed is edited with a logic element having a structure suitable for a logic circuit simulation, and a computer is used. There are methods to reduce the time and the amount of memory used.
Further, as a method for realizing parallel logic simulation by dividing the processing according to the gate type of the circuit, Japanese Patent Laid-Open No. 3-91
The technique disclosed in Japanese Unexamined Patent Publication No. 5-46694 is proposed as a logic circuit simulation method for handling logical elements having the same function as one aggregate. The method of reducing the number of signal change events, which is a means for propagating a signal change between the respective logic elements by combining the output terminals of one aggregate into one, is used for the logic elements other than the flip-flop. , They are not considered as an aggregate of these.

【0003】[0003]

【発明が解決しようとする課題】従来手法では、対象論
理回路の各論理素子について削除、最適化することが可
能であるが、論理シミュレ−ションの処理速度に関連の
深い論理素子の信号変化イベント量については、考慮が
不十分である。すなわち、信号変化のない論理素子の削
減手法、同一機能の論理素子を一連の処理対象グル−プ
として分割し、各論理素子単位に論理シミュレーション
処理を実行することであり、論理素子信号変化が発生す
る論理素子の個数に変化はなく、信号変化のイベントは
変わらない。したがって、論理シミュレ−ション処理の
イベント処理時間は削減することができない。本発明の
目的は、論理回路の接続形態に影響を与えず、論理素子
の信号変化のイベント数を削減し、論理シミュレ−ショ
ン処理を高速化することにある。
In the conventional method, it is possible to delete and optimize each logic element of the target logic circuit. However, the signal change event of the logic element which is deeply related to the processing speed of the logic simulation. Insufficient consideration is given to the amount. That is, it is a method of reducing logic elements without signal change, dividing logic elements having the same function as a series of processing target groups, and executing logic simulation processing for each logic element unit. There is no change in the number of logic elements to be operated, and the event of signal change does not change. Therefore, the event processing time of the logic simulation processing cannot be reduced. An object of the present invention is to reduce the number of events of signal change of a logic element without affecting the connection form of a logic circuit, and to speed up the logic simulation processing.

【0004】[0004]

【課題を解決するための手段】上記目的を達成するた
め、本発明は、論理回路における論理素子及びその接続
の情報を計算機に読み込み、計算機上で前記論理回路の
論理動作の検証を行なう論理回路シミュレーション方法
において、論理回路における論理素子及びその接続の情
報を計算機に読み込み、ネット表現テーブル及び論理素
子表現テーブルを作成し、論理回路における指定された
制御信号線のパラメタをもとに論理回路の接続状態を前
記ネット表現テーブル及び論理素子表現テーブルをトレ
ースして論理回路の各論理素子を制御信号線単位の集合
体に分割し、制御信号線単位の集合体単位毎に前記ネッ
ト表現テーブル及び論理素子表現テーブルをトレースし
て各論理素子の論理回路における接続段数を求め、同一
集合体における同一接続段数の論理素子の論理素子表現
テーブルを抽出し、該同一接続段数の論理素子を多入力
素子としてまとめ、該多入力素子の論理素子表現テーブ
ルを新たに生成すると共に該論理素子表現テーブルに関
連する新たなネット表現テーブルを生成し、前記各集合
体毎に入力信号値を変化させ、各集合体毎に前記新たに
生成したネット表現テーブル及び論理素子表現テーブル
を用いて信号値伝播を行なうようにしている。
In order to achieve the above object, the present invention reads a logic element and its connection information in a logic circuit into a computer and verifies the logical operation of the logic circuit on the computer. In the simulation method, the information of the logic elements and their connections in the logic circuit is read into the computer, the net expression table and the logic element expression table are created, and the logic circuit connections are made based on the parameters of the specified control signal line in the logic circuit. The state is traced through the net expression table and the logic element expression table, and each logic element of the logic circuit is divided into an assembly of control signal line units, and the net expression table and the logic element are grouped by control signal line units. Trace the expression table to find the number of connection stages in the logic circuit of each logic element, and identify the same in the same set. A logical element expression table of the number of logic elements in the succeeding stage is extracted, the logical elements having the same number of connection steps are collected as a multi-input element, and a logical element expression table of the multi-input element is newly generated and associated with the logical element expression table. A new net representation table is generated, the input signal value is changed for each aggregate, and signal value propagation is performed using the newly generated net representation table and logical element representation table for each aggregate. I have to.

【0005】また、前記論理回路の各論理素子を制御信
号線単位の集合体に分割するとき、論理回路における指
定された制御信号線のパラメタをもとに該制御信号線か
らフリップフロップの論理素子表現テーブルまでの接続
状態をトレースし、各制御信号線単位にフリップフロッ
プの論理素子表現テーブルに分割区分番号を付与して分
類し、次いで分割区分番号が同一のフリップフロップの
論理素子表現テーブルから接続先のネット表現テーブル
及び論理素子表現テーブルを順次トレースし、分割区分
番号が異なるフリップフロップの論理素子表現テーブル
あるいは論理回路の入出力端子を端点として、該端点ま
でに存在する論理素子表現テーブルにトレース開始のフ
リップフロップの論理素子表現テーブルと同じ分割区分
番号を付与し、同一の分割区分番号を付与された論理素
子表現テーブルの各論理素子を制御信号線単位の集合体
とするようにしている。
Further, when each logic element of the logic circuit is divided into a group of control signal line units, a logic element of a flip-flop is connected from the control signal line based on a parameter of a designated control signal line in the logic circuit. Trace the connection state up to the expression table, classify each control signal line by assigning a division section number to the flip-flop logic element expression table, and then connect from the flip-flop logic element expression table with the same division section number. The above net expression table and logic element expression table are sequentially traced, and the logic element expression table of the flip-flops with different division division numbers or the input / output terminals of the logic circuit are used as end points and traced to the logic element expression table existing up to the end points. Assign the same division classification number as the logical element expression table of the start flip-flop, and Are each logic element of the logic element representation table split partition number is granted to a collection of the control signal line basis.

【0006】また、前記各論理素子の論理回路における
接続段数を求めるとき、前記集合体単位内の入力端子あ
るいは入力側フリップフロップから各論理素子までの遅
延時間を求め、同一遅延時間を持つ論理素子を同一接続
段数とするようにしている。
Further, when obtaining the number of connection stages in the logic circuit of each of the logic elements, the delay time from the input terminal or the input side flip-flop in the aggregate unit to each logic element is obtained, and the logic elements having the same delay time are obtained. To have the same number of connection stages.

【0007】[0007]

【作用】通常、論理シミュレ−ションで使用する各論理
素子の信号値は、最大32値程度、一般的には、4値も
しくは8値の信号値レベルで表現される。これらの信号
値を計算機上で取り扱うためには、2ビットあるいは3
ビットのメモリ領域で表現可能であるが、従来1論理素
子を1回の論理演算によって実行していた。本発明によ
れば、各論理素子の信号変化を多入力機能素子で1個に
集約することができ、4値の信号レベルを取り扱う論理
シミュレータでは、1語4バイトのデータ処理を行う計
算機上では2入力AND素子の論理演算として、16論
理素子を1回の論理演算で取り扱うことができる。した
がって、各論理素子間の信号変化を伝播するイベント量
を削減することができると同時に、各論理素子の信号変
化に伴う論理素子の論理演算処理を高速にできる。
In general, the signal value of each logic element used in the logic simulation is expressed by signal value levels of maximum 32 values, generally 4 values or 8 values. To handle these signal values on a computer, 2 bits or 3
Although it can be represented by a bit memory area, conventionally one logic element has been executed by one logic operation. According to the present invention, the signal change of each logic element can be aggregated into one by a multi-input functional element, and in a logic simulator that handles a four-valued signal level, on a computer that processes data of one word and four bytes. As the logical operation of the 2-input AND element, 16 logical elements can be handled by one logical operation. Therefore, it is possible to reduce the amount of events that propagate the signal change between the respective logic elements, and at the same time, it is possible to speed up the logical operation processing of the logic elements associated with the signal change of the respective logic elements.

【0008】[0008]

【実施例】以下、本発明の一実施例を図面により詳細に
説明する。図1に、本発明の多入力機能素子を生成する
ための論理コンパイルフロ−を示す。図2に各論理素子
間の信号名接続状態を示すネット表現テーブル構成を示
す。該テーブルは信号名テーブルとネットテーブルから
なる。図3に論理素子を表現した論理素子表現テーブル
構成を示す。該テーブルは素子テーブルと信号値テーブ
ルと出力値テーブルからなる。また、これらのテーブル
の接続関連事例として、図8に対象論理回路の接続状態
をネット表現テーブルと論理素子表現テーブルにより表
現したものを示す。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described in detail below with reference to the drawings. FIG. 1 shows a logic compilation flow for producing the multi-input functional device of the present invention. FIG. 2 shows a net expression table configuration showing a signal name connection state between the respective logic elements. The table includes a signal name table and a net table. FIG. 3 shows a logical element expression table configuration expressing the logical elements. The table includes an element table, a signal value table, and an output value table. As a connection-related example of these tables, FIG. 8 shows a connection state of the target logic circuit expressed by a net expression table and a logic element expression table.

【0009】図2のネット表現テーブルにおいて、20
1は信号名テーブルであり、各レコードには、信号名2
03と、接続元アドレス204、すなわち接続元の素子
の素子テーブルのアドレスと、接続先アドレス205、
すなわち接続先のネットテーブルのレコードアドレスが
記述される。202はネットテーブルであり、テーブル
の各レコードには、リンク206、すなわちリンクする
ネットテーブルのレコードアドレス(“0”はリンク無
しを示す)と、端子位置207、すなわち素子テーブル
のピン番号と、アドレス208すなわち接続先の素子の
素子テーブルのアドレスが記述される。図3の論理素子
表現テーブルにおいて、310は素子テーブル、320
は信号値テーブル、330は出力値テーブルであり、こ
こでは、論理素子表現テーブルは、信号値、出力値を別
テーブルにまとめて素子テーブルと信号値テーブル、出
力値テーブルを分離することにより、複数論理素子の信
号値、出力値を取り扱えるようにしているが、信号値、
出力値は単独のテーブルとせずに素子テーブル310に
含めることもできる。なお、これらテーブルの各項目に
ついては後述の説明において順次明らかにされる。
In the net representation table of FIG. 2, 20
1 is a signal name table, and each record has a signal name 2
03, the connection source address 204, that is, the address of the element table of the connection source element, and the connection destination address 205,
That is, the record address of the connection destination net table is described. Reference numeral 202 denotes a net table. In each record of the table, a link 206, that is, a record address of the net table to be linked (“0” indicates no link), a terminal position 207, that is, a pin number of the element table, and an address. 208, that is, the address of the element table of the element of the connection destination is described. In the logical element representation table of FIG. 3, 310 is an element table and 320
Is a signal value table, and 330 is an output value table. Here, the logic element representation table has a plurality of values obtained by collecting signal values and output values in separate tables and separating the element table from the signal value table and the output value table. Although it is designed to handle the signal value and output value of the logic element, the signal value,
The output value may be included in the element table 310 instead of being a single table. It should be noted that each item of these tables will be sequentially clarified in the following description.

【0010】まず、論理回路のモデル化方法について図
8のテーブル接続関連を用いて、詳細に説明する。図8
(1)は、対象論理回路例を示したもので、この論理回
路をネット接続状態を示す信号名テーブル、ネットテー
ブルと各論理素子の機能を表わす素子テーブルに設定し
た事例を図8(2)に示す。本事例では、たとえば、図
8(1)の信号線Fは信号名テーブル801の第6番目
のレコードにその信号名称を設定し、その接続元アドレ
スとして素子テーブル803のfを示し、接続先アドレ
スは、ネットテーブル802の該当接続先を示すレコー
ド番号6を設定する。なお、ここでは素子テーブルは簡
略化されたものが示されている。また、ネットテーブル
802では、同一信号線が複数の接続先を持つとき、リ
ンク情報として、各接続先の素子テーブルのアドレスを
持つレコードを順次生成する。本事例では、信号線F
は、接続元として素子テーブルfより接続され、接続先
としてネットテーブル802のレコード6で示される素
子テーブルgのピン番号2と、レコード7で示される素
子テーブルhのピン番号1に接続していることを示す。
また素子テーブルgは、出力信号線として、信号線名G
を持つ信号名テーブル801のc(レコードアドレス)
に接続している。さらに、各論理素子の信号値は、該当
素子テーブル803から直接参照できる部分に各入力端
子・出力端子毎に持ち、論理素子の演算とその結果を容
易に設定できる方法とする。本事例では、素子テーブル
803内に準備したv1・v2がそれぞれ入力端子ピン
番号1・入力端子ピン番号2の入力信号値領域を表し、
ovが出力信号値領域を表す。
First, a method of modeling a logic circuit will be described in detail with reference to the table connection relation of FIG. FIG.
FIG. 8 (2) shows an example of the target logic circuit. An example of setting this logic circuit in a signal name table showing a net connection state, a net table and an element table showing the function of each logic element is shown in FIG. 8 (2). Shown in. In this example, for example, the signal line F of FIG. 8 (1) sets the signal name in the sixth record of the signal name table 801, and indicates f of the element table 803 as the connection source address, and the connection destination address. Sets the record number 6 indicating the corresponding connection destination of the net table 802. The element table is shown here in a simplified form. Further, in the net table 802, when the same signal line has a plurality of connection destinations, a record having the address of the element table of each connection destination is sequentially generated as link information. In this example, the signal line F
Are connected from the element table f as the connection source, and are connected to the pin number 2 of the element table g shown in the record 6 of the net table 802 and the pin number 1 of the element table h shown in the record 7 as the connection destination. Indicates that.
Further, the element table g has a signal line name G as an output signal line.
Of the signal name table 801 having "c" (record address)
Connected to Further, the signal value of each logic element is provided for each input terminal / output terminal in a portion which can be directly referred to from the corresponding element table 803, and the method of easily calculating the logic element and its result can be set. In this example, v1 and v2 prepared in the element table 803 represent the input signal value areas of the input terminal pin number 1 and the input terminal pin number 2, respectively,
ov represents the output signal value region.

【0011】これらの論理素子表現テーブルとネット表
現テーブルの作成方法を、図1の論理コンパイルフロ
ー、図2のネット表現テーブル構成、図3の論理素子表
現テーブル構成、および、図6の論理回路例を用いて説
明する。対象論理回路の信号変化発生要因に対応した論
理回路の分割手段として、図1の論理コンパイルフロー
では、まずステップ101において、シミュレ−ション
対象論理回路内に存在する各論理素子を読み込み、各論
理素子とフリップフロップ、あるいは対象論理回路の入
出力端子との接続関連、および、各論理素子間の接続状
態を信号名テーブル201とネットテーブル202、素
子テーブル310および信号値テーブル320、出力値
テーブル330に作成する。ステップ102では、あら
かじめ入力カ−ドや記憶媒体より指定されたクロックな
どの制御信号線のパラメタをもとに、該当信号線から素
子テーブル310の素子機能311がフリップフロップ
を示す部分までの接続状態、すなわち図6の論理回路例
で示す入力端子CK0からフリップフロップ611、6
12、613の接続状態および、入力端子CK1からフ
リップフロップ661、662、663までの接続状態
を上記信号名テーブル201、ネットテーブル202と
素子テーブル310、出力値テーブル330を用いてト
レースし、各制御信号単位にフリップフロップ論理素子
の分割区分318に番号を付加し分類する。図6の論理
回路例では、各フリップフロップの分割区分として、入
力端子CK0から接続されるフリップフロップ611、
612、613については番号1を設定し、入力端子C
K1から接続されるフリップフロップ661、662、
663については番号2を設定する。つぎのステップ1
03では、分割区分318が同一のフリップフロップ論
理素子を抽出し、その論理素子の接続先をネット表現テ
ーブルと論理素子表現テーブルを用いて、順次トレース
し、分割区分番号が異なるフリップフロップ論理素子、
あるいは、対象論理回路の入出力端子を各論理素子グル
ープの端点として、その間に囲まれる論理素子の素子表
現テーブルの分割区分318に、トレース開始のフリッ
プフロップ素子の分割区分318と同じ数値を付加し、
各制御信号線ごとに同一分割区分の番号単位とすること
により、対象論理回路の各論理素子を制御信号線単位の
集合体に分割する。
A method of creating the logical element expression table and the net expression table will be described with reference to the logic compilation flow of FIG. 1, the net expression table configuration of FIG. 2, the logical element expression table configuration of FIG. 3, and the logic circuit example of FIG. Will be explained. As a means for dividing a logic circuit corresponding to a signal change occurrence factor of the target logic circuit, in the logic compilation flow of FIG. 1, first, in step 101, each logic element existing in the simulation target logic circuit is read and each logic element is read. And a flip-flop or an input / output terminal of a target logic circuit, and a connection state between respective logic elements in a signal name table 201, a net table 202, an element table 310, a signal value table 320, and an output value table 330. create. In step 102, the connection state from the corresponding signal line to the portion where the element function 311 of the element table 310 indicates a flip-flop based on the parameters of the control signal line such as a clock specified in advance by the input card or the storage medium. That is, from the input terminal CK0 shown in the logic circuit example of FIG.
12, 613 and the connection state from the input terminal CK1 to the flip-flops 661, 662, 663 are traced using the signal name table 201, the net table 202, the element table 310, and the output value table 330, and each control is performed. A number is added to the divided section 318 of the flip-flop logic element for each signal for classification. In the example of the logic circuit of FIG. 6, as the division division of each flip-flop, a flip-flop 611 connected from the input terminal CK0,
Number 1 is set for 612 and 613, and input terminal C
Flip-flops 661, 662 connected from K1
The number 2 is set for 663. Next step 1
In 03, the flip-flop logic elements having the same division section 318 are extracted, the connection destinations of the logic elements are sequentially traced using the net expression table and the logic element expression table, and the flip-flop logic elements having different division section numbers,
Alternatively, with the input / output terminal of the target logic circuit as the end point of each logic element group, the same numerical value as the division section 318 of the flip-flop element of the trace start is added to the division section 318 of the element expression table of the logic elements enclosed between them. ,
By setting each control signal line as a number unit of the same division section, each logic element of the target logic circuit is divided into a group of control signal line units.

【0012】ステップ104では、分割した集合体単位
すなわち、分割区分318が同一の各論理素子に対応す
る素子テーブル310の出力値アドレス317から対象
集合体の出力端子であるフリップフロップや対象論理回
路の出力端子までの論理素子段数を素子テーブル310
と信号名テーブル201とネットテーブル202を対象
素子テーブル310からトレースし、素子テーブル31
0の通過回数を算出し、各素子テーブル310の接続段
数313に該素子の出力端点までの接続段数を示す通過
回数を設定する。
In step 104, the divided aggregate unit, that is, the division value 318 of the output value address 317 of the element table 310 corresponding to each of the same logic elements is used to output the flip-flops or the target logic circuits of the output terminals of the target aggregate. The number of logic element stages up to the output terminal is calculated by the element table 310.
The signal name table 201 and the net table 202 are traced from the target device table 310 to obtain the device table 31.
The number of passages of 0 is calculated, and the number of passages indicating the number of connection stages up to the output end point of the element is set in the number of connection stages 313 of each element table 310.

【0013】さらに、ステップ105で分割区分318
が同一の対象集合体のうち出力端点まで同一接続段数に
ある素子テーブル310の素子機能311および入力端
子数を示す入力数314が同一である論理素子を素子テ
ーブルから抽出し、また素子遅延時間を用いる論理シミ
ュレーションでは、同一遅延時間を持つ論理素子を抽出
条件として用いて、上記同一条件が成立する論理素子を
多入力素子としてまとめ、新たな素子テーブル310を
作成する。該当素子の接続状態として、まとめた論理素
子数を素子数315に設定し、また各素子の入力端子の
信号値テーブル320は各素子の取りまとめ順nに従っ
て、信号値n1,信号値n2のように配列し、各素子の
出力値331についても出力値n,信号名テーブル20
1のアドレス332をアドレスnで示すように配列する
とともに、ネットテーブル202の端子位置207につ
いても素子の取りまとめ順nと各素子の入力端子番号を
分類し、さらに、素子テーブルアドレス208も新たに
作成した多入力素子の素子テーブル310を示すアドレ
スに更新する。ここで、多入力論理素子のための新たな
素子テーブルが作成されて、不要となった素子テーブル
310、信号値テーブル320、出力値テーブル330
は、論理素子のための新たな登録エリアとして利用す
る。一方、対象集合体を抽出するためのフリップフロッ
プについても、ステップ102で制御信号単位に分割し
た分割区分318と素子機能311が同一であり、さら
に、入力数314が同一であるものをまとめ、多入力論
理素子として、新たな素子テーブル310および信号値
テーブル320、出力値テーブル330を作成する。
Further, in step 105, the division division 318 is performed.
Of the same target aggregate having the same number of connected stages up to the output end point, the element function 311 of the element table 310 and the logic element having the same number of inputs 314 indicating the number of input terminals are extracted from the element table. In the logic simulation to be used, logic elements having the same delay time are used as extraction conditions, and the logic elements satisfying the same condition are collected as a multi-input element to create a new element table 310. As the connection state of the corresponding elements, the total number of logical elements is set to the number of elements 315, and the signal value table 320 of the input terminal of each element is represented by the signal value n1 and the signal value n2 according to the order of compilation n of each element. The output values n of the output values 331 of the respective elements are also arranged and the signal name table 20 is arranged.
The address 332 of 1 is arranged as indicated by the address n, and the terminal position 207 of the net table 202 is also classified into the element collection order n and the input terminal number of each element, and the element table address 208 is newly created. The address is updated to indicate the element table 310 of the multi-input element. Here, a new element table for the multi-input logic element is created, and the element table 310, the signal value table 320, and the output value table 330 that are no longer needed are created.
Is used as a new registration area for the logic element. On the other hand, regarding the flip-flops for extracting the target aggregate, the ones in which the division section 318 divided into control signal units in step 102 and the element function 311 are the same and the number of inputs 314 is the same are summarized. A new element table 310, a signal value table 320, and an output value table 330 are created as input logic elements.

【0014】以上の処理ステップにより、図6の論理回
路例は、図7に示す処理結果論理モデルのように表現さ
れる。このように、単一論理素子を多入力論理素子とし
て生成することができ、論理シミュレータでのシミュレ
ーション対象論理素子数を削減できる。
Through the above processing steps, the logic circuit example of FIG. 6 is expressed as a processing result logic model shown in FIG. In this way, a single logic element can be generated as a multi-input logic element, and the number of logic elements to be simulated by the logic simulator can be reduced.

【0015】これらの論理コンパイル結果を用いた論理
シミュレーション手順について、まず、論理シミュレー
ションにおける信号変化の伝播方法としての、各論理素
子の入力端子に接続する信号線の信号値が変化した論理
素子のみを対象とした論理素子の出力信号値算出を行う
ことを特徴とするイベントドリブン方式での信号伝播手
順について、図8のテ−ブル接続関連と図9のイベント
処理方法を用いて詳細に説明する。図8(1)の論理素
子eの信号伝播遅延時間を2とし、論理素子fの信号伝
播遅延時間を1としたとき、時刻tにおいて、入力端子
A,B,C,DにそれぞれHighの信号値を与えたと
き、図9(1)で示すように、タイムホイール上の時刻
tのイベントとして、論理素子e、論理素子fの出力値
計算を行うための信号変化イベントがイベントテーブル
に登録される。
Regarding the logic simulation procedure using these logic compilation results, first, as a method of propagating a signal change in the logic simulation, only the logic element in which the signal value of the signal line connected to the input terminal of each logic element has changed A signal propagation procedure in the event driven method, which is characterized in that the output signal value of the target logic element is calculated, will be described in detail with reference to the table connection in FIG. 8 and the event processing method in FIG. When the signal propagation delay time of the logic element e in FIG. 8 (1) is 2 and the signal propagation delay time of the logic element f is 1, a High signal is input to each of the input terminals A, B, C, and D at time t. When a value is given, as shown in FIG. 9 (1), a signal change event for calculating output values of the logic element e and the logic element f is registered in the event table as an event at time t on the time wheel. It

【0016】次に、シミュレーション時刻がtとなった
とき、時刻tに対応するイベントテーブルのエントリに
登録されている最初のイベントを取り出し、そのイベン
トが示す論理素子eの出力値計算を行い、その出力値を
伝播するために、図8(2)のテーブル803の素子e
の接続先アドレスからテーブル801の信号名テーブル
を介し、テーブル802のネットテーブル上に登録され
ている信号接続先の論理素子テーブルのアドレスを検索
し、該当アドレスgを現時刻から素子の信号値伝播遅延
時間2を示す時刻t+2のイベントとしてイベントテー
ブルに登録する。また、時刻tに対応するイベントテー
ブルのエントリにリンクされたエントリに登録されてい
る論理素子fのイベントを取り出し、そのイベントが示
す論理素子fの出力値計算を行うとともに、出力信号値
の伝播先である論理素子g、hのイベントをタイムホイ
ール上の現時刻t+1に対応するイベントテーブルのエ
ントリに登録する。時刻tに対応するイベントテーブル
のエントリに登録されたイベントをすべて処理したの
ち、時刻を進め、次の時刻のイベント処理を同様に行い
論理回路上で発生する信号変化を逐次後段の論理へ伝播
することにより論理回路シミュレーションを実行する。
Next, when the simulation time reaches t, the first event registered in the entry of the event table corresponding to the time t is taken out, the output value of the logic element e indicated by the event is calculated, and the calculated value is calculated. In order to propagate the output value, the element e of the table 803 of FIG.
From the connection destination address of the signal via the signal name table of the table 801 to search the address of the logic element table of the signal connection destination registered on the net table of the table 802, and propagate the corresponding address g from the current time to the signal value of the element. The event is registered in the event table as an event at time t + 2 indicating the delay time 2. Further, the event of the logic element f registered in the entry linked to the entry of the event table corresponding to the time t is extracted, the output value of the logic element f indicated by the event is calculated, and the propagation destination of the output signal value is calculated. The events of the logic elements g and h are registered in the entry of the event table corresponding to the current time t + 1 on the time wheel. After all the events registered in the entry of the event table corresponding to the time t are processed, the time is advanced, the event processing at the next time is similarly performed, and the signal change generated on the logic circuit is sequentially propagated to the logic of the subsequent stage. By doing so, the logic circuit simulation is executed.

【0017】次に、本発明における論理シミュレーショ
ン実行手順について詳細に説明する。図4の論理シミュ
レーション実行フローは、まず、ステップ401におい
て論理コンパイルで生成した論理表現テーブルの信号名
テーブル201、ネットテーブル202、素子テーブル
310、信号値テーブル320、出力値テーブル330
をメモリ上に作成し、各論理素子信号値の初期値を不定
値として設定するとともに、信号値の変化を伝播するた
めのイベントテーブルを作成し、シミュレーション時間
を0に設定する。ステップ402において、あらかじめ
DISCなどに準備した入力信号値等の入力データを読
み込み、該当シミュレーション時間に相当する入力信号
値を与えるべき該当信号線について、その信号名テーブ
ル201の接続先アドレス205が示すネットテーブル
202のアドレス208から素子テーブル310と端子
位置207により信号値テーブルの設定位置を求め、素
子テーブルの入力値アドレスが接続する信号値テーブル
320の端子位置207が示す入力信号値321に信号
値を伝播するとともに、該当信号値伝播先の素子テーブ
ル310のフラグ312がオフのとき、該当論理素子に
対する信号変化イベントをイベントテーブル502に登
録する。素子テーブル310のフラグ312は、該当論
理素子に対しすでにイベントを登録していることを示
す。すなわち素子テーブル310のフラグ312がオン
となっているときは、該当論理素子へのイベント登録を
行わない。本手法を施すことにより、同一論理素子へ重
複してイベント登録することを抑止し、処理イベント数
を削減する。
Next, the logic simulation execution procedure in the present invention will be described in detail. In the logic simulation execution flow of FIG. 4, first, the signal name table 201, the net table 202, the element table 310, the signal value table 320, and the output value table 330 of the logic expression table generated by the logic compilation in step 401.
Is created in the memory, the initial value of each logic element signal value is set as an indefinite value, an event table for propagating a change in the signal value is created, and the simulation time is set to zero. In step 402, input data such as input signal values prepared in advance in the DISC or the like is read, and the net indicated by the connection destination address 205 of the signal name table 201 for the corresponding signal line to which the input signal value corresponding to the corresponding simulation time should be given. The setting position of the signal value table is obtained from the element table 310 and the terminal position 207 from the address 208 of the table 202, and the signal value is set to the input signal value 321 indicated by the terminal position 207 of the signal value table 320 to which the input value address of the element table is connected. While propagating, when the flag 312 of the element table 310 of the corresponding signal value propagation destination is OFF, the signal change event for the corresponding logic element is registered in the event table 502. The flag 312 of the element table 310 indicates that an event has already been registered for the corresponding logic element. That is, when the flag 312 of the element table 310 is ON, the event registration to the corresponding logic element is not performed. By applying this method, duplicate event registration to the same logic element is suppressed, and the number of processing events is reduced.

【0018】ステップ403では、タイムホイール50
1で示される時刻のイベントテーブル502に登録され
ている素子アドレス503の示す素子テーブル310を
読み込み、該当論理素子のフラグ312をオフにすると
ともに、集合体の全入力信号値に対する全出力信号値を
算出し、ステップ404において、集合体の各論理素子
の出力信号値331と算出結果の出力信号値を比較し、
出力値に変化が生じたとき、ステップ405で出力値が
変化した該当論理素子の出力信号値331の更新と、そ
の信号線接続先のアドレス332が示す信号名テーブル
201から素子テーブル310へのトレースを実施し、
伝播先の信号値321に対し算出結果の信号値を伝播す
る。また、ステップ406で信号線接続先の素子テーブ
ル310のフラグ312がオフであれば、ステップ40
7でそのフラグ312をオンに設定し、新たな信号変化
イベントを各論理素子の遅延時間を加えた時間で示され
るタイムホイール501の該当時間に対して、信号接続
先の素子アドレスをイベント502に登録する。ステッ
プ408で示すように、シミュレーション経過時間上の
信号変化イベントがなくなるまで、ステップ403から
ステップ407の処理をくり返し、該当時間内のイベン
トがなくなったら、ステップ409において、シミュレ
ーション経過時間を進め、シミュレーション終了時間ま
でステップ402からステップ409の処理を繰り返
す。発生した新信号変化イベントは、各論理素子の遅延
時間を加えた時間で示されるタイムホイール501の該
当時間に対して登録する。
In step 403, the time wheel 50 is
The element table 310 indicated by the element address 503 registered in the event table 502 at time 1 is read, the flag 312 of the corresponding logic element is turned off, and all output signal values for all input signal values of the aggregate are set. In step 404, the output signal value 331 of each logic element of the aggregate is compared with the output signal value of the calculation result,
When the output value changes, the output signal value 331 of the corresponding logic element whose output value has changed in step 405 is updated, and the trace from the signal name table 201 indicated by the address 332 of the signal line connection destination to the element table 310. Carried out,
The signal value of the calculation result is propagated to the signal value 321 of the propagation destination. If the flag 312 of the element table 310 to which the signal line is connected is off in step 406, step 40
In step 7, the flag 312 is turned on, and the element address of the signal connection destination is set to the event 502 for the corresponding time of the time wheel 501 indicated by the time obtained by adding the delay time of each logic element to the new signal change event. to register. As shown in step 408, the processing from step 403 to step 407 is repeated until there is no signal change event on the simulation elapsed time. If there are no events within the relevant time, the simulation elapsed time is advanced at step 409, and the simulation ends. Until time, the processing from step 402 to step 409 is repeated. The generated new signal change event is registered with respect to the corresponding time of the time wheel 501 indicated by the time added with the delay time of each logic element.

【0019】このように、論理素子の信号変化イベント
を各論理素子の集合体単位に発生し、また、各集合体の
論理演算もまとめて実行し、さらに、同一論理素子への
信号変化イベントを重複させないことにより、信号変化
に対する計算機処理回数を削減できる。本手法の応用と
して、遅延時間を考慮した論理回路シミュレーションに
おける論理コンパイル時の多入力論理素子作成手法は、
図1のステップ103で分割した集合体に対して、ステ
ップ104でフリップフロップの出力端子からの遅延時
間をさらなる分割区分として用い、ステップ105で
は、各分割区分毎に同一機能素子でかつ同一入力端子数
を持つ論理素子を1つの素子表現テーブルとしてまとめ
ることにより、本手順による論理回路シミュレーション
を実現できる。また、集合体毎にシミュレーションを実
行できるため、並列計算機、ベクトル計算機等を用い
て、集合体を複数のプロセッサに分散させて並列処理す
ることができる。
As described above, the signal change event of the logic element is generated for each aggregate of the logic elements, and the logical operation of each aggregate is collectively executed, and the signal change event to the same logic element is performed. By not overlapping, it is possible to reduce the number of computer processes for signal changes. As an application of this method, the multi-input logic element creation method at the time of logic compilation in logic circuit simulation considering delay time is
For the group divided in step 103 of FIG. 1, the delay time from the output terminal of the flip-flop is used as a further division section in step 104. In step 105, the same functional element and the same input terminal are used for each division section. The logical circuit simulation according to this procedure can be realized by collecting the logical elements having a number as one element expression table. Moreover, since the simulation can be executed for each aggregate, the aggregate can be distributed to a plurality of processors and processed in parallel using a parallel computer, a vector computer, or the like.

【0020】[0020]

【発明の効果】本発明によれば、論理回路シミュレーシ
ョンにおける同一機能の論理素子を1つの集合体として
用いることにより、論理回路の信号変化イベントを削減
し、論理シミュレーションに要する計算機時間を削減す
ることができる。また、並列計算機、ベクトル計算機等
を用い、各論理素子の集合体を複数のプロセッサに分散
し論理演算を並列に実行することができる。
According to the present invention, it is possible to reduce the signal change event of the logic circuit and the computer time required for the logic simulation by using the logic elements having the same function in the logic circuit simulation as one set. You can Further, by using a parallel computer, a vector computer, or the like, it is possible to distribute the aggregate of each logic element to a plurality of processors and execute the logic operation in parallel.

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

【図1】多入力機能素子を生成するための論理コンパイ
ルフローを示す図である。
FIG. 1 is a diagram showing a logic compilation flow for generating a multi-input functional element.

【図2】ネット表現テーブルの構成を示す図である。FIG. 2 is a diagram showing a configuration of a net representation table.

【図3】論理素子表現テーブルの構成を示す図である。FIG. 3 is a diagram showing a configuration of a logical element expression table.

【図4】論理シミュレーション実行フローを示す図であ
る。
FIG. 4 is a diagram showing a logic simulation execution flow.

【図5】イベントテーブルの構成を示す図である。FIG. 5 is a diagram showing a structure of an event table.

【図6】論理回路例を示す図である。FIG. 6 is a diagram showing an example of a logic circuit.

【図7】論理コンパイル処理結果の論理モデルを示す図
である。
FIG. 7 is a diagram showing a logical model of a logical compilation processing result.

【図8】ネット表現テーブルと論理素子表現テーブルの
テ−ブル接続関連の実例を示す図である。
FIG. 8 is a diagram showing an example of a table connection relation between a net expression table and a logic element expression table.

【図9】イベント処理方法を説明するための図である。FIG. 9 is a diagram for explaining an event processing method.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 論理回路における論理素子及びその接続
の情報を計算機に読み込み、計算機上で前記論理回路の
論理動作の検証を行なう論理回路シミュレーション方法
において、 論理回路における論理素子及びその接続の情報を計算機
に読み込み、ネット表現テーブル及び論理素子表現テー
ブルを作成し、 論理回路における指定された制御信号線のパラメタをも
とに論理回路の接続状態を前記ネット表現テーブル及び
論理素子表現テーブルをトレースして論理回路の各論理
素子を制御信号線単位の集合体に分割し、 制御信号線単位の集合体単位毎に前記ネット表現テーブ
ル及び論理素子表現テーブルをトレースして各論理素子
の論理回路における接続段数を求め、 同一集合体における同一接続段数の論理素子の論理素子
表現テーブルを抽出し、該同一接続段数の論理素子を多
入力素子としてまとめ、該多入力素子の論理素子表現テ
ーブルを新たに生成すると共に該論理素子表現テーブル
に関連する新たなネット表現テーブルを生成し、 前記各集合体毎に入力信号値を変化させ、各集合体毎に
前記新たに生成したネット表現テーブル及び論理素子表
現テーブルを用いて信号値伝播を行なうことを特徴とす
る論理回路シミュレーション方法。
1. A method for simulating a logic element in a logic circuit and its connection in a computer and verifying the logic operation of the logic circuit on a computer, comprising: Read it to a computer, create a net expression table and a logic element expression table, and trace the connection status of the logic circuit based on the specified control signal line parameters in the logic circuit by tracing the net expression table and the logic element expression table. Each logic element of the logic circuit is divided into a group of control signal line units, and the net expression table and the logic element expression table are traced for each group of control signal line units, and the number of connection stages in the logic circuit of each logic element is traced. And extract the logic element representation table of the logic elements with the same number of connection stages in the same set. , Grouping the logic elements of the same number of connection stages as a multi-input element, newly generating a logic element expression table of the multi-input element, and generating a new net expression table related to the logic element expression table. A method for simulating a logic circuit, characterized in that an input signal value is changed for each body and the signal value is propagated using the newly generated net expression table and logic element expression table for each aggregate.
【請求項2】 請求項1記載の論理回路シミュレーショ
ン方法において、 前記論理回路の各論理素子を制御信号線単位の集合体に
分割するとき、 論理回路における指定された制御信号線のパラメタをも
とに該制御信号線からフリップフロップの論理素子表現
テーブルまでの接続状態をトレースし、各制御信号線単
位にフリップフロップの論理素子表現テーブルに分割区
分番号を付与して分類し、次いで分割区分番号が同一の
フリップフロップの論理素子表現テーブルから接続先の
ネット表現テーブル及び論理素子表現テーブルを順次ト
レースし、分割区分番号が異なるフリップフロップの論
理素子表現テーブルあるいは論理回路の入出力端子を端
点として、該端点までに存在する論理素子表現テーブル
にトレース開始のフリップフロップの論理素子表現テー
ブルと同じ分割区分番号を付与し、同一の分割区分番号
を付与された論理素子表現テーブルの各論理素子を制御
信号線単位の集合体とすることを特徴とする論理回路シ
ミュレーション方法。
2. The logic circuit simulation method according to claim 1, wherein when each logic element of the logic circuit is divided into a group of control signal line units, a parameter of a designated control signal line in the logic circuit is used. , The connection state from the control signal line to the logic element expression table of the flip-flop is traced, the division element number is assigned to the logic element expression table of the flip-flop for each control signal line, and then the division division number is The net expression table and the logical element expression table of the connection destination are sequentially traced from the logical element expression table of the same flip-flop, and the logical element expression table of the flip-flops having different division division numbers or the input / output terminals of the logical circuit are used as end points. The theory of the flip-flop of the trace start in the logic element expression table existing up to the end point Logic simulation method characterized by imparting the same division classification number as elements expression table, a collection of identical division division control signal line units each logic element of the logic element representation tables that are numbered.
【請求項3】 請求項1記載の論理回路シミュレーショ
ン方法において、 前記各論理素子の論理回路における接続段数を求めると
き、 前記集合体単位内の入力端子あるいは入力側フリップフ
ロップから各論理素子までの遅延時間を求め、同一遅延
時間を持つ論理素子を同一接続段数とすることを特徴と
する論理回路シミュレーション方法。
3. The logic circuit simulation method according to claim 1, wherein when determining the number of connection stages in the logic circuit of each of the logic elements, a delay from an input terminal or an input-side flip-flop in each unit of the aggregate to each logic element. A method for simulating a logic circuit, characterized in that the time is obtained and the logic elements having the same delay time have the same number of connection stages.
JP6175980A 1994-07-05 1994-07-05 Logic circuit simulation method Pending JPH0822486A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6175980A JPH0822486A (en) 1994-07-05 1994-07-05 Logic circuit simulation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6175980A JPH0822486A (en) 1994-07-05 1994-07-05 Logic circuit simulation method

Publications (1)

Publication Number Publication Date
JPH0822486A true JPH0822486A (en) 1996-01-23

Family

ID=16005604

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6175980A Pending JPH0822486A (en) 1994-07-05 1994-07-05 Logic circuit simulation method

Country Status (1)

Country Link
JP (1) JPH0822486A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6978429B2 (en) 2002-12-02 2005-12-20 Renesas Technology Corp. Logic simulation apparatus for performing logic simulation in high speed
JP2012205021A (en) * 2011-03-24 2012-10-22 Yamaha Corp Editing device and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6978429B2 (en) 2002-12-02 2005-12-20 Renesas Technology Corp. Logic simulation apparatus for performing logic simulation in high speed
JP2012205021A (en) * 2011-03-24 2012-10-22 Yamaha Corp Editing device and program

Similar Documents

Publication Publication Date Title
JP3904645B2 (en) Hardware / software co-simulation equipment
JPS61110071A (en) Simulation system and simulator for logical circuit
CN109344969B (en) Neural network system, training method thereof, and computer-readable medium
JPH04123269A (en) Simulation system for pla
WO1999009497A1 (en) Method of extracting timing characteristics of transistor circuits, storage medium storing timing characteristic library, lsi designing method, and gate extraction method
JP3645346B2 (en) Logic simulation device
JPH0822486A (en) Logic circuit simulation method
JP2508620B2 (en) Logic circuit simulation device
JP3080037B2 (en) How to create a logic simulation model
JP2853649B2 (en) How to create a logic simulation model
JP2856141B2 (en) Delay information processing method and delay information processing apparatus
JP2845154B2 (en) How to create a logic simulation model
JPH06310601A (en) Layout design method
JPH05128194A (en) Logic circuit simulation system and tree-structured system logic element block identifier generation system
JPH11259555A (en) Design method for macro
JPH0546694A (en) Logical simulation system
JPH06243190A (en) Logic simulator
JPS6311715B2 (en)
JPH0963292A (en) Clock distributing method
JP2785708B2 (en) Logic simulation method
JPH1063711A (en) Method for extracting characteristic value of integrated circuit
JPH02118850A (en) Logical simulation method
JPH06290230A (en) Logical simulation device
JPH11213030A (en) Hardware logical simulation device
JPH03253972A (en) Simulation engine