JPH02118729A - Information processor - Google Patents

Information processor

Info

Publication number
JPH02118729A
JPH02118729A JP63271011A JP27101188A JPH02118729A JP H02118729 A JPH02118729 A JP H02118729A JP 63271011 A JP63271011 A JP 63271011A JP 27101188 A JP27101188 A JP 27101188A JP H02118729 A JPH02118729 A JP H02118729A
Authority
JP
Japan
Prior art keywords
address
register
virtual register
holding
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
JP63271011A
Other languages
Japanese (ja)
Inventor
Koichi Nakamura
浩一 中村
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 JP63271011A priority Critical patent/JPH02118729A/en
Publication of JPH02118729A publication Critical patent/JPH02118729A/en
Pending legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To reduce the number of the dynamic steps of a micro program by holding instructions at the time of the access of a virtual register. CONSTITUTION:A processor part 3 outputs the address of the virtual register to an address signal line 6, and an address holding part 5 detects it to be an address output by an IO access instruction and holds the address. An interruption generation part 4 detects that the access instruction for the virtual register is performed, and generates interruption in the processor part 3. In an interruption routine, the address of the virtual register is read from the address holding part 5 and further the content of an instruction holding part 2 is read and which real register the program before interruption has used is informed, and the content of the virtual register is written into the real register. Thus, the number of the dynamic steps of the micro program operating in the interruption routine can be reduced.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明はメモリ上に設定された仮想レジスタを!Oアク
セス命令によりアクセスする情報処理装置に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention uses virtual registers set on memory! The present invention relates to an information processing device accessed by an O access command.

[従来の技術] 仮想レジスタとは、従来ハードウェアで構成されていた
レジスタをメモリ上に設定したものであり、仮想レジス
タを読出す場合、IOアクセス命令実行により割込みを
発生させ、割込みルーチン内で仮想レジスタのデータを
、格納先である実レジスタへ転送する。
[Prior Art] A virtual register is a register that was previously configured in hardware, but is set in memory. When reading a virtual register, an interrupt is generated by executing an IO access instruction, and the interrupt routine is executed. Transfers the data in the virtual register to the real register where it is stored.

従来技術では、ハードウェアによって格納されるIOア
クセス命令の次の番地すなわち割込みからのもどり番地
をもとに、マイクロプログラムがIOアクセス命令の番
地を算出し、該IO命令を命令メモリから読出し、仮想
レジスタから読出したデータを格納する実レジスタのア
ドレスを算出していた。
In the conventional technology, a microprogram calculates the address of the IO access instruction based on the next address of the IO access instruction stored by hardware, that is, the return address from the interrupt, reads the IO instruction from the instruction memory, and stores the virtual The address of the real register that stores the data read from the register was calculated.

[発明が解決しようとする課題] 上述した従来の仮想レジスタの読出し方式では、実レジ
スタのアドレスを算出する為に、割込みルーチンで動作
するマイクロプログラムのダイナミツクステップ数が増
えるという欠点がある。
[Problems to be Solved by the Invention] The conventional virtual register reading method described above has the disadvantage that the number of dynamic steps of the microprogram operating in the interrupt routine increases in order to calculate the address of the real register.

[課題を解決するための手段] 本発明による情報処理装置は、 メモリ上に設定された仮想レジスタを■0アクセス命令
によりアクセスする情報処理装置において、 IOアクセス命令を実行した直後、割込みを発生する割
込み発生手段と、 上記仮想レジスタのアドレスを保持するアドレス保持手
段と、 上記IOアクセス命令内の実レジスタ識別部を保持する
命令保持手段とを有している。
[Means for Solving the Problems] An information processing device according to the present invention is an information processing device that accesses a virtual register set on a memory using a 0 access instruction, and generates an interrupt immediately after executing an IO access instruction. It has an interrupt generating means, an address holding means for holding the address of the virtual register, and an instruction holding means for holding the real register identification part in the IO access instruction.

