JPH0448390A - Simulating method for logic circuit - Google Patents

Simulating method for logic circuit

Info

Publication number
JPH0448390A
JPH0448390A JP2159212A JP15921290A JPH0448390A JP H0448390 A JPH0448390 A JP H0448390A JP 2159212 A JP2159212 A JP 2159212A JP 15921290 A JP15921290 A JP 15921290A JP H0448390 A JPH0448390 A JP H0448390A
Authority
JP
Japan
Prior art keywords
pointer
input pattern
address
pattern
input
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
JP2159212A
Other languages
Japanese (ja)
Inventor
Mitsutaka Iwasaki
岩崎 光孝
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2159212A priority Critical patent/JPH0448390A/en
Publication of JPH0448390A publication Critical patent/JPH0448390A/en
Pending legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To efficiently perform the simulation of a combination circuit by generating a second pointer on a first table, and changing a first address held with a first pointer to a second address. CONSTITUTION:When change occur in the plural digits of an input patterns, the first table on the first address in which the input pattern just before generating the change is retrieved by the instruction of an indication pointer 4, and it is decided whether or not the link pointers 6 of all the plural digits where input change occur exist. When the link pointers 6 exist in all the digits, the link pointer 6 is traced digit by digit, and the output pattern 3 of the table of the final link destination is read, and a result is outputted. Thereby, the simulation of the combination circuit can be efficiently performed even when the same input pattern is inputted, and also, a simulating method for a logic circuit with small capacity of required memory can be obtained.

Description

