Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0650481B2 - Data processing device - Google Patents
[go: Go Back, main page]

JPH0650481B2 - Data processing device - Google Patents

Data processing device

Info

Publication number
JPH0650481B2
JPH0650481B2 JP1280129A JP28012989A JPH0650481B2 JP H0650481 B2 JPH0650481 B2 JP H0650481B2 JP 1280129 A JP1280129 A JP 1280129A JP 28012989 A JP28012989 A JP 28012989A JP H0650481 B2 JPH0650481 B2 JP H0650481B2
Authority
JP
Japan
Prior art keywords
register
sto
address
base
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.)
Expired - Fee Related
Application number
JP1280129A
Other languages
Japanese (ja)
Other versions
JPH03141444A (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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP1280129A priority Critical patent/JPH0650481B2/en
Publication of JPH03141444A publication Critical patent/JPH03141444A/en
Publication of JPH0650481B2 publication Critical patent/JPH0650481B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、LAM(Load Access Multiple)命令におい
て、ベースフィールドで指定された空間レジスタの番号
と変更すべき空間レジスタ群の1つが同一番号となる場
合の命令処理時間を短縮したデータ処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial field of use] According to the present invention, in a LAM (Load Access Multiple) instruction, the number of the spatial register specified in the base field and one of the spatial register groups to be changed are the same number. In this case, the present invention relates to a data processing device that shortens the instruction processing time.

〔従来技術〕[Prior art]

命令のベースフィールドによって指定された空間レジス
タ(AR)の内容が空間アドレス変換機構によって、実
アドレス変換を行うための基点アドレス(セグメントテ
ーブルオリジン:STO)に変更される多重仮想空間ア
ドレス方式のデータ処理方式が知られている(例えば、
特願昭63-244398)。
Data processing by the multiple virtual space address method in which the contents of the space register (AR) specified by the base field of the instruction are changed to the base address (segment table origin: STO) for performing the real address conversion by the space address conversion mechanism. Schemes are known (for example,
Japanese Patent Application 63-244398).

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

上記したようなデータ処理方式において、複数連続した
ARを変更するLAM命令が実行されると、変更される
ARと共にそれに対応するSTOを保持している基点ア
ドレスレジスタ(STOレジスタ)も書換えられる。
In the data processing method as described above, when a LAM instruction for changing a plurality of consecutive ARs is executed, the base address register (STO register) holding the STO corresponding to the changed AR is also rewritten.

そのとき、例えば、変更されるARの番号の一つとベー
スフィールドが指定したARRの番号が同じ番号であっ
た場合、以下のような問題が起こる。
At this time, for example, if one of the changed AR numbers and the ARR number designated by the base field are the same number, the following problem occurs.

すなわち、書き換えるためのオペランドデータの読出し
は、ベースフィールドで指定されたARの空間に対応す
るSTOレジスタ中のSTOによって、使用するセグメ
ントテーブルが指定され、該テーブルを用いて実アドレ
スに変換されたアドレスを用いることにより行なわれる
が、該命令によって、ARすなわちSTOレジスタを書
換えてしまうために、命令の途中でベースフィールドと
同じ番号のSTOレジスタの内容が書換えられてしまう
という問題がある。
That is, in reading the operand data for rewriting, the segment table to be used is designated by the STO in the STO register corresponding to the space of the AR designated by the base field, and the address converted into the real address using the table is designated. However, there is a problem that the contents of the STO register having the same number as the base field are rewritten in the middle of the instruction because the AR, that is, the STO register is rewritten by the instruction.

以下、このような場合をベース変更のケースと呼ぶこと
にする。
Hereinafter, such a case will be referred to as a base change case.

従って、このようなベース変更ケース時に、命令の途中
でSTOレジスタを書換えないようにするために、ベー
スフィールドと同一番号のSTOレジスタについては、
一連の変更すべきSTOレジスタの最後に書込みをしな
ければならない。
Therefore, in such a base change case, in order not to rewrite the STO register in the middle of the instruction, regarding the STO register having the same number as the base field,
The end of a series of STO registers to be modified must be written.

そして、そのために、ARを書換えるための主記憶から
のデータ読み出しと、最後にベースフィールドと同一番
号のSTOレジスタを書換えるためもう一度、同一番号
のARに書込むデータを主記憶より読み出しSTOを求
めなければならず、同一データに対して2度の主記憶ア
クセスが必要となり、命令処理に時間を要するという問
題があった。
Therefore, for that purpose, data is read from the main memory for rewriting the AR, and finally, data for writing to the AR having the same number is read again from the main memory to rewrite the STO register having the same number as the base field. Since it is necessary to obtain the data, the main data needs to be accessed twice for the same data, and there is a problem that it takes time to process the instruction.

