JPH06208480A - System program simulation system - Google Patents

System program simulation system

Info

Publication number
JPH06208480A
JPH06208480A JP5002267A JP226793A JPH06208480A JP H06208480 A JPH06208480 A JP H06208480A JP 5002267 A JP5002267 A JP 5002267A JP 226793 A JP226793 A JP 226793A JP H06208480 A JPH06208480 A JP H06208480A
Authority
JP
Japan
Prior art keywords
simulator
processor
peripheral device
pseudo
system program
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.)
Granted
Application number
JP5002267A
Other languages
Japanese (ja)
Other versions
JPH0827745B2 (en
Inventor
Hisayuki Aoki
久幸 青木
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 JP5002267A priority Critical patent/JPH0827745B2/en
Publication of JPH06208480A publication Critical patent/JPH06208480A/en
Publication of JPH0827745B2 publication Critical patent/JPH0827745B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To reduce cost for the development and maintenance of a system program. CONSTITUTION:A false main storage 4 is provided with the same system program as that of a main storage area in a target system. A processor simulator 1 simulates the operation of a system program in the target system which includes also interruption processing to be executed at the time of receiving an I/O request and interruption information by executing the system program stored in the false main storage area 4. A false peripheral device 3 simulates the peripheral device operation of the target system within a previously determined range. A control device simulator 2 converts an I/O request outputted from the simulator 1 into an I/O instruction to be outputted to the device 3, outputs the converted instruction and outputs the completion information of I/O operation of the device 3 and attention information from the device 3 as an interruption to the simulator 1.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はシミュレーション方式に
関し、特に大規模な計算機システムにおけるシステムプ
ログラムのシミュレーション方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a simulation system, and more particularly to a system program simulation system in a large-scale computer system.

【0002】[0002]

【従来の技術】従来、オペレーティングシステムなどの
大規模システムプログラムの動作検証は、そのプログラ
ムを乗せる計算機システム(ターゲット計算機)上で実
施されることが一般的であった。しかし、この方式は、
大型計算機のようなシステムプログラムの場合では、検
査のために高価な計算機システムを長期間占有しなけれ
ばならないため、開発および保守に莫大なコストがかか
ること、さらに全く新しい計算機システム用のシステム
プログラムの場合では、ハードウェア完了後でなければ
検査を実施できないため、ハードウェア完成からシステ
ムプログラム完成までのタイムラグが発生するという欠
点があった。
2. Description of the Related Art Conventionally, the operation verification of a large-scale system program such as an operating system has generally been carried out on a computer system (target computer) on which the program is mounted. However, this method
In the case of a system program such as a large-scale computer, an expensive computer system must be occupied for inspection for a long period of time, resulting in enormous cost for development and maintenance, and a system program for a completely new computer system. In this case, there is a drawback that a time lag from completion of hardware to completion of a system program occurs because the inspection can be performed only after completion of the hardware.

【0003】そこで、これらの問題点を解決するために
開発された方法として、特開昭62−14240の明細
書に詳述されているように、ターゲットとなる計算機シ
ステム(ターゲットシステムと略記))とは別の計算機
システム(シミュレータと略記する)上で、ターゲット
システムのプロセッサの動作をマシン命令レベルでシミ
ュレーションする方式がある。この方式では、ターゲッ
トシステムのプロセッサ内部のレジスタは、シミュレー
タの主記憶の一部を割り当て、ターゲットシステムのレ
ジスタアクセスはシミュレータ内部の該当主記憶へのア
クセスに置き換える。同様に、ターゲットシステムの主
記憶は、シミュレータ内部の該当主記憶へのアクセスに
置き換える。シミュレータは、ターゲットシステムの主
記憶に該当する領域からマシン命令を読み出し、それを
ターゲットシステムの命令として解釈し、これに対応し
た動作をすることを繰り返す。さらに、この方式をマル
チプロセッサシステムのシミュレーションが可能なよう
に拡張したものが、特開昭63−226740,特開平
3−150641などに詳述されている。
Therefore, as a method developed to solve these problems, as described in detail in the specification of JP-A-62-14240, a target computer system (abbreviated as target system)) There is a method of simulating the operation of the processor of the target system at the machine instruction level on another computer system (abbreviated as simulator). In this method, the registers in the processor of the target system allocate a part of the main memory of the simulator, and the register access of the target system is replaced with the access to the main memory of the simulator. Similarly, the main memory of the target system is replaced with an access to the main memory inside the simulator. The simulator reads the machine instruction from the area corresponding to the main memory of the target system, interprets it as the instruction of the target system, and repeats the operation corresponding to this. Further, details of extensions of this method to enable simulation of a multiprocessor system are described in JP-A-63-226740 and JP-A-3-150641.

