JPS63257841A - Logic simulator - Google Patents

Logic simulator

Info

Publication number
JPS63257841A
JPS63257841A JP62092911A JP9291187A JPS63257841A JP S63257841 A JPS63257841 A JP S63257841A JP 62092911 A JP62092911 A JP 62092911A JP 9291187 A JP9291187 A JP 9291187A JP S63257841 A JPS63257841 A JP S63257841A
Authority
JP
Japan
Prior art keywords
basic functional
logic
simulation
memory
functional elements
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
JP62092911A
Other languages
Japanese (ja)
Inventor
Shigeru Takasaki
高崎 茂
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP62092911A priority Critical patent/JPS63257841A/en
Publication of JPS63257841A publication Critical patent/JPS63257841A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To attain high speed simulation with less hardware by using each information in a memory so as to calculate the output state of a basic function element, comparing the result with a preceding value so as to detect an event and applying the similar processing as to the succeeding element. CONSTITUTION:An input value of elements 2-1-2-3, an effective bit and its attribute are red respectively from an effective bit and attribute memory 100 and an input signal storage memory 210 and the result is calculated in an logic arithmetic circuit 300. The result is fetched in a register 400 and compared with a preceding value in an output status memory 500. Since the both preceding values was, X, the output change after simulation takes place and an event detection circuit 500 detects an event. The elements connected to the elements 2-1-2-3 are found out from a connection memory 700 and the element 3-1, 3-2 are used as the object of simulation of the next level. When the processing of level 2 is finished, the element of level 3 is simulated and when the element of simulation is finished for the final level, the simulation of one test data is completed. The next pattern is conducted similarly.

Description

【発明の詳細な説明】 1丘光1 本発明は論理シミュレータに関し、特にハードウェアに
よる高速の論理シミュレータに関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a logic simulator, and more particularly to a high-speed logic simulator using hardware.

従来技術 従来、この種の論理シミュレータはソフトウェアで作ら
れるのが通例であった(例えば、T、5asaki e
t al、  ”旧xS;へMixed Level 
Simulator forしarge  Digit
al  System  Logic  Veriri
ca口on”。
Prior Art Conventionally, this type of logic simulator was usually created using software (for example, T, 5asaki e
tal, ``Old xS; to Mixed Level
Simulator for large Digit
al System Logic Veriri
ca mouth”.

Proc、 of 17th Design Auto
mat、 Conf、、 PP、626−633、 J
une 1980. ) この様な従来のソフトウェアによる論理シミュレータで
は、シミュレーション用のテストデータが多い場合(シ
ミュレーションクロック数が多い場合)、シミュレーシ
ョンの実行時間が大となつて、設計品質の確保という点
において大きな問題となっている。
Proc, of 17th Design Auto
mat, Conf,, PP, 626-633, J
une 1980. ) With such conventional software-based logic simulators, when there is a large amount of test data for simulation (when the number of simulation clocks is large), the simulation execution time increases, which poses a major problem in terms of ensuring design quality. ing.

RJJとl迎 そこで、本発明はこの様な従来のものの欠点を解決すべ
くなされたものであって、その目的とするところは、シ
ミュレーション用のテストデータが多くても、高速に論
理シミュレーションを実行することが可能なハードウェ
ア構成の論理シミュレータを提供することにある。
Therefore, the present invention was made to solve the drawbacks of the conventional methods, and its purpose is to perform logic simulations at high speed even when there is a large amount of test data for simulation. The object of the present invention is to provide a logic simulator with a hardware configuration that allows for