本発明は、前記問題点を解決するためになされたもので
ある。
The present invention has been made to solve the above problems.

本発明の目的は、ベース変更ケースのLAM命令におけ
る命令処理時間を短縮したデータ処理装置を提供するこ
とにある。
It is an object of the present invention to provide a data processing device that shortens the instruction processing time for the LAM instruction in the base change case.

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

前記目的を達成するために、空間レジスタの内容を変更
する命令が実行されたとき、該命令のベースフィールド
で指定される空間レジスタが、前記内容が変更される空
間レジスタと同一であることを検出する手段と、該検出
手段の出力によって、該ベースフィールドで指定された
空間レジスタに対応する基点アドレスレジスタに書き込
む基点アドレスを一時的に退避する退避手段とを設け
た。
To achieve the above object, when an instruction that changes the contents of a spatial register is executed, it is detected that the spatial register specified by the base field of the instruction is the same as the spatial register whose contents are changed. And a saving means for temporarily saving the base point address to be written in the base point address register corresponding to the space register designated by the base field by the output of the detecting means.

〔作 用〕[Work]

前述した手段によれば、LAM命令のベース変更時は、
ベースフィールドと同番号の空間レジスタに対応するS
TOレジスタは、変更すべき連続した空間レジスタに対
応するSTOレジスタ群の最後に書き込みを行うように
する。
According to the means described above, when the base of the LAM instruction is changed,
S corresponding to the space register with the same number as the base field
The TO register is adapted to write at the end of the STO register group corresponding to the continuous space register to be changed.

そのために、連続した空間レジスタ群の中にベースフィ
ールドで指定された番号と同一番号の空間レジスタが存
在するか否かを検出するようにし、ベース変更のケース
を検出した場合は、STOレジスタに書込むSTOを一
時的に退避しておき、変更すべき一連のSTOレジスタ
群の最後に該退避したSTOを読み出し、STOレジス
タに書込むようにする。
Therefore, it is detected whether or not there is a spatial register with the same number as the number specified in the base field in the consecutive spatial register groups, and when a case of base change is detected, it is written in the STO register. The STO to be stored is temporarily saved, and the saved STO is read out at the end of the series of STO register groups to be changed and written to the STO register.

〔実施例〕〔Example〕

以下、本発明の一実施例を図面を用いて具体的に説明す
る。
An embodiment of the present invention will be specifically described below with reference to the drawings.

第1図は、本発明の実施例であるシステム構成図であっ
て、1は命令レジスタ、2は汎用レジスタ群(GP
R)、3は空間レジスタ群(AR)、4は基点アドレス
(セグメントテーブルオリジン:STO)を保持してい
る基点アドレスレジスタ群(STOレジスタ)、5はベ
ース変更検出回路、6はALB参照アドレス生成回路、
7は空間レジスタ索引バッファ(ARTranslation Look
aside Buffer:ALB)、8はアドレス計算器、9、10
は制御レジスタ(CR)、11は実アドレス変換機構、12
空間アドレス変換機構、13はALBヒット検出回路、16
はSTO退避レジスタである。
FIG. 1 is a system configuration diagram showing an embodiment of the present invention, in which 1 is an instruction register and 2 is a general-purpose register group (GP).
R), 3 is a space register group (AR), 4 is a base address register group (STO register) that holds a base address (segment table origin: STO), 5 is a base change detection circuit, and 6 is an ALB reference address generation. circuit,
7 is a space register index buffer (ARTranslation Look
aside Buffer: ALB), 8 is an address calculator, 9 and 10
Is a control register (CR), 11 is a real address translation mechanism, 12
Space address translation mechanism, 13 is ALB hit detection circuit, 16
Is an STO save register.

LAM命令を実行するとき、該LAM命令で指定された
1、R2及びBフィールドの番号をライン19〜21を介し
てベース変更検出回路5に取り込み、R1、R2フィール
ドで指定された変更すべきAR群の中にBフィールドの
番号と同一の番号のARがあるか否かを検出する。
When the LAM instruction is executed, the numbers of the R 1 , R 2 and B fields designated by the LAM instruction are fetched into the base change detection circuit 5 through the lines 19 to 21 and designated by the R 1 and R 2 fields. It is detected whether or not there is an AR having the same number as the B field number in the AR group to be changed.