【発明の詳細な説明】 [産業上の利用分野コ この発明は、論理回路の設計時に論理回路の模擬動作を
行うシミュレーション方法の改良に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an improvement in a simulation method for simulating the operation of a logic circuit when designing the logic circuit.

[従来の技術] 一般に、論理シミュレーションにおいて行われているイ
ベント法とは、入力信号に変化があった素子についての
み論理演算を行い、その結果を出力光の次の素子に伝搬
させながらシミュレーションを実行していく手法を言う
[Prior art] Generally, the event method used in logic simulations is a method in which logic operations are performed only on elements where the input signal has changed, and the simulation is performed while propagating the results to the next element for output light. Tell me how to do it.

第3図は、上記のような従来のイベント法による論理シ
ミュレータの処理の一例である。図においT、(13)
(tANT)素子、 (14)ハN OT素子、(15
)はOR素子、(16)はNAND素子、(17)はこ
れらの論理素子を接線する論理接続II、 (2)は入
力信号。
FIG. 3 is an example of processing of a logic simulator using the conventional event method as described above. Figure nioi T, (13)
(tANT) element, (14) HN OT element, (15
) is an OR element, (16) is a NAND element, (17) is a logical connection II connecting these logic elements, and (2) is an input signal.

(3)は出力信号である。(3) is the output signal.

次にこのものの動作について説明する。ある時刻におけ
る入力信号(2)にはすべて「1」が与えられていると
する。この信号値列を入力パターンと言い、この場合は
「1111」となる。次の時刻において、OR素子(1
5)の入力信号に「1」呻「0」の信号変化(イベント
)があった場合、論理シミュレータはOR素子(15)
の論理演算を行い、OR素子(15)の出力光に「1」
φrOJの信号変化を伝搬する次に、NAND素子(1
6)の論理演算を行い、出力信号(3)に出力パターン
としてro J=5r 1 jの信号変化を伝搬する。
Next, the operation of this device will be explained. It is assumed that "1" is given to all input signals (2) at a certain time. This signal value string is called an input pattern, and in this case is "1111". At the next time, the OR element (1
5) When there is a signal change (event) of "1" or "0" in the input signal, the logic simulator changes the OR element (15)
performs the logical operation and sets "1" to the output light of the OR element (15).
Next, the NAND element (1
6) is performed, and a signal change of ro J = 5r 1 j is propagated to the output signal (3) as an output pattern.

このようにして、入力パターンを逐次変化させることに
よる出力パターンの変化を調べるシミュレーションを実
行していく。
In this way, a simulation is performed to examine changes in the output pattern by sequentially changing the input pattern.

上記のように、入力パターンが決まると出カッでターン
が一意的に決まるような回路を組合わせ回路という。ま
た、現在の出力が現在の入力値のみならず過去の入力値
の履歴にも依存する回路を順序回路という。一般の論理
回路にはこれらの組合わせ回路と順序回路が混在してい
るのが普通である。
As mentioned above, a circuit in which the output turn is uniquely determined when the input pattern is determined is called a combinational circuit. Further, a circuit whose current output depends not only on the current input value but also on the history of past input values is called a sequential circuit. It is common for general logic circuits to contain a mixture of these combinational circuits and sequential circuits.

[発明が解決しようとする課題] 従来の論理回路のシミュレーション方法は以上のように
構成されているので1例えば順序回路に組合わせ回路が
接続されている場合3組合わせ回路に関しては、同じ入
力パターンであっても順序回路の出力として発生した都
度論理演算を行わなければならなかった。
[Problems to be Solved by the Invention] Since the conventional logic circuit simulation method is configured as described above, 1. For example, when a combinational circuit is connected to a sequential circuit, 3 combinational circuits have the same input pattern. Even so, logical operations had to be performed each time an output of a sequential circuit occurred.

この発明は上記のような問題点を解消するためになされ
たもので、同一の入力パターンが入力された場合でも2
組合わせ回路のシミュレーションを効率的に行うことが
できる論理回路のシミュレーション方法を得ることを目
的とする。
This invention was made to solve the above problems, and even when the same input pattern is input, two
The purpose of this invention is to obtain a logic circuit simulation method that can efficiently simulate combinational circuits.

[課題を解決するための手段] この発明に係わる論理回路のシミュレーション方法は、
複数ビットからなる人カバターンにより一義的に出力パ
ターンが決まる論理回路の組合わせ回路において、上記
入力パターンに1ビットの変化が発生したとき第一のポ
インタの指示する第一のアドレス上の第一のテーブルを
検索するステップ、その変化した入力パターンとこの入
カバクーンにより論理演算を行った場合の出力パターン
を予め格納しておく第二のテーブルを指示する第二のポ
インタを上記第一のテーブル上で検索するステップ、こ
のステップで上記第二のポインタがなかった場合上記入
力パターンの変化によりその変化が伝搬する上記組合わ
せ回路の各素子についてのみ論理演算を行うステップ、
このステップにおける論理演算の結果に基づき第二のア
ドレスに上記第二のテーブルを作成し上記第一のテーブ
ル上に上記第二のポインタを生成するステップ、上記第
一のポインタに保持されている第一のアドレスを上記第
二のアドレスに変更するステップからなるものである。
[Means for solving the problem] A logic circuit simulation method according to the present invention includes:
In a combinational circuit of logic circuits whose output pattern is uniquely determined by a pattern consisting of multiple bits, when a 1-bit change occurs in the input pattern, the first signal at the first address indicated by the first pointer is The step of searching the table is to insert a second pointer on the first table that points to a second table in which the changed input pattern and the output pattern when a logical operation is performed using this input pattern are stored in advance. a step of searching; a step of performing a logical operation only on each element of the combinational circuit to which the change propagates due to a change in the input pattern if the second pointer is not found in this step;
a step of creating the second table at a second address based on the result of the logical operation in this step and generating the second pointer on the first table; The first address is changed to the second address.

[作用コ この発明におけるテーブルは、新たな人カバターンが発
生した都度この入力パターンとこの入力パターンにより
論理演算を行った場合の出力パターンを格納しておくの
で、そのときのシミュレーションに必要なパターンのみ
が格納されることになる。
[Operation] The table in this invention stores the input pattern and the output pattern when a logical operation is performed using this input pattern each time a new human cover turn occurs, so only the patterns necessary for the simulation at that time are stored. will be stored.

[発明の実施例] 以下、この発明の一実施例を図に基づいて説明する。第
1図は第3図の論理回路のシミュレーションにこの発明
を使用した場合の信号の流れを示したブロック図で2図
において(1)はテーブルで。
[Embodiment of the Invention] Hereinafter, an embodiment of the present invention will be described based on the drawings. FIG. 1 is a block diagram showing the signal flow when the present invention is used to simulate the logic circuit shown in FIG. 3. In FIG. 2, (1) is a table.

入力パターン(2)とこの入力パターン(2)により論
理演算を行った場合の出力パターン(3)から構成され
ている。(4)は入力パターン(2)が変化する直前の
入力パターン(2)を指示する第一のポインタである指
示ポインタ。各入力パターン(2)は、信号値(5)と
この信号値(5)が変化した場合の入力パターン(2)
を格納している第二のテーブルを指示する第二のポイン
タである連絡ポインタ(6)とから構成されている。な
お、第1図において、連絡ポインタ(6)が格納される
桁の黒丸は連絡ポインタが存在することを示し、白丸は
連絡ポインタがないことを示している。
It consists of an input pattern (2) and an output pattern (3) when a logical operation is performed using this input pattern (2). (4) is an instruction pointer that is a first pointer that indicates input pattern (2) immediately before input pattern (2) changes. Each input pattern (2) is a signal value (5) and an input pattern (2) when this signal value (5) changes.
and a contact pointer (6), which is a second pointer pointing to a second table storing the information. In FIG. 1, a black circle in the digit where the contact pointer (6) is stored indicates that a contact pointer exists, and a white circle indicates that there is no contact pointer.

次にこのものの動作について説明する。第2図は動作の
流れを示すフローチャートで、第1図を参照しつつ第2
図に基づいて説明する。入カッ<り−ンの複数桁に変化
が発生した場合(ステップ7)指示ポインタ(4)の指
示により変化が発生する直前の入力パターンが格納され
ている第一のアドレス上の第一のテーブルを検索し9人
力変化が発生した複数指令ての連絡ポインタ(6)が存
在するかどうかを判定する(ステップ8)。全ての連絡
ポインタ(6)が存在する場合は、1桁づつ連絡ポイン
タ(6)をたどり、最終連絡先のテーブルの出力パター
ン(3)を読み結果を出力しくステップ9)、存在しな
い連絡ポインタ(6)がある場合は、その分のシミュレ
ーションをイベント法により行い(ステップ10)存在
する連絡ポインタ(6)をたどり、最終連絡先のテーブ
ルの連絡ポインタ(6)がない桁のrlJJOJを反転
し出力パターンを格納したテーブルを新たに作成し結果
を出力するとともに、そのテーブルへの連絡ポインタ(
6)を生成する(ステップII)。
Next, the operation of this device will be explained. Figure 2 is a flowchart showing the flow of operations.
This will be explained based on the diagram. When a change occurs in multiple digits of the input line (step 7), the first table at the first address stores the input pattern immediately before the change occurs according to the instruction of the instruction pointer (4). 9, and it is determined whether there is a contact pointer (6) for multiple commands in which a change in human power has occurred (step 8). If all the contact pointers (6) exist, trace the contact pointers (6) one digit at a time, read the output pattern (3) of the final contact table, and output the result (step 9). 6), perform the simulation using the event method (step 10), trace the existing contact pointer (6), invert the rlJJOJ of the digit where the contact pointer (6) does not exist in the final contact table, and output it. Creates a new table that stores the pattern and outputs the result, as well as a contact pointer to that table (
6) is generated (Step II).