発明の構成 本発明による論理シミュレータは、複数の基本機能素子
からなる論理回路の論理シミュレーションを行う論理シ
ミュレータであって、前記基本機能素子の相互の接続状
態情報、前記基本機能素子の各々の入力信号論理値およ
び機能の種類を示す素子属性情報を予め格納したメモリ
手段と、前記基本機能素子のうち所定数の基本機能素子
に対して、前記メモリ手段からこれ等基本機能素子に対
応する入力信号論理値及び素子属性情報を夫々導出して
並列的にシミュレーション処理を行う論理演算手段と、
この論理演算手段による前回の処理結果を格納する出力
状態メモリ手段と、前記出力状態メモリ手段の前回の処
理結果と前記論理演算手段による最新の処理結果とを比
較して、変化があることが検出されたときに現在のシミ
ュレーション対象となっている各基本機能素子に接続さ
れた他の基本機能素子を前記接続状態情報を用いて探索
する探索手段とを含み、この探索手段により探索された
基本機能素子について次のシミュレーション処理を行う
ようにしたことを特徴としている。
Composition of the Invention The logic simulator according to the present invention is a logic simulator that performs logic simulation of a logic circuit consisting of a plurality of basic functional elements, and includes mutual connection state information of the basic functional elements and input signals of each of the basic functional elements. A memory means that stores in advance element attribute information indicating logical values and types of functions, and input signal logic corresponding to these basic functional elements from the memory means for a predetermined number of basic functional elements among the basic functional elements. logical operation means for deriving values and element attribute information respectively and performing simulation processing in parallel;
An output state memory means for storing the previous processing result by the logic operation means compares the previous processing result of the output state memory means with the latest processing result of the logic operation means, and detects that there is a change. searching means for searching other basic functional elements connected to each basic functional element currently being simulated using the connection state information when the basic functional element is currently being simulated; It is characterized in that the following simulation processing is performed on the element.

実施例 以下、図面を用いて本発明の実施例について説明する。Example Embodiments of the present invention will be described below with reference to the drawings.

第1図は本発明の実施例のブロック図であり、第2図(
A)は第1図のブロックにて示す論理シミュレータによ
り論理シミュレーション対象となる被模擬論理回路を示
す図である。第2図(B)は第2図(A)に示された論
回路を、すべて4人力基本様能素子(単位ゲート機能を
有する素子)に変換して得られた論理回路図であり、第
1図の論理シミュレータではこの第2図(B)に示され
た4人力基本機能素子により構成された論理回路を被模
擬論理回路とみなして扱うものとする。
FIG. 1 is a block diagram of an embodiment of the present invention, and FIG.
A) is a diagram showing a simulated logic circuit to be subjected to logic simulation by the logic simulator shown in the blocks of FIG. FIG. 2 (B) is a logic circuit diagram obtained by converting all the logic circuits shown in FIG. In the logic simulator shown in FIG. 1, the logic circuit constituted by the four human-powered basic functional elements shown in FIG. 2(B) is treated as a logic circuit to be simulated.

第1図において、第2図(B)に示す如く、4人力とし
た場合の基本機能素子の各入力信号線の有効ビット(4
人力信号線のうち実際に使用されているか否かを示すビ
ット)及び各基本機能素子の機能の種類(アンドゲート
、オアゲート等の機能を示す素子属性)が夫々各基本機
能素子対応に予めメモリ100内に格納されている。
In Fig. 1, as shown in Fig. 2 (B), the effective bits (4
Bits indicating whether or not the human input signal line is actually used) and the type of function of each basic functional element (element attributes indicating functions such as AND gate, OR gate, etc.) are stored in memory 100 in advance for each basic functional element. is stored within.

各基本機能素子のそれぞれの入力信号線の信号論理値が
一時メモリ210及び220に格納され、セレクタ20
1により両メモリ210及び220の格納データが択一
的に導出されて論理演算回路300へ入力され、この論
理演算回路300において、先のメモリ100内に格納
されている各基本機能素子の有効ビット及び素子属性デ
ータとセレクタ201により選択された入力信号論理値
とを用いて論理シミュレーションが行われる。
The signal logic values of the respective input signal lines of each basic functional element are stored in temporary memories 210 and 220, and the selector 20
1, the data stored in both memories 210 and 220 is alternatively derived and input to the logic operation circuit 300, and in this logic operation circuit 300, the valid bit of each basic functional element stored in the previous memory 100 is determined. Logic simulation is performed using the element attribute data and the input signal logic value selected by the selector 201.