【0004】上述の方式を用いれば、一応ターゲットシ
ステムとは全く違うシステム上で、ターゲットシステム
用のシステムプログラムの動作検証が可能となる。しか
し、この方式は、プロセッサと主記憶系のシミュレーシ
ョンしか実施できず、周辺装置を使ったプログラムの試
し実行は不可能である。そのため、例えば仮想記憶シス
テムのように、一旦主記憶の命令を周辺装置の一種であ
る二次記憶に書き出したり、また二次記憶の内容を主記
憶に読み込んで実行するようなプログラムの検証はでき
ない。また、TSSシステムに代表されるように、端末
からのコマンド入力を受け付けるシステムプログラムの
検証も不可能である。即ち、この方式では、周辺装置の
制御が最も重要な機能を占るオペレーティングシステム
を始めとする大規模なシステムプログラムの検証は不可
能である。
If the above system is used, it is possible to verify the operation of the system program for the target system on a system which is totally different from the target system. However, in this method, only the simulation of the processor and the main memory system can be performed, and the trial execution of the program using the peripheral device is impossible. Therefore, it is not possible to verify a program such as a virtual memory system in which a command of the main memory is once written to the secondary memory which is a kind of peripheral device, or the contents of the secondary memory are read into the main memory and executed. . In addition, it is impossible to verify a system program that accepts a command input from a terminal as represented by a TSS system. That is, with this method, it is impossible to verify a large-scale system program such as an operating system in which the control of peripheral devices has the most important function.

【0005】一方、周辺装置のシミュレーション方式
が、特開昭63−3348,特開平1−159743,
特開平3−67340に詳述されている。しかし、これ
らの方式はいずれも周辺装置のシミュレーションに特化
しており、プロセッサや主記憶などの計算機本体の機能
はターゲットシステムと同等のシステムを用いることを
前提としているため、シミュレータ自信がターゲットシ
ステムと同程度の価格である場合が多く、開発や保守コ
ストの削減はあまり望めない。さらに、周辺装置のみを
シミュレーションするという上述の方式は、現存する計
算機システムに新しい周辺装置を追加するような場合の
開発期間短縮のためのシステムプログラムの動作検証に
は適しているが、プロセッサや主記憶系、あるいはこれ
ら計算機本体と周辺装置のインタフェースなどが新しく
なるような場合には全く使えないことを意味する。
On the other hand, simulation methods for peripheral devices are disclosed in Japanese Patent Laid-Open Nos. 63-3348 and 1-159743.
It is described in detail in JP-A-3-67340. However, all of these methods specialize in the simulation of peripheral devices and assume that the functions of the computer such as the processor and main memory use a system equivalent to the target system. In many cases, the prices are about the same, and we cannot expect much reduction in development and maintenance costs. Furthermore, the above-described method of simulating only peripheral devices is suitable for verifying the operation of system programs for shortening the development period when adding new peripheral devices to an existing computer system, but it is not necessary This means that it cannot be used at all when the memory system or the interface between these computer main units and peripheral devices becomes new.

【0006】次に、現在の計算機システムの入出力方式
について簡単に説明する。現在の計算機システムは図7
に示すような構成を持つものが一般的である。プロセッ
サPが周辺装置Dにアクセスする場合は、制御装置Cに
入出力コマンドを発行することによって実行している。
この制御装置にはDMAコントローラのような簡単なも
のから、汎用計算機で使用されている入出力専用プロセ
ッサまで種々のものがある。いずれの場合も、制御装置
が入出力を実行している間に、プロセッサは別の処理を
実行しシステム全体のスループットが向上するように設
計されている。一般的に制御装置の機能には2種類があ
り、一つはプロセッサから要求された入出力を実行し、
その完了をプロセッサに通知することである。他の一つ
は、周辺装置で発生した事象をプロセッサに通知するこ
とである。この事象には、オペレータのキー押下など外
界からの情報入力を意味するものと、周辺装置の状態変
化などがある。いずれの動作においても、周辺装置から
プロセッサへの通知はいわゆる割り込みとして実現さ
れ、入出力データはプロセッサからも制御装置からもア
クセス可能な主記憶Mを介して受け渡しが行われる。入
出力コマンドも長くなる場合は、この主記憶経由でプロ
セッサから制御装置に渡される。
Next, the input / output method of the current computer system will be briefly described. The current computer system is shown in Fig. 7.
The one having a structure as shown in is general. When the processor P accesses the peripheral device D, it is executed by issuing an input / output command to the control device C.
There are various types of control devices, from a simple one such as a DMA controller to an input / output dedicated processor used in a general-purpose computer. In either case, the processor is designed to perform other processing while the controller is performing I / O to improve overall system throughput. Generally, there are two types of functions of the control device, one is to execute the input / output requested by the processor,
Notifying the processor of its completion. The other is to notify the processor of an event that has occurred in the peripheral device. Examples of this event include information input from the outside world such as an operator pressing a key, and changes in the state of peripheral devices. In any operation, the notification from the peripheral device to the processor is realized as a so-called interrupt, and the input / output data is passed through the main memory M accessible from both the processor and the control device. When the input / output command also becomes long, it is passed from the processor to the control unit via this main memory.