[実施例] 次に本発明について図面を参照して説明する。[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 information processing apparatus according to an embodiment of the present invention.

本実施例の情報処理装置は、命令及びデータ保持用のメ
モリ部1と、メモリ部1から読出される命令を保持する
命令保持部2と、命令を実行するプロセッサ部3と、プ
ロセッサ部3が仮想レジスタをアクセスしたことを検出
し割込みを発生する割込み発生部4と、プロセッサ部3
が出力する仮想レジスタアドレスを保持するアドレス保
持部5と、アドレス信号線6と、データバス7とで構成
されている。
The information processing apparatus of this embodiment includes a memory section 1 for holding instructions and data, an instruction holding section 2 for holding instructions read from the memory section 1, a processor section 3 for executing instructions, and a processor section 3 for executing instructions. An interrupt generation unit 4 that detects access to a virtual register and generates an interrupt, and a processor unit 3
It is composed of an address holding section 5 that holds virtual register addresses output by , an address signal line 6 , and a data bus 7 .

以下、第1図を参照して、本実施例の情報処理装置の動
作を説明する。
The operation of the information processing apparatus of this embodiment will be described below with reference to FIG.

プロセッサ部3は仮想レジスタの読出しを行う場合、デ
ータバス7の使用権をデータバス管理部(図示せず)に
要求する。
When reading the virtual register, the processor section 3 requests the right to use the data bus 7 from the data bus management section (not shown).

データバス管理部からの使用許可を受領すると、仮想レ
ジスタのアドレスをアドレス信号線6に出力する。アド
レス保持部5はIOアクセス命令によるアドレス出力で
あることを検出し、該アドレスを保持する。もちろん、
仮想レジスタアクセスの場合のみ該アドレスを保持する
ように構成しても良い。
Upon receiving permission for use from the data bus management section, it outputs the address of the virtual register to the address signal line 6. The address holding unit 5 detects that the address is output by an IO access command and holds the address. of course,
The address may be held only in the case of virtual register access.

さて、割込み発生部4は仮想レジスタへのアクセス命令
が実行されたことを検出し、プロセッサ部3に割込みを
発生する。
Now, the interrupt generating section 4 detects that the instruction to access the virtual register has been executed, and generates an interrupt to the processor section 3.

データバス管理部が、バスアクセスを終了させダミーデ
ータをプロセッサ部3に引き取らせると、IOアクセス
命令は終了し、割込みが受付けられる。
When the data bus management section ends the bus access and causes the processor section 3 to take over the dummy data, the IO access command ends and the interrupt is accepted.

割込み処理ルーチンでは、アドレス保持部5から仮想レ
ジスタのアドレスを読み込み、メモリ部1上のアドレス
に換算し、メモリ部1の内容すなわち仮想レジスタの内
容を取り出す。さらに、命令保持部2の内容を読み込み
、割込み前のプログラムがどの実レジスタを使用してい
たかを知り、仮想レジスタの内容を該実レジスタに書込
み、割込みルーチンを終了する。
In the interrupt processing routine, the address of the virtual register is read from the address holding section 5, converted to an address on the memory section 1, and the contents of the memory section 1, that is, the contents of the virtual register are taken out. Furthermore, the contents of the instruction holding unit 2 are read, it is known which real register was used by the program before the interrupt, the contents of the virtual register are written to the real register, and the interrupt routine is ended.

以上の結果、目的とする実レジスタに仮想レジスタの内
容が読み込める。
As a result of the above, the contents of the virtual register can be read into the target real register.

自明ではあるが、命令保持部2は、実レジスタアドレス
識別部のみを保持するだけで良い。
Although it is obvious, the instruction holding section 2 only needs to hold the real register address identification section.

[発明の効果] 以上説明したように本発明は、仮想レジスタアクセス時
の命令を保持することにより、マイクロプログラムのダ
イナミックステップ数を削減できるという効果がある。
[Effects of the Invention] As described above, the present invention has the effect of reducing the number of dynamic steps of a microprogram by retaining instructions during virtual register access.

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

第1図は本発明の一実施例による情報処理装置の構成を
示すブロック図である。 1・・・メモリ部、2・・・命令保持部、3・・・プロ
セッサ部、4・・・割込み発生部、5・・・アドレス保
持部、6・・・アドレス信号線、7・・・データバス。
FIG. 1 is a block diagram showing the configuration of an information processing apparatus according to an embodiment of the present invention. DESCRIPTION OF SYMBOLS 1... Memory part, 2... Instruction holding part, 3... Processor part, 4... Interrupt generation part, 5... Address holding part, 6... Address signal line, 7... data bus.

Claims (1)

【特許請求の範囲】 1、メモリ上に設定された仮想レジスタをIOアクセス
命令によりアクセスする情報処理装置において、 上記IOアクセス命令を実行した直後、割込みを発生す
る割込み発生手段と、 上記仮想レジスタのアドレスを保持するアドレス保持手
段と、 上記IOアクセス命令内の実レジスタ識別部を保持する
命令保持手段と を含むことを特徴とする情報処理装置。
[Scope of Claims] 1. In an information processing device that accesses a virtual register set on a memory using an IO access instruction, an interrupt generating means that generates an interrupt immediately after executing the IO access instruction; An information processing device comprising: address holding means for holding an address; and instruction holding means for holding a real register identification part in the IO access instruction.
JP63271011A 1988-10-28 1988-10-28 Information processor Pending JPH02118729A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63271011A JPH02118729A (en) 1988-10-28 1988-10-28 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63271011A JPH02118729A (en) 1988-10-28 1988-10-28 Information processor

Publications (1)

Publication Number Publication Date
JPH02118729A true JPH02118729A (en) 1990-05-07

Family

ID=17494168

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63271011A Pending JPH02118729A (en) 1988-10-28 1988-10-28 Information processor

Country Status (1)

Country Link
JP (1) JPH02118729A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024185295A1 (en) * 2023-03-09 2024-09-12 ソニーグループ株式会社 Processor and computer system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024185295A1 (en) * 2023-03-09 2024-09-12 ソニーグループ株式会社 Processor and computer system

Similar Documents

Publication Publication Date Title
KR960011613A (en) Data processing device
JPH02118729A (en) Information processor
JPS601655B2 (en) Data prefetch method
JPS61217834A (en) Data processor
JP2780895B2 (en) Data processing device
JPH0795288B2 (en) Microcomputer
JPH04181454A (en) Data access controller
JPH01240941A (en) Information processor
JPS62221751A (en) Paging system
JP3171289B2 (en) Information processing device
JPS61240333A (en) Input and output interruption processing system
JPH02120937A (en) Information processor
JPH0340075A (en) Microcomputer
JPH0364903B2 (en)
JPS62219032A (en) Initial diagnostic system
JPH048825B2 (en)
JPS54105443A (en) Stacker for controlling order of program execution
JPH024011B2 (en)
JPS6349942A (en) Arithmetic processing unit
JPS59114622A (en) Initial microprogram loading system
JPH01193943A (en) Micro computer
JPH03259491A (en) Memory controller
JPS6282439A (en) False trouble generating system
JPS6234238A (en) Microprocessor
JPS61188630A (en) Argument checking system