この論理演算回路300において行われた論理シミュレ
ーションの結果はレジスタ400へ一時格納される。こ
の格納された論理演算結果は以前の論理演算結果を格納
した出力状態メモリ500の内容とイベント検出回路6
00にて比較される。この比較の結果、変化があったこ
とが判定されれば、イベント生起したことになるので、
接続状態メモリ700に予め格納されている論理回路の
接続データに基づいて、現在シミュレーションされてい
る基本機能素子の出力に接続されている他の基本機能素
子が探索される。各基本機能素子の入力信号値及びイベ
ントがメモリ800に予め格納されており、探索された
基本機能素子に対応する入力状態値がメモリ800から
読出されて、メモリ210 、220へ一時格納される
ようになっている。
The results of the logic simulation performed in this logic operation circuit 300 are temporarily stored in the register 400. This stored logical operation result is combined with the contents of the output state memory 500 storing the previous logical operation result and the event detection circuit 6.
00 is compared. As a result of this comparison, if it is determined that there has been a change, it means that an event has occurred, so
Based on the logic circuit connection data stored in the connection state memory 700 in advance, other basic functional elements connected to the output of the basic functional element currently being simulated are searched. Input signal values and events for each basic functional element are stored in memory 800 in advance, and input state values corresponding to the searched basic functional element are read from memory 800 and temporarily stored in memories 210 and 220. It has become.

次に本発明の詳細な説明する。まず、シミュレーション
が始まる前に、各基本機能素子の入力信号線の有効ビッ
トと基本機能素子の属性とが、これ等基本機能素子対応
に予めメモリ100に格納されており、第3図に基本機
能素子2−1〜2−5に夫々対応するこれ等データの格
納の様子を示している。
Next, the present invention will be explained in detail. First, before the simulation starts, the valid bits of the input signal lines of each basic functional element and the attributes of the basic functional element are stored in advance in the memory 100 corresponding to these basic functional elements, and the basic function is shown in FIG. The storage state of these data corresponding to the elements 2-1 to 2-5, respectively, is shown.