【0007】制御装置が扱う周辺装置には、磁気ディス
ク装置や磁気テープ装置など記憶装置として使用するも
のや、コンソールや端末などオペレータとの情報交換に
使用するものなど様々である。いずれの周辺装置も上記
制御装置の2種類の基本動作の範囲で動作しており、周
辺装置による相違は、入出力のコマンドの種類や授受す
る情報の意味や量が異る程度である。
There are various peripheral devices handled by the control device, such as those used as storage devices such as magnetic disk devices and magnetic tape devices, and those used for exchanging information with operators such as consoles and terminals. Each of the peripheral devices operates within the two basic operation ranges of the control device, and the difference between the peripheral devices is that the type of input / output command and the meaning and amount of information to be exchanged are different.

【0008】[0008]

【発明が解決しようとする課題】上述した従来のシミュ
レーション方式は、いずれもシステムプログラムの一部
分しかシミュレーションすることができず、オペレーテ
ィングシステムのようなシステム全体を使用するような
ソフトウェアの試し実行ができないという欠点があっ
た。
In the above-mentioned conventional simulation methods, only a part of the system program can be simulated, and trial execution of software that uses the entire system such as an operating system is not possible. There was a flaw.

【0009】本発明の目的は、オペレーティングシステ
ムのようなシステム全体を使用するようなソフトウェア
の試し実行を、経済的にかつ短期間に実効できるシミュ
レーション方式を提供することにある。
It is an object of the present invention to provide a simulation method capable of economically executing a trial execution of software that uses the entire system such as an operating system in a short period of time.

【0010】[0010]

【課題を解決するための手段】第1の発明は、プロセッ
サと周辺装置を制御する周辺制御装置が並列に動作する
計算機システムにおけるシステムプログラムシミュレー
ション方式において、シミュレーションの対象であるタ
ーゲットシステムにおけるシステムプログラム動作を前
記ターゲットシステムとは異る計算機上で模擬するシミ
ュレーション手段を備えることを特徴とする。
According to a first aspect of the present invention, in a system program simulation method in a computer system in which a processor and a peripheral control device for controlling a peripheral device operate in parallel, a system program operation in a target system to be simulated. Is provided on the computer different from the target system.

【0011】また、第2の発明は、前記ターゲットシス
テムの主記憶域上のシステムプログラムと同一のシステ
ムプログラムを備えた疑似主記憶手段と、前記ターゲッ
トシステムの前記システムプログラムの動作を前記疑似
主記憶域の前記システムプログラムを実行することによ
り入出力要求および割り込み通知を受けた場合の割り込
み処理を含めて模擬するプロセッサシミュレータと、前
記ターゲットシステムの周辺装置動作を予め定められた
範囲で模擬する疑似周辺装置と、前記プロセッサシミュ
レータからの前記入出力要求を前記疑似周辺装置への入
出力命令に変換して出力し前記疑似周辺装置の入出力動
作の完了通知および前記疑似周辺装置からのアテンショ
ン情報を前記プロセッサシミュレータへの割り込みとし
て前記割り込み通知を行う制御装置シミュレータとから
成る前記シミュレーション手段を備えたことを特徴とす
る。
A second aspect of the present invention is a pseudo main storage unit having a system program identical to the system program in the main storage area of the target system, and the operation of the system program of the target system in the pseudo main storage. Processor simulator for simulating the interrupt processing when an input / output request and an interrupt notification are received by executing the system program in the area, and a pseudo peripheral for simulating the peripheral device operation of the target system within a predetermined range The device and the input / output request from the processor simulator are converted into an input / output instruction to the pseudo peripheral device and output to output the completion notification of the input / output operation of the pseudo peripheral device and the attention information from the pseudo peripheral device. As an interrupt to the processor simulator, the interrupt Characterized by comprising the simulation means comprising a control device simulator for performing.

【0012】[0012]

【作用】図1は本発明の一実施例を示す構成図である。
図1において、1はプロセッサシミュレータ、2は制御
装置シミュレータ、3は疑似周辺装置、4は疑似主記憶
である。1〜3はいずれも本図では単数であるが、複数
構成であってもかまわない。
1 is a block diagram showing an embodiment of the present invention.
In FIG. 1, 1 is a processor simulator, 2 is a control device simulator, 3 is a pseudo peripheral device, and 4 is a pseudo main memory. Although all of the numbers 1 to 3 are singular in this figure, they may have a plurality of configurations.