一方、変更すべきAR群の内容が記憶された主記憶装置
18をアクセスするためのオペランドアドレスが実アドレ
ス変換機構11によって生成される。すなわち、該命令の
Bフィールドによって指定される汎用レジスタ2の内容
とDフィールドとをアドレス計算器8に入力することに
よりアドレス計算し、仮想アドレスを生成する。
On the other hand, a main storage device in which the contents of the AR group to be changed are stored
An operand address for accessing 18 is generated by the real address translation mechanism 11. That is, the contents of the general-purpose register 2 designated by the B field of the instruction and the D field are input to the address calculator 8 to calculate the address and generate a virtual address.

そして、該仮想アドレスを実アドレスに変換するため
に、通常はBフィールドと同一番号のSTOレジスタ4
から基点アドレス(STO)を読み出し、ライン29を介
して実アドレス変換機構11に入力することにより、該仮
想アドレスが実アドレスに変換されるが、読み出すST
Oレジスタ4のVビットが‘1’の時は、該STOレジ
スタ4は有効であり、該STOレジスタ4からSTOを
読み出し、前述したように実アドレスに変換され、主記
憶装置18よりオペランドデータが読み出される。読み出
されたオペランドデータは、命令のR1フィールドの番
号から始まって、R2フィールドの番号で終る対応した
AR3に書き込まれる。
Then, in order to convert the virtual address into a real address, the STO register 4 usually having the same number as the B field is used.
The virtual address is translated into a real address by reading the base address (STO) from the input address and inputting it to the real address translation mechanism 11 via the line 29.
When the V bit of the O register 4 is "1", the STO register 4 is valid, the STO is read from the STO register 4, converted into the real address as described above, and the operand data is read from the main memory device 18. Read out. The read operand data is written into the corresponding AR3 starting from the R 1 field number of the instruction and ending with the R 2 field number.

これに対して、読み出そうとしたSTOレジスタ4のV
ビットが‘0’で無効であった場合は、該LAM命令実
行以前に登録されていたBフィールドと同一番号のAR
3をライン34を介して読み出し、制御レジスタ9または
10とともにALB参照アドレス生成回路6に入力するこ
とにより、ALB参照アドレスを生成する。そして、該
アドレスによってALB7を参照し、ALBヒット検出
回路13に出力されたALBにSTOを含むデータが登録
されていれば、ALB読み出しレジスタ14からSTOを
読み出し、ライン28を介して実アドレス変換機構11に入
力する。
On the other hand, the V of the STO register 4 which is about to be read
If the bit is "0" and invalid, the AR having the same number as the B field registered before the execution of the LAM instruction
3 is read out via the line 34 and the control register 9 or
The ALB reference address is generated by inputting it together with 10 into the ALB reference address generation circuit 6. Then, the ALB 7 is referred to by the address, and if the data including the STO is registered in the ALB output to the ALB hit detection circuit 13, the STO is read from the ALB read register 14 and the real address conversion mechanism is executed via the line 28. Enter in 11.

また、ALB7を参照したときに、ALBヒット検出回
路13によりALBにSTOが登録されていないことが検
出された場合は、Bフィールドと同一番号のARをライ
ン33を介して読み出し、ライン35を介した制御レジスタ
9または10とともに空間アドレス変換機構12に入力する
ことによりSTOを生成し、該STOがライン30を介し
て実アドレス変換機構11に入力される。
Further, when the ALB hit detection circuit 13 detects that the STO is not registered in the ALB when referring to the ALB 7, the AR having the same number as the B field is read out via the line 33, and the AR is read via the line 35. The STO is generated by inputting it to the space address translation mechanism 12 together with the control register 9 or 10 described above, and the STO is input to the real address translation mechanism 11 via the line 30.

以上のようにして、ARが書き換えられるが、前述した
ようにLAM命令は該ARに対応するSTOレジスタも
書き換えなければならない。
Although the AR is rewritten as described above, the LAM instruction must also rewrite the STO register corresponding to the AR as described above.

以下に、LAM命令によるSTOレジスタの登録方法を
説明する。
The method of registering the STO register by the LAM instruction will be described below.