その後、指示ポインタの第一のアドレスを最終連絡先の
テーブルが格納されているアドレスに変更して動作を終
了する(ステップ12)。第1図は第3図の論理回路の
シミュレーションが終了した状態を示しており、変化す
る直前の入力パターン(2)が上から1番目のテーブル
で、4桁目のrNが「0」に変化したときの出力パター
ン(3)を得るためには、4桁目の連絡ポインタをたど
り、上から2番目のテーブルの出力パターン(3)rl
Jを得ることができる。なお、このとき、指示ポインタ
(4)は。
Thereafter, the first address of the instruction pointer is changed to the address where the final contact table is stored, and the operation ends (step 12). Figure 1 shows the state where the simulation of the logic circuit in Figure 3 has been completed, and the input pattern (2) just before it changes is the first table from the top, and the fourth digit rN changes to "0". To obtain the output pattern (3) when
You can get J. Note that at this time, the instruction pointer (4) is.

最終連絡先である上から2番目のテーブルのアドレスを
指示している。
It indicates the address of the second table from the top, which is the final contact point.

なお、上記実施例では4人力1出力の組合わせ回路の例
を示したが9組合わせ回路であればこの限りではない。
In the above embodiment, an example of a combinational circuit with four human power and one output was shown, but this is not the case if it is a nine combinational circuit.

[発明の効果] 以上のように、この発明によれば新たな入力パターンが
発生した都度この入力パターンとこの入力パターンによ
り論理演算を行った場合の出力パターンを格納しておく
ように構成したので、同一の入力パターンが入力された
場合でも2組合わせ回路のシミュレーションを効率的に
行うことができかつ所要メモリの少ない論理回路のシミ
ュレーション方法が得られる効果がある。
[Effects of the Invention] As described above, according to the present invention, each time a new input pattern is generated, this input pattern and the output pattern when a logical operation is performed using this input pattern are stored. , even when the same input pattern is input, it is possible to efficiently simulate a two-combination circuit, and there is an effect that a logic circuit simulation method that requires less memory can be obtained.

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