【0013】次に、各構成要素の作用について説明す
る。プロセッサシミュレータは、ターゲットシステムの
プロセッサの動作をハードウェア命令レベルでシミュレ
ーションする。疑似主記憶はターゲットシステムの主記
憶と同機能を有するシミュレータの主記憶の一部を使用
し、プログラムやデータは、ターゲットシステムにおい
てそれらが主記憶上に置かれる場合と同様に疑似主記憶
に配置される。レジスタと主記憶のみで実行できる通常
命令やアドレス変換処理は、このプロセッサシミュレー
タと疑似主記憶があれば可能である。
Next, the operation of each component will be described. The processor simulator simulates the operation of the processor of the target system at the hardware instruction level. The pseudo main memory uses a part of the main memory of the simulator that has the same function as the main memory of the target system, and the programs and data are placed in the pseudo main memory as if they were placed in the main memory in the target system. To be done. Normal instructions and address conversion processing that can be executed only by registers and main memory are possible if this processor simulator and pseudo main memory are provided.

【0014】しかし、プロセッサによる処理と入出力動
作との並列実行は、上述したプロセッサシミュレータと
疑似主記憶だけでは模擬できない。そこで、図1に示す
ような制御装置シミュレータをプロセッサシミュレータ
とは別に設ける。
However, the parallel execution of the processing by the processor and the input / output operation cannot be simulated only by the processor simulator and the pseudo main memory described above. Therefore, a control device simulator as shown in FIG. 1 is provided separately from the processor simulator.

【0015】制御装置シミュレータは、ターゲットシス
テムの入出力制御装置の動作をプロセッサからの入出力
コマンドのレベルでシミュレーションする。すなわち、
制御装置シミュレータは、プロセッサシミュレータから
渡される入出力コマンドを解読し、該当する疑似周辺装
置への入出力命令に変換する。これによって、ターゲッ
トシステムの入出力動作がシミュレーション可能にな
る。
The controller simulator simulates the operation of the input / output controller of the target system at the level of the input / output command from the processor. That is,
The control device simulator decodes the input / output command passed from the processor simulator and converts it into an input / output command to the corresponding pseudo peripheral device. This allows the input / output operation of the target system to be simulated.

【0016】ターゲットシステムにおけるプロセッサか
ら制御装置への通知は、プロセス間通信などを使用し
て、プロセッサシミュレータから制御装置シミュレータ
への通知として実現できる。逆方向の通知も同じ方法で
実現する。ターゲットシステムにおける入出力完了通知
に伴なうプロセッサへの割り込み動作は、プロセッサシ
ミュレータが定期的に制御装置シミュレータからの入出
力完了通知を確認し、通知があった場合は割り込み処理
を模擬することでシミュレーション可能になる。また、
疑似主記憶をプロセッサシミュレータと制御装置シミュ
レータとの共有メモリとして使用することで、ターゲッ
トシステムのプロセッサと制御装置との間の主記憶を介
したデータや入出力コマンドの受渡しのシミュレーショ
ンが可能になる。
The notification from the processor to the control device in the target system can be realized as a notification from the processor simulator to the control device simulator by using interprocess communication or the like. Notification in the opposite direction is realized in the same way. For the interrupt operation to the processor accompanying the I / O completion notification in the target system, the processor simulator periodically checks the I / O completion notification from the control unit simulator, and if there is a notification, simulates the interrupt processing. Simulation becomes possible. Also,
By using the pseudo main memory as a shared memory between the processor simulator and the control device simulator, it is possible to perform a simulation of data and input / output command passing between the processor and the control device of the target system via the main memory.

【0017】疑似周辺装置は、ターゲットシステムの周
辺装置の有する機能と同様な機能を有する周辺装置で代
用したものである。この疑似周辺装置とターゲットシス
テムの周辺装置は本質的に同じ機能を有する必要があ
り、アクセス手順の相違は制御装置シミュレータで吸収
する。例えば、ターゲットシステムのディスク装置をシ
ミュレーションしたい場合は、記憶装置を備えランダム
アクセスが可能な装置を疑似周辺装置とすればよい。タ
ーゲットシステムのディスク装置とシミュレータのディ
スク装置との記憶容量などが異なる場合は、ターゲット
システムのディスク装置1台にシミュレータのディスク
装置複数台を割り当て、領域のディスパッチングを装置
シミュレータが行えば解決できる。また、ターゲットシ
ステムのコンソールをシミュレートしたい場合は、オペ
レータと交信する機能を有する周辺装置を疑似周辺装置
とすればよい。例えば、シミュレータの端末やXwin
dowなどがこの条件を満たす。ターゲットシステムの
コンソールとシミュレータの端末の制御手順が異るよう
な場合は、制御装置シミュレータが制御手順の変換を行
えば解決できる。
The pseudo peripheral device is a substitute for a peripheral device having the same function as that of the peripheral device of the target system. The pseudo peripheral device and the peripheral device of the target system must have essentially the same function, and the difference in access procedure is absorbed by the controller simulator. For example, when it is desired to simulate the disk device of the target system, a random access device having a storage device may be used as the pseudo peripheral device. If the disk capacity of the target system and the disk capacity of the simulator are different, the problem can be solved by allocating a plurality of disk devices of the simulator to one disk device of the target system and dispatching the area by the device simulator. Further, if it is desired to simulate the console of the target system, the peripheral device having the function of communicating with the operator may be used as the pseudo peripheral device. For example, a simulator terminal or Xwin
dow and the like satisfy this condition. If the control procedure of the console of the target system and the terminal of the simulator are different, it can be solved by converting the control procedure by the control device simulator.

