JPS62279431A - Input/output emulator - Google Patents

Input/output emulator

Info

Publication number
JPS62279431A
JPS62279431A JP61124216A JP12421686A JPS62279431A JP S62279431 A JPS62279431 A JP S62279431A JP 61124216 A JP61124216 A JP 61124216A JP 12421686 A JP12421686 A JP 12421686A JP S62279431 A JPS62279431 A JP S62279431A
Authority
JP
Japan
Prior art keywords
input
interrupt
instruction
output
processor
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
JP61124216A
Other languages
Japanese (ja)
Inventor
Toshihiro Masumoto
増元 俊博
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 JP61124216A priority Critical patent/JPS62279431A/en
Publication of JPS62279431A publication Critical patent/JPS62279431A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To make an operation program operate in the same system by emulating input/output instruction on a program even when it does not conform to input/output instruction given to a hardware system. CONSTITUTION:When a main processor 1 executes an input output instruction, its execution status signal 2 is analyzed by an interrupt controller 3. Consequently, an interrupt instruction signal 4 to the processor 1 becomes effective immediately, and the interrupt is started to the processor 1. At this time, a port address and output data of input output instruction are stored in an address latch register 6 and a data latch register 8 by a latch signal 5 from the controller 3. Further, operation status of the processor 1 is stored in a status latch register 8, and at the same time, a bus driver 12 is cut off to prevent execution output of input output instruction from sent out to a system bus 11 through the controller 3. Then an emulation program is started and an operation program can be made to operate in the same system.

Description

【発明の詳細な説明】 3、発明の詳細な説明 〔産業上の利用分野〕 この発明は主プロセッサがロードされたプログラム上に
与えられるI10命令を、そのグロダラムを実行させる
システムに定義されているI10命令に変換する入出力
エミュレータ−に関する。。
[Detailed Description of the Invention] 3. Detailed Description of the Invention [Field of Industrial Application] This invention is defined as a system in which a main processor executes an I10 instruction given to a loaded program by executing its GLODARUM. This invention relates to an input/output emulator that converts to I10 instructions. .

〔従来の技術〕[Conventional technology]

入出力命令(工ん命令と記す)の変換はポートアドレス
の違いだけならばハードウェアのデコーダーで容易に実
現できる。ところがI10命令のデータ部の一部あるい
は全部が異なる場合、I10命令の変換はハードウェア
では実現困難である。この問題を解決する一つの方法と
して副プロセンサを配置し、専用的にI10命令をエミ
ユレートする方法もあるが、ハードウェアが複雑となる
欠点がある。
Conversion of input/output instructions (referred to as engineering instructions) can be easily achieved using a hardware decoder if the only difference is the port address. However, if part or all of the data portion of the I10 instruction is different, it is difficult to convert the I10 instruction using hardware. One method to solve this problem is to arrange a sub-processor and emulate the I10 instruction exclusively, but this method has the disadvantage of complicating the hardware.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

一般に異機種コンピュータシステムで開発されたソフト
ウェアを実行可能とするためには、ハードウェアを完全
に同じとするか、あるいは相違するハードウェアを2重
に内蔵させることが必要である。特に異機種間のシステ
ムのプロセッサが同じであっても、通信装置、他の入出
力周辺装置制御が異なるのは避られない。これはハード
ウエア動作の基本レベルでみれば周辺制蜘に対する工々
命令の違いとして取り上げることができる。一方でシス
テムの系列化を計るときも、旧機種でのソフトウェア資
産を継承すること、すなわち機能レベルでの互換性が重
要な要素となる。しかしながら周辺制御系の機能強化は
必然的な制御命令の差Ji生じさせる。プロセッサのI
10命令に着目すれば次の3つの問題がある。
In general, in order to make software developed on different types of computer systems executable, it is necessary to have completely the same hardware or to have different hardware installed in duplicate. In particular, even if the processors of heterogeneous systems are the same, it is inevitable that the control of communication devices and other input/output peripheral devices will be different. At the basic level of hardware operation, this can be seen as a difference in the instructions for peripheral control. On the other hand, when planning to create a series of systems, inheriting the software assets of older models, that is, compatibility at the functional level, is an important factor. However, the functional enhancement of the peripheral control system inevitably creates a difference Ji in control commands. Processor I
If we focus on the 10 instructions, there are the following three problems.

(1)  I/l:ポー ドアドレスのみの違い(同じ
ハードウェアを使用) (2)  r10命令のデータ部の一部が他のI10命
令に含まれる。
(1) I/l: Difference only in port address (same hardware used) (2) Part of the data part of the r10 instruction is included in another I10 instruction.

(3)■々命令がすべて他のI10命令に含まれる。(3) All instructions are included in other I10 instructions.