第1図はこの発明の一実施例による論理回路のシミュレ
ーション方法の信号の流れを示すブロック図、第2図は
その動作を示すフローチャート第3図は従来のイベント
法による組合わせ回路のンミュレーンヨン処理を示す回
路図である。 図において、(1)はテーブル、(2)は入力パターン
(3)は出力パターン、(4)は指示ポインタ(第一の
ポインタ)、 (5)は信号値、(6)は連絡ポインタ
(第二のポインタ)である。 なお1図中、同一符号は同一または相当部分を示す。
FIG. 1 is a block diagram showing the signal flow of a logic circuit simulation method according to an embodiment of the present invention, and FIG. 2 is a flowchart showing its operation. FIG. In the figure, (1) is a table, (2) is an input pattern, (3) is an output pattern, (4) is an instruction pointer (first pointer), (5) is a signal value, and (6) is a contact pointer (first pointer). 2 pointer). In addition, in FIG. 1, the same reference numerals indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】[Claims] 複数ビットからなる入力パターンにより一義的に出力パ
ターンが決まる論理回路の組合わせ回路において、上記
入力パターンに1ビットの変化が発生したとき第一のポ
インタの指示する第一のアドレス上の第一のテーブルを
検索するステップ、その変化した入力パターンとこの入
力パターンにより論理演算を行った場合の出力パターン
を予め格納しておく第二のテーブルを指示する第二のポ
インタを上記第一のテーブル上で検索するステップ、こ
のステップで上記第二のポインタがなかった場合上記入
力パターンの変化によりその変化が伝搬する上記組合わ
せ回路の各素子についてのみ論理演算を行うステップ、
このステップにおける論理演算の結果に基づき第二のア
ドレスに上記第二のテーブルを作成し上記第一のテーブ
ル上に上記第二のポインタを生成するステップ、上記第
一のポインタに保持されている第一のアドレスを上記第
二のアドレスに変更するステップからなる論理回路のシ
ミュレーション方法。
In a combinational circuit of logic circuits where an output pattern is uniquely determined by an input pattern consisting of multiple bits, when a 1-bit change occurs in the input pattern, the first pointer at the first address pointed to by the first pointer The step of searching the table is to insert a second pointer on the first table that points to a second table that stores in advance the changed input pattern and the output pattern when a logical operation is performed using this input pattern. a step of searching; a step of performing a logical operation only on each element of the combinational circuit to which the change propagates due to a change in the input pattern if the second pointer is not found in this step;
a step of creating the second table at a second address based on the result of the logical operation in this step and generating the second pointer on the first table; A logic circuit simulation method comprising the step of changing one address to the second address.
JP2159212A 1990-06-18 1990-06-18 Simulating method for logic circuit Pending JPH0448390A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2159212A JPH0448390A (en) 1990-06-18 1990-06-18 Simulating method for logic circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2159212A JPH0448390A (en) 1990-06-18 1990-06-18 Simulating method for logic circuit

Publications (1)

Publication Number Publication Date
JPH0448390A true JPH0448390A (en) 1992-02-18

Family

ID=15688777

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2159212A Pending JPH0448390A (en) 1990-06-18 1990-06-18 Simulating method for logic circuit

Country Status (1)

Country Link
JP (1) JPH0448390A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7280947B2 (en) 2002-10-11 2007-10-09 Sharp Kabushiki Kaisha Gear-driving-system designing system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7280947B2 (en) 2002-10-11 2007-10-09 Sharp Kabushiki Kaisha Gear-driving-system designing system
CN100409108C (en) * 2002-10-11 2008-08-06 夏普株式会社 Gear-driving-system designing system

Similar Documents

Publication Publication Date Title
JPS63145549A (en) Simulation method for logic circuit
JPH0448390A (en) Simulating method for logic circuit
JPS59117660A (en) Processing system for restoration of simulation state
JPS6311715B2 (en)
JP2924968B2 (en) Time interactive simulation device
JP3603270B2 (en) Method and apparatus for converting logic circuit description data
SU805322A1 (en) System for automatic design and control of technological processes in microelectronics
SU796840A1 (en) Device for determining number position on numerical axis
JPS59148971A (en) Simulating method of logical circuit
CN116911219A (en) Method, electronic device and storage medium for simulation of logic system design
JPH07121585A (en) Logic circuit simulation device
JP2785708B2 (en) Logic simulation method
JPH01236352A (en) System for outputting logic simulated result
JPS60118940A (en) Simulation device of logical circuit
JPS60124745A (en) Logical simulation system
JPH01133176A (en) Logical circuit block segmenting system
JPH01241677A (en) Circuit converting system
JPH0418677A (en) Simulation system for digital circuit
JPH02105943A (en) Simulation system
JPH04135281A (en) Logic simulation device
Tamaki et al. Hardware Simulation Language Hsl/I
JPS6236575A (en) Transition analysis model system
JPH04359376A (en) Logic verification method
JPS61127227A (en) Logical module
JPS59128464A (en) Test input circuit of semiconductor integrated circuit