Bフィールドはm番を指定し、R1、R2フィールドはそ
れぞれn番、15番を指定していたとする。前述したよ
うに、LAM命令でAR群3のARnからAR15まで書
換えられた場合、書換えられたそれぞれのARのデータ
と制御レジスタ9または10により、ALB参照アドレス
生成回路6を用いてALB参照アドレスを生成する。生
成されたALB参照アドレスによりALB7を参照し、
ALBヒット検出回路13においてALB7にSTOを含
むデータが登録されているか否かを検出する。ALB7
に登録されていれば、ALB読み出しレジスタ14、ST
O書き込みレジスタ15にSTOを読み出し、読み出され
たSTOは、セレクタ回路17、ライン38を介してn番か
ら15番までのSTOレジスタに書き込まれる。
It is assumed that the B field specifies the mth, and the R 1 and R 2 fields specify the nth and the 15th, respectively. As described above, when the ARn to AR 15 of the AR group 3 are rewritten by the LAM instruction, the ALB reference address generation circuit 6 is used by the ARB reference address generation circuit 6 by the data of each rewritten AR and the control register 9 or 10. To generate. ALB7 is referred by the generated ALB reference address,
The ALB hit detection circuit 13 detects whether or not data including STO is registered in ALB7. ALB7
Registered in the ALB read register 14, ST
The STO is read into the O write register 15, and the read STO is written into the STO registers from the nth to the 15th through the selector circuit 17 and the line 38.

しかし、ベース変更検出回路5によってベース変更が検
出されると、Bフィールドと同じ番号のARmより読み
出されたSTOはSTO退避レジスタ16に退避され、同
時にセレクタ回路17によりm番のSTOレジスタへの書
き込みを抑止する。
However, when the base change detection circuit 5 detects the base change, the STO read from the ARm having the same number as the B field is saved in the STO save register 16, and at the same time, the selector circuit 17 saves the STO register in the m-th STO register. Suppress writing.

そして、m番のSTOレジスタを除く他の指定されたS
TOレジスタへのSTOの登録が終了すると、ベース変
更検出回路5によってライン36を介してセレクタ回路17
が制御され、STO退避レジスタ16に退避されていたS
TOが読み出され、m番のSTOレジスタに登録される
ことによって、LAM命令が処理完了する。
Then, the designated S other than the m-th STO register
When the registration of the STO in the TO register is completed, the base change detection circuit 5 causes the selector circuit 17 via the line 36.
Is controlled and saved in the STO save register 16
The TO is read and registered in the mth STO register, whereby the processing of the LAM instruction is completed.

なお、ALB7を参照したとき、ALB7にSTOを含
むデータが登録されていない場合は、ALBヒット検出
回路13はライン37を介してSTOレジスタ群中の該当す
るSTOレジスタのVビットに‘0’を書き込み該ST
Oレジスタを無効とする。無効となったSTOレジスタ
は、後続の命令のベースフィールドで使用されたとき、
空間アドレス変換を行い再登録するようにする。
When referring to the ALB7, if the data including the STO is not registered in the ALB7, the ALB hit detection circuit 13 sets “0” to the V bit of the corresponding STO register in the STO register group via the line 37. Write the ST
Disable the O register. When an invalid STO register is used in the base field of a subsequent instruction,
Perform spatial address conversion and re-register.

また、ベース変更の場合は、直接STOレジスタ群の中
のVビットを変更せずに、STO退避レジスタ16に付加
されたVビットを“0”とし、STO退避レジスタ16を
使用する際に、Vビット‘0’をSTOレジスタに書き
込むようにする。
Further, in the case of changing the base, the V bit added to the STO save register 16 is set to "0" without directly changing the V bit in the STO register group, and when the STO save register 16 is used, V Write bit '0' to the STO register.

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

以上、説明したように、本発明によれば、LAM命令の
ベースフィールドで指定された番号と変更すべき空間レ
ジスタ群の1つが同一番号となっても、オペランドアド
レス計算時に空間アドレスを誤ることがなく、またLA
M命令の処理時間を短縮することができる。
As described above, according to the present invention, even if the number designated in the base field of the LAM instruction and one of the spatial register groups to be changed have the same number, the spatial address can be erroneously calculated when the operand address is calculated. Not again, LA
The processing time of the M instruction can be shortened.

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

第1図は、本発明の実施例であるシステム構成図であ
る。 図中、1……命令レジスタ、2……汎用レジスタ群、3
……空間レジスタ群、4……基点アドレスレジスタ群、
5……ベース変更検出回路、6……ALB参照アドレス
生成回路、7……空間レジスタ索引バッファ、8……ア
ドレス計算器、9、10……制御レジスタ、11……実アド
レス変換機構、12……空間アドレス変換機構、13……A
LBヒット検出回路、16……STO退避レジスタ
FIG. 1 is a system configuration diagram which is an embodiment of the present invention. In the figure, 1 ... Instruction register, 2 ... General-purpose register group, 3
...... Space register group, 4 …… Base point address register group,
5 ... Base change detection circuit, 6 ... ALB reference address generation circuit, 7 ... Spatial register index buffer, 8 ... Address calculator, 9, 10 ... Control register, 11 ... Real address translation mechanism, 12 ... … Spatial address translation mechanism, 13 …… A
LB hit detection circuit, 16 ... STO save register