【0018】[0018]

【実施例】次に、本発明について図面を参照して説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings.

【0019】図1は本発明の一実施例を示すブロック図
である。
FIG. 1 is a block diagram showing an embodiment of the present invention.

【0020】図1に示すように、本発明のシステムプロ
グラムシミュレーション方式は、ターゲットシステムの
プロセッサの動作を模擬するプロセッサシミュレータ1
と、ターゲットシステムの周辺装置動作を模擬する疑似
周辺装置3と、プロセッサシミュレータ1からの入出力
要求を疑似周辺装置3への入出力命令に変換し、入出力
動作の完了通知や疑似周辺装置3からのアテンションを
プロセッサシフレータ1に割り込みとして通知する制御
装置シミュレータ2と、プロセッサシミュレータ1と制
御装置シミュレータ2とからアクセス可能なターゲット
システムの主記憶動作を模擬する疑似主記憶4とから構
成される。なお、本図では、簡単のためプロセッサシミ
ュレータ、制御装置シミュレータ、疑似周辺装置は1個
しか記述されていないが、複数であってもよい。
As shown in FIG. 1, the system program simulation method of the present invention is a processor simulator 1 for simulating the operation of a processor of a target system.
And a pseudo peripheral device 3 for simulating the peripheral device operation of the target system, and an input / output request from the processor simulator 1 is converted into an input / output instruction to the pseudo peripheral device 3 to notify the completion of the input / output operation and the pseudo peripheral device 3 The controller simulator 2 for notifying the processor shifter 1 of the attention from the processor as an interrupt, and the pseudo main memory 4 simulating the main memory operation of the target system accessible from the processor simulator 1 and the controller simulator 2. . Although only one processor simulator, control device simulator, and pseudo peripheral device are described in this figure for simplification, a plurality of processor simulators, control device simulators, and pseudo peripheral devices may be described.

【0021】図2は、プロセッサシミュレータ1の動作
を示す流れ図である。まず、初期化ステップ11で、タ
ーゲットシステムのプロセッサが起動される場合の設定
と同じようにプロセッサシミュレータ1の持っている各
種レジスタを初期設定し、ブートローダを疑似主記憶4
にロードする。続いて、命令フェッチステップ12で、
疑似主記憶領域4から命令語を取り出し、命令判別ステ
ップ13で、命令フェッチステップ12で取り出した命
令語を判別する。判別の結果、レジスタと主記憶のみで
実施可能な通常命令の場合は、通常命令実行ステップ1
4で、ターゲットシステムのプロセッサの命令実行を模
擬し、プログラムカウンタインクリメントステップ17
で、プログラムカウンタを+1し、通知検査ステップ1
8で制御装置シミュレータ2からの入出力完了通知また
はアテンション通知がきていないかどうかを判定する。
判定の結果、いずれの通知も検出されなかった場合は、
命令フェッタステップ12に戻る。判定の結果いずれか
の通知を検出した場合は、割り込み処理手段19を呼び
出し、割り込み処理完了後に命令フェッチステップ12
に戻る。
FIG. 2 is a flow chart showing the operation of the processor simulator 1. First, in the initialization step 11, various registers that the processor simulator 1 has are initialized as in the case where the processor of the target system is started, and the boot loader is set to the pseudo main memory 4.
To load. Then, in the instruction fetch step 12,
The instruction word is fetched from the pseudo main memory area 4, and in the instruction discrimination step 13, the instruction word fetched in the instruction fetch step 12 is discriminated. If the result of determination is a normal instruction that can be executed only with registers and main memory, then normal instruction execution step 1
In step 4, the instruction execution of the processor of the target system is simulated, and the program counter increment step 17
Then, the program counter is incremented by 1, and the notification check step 1
At 8, it is determined whether or not the input / output completion notification or attention notification from the control device simulator 2 has been received.
If no notification is detected as a result of the judgment,
Return to instruction fetter step 12. If any of the notifications is detected as a result of the determination, the interrupt processing means 19 is called, and after the interrupt processing is completed, the instruction fetch step 12
Return to.