例えば、2−1は上位4ヒツトが有効ビットを示し、下
位3ビツトが属性を示している。上位4ビツトのうち“
1パは入力信号が前段より供給されていることを示し、
II OIIは前段よりの接続はなく、固定値(クラン
プ値)が入ることを示している。下位3ビツトのうち上
位2ビツトで素子の機能(本例では、” o o ”が
ANDゲート、01”がORゲート 11 i Q 1
1がEXORゲート)を示し、残り1ビツトで正/否の
区別[” O”が正。
For example, in 2-1, the upper four bits indicate valid bits, and the lower three bits indicate attributes. Of the top 4 bits, “
1pa indicates that the input signal is supplied from the previous stage,
II OII indicates that there is no connection from the previous stage and a fixed value (clamp value) is entered. The upper 2 bits of the lower 3 bits indicate the function of the element (in this example, "o o" is an AND gate, and 01 is an OR gate. 11 i Q 1
1 indicates EXOR gate), and the remaining 1 bit distinguishes between positive and negative [“O” is positive.

“1パが否(反転)]を示している。“1 pa is no (reversed)” is shown.

出力状態メモリ500には全基本機能素子の初期状態(
例えば、II X I+未定)が入っている。また、接
続状態メモリ700には全基本機能素子の接続関係が格
納されている。メモリ800にはシミュレーションをお
こなためのイベント情報と基本機能素子の入力状態とが
入っている。シミュレーション動作が駆動される前は、
プライマリ入力に接続されている基本機能素子がイベン
トとなる。第2図(B)に示されている様に、被模擬回
路はプライマリ入力から出力にかけて夫々レベルがつけ
られており、シミュレーションはこのレベル単位に行わ
れる。そして、本例の場合、論理演算回路300は3基
本機能素子に対するシミュレーションを並列に実行でき
るものとする。
The output state memory 500 stores the initial states (
For example, II X I + undetermined) is included. Further, the connection state memory 700 stores the connection relationships of all basic functional elements. The memory 800 contains event information for performing simulations and input states of basic functional elements. Before the simulation behavior is driven,
The basic functional element connected to the primary input becomes an event. As shown in FIG. 2(B), levels are assigned to the circuit to be simulated from the primary input to the output, and the simulation is performed for each level. In this example, it is assumed that the logical operation circuit 300 can execute simulations for three basic functional elements in parallel.

シミュレーションは次の様に行われる。レベル2がシミ
ュレーション対象となっているものとすると、メモリ8
00よりメモリ210にレベル2に属する基本機能素子
2−1〜2−3の入力値が、またメモリ220に素子2
−4と2−5との入力値が夫々送られる。この時、クラ
ンプ信号線にはクランプの値が入る。
The simulation is performed as follows. Assuming level 2 is the simulation target, memory 8
00, the input values of the basic functional elements 2-1 to 2-3 belonging to level 2 are stored in the memory 210, and the input values of the basic functional elements 2-1 to 2-3 belonging to level 2 are stored in the memory 220.
Input values of -4 and 2-5 are sent, respectively. At this time, the clamp value is input to the clamp signal line.

シミュレーションはメモリ210より素子2−1゜2−
2および2−3の入力値が、メモリ100より素子2−
1.2−2および2−3の有効ビットとその属性が夫々
読出され、論理演算回路300で演算される。
The simulation is performed using the element 2-1゜2- from the memory 210.
The input values of elements 2 and 2-3 are transferred from the memory 100 to element 2-
The valid bits 1.2-2 and 2-3 and their attributes are respectively read out and calculated by the logic operation circuit 300.

本例の場合、この結果は(0,1,0)となりレジスタ
400にこれが取込まれる。レジスタ400の値はメモ
リ500に入っている以前の値と比較される。本例の場
合には、以前の各素子2−1.2−2゜2−3はともに
′X′′であったので、シミュレーション後の出力変化
が起り、イベント検出回路600にてイベントが生起さ
れる。この時、各素子2−1゜2−2.2−3に接続さ
れている素子を接続状態メモリ700より探し、素子3
−1.3−2を次レベルのシミュレーション対象素子と
する。
In this example, the result is (0, 1, 0), which is loaded into the register 400. The value in register 400 is compared to the previous value in memory 500. In this example, since the previous elements 2-1, 2-2 and 2-3 were both 'X'', an output change occurred after the simulation, and an event occurred in the event detection circuit 600. be done. At this time, the elements connected to each element 2-1, 2-2, and 2-3 are searched from the connection state memory 700, and the element 3
-1.3-2 is the next level simulation target element.

一方、セレクタ201はある一定時間後その入力を切換
えてメモリ220からのデータを読出し、メモリ100
より素子2−4.2−5を読出して夫々論理演算回路3
00へ供給し同様の処理を続ける。
On the other hand, the selector 201 switches its input after a certain period of time, reads out data from the memory 220, and reads the data from the memory 100.
The elements 2-4 and 2-5 are read out from the logic operation circuit 3.
00 and continue the same process.

レベル2の処理が終るとレベル3に属する素子をシミュ
レーションし、最後に最終レベルを全部行うと一つのテ
ストデータに対するシミュレーションが終了する。次の
パターンも同様な処理手順で実行される。
When level 2 processing is completed, the elements belonging to level 3 are simulated, and when the final level is completed, the simulation for one test data is completed. The next pattern is also executed using the same procedure.

発明の効果 叙上の如く、本発明によれば、被模擬論理回路を構成す
る基本機能素子の接続状態情報、入力状態値情報、素子
属性情報等を予め格納したメモリを設けておき、これ等
各情報を用いて基本機能素子の出力状態を演算算出し、
この演算結果を前回の出力状態値と比較することにより
イベントを検出して次の基本機能素子について同様の処
理を行うものでかあるから、少ないハードウェアにて高
速に論理シミュレーションが可能となるという効果があ
る。
Effects of the Invention As described above, according to the present invention, a memory is provided in which connection state information, input state value information, element attribute information, etc. of basic functional elements constituting a logic circuit to be simulated are stored in advance. Calculate the output state of the basic functional element using each information,
By comparing this calculation result with the previous output state value, an event is detected and the same process is performed for the next basic functional element, making it possible to perform logic simulations at high speed with less hardware. effective.

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

第1図は本発明の実施例のブロック図、第2図は論理シ
ミュレーションされるべき被模擬論理回路を示す図、第
3図は第1図のブロックにおいである動作段階における
メモリ内容の例を示す図である。 主要部分の符号の説明 100・・・・・・有効ビット及び属性格納メモリ 210 、220・・・・・・入力信号値格納メモリ3
00・・・・・・論理演算回路 400・・・・・・レジスタ
FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is a diagram showing a simulated logic circuit to be subjected to logic simulation, and FIG. 3 is an example of memory contents at an operation stage in the block of FIG. 1. FIG. Explanation of symbols of main parts 100... Valid bit and attribute storage memory 210, 220... Input signal value storage memory 3
00...Logic operation circuit 400...Register

Claims (1)

【特許請求の範囲】[Claims] 複数の基本機能素子からなる論理回路の論理シミュレー
ションを行う論理シミュレータであって、前記基本機能
素子の相互の接続状態情報、前記基本機能素子の各々の
入力信号論理値および機能の種類を示す素子属性情報を
予め格納したメモリ手段と、前記基本機能素子のうち所
定数の基本機能素子に対して、前記メモリ手段からこれ
等基本機能素子に対応する入力信号論理値及び素子属性
情報を夫々導出して並列的にシミュレーション処理を行
う論理演算手段と、この論理演算手段による前回の処理
結果を格納する出力状態メモリ手段と、前記出力状態メ
モリ手段の前回の処理結果と前記論理演算手段による最
新の処理結果とを比較して、変化があることが検出され
たときに現在のシミュレーション対象となっている各基
本機能素子に接続された他の基本機能素子を前記接続状
態情報を用いて探索する探索手段とを含み、この探索手
段により探索された基本機能素子について次のシミュレ
ーション処理を行うようにしたことを特徴とする論理シ
ミュレータ。
A logic simulator that performs logic simulation of a logic circuit consisting of a plurality of basic functional elements, the element attribute indicating mutual connection state information of the basic functional elements, input signal logic value of each of the basic functional elements, and type of function. Deriving input signal logic values and element attribute information corresponding to these basic functional elements from the memory means for a predetermined number of basic functional elements among the basic functional elements and a memory means in which information is stored in advance, respectively. A logic operation means for performing simulation processing in parallel, an output state memory means for storing the previous processing result of the logic operation means, and a previous processing result of the output state memory means and the latest processing result of the logic operation means. searching means for searching for other basic functional elements connected to each basic functional element currently being simulated using the connection state information when a change is detected; 1. A logic simulator characterized in that the following simulation processing is performed on the basic functional element searched by the search means.
JP62092911A 1987-04-15 1987-04-15 Logic simulator Pending JPS63257841A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62092911A JPS63257841A (en) 1987-04-15 1987-04-15 Logic simulator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62092911A JPS63257841A (en) 1987-04-15 1987-04-15 Logic simulator

Publications (1)

Publication Number Publication Date
JPS63257841A true JPS63257841A (en) 1988-10-25

Family

ID=14067664

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62092911A Pending JPS63257841A (en) 1987-04-15 1987-04-15 Logic simulator

Country Status (1)

Country Link
JP (1) JPS63257841A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06161986A (en) * 1992-11-25 1994-06-10 Nec Corp Simulator for microcomputer

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06161986A (en) * 1992-11-25 1994-06-10 Nec Corp Simulator for microcomputer

Similar Documents

Publication Publication Date Title
EP0149213B1 (en) Vector processor
JPH0122652B2 (en)
JPS63257841A (en) Logic simulator
JP2513219B2 (en) Processor for data processing
JP2953405B2 (en) Method for speeding up logic simulation and logic simulation apparatus
JPS593652A (en) Hardware logical simulator
JPS59183434A (en) Prefetch control system of instruction
JPH07302187A (en) Data sorting method and sorter
JPS6349853A (en) Logic simulation processing system
JPH01112449A (en) Speed converting memory device
JP2586155B2 (en) Logic simulator
JP2767817B2 (en) Simulated operation method of sequencer contacts
JPH03105467A (en) Retrieval logical arithmetic circuit
JPH0421885B2 (en)
JPH02150920A (en) Retrieving system for maximum value data
JPS60128529A (en) Merge processing device
JPH0764768A (en) Absolute value accumulator
JPS6029865A (en) Logical simulation system by history registration
JPH05242185A (en) Fault simulation device
JPH03242724A (en) Digital arithmetic processing unit
JPH09305444A (en) Coverage memory
JPH05135090A (en) Logical expression evaluation computing element
JPH01241677A (en) Circuit converting system
JPH01184577A (en) Information processor
JPS6379136A (en) Microprogram controller