フロントページの続き (72)発明者 林田 克己 神奈川県秦野市堀山下1番地 日立コンピ ュータエンジニアリング株式会社内 (72)発明者 吉田 亨 神奈川県秦野市堀山下1番地 株式会社日 立製作所神奈川工場内 (72)発明者 涌井 富士雄 神奈川県秦野市堀山下1番地 日立コンピ ュータエンジニアリング株式会社内Front page continuation (72) Inventor Katsumi Hayashida 1 Horiyamashita, Hadano-shi, Kanagawa Hitachi Computer Engineering Co., Ltd. (72) Inventor Fujio Wakui 1 Horiyamashita, Hadano City, Kanagawa Prefecture Hitachi Computer Engineering Co., Ltd.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】命令のベースフィールドによって指定され
た空間レジスタの内容を、実アドレス変換を行うための
基点アドレスに変換する空間アドレス変換機構と、該空
間レジスタに対応して設けられた前記基点アドレスを保
持する基点アドレスレジスタとを有する多重仮想空間ア
ドレス方式のデータ処理装置において、空間レジスタの
内容を変更する命令が実行されたとき、該命令のベース
フィールドで指定される空間レジスタが、前記内容が変
更される空間レジスタと同一であることを検出する手段
と、該検出手段の出力によって、該ベースフィールドで
指定された空間レジスタに対応する基点アドレスレジス
タに書き込む基点アドレスを一時的に退避する退避手段
とを設けたことを特徴とするデータ処理装置。
1. A space address conversion mechanism for converting the contents of a space register specified by a base field of an instruction into a base address for performing real address conversion, and the base address provided corresponding to the space register. In a data processing device of a multiple virtual space address system having a base point address register for holding, when a command for changing the contents of the space register is executed, the space register specified by the base field of the command is A means for detecting that it is the same as the space register to be changed, and a saving means for temporarily saving the base address to be written in the base address register corresponding to the space register designated by the base field by the output of the detecting means. And a data processing device provided with.
JP1280129A 1989-10-27 1989-10-27 Data processing device Expired - Fee Related JPH0650481B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1280129A JPH0650481B2 (en) 1989-10-27 1989-10-27 Data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1280129A JPH0650481B2 (en) 1989-10-27 1989-10-27 Data processing device

Publications (2)

Publication Number Publication Date
JPH03141444A JPH03141444A (en) 1991-06-17
JPH0650481B2 true JPH0650481B2 (en) 1994-06-29

Family

ID=17620738

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1280129A Expired - Fee Related JPH0650481B2 (en) 1989-10-27 1989-10-27 Data processing device

Country Status (1)

Country Link
JP (1) JPH0650481B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2752543B2 (en) * 1991-11-25 1998-05-18 富士通株式会社 Virtual memory address space access control method
JP2752544B2 (en) * 1991-11-25 1998-05-18 富士通株式会社 Virtual memory address space access control method
JP2790556B2 (en) * 1991-11-25 1998-08-27 富士通株式会社 Data processing device

Also Published As

Publication number Publication date
JPH03141444A (en) 1991-06-17

Similar Documents

Publication Publication Date Title
JP2825550B2 (en) Multiple virtual space address control method and computer system
US4495575A (en) Information processing apparatus for virtual storage control system
JPH0628262A (en) Look-aside buffer and method for high-speed translation of virtual address for physical address
JPS6376034A (en) Multiple address space control method
US5226132A (en) Multiple virtual addressing using/comparing translation pairs of addresses comprising a space address and an origin address (sto) while using space registers as storage devices for a data processing system
US4280177A (en) Implicit address structure and method for accessing an associative memory device
JPH0650481B2 (en) Data processing device
JP3242161B2 (en) Data processor
US5737753A (en) Least recently used block replacement for four block cache logic system
JPH0548497B2 (en)
JPH0774994B2 (en) OSC detection method for buffer storage controller
JPH0552539B2 (en)
JP2540959B2 (en) Information processing device
JP2621763B2 (en) Information processing device
JPH0211931B2 (en)
JPH0336648A (en) Electronic computer, TLB device and microprocessor chip
JPH0439099B2 (en)
JPS589452B2 (en) Firmware broom
JP2635310B2 (en) Address translation device
JP3047992B2 (en) Main memory key control method
JP2864548B2 (en) Instruction cache device
JPH0391835A (en) Information processor
JPS626350A (en) TLB control device
JPH0812637B2 (en) Address translation method
JPH02226447A (en) Computer system and memory access therefor

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees