JPS63131238A - Logic simulator - Google Patents

Logic simulator

Info

Publication number
JPS63131238A
JPS63131238A JP61277465A JP27746586A JPS63131238A JP S63131238 A JPS63131238 A JP S63131238A JP 61277465 A JP61277465 A JP 61277465A JP 27746586 A JP27746586 A JP 27746586A JP S63131238 A JPS63131238 A JP S63131238A
Authority
JP
Japan
Prior art keywords
intermediate language
address
memory
execution
instruction
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
JP61277465A
Other languages
Japanese (ja)
Inventor
Norinaga Nomizu
野水 宣良
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 JP61277465A priority Critical patent/JPS63131238A/en
Publication of JPS63131238A publication Critical patent/JPS63131238A/en
Pending legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To decide about the comprehension of simulation by means of grasping the existence of executions of instructions in an intermediate language by providing a memory holding execution completed flags corresponding to the respective instructions in the intermediate language. CONSTITUTION:When an operation in the intermediate language is needed in the midst of logic simulation, an execution starting address (a) in the intermediate language is supplied to a register 3 and the execution in the intermediate language is started from the starting address (a). The address is stored in the register 3 and given to an intermediate language memory 1 as the address (c) so as to read out the intermediate language instruction (d) corresponding to the address (c). The intermediate language (d) read like this is led to an intermediate language execution part 5 in order to execute the operation based on the intermediate language (d). The operation executed result (e) is written in a state value memory 6 as a state value (r). Thus the execution of one intermediate instruction is completed.

Description

【発明の詳細な説明】 技術分野 本発明は論理シミル−タに関し、特にハードウェア化論
理シミュレータに関するものである。
TECHNICAL FIELD The present invention relates to logic simulators, and more particularly to hardware logic simulators.

従来技術 従来のこの種の論理シミュレータについての詳細が以下
に示す文献に開示されている。すなわち、情報処理学会
発行の情報処理筒21目金国大会予稿集(7E−1〜7
E−4) 、同じく情報処理学会発行の情報処理学会誌
1984年10月@ D、 1048〜p、 1055
及び同じく情報処理学会発行の情報処理節26目金国大
会予稿集(7P−4〜7P−6’)等の文献に開示され
ている。
Prior Art Details of conventional logic simulators of this type are disclosed in the following documents. In other words, the Information Processing Tube 21st Gold Country Conference Proceedings (7E-1 to 7E-7) published by the Information Processing Society of Japan.
E-4), Journal of the Information Processing Society of Japan, October 1984 @ D, 1048-p, 1055, also published by the Information Processing Society of Japan.
It is also disclosed in documents such as the Information Processing Section 26th Gold National Conference Proceedings (7P-4 to 7P-6'), also published by the Information Processing Society of Japan.

かかる従来の論理シミュレータにおいては、シミュレー
ション対象のシミュレーションモデルがどの程度動作し
たかを確認する手段が設【プられていないために、シミ
ュレーションの網羅性の確認が困難となっている。その
ために、vA埋シミュレーション(テストケース)が完
全に行われない回路を製造することになり、後でバグが
発見されたり、あるいは無駄な重複したテストによるシ
ミュレーションを行うことが生じて多大な工数を費すと
いう欠点がある。
In such conventional logic simulators, there is no means for checking how well the simulation model to be simulated operates, making it difficult to check the comprehensiveness of the simulation. As a result, circuits are manufactured for which vA simulation (test cases) cannot be completely performed, and bugs may be discovered later, or simulations may be performed with unnecessary redundant tests, resulting in a large amount of man-hours. It has the disadvantage of being expensive.

発明の目的 本発明は上記従来の欠点を解決すべくなされたものであ
って、その目的とするところは、論理回路の機能記述言
語を中間言語に変換して論理シミニレ−ジョンを行う場
合、当該中間言語による命令の各実行の有無をすべて把
握するようにしてシミュレーションの網羅性の判断を可
能として効率的なシミュレーションができるようにした
論理シミュレータを提供することにある。
Purpose of the Invention The present invention has been made to solve the above-mentioned conventional drawbacks. It is an object of the present invention to provide a logic simulator that enables efficient simulation by making it possible to judge the comprehensiveness of simulation by fully grasping the presence or absence of execution of each instruction in an intermediate language.

発明の構成 本発明によれば、論理回路の機能記述言語を中間言語に
変換してシミュレーションを行う論理シミュレータであ
って、中間言語の命令の各々に夫々対応して設けられた
アドレス領域に夫々の実行済フラグを格納可能なメモリ
と、前記中間言語の各命令の実行時に前記メモリの対応
アドレス領域へ実行済フラグを書込む手段とを含むこと
を特徴とする論理シミュレータが11られる。
According to the present invention, there is provided a logic simulator that performs simulation by converting a functional description language of a logic circuit into an intermediate language, in which each instruction is stored in an address area provided corresponding to each instruction of the intermediate language. A logic simulator 11 is characterized in that it includes a memory capable of storing an executed flag, and means for writing the executed flag into a corresponding address area of the memory when each instruction of the intermediate language is executed.

実施例 以下、図面を用いて本発明の詳細な説明する。Example Hereinafter, the present invention will be explained in detail using the drawings.

図は本発明の実施例のブロック図である。図において、
論理シミュレーション対象回路の機能記述言語が変換さ
れた中間言語命令の各々は、中間言語メモリ1に予め格
納されており、この各中間言語メモリ1が夫々格納され
ている当該メモリ1のアドレスに対応したアドレス領域
を有するフラグメモリ2が別に設けられている。
The figure is a block diagram of an embodiment of the invention. In the figure,
Each of the intermediate language instructions into which the functional description language of the logic simulation target circuit has been converted is stored in advance in the intermediate language memory 1, and each intermediate language memory 1 corresponds to the address of the memory 1 in which it is stored. A flag memory 2 having an address area is separately provided.

中間言語実行部5は中間言語メモリ1から読出された中
間言語命令に応じて演算実行を行うものであり、その演
算結果は状態値メモリ6へ格納されるようになっている
。中間g Hメモリ1の読出し用アドレスを一時格納す
るアドレスレジスタ3が設けられており、このレジスタ
3の格納アドレスはインクリメンタ4により「+1」演
算されてこの演算後のアドレスが再びレジスタ3へ書込
まれて内容の更新が行われる。フラグメモリ2の内容は
フラグメモリ読出し回路7により読出し自在とされて表
示部8に表示可能となっている。
The intermediate language execution unit 5 executes arithmetic operations in accordance with intermediate language instructions read from the intermediate language memory 1, and the results of the arithmetic operations are stored in the state value memory 6. An address register 3 is provided to temporarily store the read address of the intermediate gH memory 1, and the address stored in this register 3 is incremented by 1 by an incrementer 4, and the address after this calculation is written to the register 3 again. The content will be updated. The contents of the flag memory 2 can be freely read out by a flag memory reading circuit 7 and displayed on a display section 8.

かかる構成において、論理シミュレーション中に中間言
語の演算が必要になると、中間言語の実行開始アドレス
aがレジスタ3へ供給されてこの開始アドレスaから中
間言語の実行が開始されることになる。このアドレスa
はレジスタ3に格納されてアドレスCとして中間言語メ
モリ1へ与えられ、このアドレスCに対応した中間言語
命令dが読出される。こうして読出された中間言語dは
中間言語実行部5へ導入され、この中間言語実行部5で
は当該読出された中rfA言語dに基づいて演算実行を
行う。この演算実行の結果eが状態値fとして状態値メ
モリ6へ書込まれる。こうして1中間言語命令の実行は
終了することになる。
In such a configuration, when an intermediate language operation is required during logic simulation, the execution start address a of the intermediate language is supplied to the register 3, and execution of the intermediate language is started from this start address a. This address a
is stored in register 3 and given to intermediate language memory 1 as address C, and intermediate language instruction d corresponding to this address C is read out. The intermediate language d thus read is introduced into the intermediate language execution section 5, and the intermediate language execution section 5 executes arithmetic operations based on the read intermediate rfA language d. The result e of this calculation execution is written into the state value memory 6 as the state value f. In this way, execution of one intermediate language instruction ends.

次に、レジスタ3よりアドレスXが読出されてインクリ
メンタ4へ入力され、このアドレス値に対して「+1」
演算が行われてその結果すが再びレジスタ3へ再書込み
される。こうして中間言語メモリ1の読出しアドレスC
が1づつ歩進されて、メモリ1の中間言語命令が順次読
出されることになり、次に命令の実行が行われるのであ
る。この命令の実行と共にアドレスCはフラグメモリ2
に対して書込みアドレスとして供給されており、このア
ドレスCに対応した各領域のフラグを実行済フラグとし
て夫々セットして行くことになる。
Next, address X is read from register 3 and input to incrementer 4, and "+1" is added to this address value.
The calculation is performed and the result is rewritten to the register 3 again. In this way, the read address C of the intermediate language memory 1
is incremented by 1, and the intermediate language instructions in memory 1 are sequentially read out, and then the instructions are executed. Upon execution of this instruction, address C is set to flag memory 2.
The flag of each area corresponding to this address C is set as an executed flag.

このようにして、フラグメモリ2はシミュレーション対
象回路内の中間言語命令のなかで実行部の命令のみの対
応アドレス領域に夫々実行済フラグを保持することにな
る。よって、シミュレーション終了後において、フラグ
メモリ読出し回路7により読出しアドレスQをこのフラ
グメ七り2に対して与えれば、順次実行済フラグhを読
出すことが可能となり、これを表示部8へ表示データi
として供給可能となる。従って、中間言語命令のなかで
非実行部分を確認することが極めて容易となるので、シ
ミュレーションの網羅性が確認でき、シミュレーション
効果の測定に役立てることが可能となるのである。
In this way, the flag memory 2 holds an executed flag in the address area corresponding to only the instructions of the execution unit among the intermediate language instructions in the circuit to be simulated. Therefore, after the simulation is completed, if the flag memory reading circuit 7 gives the read address Q to the flag memory 2, it becomes possible to sequentially read out the executed flags h, and display them on the display section 8 as display data i.
It can be supplied as Therefore, it is extremely easy to check the non-executable parts of the intermediate language commands, so the comprehensiveness of the simulation can be checked, and this can be used to measure the effectiveness of the simulation.

発明の効果 叙上の如く、本発明によれば、中間言語の命令名々に対
応して実行済フラグを保持するメモリを設けておき、中
間言語の各命令の実行時にこのメモリへフラグを書込む
ようにしたので、シミュレーションの網羅性の判断が可
能となり、効率的なシミュレーションができるという効
果がある。
Effects of the Invention As described above, according to the present invention, a memory is provided to hold executed flags corresponding to the names of instructions in the intermediate language, and the flags are written to this memory when each instruction in the intermediate language is executed. This has the effect of making it possible to judge the comprehensiveness of the simulation and enabling efficient simulation.

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

図は本発明の実施例のブロック図である。 主要部分の符号の説明 1・・・・・・中間言語メモリ 2・・・・・・フラグメモリ The figure is a block diagram of an embodiment of the invention. Explanation of symbols of main parts 1...Intermediate language memory 2...Flag memory

Claims (1)

【特許請求の範囲】[Claims] 論理回路の機能記述言語を中間言語に変換してシミュレ
ーションを行う論理シミュレータであつて、中間言語の
命令の各々に夫々対応して設けられたアドレス領域に夫
々の実行済フラグを格納可能なメモリと、前記中間言語
の各命令の実行時に前記メモリの対応アドレス領域へ実
行済フラグを書込む手段とを含むことを特徴とする論理
シミュレータ。
A logic simulator that performs simulation by converting a functional description language of a logic circuit into an intermediate language, and includes a memory capable of storing each executed flag in an address area provided corresponding to each instruction of the intermediate language. , means for writing an executed flag into a corresponding address area of the memory when each instruction of the intermediate language is executed.
JP61277465A 1986-11-20 1986-11-20 Logic simulator Pending JPS63131238A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61277465A JPS63131238A (en) 1986-11-20 1986-11-20 Logic simulator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61277465A JPS63131238A (en) 1986-11-20 1986-11-20 Logic simulator

Publications (1)

Publication Number Publication Date
JPS63131238A true JPS63131238A (en) 1988-06-03

Family

ID=17583973

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61277465A Pending JPS63131238A (en) 1986-11-20 1986-11-20 Logic simulator

Country Status (1)

Country Link
JP (1) JPS63131238A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0318776A (en) * 1989-06-15 1991-01-28 Matsushita Electric Ind Co Ltd Function verifying method for logic circuit
JPH0341565A (en) * 1989-07-10 1991-02-22 Matsushita Electric Ind Co Ltd Method for verifying function of logical circuit

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0318776A (en) * 1989-06-15 1991-01-28 Matsushita Electric Ind Co Ltd Function verifying method for logic circuit
JPH0341565A (en) * 1989-07-10 1991-02-22 Matsushita Electric Ind Co Ltd Method for verifying function of logical circuit

Similar Documents

Publication Publication Date Title
JPS63131238A (en) Logic simulator
US4995037A (en) Adjustment method and apparatus of a computer
Kostadinov et al. LCP: FPGA based processors for education
JPS63101934A (en) Forming system for maintenance information of assembler language program
JP2004145670A (en) Method and device for generating test bench, and computer program
JPH01316842A (en) Batch program and debugging tool
JPS63133235A (en) Logical simulator
JP2000076094A (en) Simulator
JPH0727473B2 (en) Data flow program debug device
JPS6123248A (en) Test system of data processor
JPS63228239A (en) Test system for macro-expansion
JPH11175352A (en) Extension instruction set emulator
JPS63123136A (en) Logical simulator
JPS6219943A (en) Support device for development of software
JPS59208656A (en) Simulator
JPH0683987A (en) Microcomputer
JPS6380338A (en) Supporting system for single unit test of program module based on conversational symbolic debug mechanism
JPH06175883A (en) Program debugger
JPH0367340A (en) Simulator
JPH07152794A (en) Logic simulator
JPS59151247A (en) Testing device of information processing device
JPH031279A (en) Simulator
JPH02235150A (en) Information processor
Johnson et al. Abc's Of Processor Design: Introductory Computer Architecture Using The Lis 4
JPS63300330A (en) Debugging method for firmware