JPH07111687B2 - Data creation method for logic simulation - Google Patents

Data creation method for logic simulation

Info

Publication number
JPH07111687B2
JPH07111687B2 JP9382588A JP9382588A JPH07111687B2 JP H07111687 B2 JPH07111687 B2 JP H07111687B2 JP 9382588 A JP9382588 A JP 9382588A JP 9382588 A JP9382588 A JP 9382588A JP H07111687 B2 JPH07111687 B2 JP H07111687B2
Authority
JP
Japan
Prior art keywords
data
simulator
instruction
unit
software
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.)
Expired - Lifetime
Application number
JP9382588A
Other languages
Japanese (ja)
Other versions
JPH01265335A (en
Inventor
浩巳 嶋田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP9382588A priority Critical patent/JPH07111687B2/en
Publication of JPH01265335A publication Critical patent/JPH01265335A/en
Publication of JPH07111687B2 publication Critical patent/JPH07111687B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔概要〕 ベクトル演算器等をゲートレベルでデバッグしようとす
る際に必要な命令やデータの期待値を作成する論理シミ
ュレーション用データ作成方式に関し、 システム全般の試験プログラムから各演算器の論理シミ
ュレーション用データを作成して処理の効率化と作業の
軽減化を図ることを目的とし、 対象となるアーキテクチャをソフト的に完全に実現する
ソフトウェアシミュレータとそのソフトウェアシミュレ
ータに内蔵され、該シミュレータが指定された対象命令
を実行したときにその命令に関するデータを採取するデ
ータ出力手段とを備え、前記ソフトウェアシミュレータ
によりシステム全般のテストプログラムを実行し、その
出力データをユニット演算器のゲートレベル論理シミュ
レータの入力するように構成する。
DETAILED DESCRIPTION OF THE INVENTION [Outline] A logic simulation data creation method for creating expected values of instructions and data required when debugging a vector operation unit at a gate level, and a method for creating a logic simulation data For the purpose of creating data for logical simulation of arithmetic units to improve processing efficiency and reduce work, a software simulator that completely realizes the target architecture in software and a built-in software simulator, And a data output means for collecting data relating to a specified target instruction when the simulator executes the specified target instruction. The software simulator executes a system-wide test program and outputs the output data to a gate level logic of a unit arithmetic unit. To enter the simulator Configure.

〔産業上の利用分野〕[Industrial application field]

本発明は、ベクトル演算器をゲートレベルでデバッグし
ようとする際に必要な命令やデータの期待値を作成する
論理シミュレーション用データ作成方式に関し、特に、
システムの一部であるユニット演算器に好適なデータ作
成方式に関する。
The present invention relates to a logic simulation data creation method for creating expected values of instructions and data required when debugging a vector operation unit at a gate level, and in particular,
The present invention relates to a data generation method suitable for a unit calculator which is a part of a system.

〔従来の技術〕[Conventional technology]

ベクトル演算器を、単体で、かつゲートレベルで、論理
シミュレーションによりデバッグしようとすると、それ
に必要な命令やデータ期待値を論理シミュレータの入力
として供給する必要がある。これらは、一般に、特定の
形式に従ったデータの集合である。従来は、これらのデ
ータを作成するために、演算器独自にソースイメージで
コーディングを行ったのち、専用変換プログラムによ
り、論理シミュレータで使用可能な形式にコンパイルす
るなど変換していた。
In order to debug the vector operation unit by itself and at the gate level by logic simulation, it is necessary to supply the necessary instructions and data expectation values as inputs to the logic simulator. These are generally a collection of data according to a particular format. In the past, in order to create these data, the arithmetic unit originally coded the source image, and then converted it by compiling it into a format usable by a logic simulator using a dedicated conversion program.

〔発明が解決しようとする課題〕[Problems to be Solved by the Invention]

この場合の演算器は、実はシステムを構成するユニット
であって、システム全般に対するテストプログラムも別
に立派に存在している。それにもかかわらず、従来の方
式では、一般の試験プログラムと別に専用のプログラム
を作成する必要があり、各演算器専用の試験用データを
コーディングする繁雑な手間と、それらを更に各論理シ
ミュレータのインターフェイスに対応させる複雑な変換
とが必要で、開発コストに大きな負担をかけていた。
The arithmetic unit in this case is actually a unit that constitutes the system, and a test program for the entire system is also present. Nevertheless, in the conventional method, it is necessary to create a dedicated program in addition to the general test program, and the complicated work of coding the test data dedicated to each arithmetic unit and the interface of each logic simulator. It requires a complicated conversion that corresponds to the above, and has a heavy burden on the development cost.

本発明は、このような課題に鑑みて創案されたもので、
一般の試験用プログラムから対象命令を検出し、その命
令に関するデータを論理シミュレータで使用可能な形式
で出力することにより、各演算器の論理シミュレーショ
ン用データを作成して、処理の効率化と作業の軽減化を
図った論理シミュレーション用データ作成方式を提供す
ることを目的とする。
The present invention was created in view of such problems,
By detecting the target instruction from a general test program and outputting the data related to that instruction in a format that can be used in a logic simulator, the logic simulation data of each arithmetic unit is created to improve the efficiency of processing and work. It is an object of the present invention to provide a data creation method for logic simulation that aims to reduce the load.

〔課題を解決するための手段〕[Means for Solving the Problems]

本発明におて、上記の課題を解決するための手段は、第
1図に基本的構成を示すように、システムの一部として
ユニット演算器の論理シミュレーション用データを作成
するデータ作成方式において、対象となるアーキテクチ
ャをソフト的に完全に実現するソフトウェアシミュレー
タ1と、そのソフトウェアシミュレータ1に内蔵され、
該シミュレータ1が指定された対象命令を実行したとき
にその命令に関するデータを採取するデータ出力手段1a
とを備え、前記ソフトウェアシミュレータ1によりシス
テム全般のテストプログラム2を実行し、その出力デー
タ3をユニット演算器のゲートレベル論理シミュレータ
4の入力とするデータ作成方式によるものとする。
Means for solving the above-mentioned problems in the present invention is, as shown in the basic configuration of FIG. 1, in a data creation method for creating logic simulation data of a unit arithmetic unit as a part of a system, A software simulator 1 that completely realizes the target architecture in terms of software, and a built-in software simulator 1.
Data output means 1a for collecting data relating to a specified target instruction when the simulator 1 executes the instruction.
According to the data creation method, the software simulator 1 executes the overall test program 2 of the system, and the output data 3 is input to the gate level logic simulator 4 of the unit arithmetic unit.

〔作用〕[Action]

対象となる演算器がシステムの一部ユニットである場
合、システム全体に対する試験プログラムが必ず存在
し、その試験プログラムは対象となる演算器に適用可能
な命令,制御データ,演算データなどを含有している。
If the target arithmetic unit is a part of the system, a test program for the entire system always exists, and the test program contains instructions, control data, and arithmetic data applicable to the target arithmetic unit. There is.

本発明は、これらの命令やデータをそれぞれのインター
フェイスに対応した形式に修正して利用しようとするも
ので、まず、対象となるアーキテクチャをソフト的に完
全に実現したソフトウェアシミュレータを開発する。こ
れは、各命令及び機能の動きを論理仕様上で全く同一と
なるようにシミュレートし、システム全般の試験プログ
ラムを実行することができるようにするためである。次
に、このソフトウェアシミュレータにデータ出力の対象
命令を指定して、その命令を実行したときにその命令に
関するデータを出力する手段を組込む。このソフトウェ
アシミュレータによりシステム全般の試験プログラムを
実行し、その出力データをベクトル演算器のゲートレベ
ル論理シミュレータ入力として採取する。
The present invention intends to modify and use these instructions and data in a format corresponding to each interface. First, a software simulator that completely realizes the target architecture in terms of software is developed. This is so that the movement of each instruction and function can be simulated to be exactly the same in the logical specifications, and the test program of the entire system can be executed. Next, a means for designating a target instruction for data output and outputting data relating to the instruction when the instruction is executed is incorporated into this software simulator. The test program of the whole system is executed by this software simulator, and the output data is sampled as the gate level logic simulator input of the vector operation unit.

即ち、本発明は、一般の試験プログラムをソフトウェア
シミュレータで実行し、演算器のゲートレベルでの単体
論理シミュレーション用のデータを作成する方法による
ものであり、また、ソフトウェアシミュレータが命令に
関するデータを論理シミュレータの入力形式で出力する
方法によるものである。
That is, the present invention is based on a method of executing a general test program with a software simulator to create data for a single logic simulation at the gate level of an arithmetic unit. This is due to the method of outputting in the input format of.

〔実施例〕〔Example〕

以下、図面を参照して、本発明の実施例を詳細に説明す
る。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

第2図は、本発明を実施したデータ作成装置の一例を示
す構成図である。第1図において、1はソフトウェアシ
ミュレータであって、対象処理を行うインターフェイス
部11と、アーキテクチャを実現する実行部12と、ハード
ウェアの資源を表現する資源部13と、対象命令に関する
データを採取する収集部14と、収集されたデータが書込
まれ、一時的に保持するスタック部15は、該スタック部
15からデータを外部に出力する出力部16とから成る。
FIG. 2 is a block diagram showing an example of a data creating apparatus embodying the present invention. In FIG. 1, reference numeral 1 is a software simulator, which includes an interface unit 11 for performing a target process, an execution unit 12 for realizing an architecture, a resource unit 13 for expressing hardware resources, and data for a target instruction. The collecting unit 14 and the stack unit 15 in which the collected data is written and temporarily held are
The output unit 16 outputs the data from 15 to the outside.

インターフェイス部11は、各フォーマットの内容を知っ
ていて、データ出力の対象命令が指定されると、それぞ
れに対応したものを出力する。実行部12は、試験プログ
ラムの実行中にそれらの対象命令を検出すると、収集部
14を呼出し、スタック部15にデータを集積する。スタッ
ク部15がオーバフローすると、出力部16はスタック部15
の内容を編集して外部データセット3に出力する。
The interface unit 11 knows the contents of each format, and when the target instruction of data output is designated, outputs the corresponding one. When the execution unit 12 detects these target instructions during the execution of the test program, the execution unit 12 collects them.
14 is called and data is accumulated in the stack unit 15. If the stack section 15 overflows, the output section 16
The content of is edited and output to the external data set 3.

上記のソフトウェアシミュレータ1は、対象となるアー
キテクチャをソフト的に完全に実現するもので、各命令
及び機能の動きを論理仕様上全く同一となるように疑似
し、全般の試験プログラムを実行することができる。
The software simulator 1 described above completely implements the target architecture in a software manner, and it is possible to simulate the movement of each instruction and function so as to be exactly the same in the logical specifications and execute the general test program. it can.

このソフトフェアシミュレータ1にデータ出力対象命令
を指定し、その命令を実行したときその命令に関するデ
ータを出力するように、各機能が組込まれている。
Each function is incorporated in the software simulator 1 so that a data output target instruction is designated and when the instruction is executed, data related to the instruction is output.

このソフトウェアシミュレータ1で全般の試験プログラ
ムを実行し、その出力データを前記外部データセット3
にセットして、ベクトル演算器のゲートレベル論理シミ
ュレータ4の入力とする。
A general test program is executed by this software simulator 1, and its output data is used as the external data set 3
To the input of the gate level logic simulator 4 of the vector operation unit.

第3図は、上記のデータ作成装置の動作の一例を示すフ
ローチャートである。同図に示す如く、まず前記ソフト
ウェアシミュレータ1を起動したのち、対象命令を指定
しておいて、テストプログラムをロードし、シミュレー
ションを開始する。スタック部15がフルになると、出力
部16は、内容を対象となる論理シミュレータ4に対応す
る形式に編集して出力する。
FIG. 3 is a flowchart showing an example of the operation of the above-described data creation device. As shown in the figure, first, after the software simulator 1 is started, the target instruction is specified, the test program is loaded, and the simulation is started. When the stack unit 15 becomes full, the output unit 16 edits the content into a format corresponding to the target logic simulator 4 and outputs it.

第4図は第3図フローのシミュレーション部分を更に詳
細に示したフローチャートで、主として前記実行部12及
び収集部14の処理内容を示すものである。同図に示すよ
うに、実行部12は、試験プログラムから命令を読み出す
とその命令を解析し、命令実行ルーチンを呼出して命令
を実行する。
FIG. 4 is a flow chart showing the simulation part of the flow of FIG. 3 in more detail, mainly showing the processing contents of the execution part 12 and the collection part 14. As shown in the figure, the execution unit 12 reads an instruction from the test program, analyzes the instruction, and calls an instruction execution routine to execute the instruction.

命令コード及び各種マスク(PSW、CR等)の制御データ
と、それらの命令で演算データとして使用するオペラン
ドの内容と演算結果の正解値を、従来はアセンブラのDC
命令でコーディングしてプログラムに作成していたた
め、これらは、論理シミュレーション制御プログラムの
入力としてのみ使用可能なデータの集合であり、専用プ
ログラムであったが、本発明の方式は、実機で動作可能
なテストプログラムから上記相当のデータをダイナミッ
クに抽出しようとするもので、即ち、TSS(Time Sharin
g System)配下で動作する論理仕様上実機と同一のソフ
トウェアシミュレータ1を設け、該シミュレータ1でテ
ストプログラムを動作可能にする。このように、従来の
ものは複数のデータ集合であるのに対して、今回のもの
はプロセスである。
The instruction code and control data of various masks (PSW, CR, etc.), the contents of the operands used as operation data in those instructions, and the correct answer value of the operation result are conventionally calculated by the assembler
These are a set of data that can be used only as an input of the logic simulation control program and are dedicated programs because they are coded by the instruction and created in the program. However, the method of the present invention can be operated in an actual machine. It is intended to dynamically extract the above equivalent data from a test program, that is, TSS (Time Sharin
g System) The software simulator 1 which is the same as the real machine in terms of logical specifications operating under the control of the system is provided, and the test program can be operated by the simulator 1. Thus, the conventional one is a plurality of data sets, whereas the current one is a process.

次に、このソフトウェアシミュレータ1内に、特定の命
令を実行したら命令コードと各種制御レジスタの内容及
び命令で使用する各オペランドの内容を保存する収集部
14を組込む。
Next, in the software simulator 1, when a specific instruction is executed, an instruction code, the contents of various control registers, and the contents of each operand used in the instruction are saved.
Incorporate 14.

テストプログラム中のどの命令を論理シミュレーション
の対象として抽出するかは、対象命令を指定することに
より行われる。これは、ソフトウェアシミュレータ1の
操作画面の中の命令コードによって指定される。
Which instruction in the test program is extracted as the target of the logic simulation is performed by designating the target instruction. This is designated by the instruction code in the operation screen of the software simulator 1.

その命令が対象命令であれば、前記収集部14が命令コー
ドやレジスタ類をスタックし、更にオペランドのスタッ
クを行う。この図中点線で囲んだ部分が、本発明の重要
部分である。
If the instruction is a target instruction, the collecting unit 14 stacks instruction codes and registers, and further stacks operands. The part surrounded by the dotted line in this figure is an important part of the present invention.

ソフトウェアシミュレータ1でテストプログラムを実行
することにより、該シミュレータ1内部に仮想された主
記憶、各種レジスタ等を設定し、その中から所要のハー
ドを選択し、ハード資源として収集する。これをシミュ
レータ1内部のスタック部15に保持しておき、最後に対
象となる形式に変換して外部データセット3に出力す
る。データの配置は論理シミュレーション制御プログラ
ムとのインターフェイスに規定してあり、従来の専用プ
ログラムで、この規定を守って作成したのちコンパイル
したものと同一である。
By executing a test program in the software simulator 1, virtual main memory, various registers, etc. are set in the simulator 1, and required hardware is selected from among them and collected as a hardware resource. This is stored in the stack unit 15 inside the simulator 1, and finally converted into the target format and output to the external data set 3. The data arrangement is specified in the interface with the logic simulation control program, and is the same as the conventional dedicated program created and complied after observing this specification.

尚、収集部14が試験プログラムの文中から直接データを
採取するのでなく、命令を実行して採取するのは、実行
中に生成されるデータがあり、実行しないと期待値が分
らないからである。
The collecting unit 14 does not directly collect data from the text of the test program, but executes and collects the instruction because there is data generated during execution and the expected value cannot be known without execution. .

このように、本発明では、一般の試験プログラムをソフ
トウェアシミュレータで実行することにより、演算機の
単体シミュレーション用データを論理シミュレータの入
力となる形式でも抽出編集することができ、専用のプロ
グラムを作成する必要がない。
As described above, according to the present invention, by executing a general test program with a software simulator, it is possible to extract and edit unit simulation data of a computer even in a format that is an input to a logic simulator, and create a dedicated program. No need.

〔発明の効果〕〔The invention's effect〕

以上、説明したとおり、本発明によれば、システム全般
の試験プログラムをソフトウェアシミュレータで実行
し、対象命令を検出すると、その命令に関するデータを
論理シミュレータで使用可能な形式で出力することによ
り、各演算器の論理シミュレーション用データを作成し
て処理の効率化と作業の軽減化を図った論理シミュレー
ション用データ作成方式を提供することができる。
As described above, according to the present invention, a test program for the entire system is executed by a software simulator, and when a target instruction is detected, the data related to the instruction is output in a format usable by the logic simulator, so that each operation is performed. It is possible to provide a logic simulation data creation method in which data for logic simulation of a container is created to improve processing efficiency and reduce work.

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

第1図は本発明の基本的な構成図、 第2図は本発明の一実施例の構成図、 第3図及び第4図は本発明の一実施例の処理のフローチ
ャートである。 1;ソフトウェアシミュレータ、 2;全般用試験プログラム、 3;外部データセット、 4;論理シミュレータ、 11;インターフェイス部、 12;実行部、 13;資源部、 14;収集部、 15;スタック部、 16;出力部。
FIG. 1 is a basic configuration diagram of the present invention, FIG. 2 is a configuration diagram of an embodiment of the present invention, and FIGS. 3 and 4 are flowcharts of processing of an embodiment of the present invention. 1; Software simulator, 2; General test program, 3; External data set, 4; Logic simulator, 11; Interface section, 12; Execution section, 13; Resource section, 14; Collection section, 15; Stack section, 16; Output section.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】システムの一部としてのユニット演算器の
論理シミュレーション用データを作成するデータ作成方
式において、 対象となるアーキテクチャをソフト的に完全に実現する
ソフトウェアシミュレータと、 そのソフトウェアシミュレータに内蔵され、該シミュレ
ータが指定された対象命令を実行したときにその命令に
関するデータを採取するデータ出力手段とを備え、 前記ソフトウェアシミュレータによりシステム全般のテ
ストプログラムを実行し、該データ出力手段の出力デー
タをユニット演算器のゲートレベル論理シミュレータの
入力とする。 ことを特徴とする論理シミュレーション用データ作成方
式。
1. A data simulator for creating logic simulation data of a unit arithmetic unit as a part of a system, wherein a software simulator for completely realizing a target architecture in software, and a built-in software simulator, A data output means for collecting data relating to the specified target instruction when the simulator executes the specified target instruction, executing a system-wide test program by the software simulator, and operating the output data of the data output means as a unit operation Input to the gate-level logic simulator of the instrument. A data creation method for logic simulation characterized by the following.
JP9382588A 1988-04-15 1988-04-15 Data creation method for logic simulation Expired - Lifetime JPH07111687B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9382588A JPH07111687B2 (en) 1988-04-15 1988-04-15 Data creation method for logic simulation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9382588A JPH07111687B2 (en) 1988-04-15 1988-04-15 Data creation method for logic simulation

Publications (2)

Publication Number Publication Date
JPH01265335A JPH01265335A (en) 1989-10-23
JPH07111687B2 true JPH07111687B2 (en) 1995-11-29

Family

ID=14093173

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9382588A Expired - Lifetime JPH07111687B2 (en) 1988-04-15 1988-04-15 Data creation method for logic simulation

Country Status (1)

Country Link
JP (1) JPH07111687B2 (en)

Also Published As

Publication number Publication date
JPH01265335A (en) 1989-10-23

Similar Documents

Publication Publication Date Title
Van Praet et al. Instruction set definition and instruction selection for ASIPs
US6219832B1 (en) System and method of using annotations to optimize dynamically translated code in the presence of signals
Leupers et al. Generation of interpretive and compiled instruction set simulators
JPS62113244A (en) Program test device
JPH08314760A (en) Program development supporting device
JPH07111687B2 (en) Data creation method for logic simulation
Kise et al. The simcore/alpha functional simulator
Barbacci et al. Evaluation of the CFA test programs via formal computer descriptions
Becvar et al. DOP: a CPU core for teaching basics of computer architecture
JP2004013190A (en) Environment for software development, simulator, and recording medium
Davies et al. Mable: A technique for efficient machine simulation
JP3165105B2 (en) Program tracer, compiler and linker
Stevens Hybridthreads compiler: generation of application specific hardware thread cores from C
Vlahović et al. Extending valgrind framework with the MIPS MSA support
Vanoostende et al. Retargetable code generation: Key issues for successful introduction
JP2000222245A (en) Program execution time evaluating device, source program execution time evaluating device, program execution time evaluating method, and source program execution time evaluating method
Bigazzi et al. An integrated software development toolkit for the Gmicro/200
JPS62235652A (en) Debugging method for program
Creasman et al. Design, implementation, and case study of a function level unit test environment
JPH06282440A (en) Program editing method, program editing and executing method, and computer system
JPH0193826A (en) System for counting dynamic step of high grade language
Mallach Simulating the Viatron 2140/2150 on the IBM 360
Chapman A Simulator for the Intel 8086 microprocessor
JPH02244341A (en) Execution subroutine debugging information output trace system
Sommerville An experiment in high-level microprogramming