〔問題点を解決するための手段〕[Means for solving problems]

この発明によれば主プロセンサの動作ステータスおよび
I10命令の実行情報(ポートアドレス、データ)を保
持するレジスターが設けられ、これらレジスターは主プ
ロセンサからアクセス可能とされる。さらにI10命令
を実行するとその実行直後に割込みを主プロセッサ自身
に発生させる割込み制御器と、前記割込み処理にもとす
き動作する専用のソフトウェア(エミュレータ−)を格
納するメモリとを有し、このメモリのエミュレーターを
実行して前記レジスターの内容を読み出してエミュレー
ションが行われる。
According to the present invention, registers are provided that hold the operating status of the main processor and the execution information (port address, data) of the I10 instruction, and these registers can be accessed from the main processor. Furthermore, it has an interrupt controller that generates an interrupt to the main processor itself immediately after executing the I10 instruction, and a memory that stores dedicated software (emulator) that operates mainly for processing the interrupt. Emulation is performed by running the emulator and reading the contents of the register.

〔実施例〕〔Example〕

次にこの発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図はこの発明の実施例の構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.

主プロセッサ1がI10命令を実行すると、その実行ス
テータス信号2は割込み制御器3で解析される。この結
果直ちに主プロセッサ1への割込み指令信号4が有効と
なり、主プロセッサ1に割込みの起動がかかる。このと
き割込み制御器3からラッチ信号5によp I10命令
の実行情報としてポートアドレスおよび出力データ(出
力命令のとき)がそれぞれアドレスラノチレノスタ6お
よびデータラッチレノスタフに格納され、更に主プロセ
ッサ1の動作ステータスがステータスレジスタ8に格納
される。同時に割込み制御器3からの・ぐスマスク信号
9によってI10命令の実行出力がシステムバス11上
に送出されないようにバスドライバー12が遮断される
When the main processor 1 executes the I10 instruction, its execution status signal 2 is analyzed by the interrupt controller 3. As a result, the interrupt command signal 4 to the main processor 1 becomes valid immediately, and the main processor 1 is activated to initiate an interrupt. At this time, the latch signal 5 from the interrupt controller 3 stores the port address and output data (in the case of an output command) as execution information of the pI10 instruction in the address latch reno star 6 and data latch reno star, respectively, and further stores the port address and output data (in the case of an output command) in the address latch reno star 6 and the data latch reno star, respectively. The operation status of is stored in the status register 8. At the same time, the bus driver 12 is cut off by the mask signal 9 from the interrupt controller 3 so that the execution output of the I10 instruction is not sent onto the system bus 11.

割込み処理が開始すると局部メモリ13に格納されたエ
ミュレーションプログラムに起動がかかる。
When the interrupt processing starts, the emulation program stored in the local memory 13 is activated.

エミュレーションプログラムの参考例として第2図に示
すその処理シーケンスを参照して説明する。
A reference example of the emulation program will be described with reference to its processing sequence shown in FIG.

初メにステータスレジスター8を読み取り(ステップS
1)、主プロセッサ1が入力又は出力のいずれの命令を
実行したかを判断し、かつアドレスレジスタ6、データ
レノスタフを読み取り(ステップS2.S3)、もし入
力命令実行なら必要なエミュレーションを実行しくステ
ップS4)、その変換データを入力命令の読み取り結果
として割込み発生時にスタック上に退避された本来の入
力命令の読取りデータを書きかえる(ステップS5)。
Read status register 8 for the first time (step S
1) Determine whether the main processor 1 has executed an input or output instruction, read the address register 6 and data renostaph (steps S2 and S3), and if the input instruction is executed, execute the necessary emulation. In step S4), the converted data is used as the read result of the input instruction to rewrite the original read data of the input instruction that was saved on the stack when the interrupt occurred (step S5).

出力命令ならば単純にエミュレーションを実行する(ス
テップS6)。そしてI10命令の実行直後に動作プロ
グラムに戻る。
If it is an output command, emulation is simply executed (step S6). Immediately after executing the I10 instruction, the program returns to the operating program.

以上のシーケンスにより、再びプロセッサは、I10命
令の次のステ7ノから動作を開始する。
According to the above sequence, the processor starts operating again from step 7 following the I10 instruction.

〔発明の効果〕〔Effect of the invention〕

以上説明したようにこの発明は実行されるプログラム上
のI10命令がそのプログラムを動作させるハードウェ
アシステムに与えられているI10命令に一致しなくと
も、それをエミュレーションすることによって、動作プ
ログラムがあたかも同一システムで動作しているように
する効果がある。
As explained above, even if the I10 instruction on the program to be executed does not match the I10 instruction given to the hardware system that runs the program, by emulating the I10 instruction, the operating program will appear to be the same. It has the effect of making the system work.