【0022】命令判別ステップ13で、入出力命令を検
出した場合は、入出力命令実行手段15に制御を渡し、
リターンするとプログラムカウンタ17に進む。命令判
別ステップ13で、割り込み復帰命令を検出した場合
は、割込復帰命令実行手段16に制御を渡し、リターン
すると通知検査ステップ18に進む。
When an input / output instruction is detected in the instruction determining step 13, control is passed to the input / output instruction executing means 15,
When it returns, it proceeds to the program counter 17. When the interrupt return instruction is detected in the instruction determination step 13, the control is passed to the interrupt return instruction executing means 16, and when returning, the process proceeds to the notification inspection step 18.

【0023】図3は、入出力命令実行手段15の処理を
示す流れ図である。周辺装置決定ステップ151で、指
定された周辺装置情報から該当する制御装置シミュレー
タ2と疑似周辺装置3を決定し、入出力要求通知ステッ
プ152で、周辺装置決定ステップ151で決定した制
御装置シミュレータ2へ入出力要求を通知する。
FIG. 3 is a flow chart showing the processing of the input / output instruction executing means 15. In the peripheral device determination step 151, the corresponding control device simulator 2 and pseudo peripheral device 3 are determined from the specified peripheral device information, and in the input / output request notification step 152, to the control device simulator 2 determined in the peripheral device determination step 151. Notify I / O requests.

【0024】図4は、割り込み処理手段19の処理を示
す流れ図である。コンテキスト退避ステップ191で、
その時点のプロセッサシミュレータ1内部に保持してい
るターゲットシステムのプロセッサのレジスタ情報を、
ターゲットシステムのプロセッサの仕様に沿って疑似主
記憶4上の退避領域に退避し、割り込みベクタロードス
テップ192で、ターゲットシステムの仕様に沿って割
り込み発生時の最初のコンテキストをレジスタにロード
する。
FIG. 4 is a flow chart showing the processing of the interrupt processing means 19. In the context saving step 191,
Register information of the target system processor held in the processor simulator 1 at that time,
It is saved in the save area on the pseudo main memory 4 according to the specifications of the processor of the target system, and in the interrupt vector loading step 192, the first context at the time of the interrupt occurrence is loaded into the register according to the specifications of the target system.

【0025】図5は、割込復帰命令実行手段16の処理
を示す流れ図である。コンテキスト復元ステップ161
で、疑似主記憶4上の退避領域から、プロセッサシミュ
レータ1内部のレジスタ領域に情報を復元する。
FIG. 5 is a flow chart showing the processing of the interrupt return instruction executing means 16. Context restoration step 161
Then, the information is restored from the save area on the pseudo main memory 4 to the register area inside the processor simulator 1.

【0026】図6は、制御装置シミュレータ2の処理を
示す流れ図である。制御装置シミュレータ2は、事象検
査ステップ21で、プロセッサシミュレータ1からの入
出力要求、または疑似周辺装置3からのアテンションを
待ち合わせる。プロセッサシミュレータ1からの入出力
要求が検出された場合は、入出力処理ステップ22で、
指定された周辺装置に該当する疑似周辺装置3への入出
力を実施し、入出力完了通知ステップ23で、要求を発
行したプロセッサシミュレータ1へ入出力完了通知を送
り、再び事象検査ステップ21に戻る。事象検査ステッ
プ21で、疑似周辺装置3からのアテンションを検出し
た場合は、通知先決定ステップ24で、ターゲットシス
テムで手順に従って通知先プロセッサを決定し、アテン
ション通知ステップ25で、通知先決定ステップ24で
決定したプロセッサをシミュレートするプロセッサシミ
ュレータ1にアテンション通知を送り、再び事象検査ス
テップ21に戻る。
FIG. 6 is a flow chart showing the processing of the controller simulator 2. In the event inspection step 21, the control device simulator 2 waits for an input / output request from the processor simulator 1 or an attention from the pseudo peripheral device 3. When the input / output request from the processor simulator 1 is detected, in the input / output processing step 22,
Input / output to / from the pseudo peripheral device 3 corresponding to the designated peripheral device is performed, and in the input / output completion notification step 23, an input / output completion notification is sent to the processor simulator 1 that issued the request, and the process returns to the event inspection step 21 again. . When the attention from the pseudo peripheral device 3 is detected in the event inspection step 21, the notification destination determining step 24 determines the notification destination processor according to the procedure in the target system, and the attention notification step 25 determines the notification destination determining step 24. An attention notification is sent to the processor simulator 1 that simulates the determined processor, and the process returns to the event inspection step 21 again.

【0027】本発明により、価格の割に性能が高いワー
クステーション等をシミュレータとすれば、大型計算機
のような高価な計算機システム用のシステムプログラム
の試し実行を、安価なシステムで実施できるようにな
り、システムプログラムの開発や保守のコストを削減す
ることができる。このシミュレーションによる試し実行
は、実際のシステムとはタイミングが異なるなどの問題
がり、時間に関係する制御機能や微妙なタイミングが問
題になる周辺装置の制御機能の試し実行は難しい点があ
る。しかし、普通のシステムプログラムでは、これらの
シミュレーションで試し実行が困難な部分は半分以下で
あり、過半数の部分を安価なシステムで試し実行できる
ことの効果は大きい。
According to the present invention, if a workstation or the like having high performance for the price is used as a simulator, trial execution of a system program for an expensive computer system such as a large-scale computer can be carried out by an inexpensive system. , It is possible to reduce the cost of system program development and maintenance. The trial execution by this simulation has a problem that the timing is different from that of an actual system, and it is difficult to trial execute the control function related to time or the control function of the peripheral device in which delicate timing is a problem. However, in an ordinary system program, only a half or less of these simulations are difficult to test-execute, and the fact that a majority of the parts can be trial-executed by an inexpensive system has a great effect.

【0028】さらに、実際の計算機システムの開発にお
いては、仕様が確定するには時間がかかるのが一般的だ
あり、ソフトウェアを主体とする本発明のシミュレータ
は、計算機システムの仕様の変更に容易に対応できる効
果もある。
Furthermore, in actual computer system development, it generally takes time to determine the specifications, and the simulator of the present invention, which is mainly software, easily changes the specifications of the computer system. There is also an effect that can be dealt with.

【0029】[0029]

【発明の効果】以上説明したように、本発明のシステム
プログラムシミュレーション方式は、ターゲットマシン
のオペレーティングシステムなどのシステムプログラム
の各機能を他の計算機上でソフトウェアによりシミュレ
ートできるようにしたことにより、システムプログラム
の開発や保守のコストを削減できる効果がある。さら
に、新しいターゲットシステムのハードウェアが完成す
る前にシミュレータによるシステムプログラムの試し実
行が可能になり、ハードウェア完成からシステムプログ
ラム完成までのトータルの開発期間を短縮できる効果が
ある。
As described above, according to the system program simulation method of the present invention, each function of a system program such as an operating system of a target machine can be simulated by software on another computer. This has the effect of reducing the cost of program development and maintenance. Furthermore, the system program can be trial-executed by the simulator before the hardware of the new target system is completed, which has the effect of shortening the total development period from the completion of the hardware to the completion of the system program.

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

【図1】本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】図1のプロセッサシミュレータ1の動作を示す
流れ図である。
FIG. 2 is a flowchart showing the operation of the processor simulator 1 of FIG.

【図3】図2の入出力命令実行手段15の処理を示す流
れ図である。
FIG. 3 is a flow chart showing a process of an input / output instruction executing means 15 of FIG.

【図4】図2の割り込み処理手段19の処理を示す流れ
図である。
FIG. 4 is a flowchart showing the processing of the interrupt processing means 19 of FIG.

【図5】図2の割込復帰命令実行手段16の処理を示す
流れ図である。
5 is a flowchart showing the processing of the interrupt return instruction execution means 16 of FIG.

【図6】図1の制御装置シミュレータ2の処理を示す流
れ図である。
FIG. 6 is a flowchart showing the processing of the control device simulator 2 of FIG.

【図7】従来技術の一実施例を示すブロック図である。FIG. 7 is a block diagram showing an example of a conventional technique.

【符号の説明】[Explanation of symbols]