しかもこれは、単一のプロセッサと最少の7・−ドウエ
アで容易に実現可能である。
Moreover, this can be easily realized with a single processor and a minimum of 7-dware.

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

第1図はこの発明の実施例を示すブロック図、第2図は
エミュレーションシーケンスの例を示す流れ図である。 特許出願人  日本電気株式会社 代 理 人   草  野     卓1\区1トー5
<区 = 箱か煽々却+製喫 士 2 図
FIG. 1 is a block diagram showing an embodiment of the invention, and FIG. 2 is a flow chart showing an example of an emulation sequence. Patent applicant: NEC Co., Ltd. Representative: Takashi Kusano 1\Ku 1 To 5
<Ku = box or fan + smoker 2 Figure

Claims (1)

【特許請求の範囲】[Claims] (1)主プロセッサの入出力命令の動作ステータス及び
前記入出力命令の実行情報を保持することができ、かつ
前記主プロセッサから読み取ることができるレジスター
と、 前記入出力命令実行時に主プロセッサ自身に割込みを発
生し、その時の前記主プロセッサの動作ステータス及び
その時の前記入出力命令の実行情報を前記レジスターに
格納する割込み制御器と、前記割込みにもとずき前記割
込みにより前記レジスターの内容を取込み、これらにつ
いてエミュレーションを実行するエミュレーション実行
手段とを具備する入出力エミュレーター。
(1) A register that can hold the operating status of the input/output command of the main processor and execution information of the input/output command, and that can be read from the main processor, and an interrupt to the main processor itself when the input/output command is executed. an interrupt controller that generates a current operating status of the main processor and stores execution information of the input/output command at that time in the register; and based on the interrupt, reads the contents of the register by the interrupt; An input/output emulator comprising emulation execution means for executing emulation of these.
JP61124216A 1986-05-28 1986-05-28 Input/output emulator Pending JPS62279431A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61124216A JPS62279431A (en) 1986-05-28 1986-05-28 Input/output emulator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61124216A JPS62279431A (en) 1986-05-28 1986-05-28 Input/output emulator

Publications (1)

Publication Number Publication Date
JPS62279431A true JPS62279431A (en) 1987-12-04

Family

ID=14879869

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61124216A Pending JPS62279431A (en) 1986-05-28 1986-05-28 Input/output emulator

Country Status (1)

Country Link
JP (1) JPS62279431A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07182073A (en) * 1993-09-10 1995-07-21 Compaq Computer Corp Emulation method of user input device existence in computer system, loss prevention method of device constitution on standby, controller circuit for emulation of device existence and controller circuit for capture of device constitution

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6136848A (en) * 1984-07-09 1986-02-21 ウオング・ラボラトリーズ・インコーポレーテツド Emulation for data processing system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6136848A (en) * 1984-07-09 1986-02-21 ウオング・ラボラトリーズ・インコーポレーテツド Emulation for data processing system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07182073A (en) * 1993-09-10 1995-07-21 Compaq Computer Corp Emulation method of user input device existence in computer system, loss prevention method of device constitution on standby, controller circuit for emulation of device existence and controller circuit for capture of device constitution

Similar Documents

Publication Publication Date Title
JPH04245543A (en) Method and device for executing subprogram calling and compiler device
JPH0523447B2 (en)
JPS62279431A (en) Input/output emulator
JPH0683615A (en) Computer for executing instruction set emulation
JPS6049352B2 (en) data processing equipment
JP2671160B2 (en) Exception handling method
JP2001255912A (en) Method for executing motion program
JP2601359B2 (en) Concurrent processing microprocessor
JP3027984B2 (en) Single chip microcomputer
JP3039450B2 (en) Stack area switching method and method, and storage medium storing stack area switching program
JP3424596B2 (en) Method and apparatus for caching symbol reference information
JPS6118224B2 (en)
JPS6330906A (en) Nc device
KR19990066429A (en) How to create a breakpoint in program memory
JPH09128247A (en) Program conversion adapter
JPS63120340A (en) Data processor
JPS60142428A (en) Emulation system
JPS6338729B2 (en)
JPS59105148A (en) Microprogram controlling type central processing unit
JPH05313954A (en) Multiprocessor and its information collecting method and memory operating method
JPS62130430A (en) I/o emulator
JPH0381827A (en) Reentrant program system
JPH0588934A (en) Debugging system
JP2000322289A (en) Method and system for controller emulation and computer readable recording medium for storing program for implementation of controller emulation method by computer
JPH077346B2 (en) Data flow computer debugging method