1 プロセッサシミュレータ 2 制御装置シミュレータ 3 疑似周辺装置 4 疑似主記憶 P プロセッサ C 制御装置 D 周辺装置 M 主記憶 1 Processor Simulator 2 Controller Simulator 3 Pseudo Peripheral Device 4 Pseudo Main Memory P Processor C Control Device D Peripheral Device M Main Memory

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 プロセッサと周辺装置を制御する周辺制
御装置が並列に動作する計算機システムにおけるシステ
ムプログラムシミュレーション方式において、シミュレ
ーションの対象であるターゲットシステムにおけるシス
テムプログラム動作を前記ターゲットシステムとは異る
計算機上で模擬するシミュレーション手段を備えること
を特徴とするシステムプログラムシミュレーション方
式。
1. In a system program simulation method in a computer system in which a processor and a peripheral controller for controlling a peripheral device operate in parallel, a system program operation in a target system to be simulated is performed on a computer different from that of the target system. A system program simulation method characterized by comprising a simulation means for simulating with.
【請求項2】 前記ターゲットシステムの主記憶域上の
システムプログラムと同一のシステムプログラムを備え
た疑似主記憶手段と、前記ターゲットシステムの前記シ
ステムプログラムの動作を前記疑似主記憶域の前記シス
テムプログラムを実行することにより入出力要求および
割り込み通知を受けた場合の割り込み処理を含めて模擬
するプロセッサシミュレータと、前記ターゲットシステ
ムの周辺装置動作を予め定められた範囲で模擬する疑似
周辺装置と、前記プロセッサシミュレータからの前記入
出力要求を前記疑似周辺装置への入出力命令に変換して
出力し前記疑似周辺装置の入出力動作の完了通知および
前記疑似周辺装置からのアテンション情報を前記プロセ
ッサシミュレータへの割り込みとして前記割り込み通知
を行う制御装置シミュレータとから成る前記シミュレー
ション手段を備えたことを特徴とする請求項1記載のシ
ステムプログラムシミュレーション方式。
2. A pseudo main memory unit having the same system program as the system program on the main memory area of the target system, and an operation of the system program of the target system, the system program of the pseudo main memory area A processor simulator that simulates the interrupt processing when an input / output request and an interrupt notification are received by executing, a pseudo peripheral device that simulates the peripheral device operation of the target system within a predetermined range, and the processor simulator The input / output request from the pseudo peripheral device is converted into an input / output instruction to the pseudo peripheral device and output, and the completion notification of the input / output operation of the pseudo peripheral device and the attention information from the pseudo peripheral device are used as an interrupt to the processor simulator. A control device stain that performs the interrupt notification 2. The system program simulation method according to claim 1, further comprising the simulation means including a simulator.
JP5002267A 1993-01-11 1993-01-11 System program simulation method Expired - Fee Related JPH0827745B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5002267A JPH0827745B2 (en) 1993-01-11 1993-01-11 System program simulation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5002267A JPH0827745B2 (en) 1993-01-11 1993-01-11 System program simulation method

Publications (2)

Publication Number Publication Date
JPH06208480A true JPH06208480A (en) 1994-07-26
JPH0827745B2 JPH0827745B2 (en) 1996-03-21

Family

ID=11524602

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5002267A Expired - Fee Related JPH0827745B2 (en) 1993-01-11 1993-01-11 System program simulation method

Country Status (1)

Country Link
JP (1) JPH0827745B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5963725A (en) * 1996-09-12 1999-10-05 Nec Corporation Simulation system and method for microcomputer program
JP2011123676A (en) * 2009-12-10 2011-06-23 Canon Inc Information processing apparatus and method of controlling the same

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01159743A (en) * 1987-12-17 1989-06-22 Fujitsu Ltd Firm soft simulator
JPH0367340A (en) * 1989-08-04 1991-03-22 Fujitsu Ltd Simulator

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01159743A (en) * 1987-12-17 1989-06-22 Fujitsu Ltd Firm soft simulator
JPH0367340A (en) * 1989-08-04 1991-03-22 Fujitsu Ltd Simulator

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5963725A (en) * 1996-09-12 1999-10-05 Nec Corporation Simulation system and method for microcomputer program
JP2011123676A (en) * 2009-12-10 2011-06-23 Canon Inc Information processing apparatus and method of controlling the same

Also Published As

Publication number Publication date
JPH0827745B2 (en) 1996-03-21

Similar Documents

Publication Publication Date Title
US7783867B2 (en) Controlling instruction execution in a processing environment
US7992147B2 (en) Processor control register virtualization to minimize virtual machine exits
EP1766518B1 (en) Adaptive algorithm for selecting a virtualization algorithm in virtual machine environments
RU2137182C1 (en) Execution of data processing instruction
US5363501A (en) Method for computer system development verification and testing using portable diagnostic/testing programs
US5003468A (en) Guest machine execution control system for virutal machine system
US20040193394A1 (en) Method for CPU simulation using virtual machine extensions
US20030093258A1 (en) Method and apparatus for efficient simulation of memory mapped device access
US20050091022A1 (en) Ultra fast multi-processor system simulation using dedicated virtual machines
JPH06208480A (en) System program simulation system
EP2115574B1 (en) Employing a buffer to facilitate instruction execution
JP2005353020A (en) Simulation system for computer program
JPS6376028A (en) Method for controlling execution of instruction step in virtual computer system
JPH10187484A (en) Simulator
JP3270729B2 (en) Extended instruction set simulator
Marsland et al. A case study of computer emulation
Demco et al. An insight into PDP-11 emulation
KR920001103B1 (en) Test software simulation method for electronic exchanger
JP2001209555A (en) Device for input/output emulation, method for emulating input/output device and storage medium which stores input/output emulation program
JPH0677236B2 (en) Apparatus and method for simulating I / O interrupt
JPS61239345A (en) I/o simulator
JPS6338729B2 (en)
JPH0361211B2 (en)
JP2002288003A (en) Simulation method and simulation program
JPH0567164A (en) Logic simulation system

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19960917

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080321

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090321

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090321

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100321

Year of fee payment: 14

LAPS Cancellation because of no payment of annual fees