JPH0467243A - Data processor - Google Patents

Data processor

Info

Publication number
JPH0467243A
JPH0467243A JP2178763A JP17876390A JPH0467243A JP H0467243 A JPH0467243 A JP H0467243A JP 2178763 A JP2178763 A JP 2178763A JP 17876390 A JP17876390 A JP 17876390A JP H0467243 A JPH0467243 A JP H0467243A
Authority
JP
Japan
Prior art keywords
address
physical
bit
lma
logical
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
JP2178763A
Other languages
Japanese (ja)
Inventor
Masaki Hashizume
橋詰 雅樹
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2178763A priority Critical patent/JPH0467243A/en
Publication of JPH0467243A publication Critical patent/JPH0467243A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To obtain a high-speed data processor by providing an illicit address bit on an address conversion buffer. CONSTITUTION:A logical address LMA generated by an address generating part 3 serves as an entry address of an address conversion buffer 4. A tag part 8 read out by the entry address is compared with the address LMA by a comparison part 10. When the coincidence is secured in the comparison, a coincidence signal HIT becomes significant. Then the output of a real address part 9 of the entry address is outputted as it is to a main storage 2 as a physical address PMA. Meanwhile the reference is applied to an address conversion table if no coincidence is obtained between the contents of the part 8 and the address LMA. When the converted physical address is larger than the capacity of the storage 2, an illicit address bit 11 is set. Thus the address limit error processing is started by a control part 5 when the bit 11 is set, that is, a limit address is detected.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、データ処理装置のメモリアクセスにおける
アドレス限界の検出の高速化に間するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention is directed to speeding up detection of address limits in memory access of a data processing device.

(従来の技術) 第3図は従来のデータ処理装置のブロック図であり、(
1)は基本処理装置、(2)は主記憶装置、(3)はア
ドレス生成部、(4)はアドレス変換バッファ、(5)
は制御部、(6)はアドレス比較器である。
(Prior Art) FIG. 3 is a block diagram of a conventional data processing device.
1) is the basic processing unit, (2) is the main memory, (3) is the address generator, (4) is the address translation buffer, (5)
is a control unit, and (6) is an address comparator.

次に動作について説明する。基本処理装置(1)が必要
とする命令語やデータは主記憶装置(2)が保持してお
り、基本処理装置(1)は主記憶装置(2)が保持する
命令語やデータが必要になると、アドレス生成部(3)
により該命令語やデータのアドレスを生成する。アドレ
ス生成部(3)で生成される該アドレスは論理アドレス
であるため、アドレス変換バッファ(4)により物理ア
ドレスに変換する。該物理アドレスは主記憶装置(2)
へ送られ参照すべきメモリのアドレスとなる。この時、
該物理アドレスは主記憶装置(2)自身が持つメモリア
レイのアドレスの最大値MAXと比較部(6)により比
較される。比較の結果MAXが上記物理アドレスより大
きければ、メモリアクセスは正常終了する。一方、上記
比較の結果、前記物理アドレスが大きければ、アドレス
オーバ検出信号不正アドレスビット部を有意にして有り
得ない物理アドレスをアドレス変換バッファ(4)か圧
力したことを制御部(5)に伝える。制御部(5)はア
ドレスオーバ検出信号不正アドレスビット部か有意にな
ると、通切なエラー処理を行う。
Next, the operation will be explained. The main memory (2) holds the instructions and data that the basic processing unit (1) needs, and the basic processing unit (1) needs the instructions and data that the main memory (2) holds. Then, address generation part (3)
The address of the instruction word or data is generated. Since the address generated by the address generator (3) is a logical address, it is converted into a physical address by the address translation buffer (4). The physical address is the main memory (2)
This is the memory address to be sent to and referenced. At this time,
The physical address is compared with the maximum address value MAX of the memory array of the main storage device (2) itself by the comparison unit (6). As a result of the comparison, if MAX is larger than the physical address, the memory access ends normally. On the other hand, as a result of the above comparison, if the physical address is large, the invalid address bit part of the address over detection signal is made significant to inform the control unit (5) that an impossible physical address has been pressed into the address translation buffer (4). When the invalid address bit part of the address over detection signal becomes significant, the control unit (5) performs thorough error processing.

また、第4図は上記従来のデータ処理装置の構成例の中
のアドレス変換バッファ(4)のより詳細なブロック図
である。図において、(7)は論理アドレスの全ビット
あるいは一部のビットを適当なハツシング関数によりラ
ンダマイズするパッシング部、(8)はアドレス変換の
対象となる論理アドレスを保持するタグ部、(9)はア
ドレス変換後の物理アドレスを保持するリアルアドレス
部、(10)は論理アドレスLMAとタグ部(8)の内
容を比較する比較器であり、上記タグ部(8)とリアル
アドレス部(9)はメモリアレイにより構成され、ハツ
シング部(7)の出力が該メモリアレイのエントリアド
レスとなる。
Further, FIG. 4 is a more detailed block diagram of the address translation buffer (4) in the configuration example of the conventional data processing device. In the figure, (7) is a passing section that randomizes all or some bits of a logical address using an appropriate hashing function, (8) is a tag section that holds a logical address that is the target of address translation, and (9) is a The real address section (10) that holds the physical address after address conversion is a comparator that compares the logical address LMA with the contents of the tag section (8).The tag section (8) and the real address section (9) are It is composed of a memory array, and the output of the hashing section (7) becomes the entry address of the memory array.

上記アドレス変換バッファ(4)はデータ処理装置で使
用するアドレス変換テーブルの一部の写しをタグとリア
ルアドレスの組合せとして保持するようになされ、アド
レス生成部(3)より論理アドレスLMAが与えられる
とハツシング部(7)かタグ部(8)及びリアルアドレ
ス部(9)のエントリアドレスを指定する。該エントリ
アドレスのタグ部(8)の内容が上記論理アドレスLM
Aと比較され、致すれば、一致信号1(ITが有意にな
り、該エントリアドレスのリアルアドレス部(9)の圧
力がそのまま物理アドレスPMAとして出力される。
The address translation buffer (4) is configured to hold a copy of a part of the address translation table used in the data processing device as a combination of a tag and a real address, and when given a logical address LMA from the address generation unit (3), Specify the entry address of the hashing section (7), tag section (8), and real address section (9). The content of the tag part (8) of the entry address is the logical address LM.
If they match, the match signal 1 (IT) becomes significant, and the pressure in the real address part (9) of the entry address is output as is as the physical address PMA.

方、論理アドレスLMAとタグ部(8)の内容が一致し
ない時は、リアルアドレス部(9)の内容は使用せず、
新たにアドレス変換テーブルを参照しタグ部(8)及び
リアルアドレス部(9)の内容を更新してから、再び上
記アドレス変換処理を行う。
On the other hand, when the logical address LMA and the contents of the tag part (8) do not match, the contents of the real address part (9) are not used.
After referring to the address conversion table anew and updating the contents of the tag section (8) and real address section (9), the above address conversion process is performed again.

(発明が解決しようとする課題) 従来のデータ処理装置は以上のように構成されているの
で、アドレス変換バッファ(4)によるアドレス変換が
完了してからでなければ、アドレス限界の検出ができず
、結果としてアドレス限界の検出が遅れ、最終的にデー
タ処理装置全体の性能向上を妨げる要因となっていた。
(Problem to be Solved by the Invention) Since the conventional data processing device is configured as described above, the address limit cannot be detected until after the address translation by the address translation buffer (4) is completed. As a result, the detection of the address limit is delayed, which ultimately becomes a factor that hinders the performance improvement of the data processing device as a whole.

また、特開昭59−87566号公報には、アドレス変
換バッファの各エレメントにメモリ領域がアクセス検出
対象領域を含むか否かを識別する情報を付してプログラ
ム事象を記録する処理が、特開昭63−247852号
公報には、各種フラグをアドレス変換バッファに持ち、
エラー検出の効率化を図ることがそれぞれ記載されてい
るが、アドレスリミットのチエツク及び検出に関するフ
ラグには言及していない。さらに、特開平1−1978
44号公報には、アドレスリミットを変更したことを示
すフラグをアドレス変換バッファに持ち、アドレス変換
バッファ参照時に該フラグが立っていれば、改めてアド
レスリミットをチエツクすることが記載されているが、
アドレスリミットのチエツク結果をフラグとしてアドレ
ス変換バッファに持つようにすることについては何等記
載されていない。
Furthermore, Japanese Patent Laid-Open No. 59-87566 discloses a process of recording a program event by attaching information to each element of an address translation buffer to identify whether or not the memory area includes an access detection target area. Publication No. 63-247852 has various flags in the address translation buffer,
Although each document describes how to improve the efficiency of error detection, it does not mention flags related to address limit checking and detection. Furthermore, JP-A-1-1978
Publication No. 44 states that the address translation buffer has a flag indicating that the address limit has been changed, and if the flag is set when referring to the address translation buffer, the address limit is checked again.
There is nothing written about holding the address limit check result as a flag in the address translation buffer.

この発明は上記のような点に鑑みてなされたもので、ア
ドレス限界のチエツク結果をフラグとしてアドレス変換
バッファに持ち、アドレス変換バッファによるアドレス
変換処理と同時にアドレス限界を検出でき、データ処理
装置を得ることを目的とする。
This invention has been made in view of the above points, and provides a data processing device in which the address limit check result is stored in the address conversion buffer as a flag, and the address limit can be detected at the same time as the address conversion process by the address conversion buffer. The purpose is to

〔課題を解決するための手段) この発明に係るデータ処理装置は、アドレス変換テーブ
ルの一部の内容の写しを保持しアドレス生成部より生成
される論理アドレスを物理アドレスに変換するアドレス
変換バッファを備えて、上記物理アドレスを主記憶装置
に送り参照すべきメモリのアドレスとするデータ処理装
置において、上記アドレス変換バッファ内に、論理アド
レス情報と該論理アドレス情報に対応する物理アドレス
情報と該物理アドレスが主記憶装置の容量より大きいか
否かを示す不正アドレス情報を保持する手段を設けると
共に、上記不正アドレス情報により不正アドレス処理を
起動する制御部を備えたものである。
[Means for Solving the Problems] A data processing device according to the present invention includes an address translation buffer that holds a copy of a part of the contents of an address translation table and converts a logical address generated by an address generation unit into a physical address. In the data processing device that sends the physical address to the main storage device as the address of the memory to be referenced, the logical address information, the physical address information corresponding to the logical address information, and the physical address are stored in the address translation buffer. The apparatus is provided with means for holding illegal address information indicating whether or not the address is larger than the capacity of the main storage device, and also includes a control section that starts illegal address processing based on the illegal address information.

(作用) この発明においては、アドレス変換バッファ内の不正ア
ドレス情報保持部に、アドレス変換バッファ更新時に登
録物理アドレスが主記憶装置の容量より大きい時にその
情報が該登録物理アドレスと共に登録され、該登録され
た物理アドレスが使用される時に同時に読み出され、ア
ドレス限界エラー処理を起動する。
(Operation) In this invention, when the registered physical address is larger than the capacity of the main storage device when updating the address translation buffer, that information is registered in the invalid address information holding section in the address translation buffer together with the registered physical address, and The specified physical address is read simultaneously when it is used, triggering address limit error handling.

(実施例) 以下、この発明の一実施例を図について説明する。(Example) An embodiment of the present invention will be described below with reference to the drawings.

第3図及び第4図と同一部分は同一符号を付して示す′
tS1図と第2図において、(1)〜(5)(7)〜(
10)は従来と同様であり、(11)はタグ部(8)及
びリアルアドレス部(9)と共にアドレス変換バッファ
(4)内に設けられて、物理アドレスが主記憶装置(2
)の容量より大きいか否かを示す不正アドレス情報を保
持する不正アドレスビット部で、この不正アドレスビッ
ト(11)がセットされると、制御部(5)により適切
な限界アドレスエラー処理が起動されるようになされて
いる。
The same parts as in Figures 3 and 4 are designated by the same reference numerals.
In Figure tS1 and Figure 2, (1) to (5) (7) to (
10) is the same as the conventional one, and (11) is provided in the address translation buffer (4) together with the tag part (8) and the real address part (9), and the physical address is stored in the main memory (2).
), and when this invalid address bit (11) is set, appropriate limit address error processing is activated by the control unit (5). It is designed so that

次に、動作について説明する。アドレス生成部(3)に
より生成された論理アドレスLMAはハツシング部(7
)にてランダマイズされアドレス変換バッファ(4)の
エントリアドレスになる。該エントリアドレスにより読
み出されたタグ部(8)は比較部(10)により論理ア
ドレスLMAと比較され、致していれば一致信号)II
Tが有意になり、該エントリアドレスのリアルアドレス
部(9)の出力がそのまま物理アドレスPMAとして主
記憶装置(2)へ出力される。この時、同時に不正アド
レスビット(11)も読み出される。不正アドレスビッ
ト(11)の出力信号不正アドレスビット部は制御部(
5)に接続されており、該不正アドレスビット部信号が
有意であれば制御部(5)は適切な限界アドレスエラー
処理を起動する。
Next, the operation will be explained. The logical address LMA generated by the address generation unit (3) is processed by the hashing unit (7).
) and becomes the entry address of the address translation buffer (4). The tag part (8) read by the entry address is compared with the logical address LMA by the comparison part (10), and if they match, a match signal is sent) II
T becomes significant, and the output of the real address part (9) of the entry address is output as is to the main storage device (2) as the physical address PMA. At this time, the invalid address bit (11) is also read out at the same time. The output signal of the invalid address bit (11) The invalid address bit part is controlled by the control unit (
5), and if the invalid address bit section signal is significant, the control section (5) activates appropriate limit address error handling.

一方、上記エントリアドレスにより読み出されたタグ部
(8)の内容が論理アドレスLMAと一致しない場合は
、アドレス変換テーブルが参照され、該論理アドレスが
タグ部(8)に、変換後の物理アドレスがリアルアドレ
ス部(9)に、そして該変換後の物理アドレスが主記憶
装置(2)の容量より大きい時は不正アドレスビット(
11)がセットされる。
On the other hand, if the content of the tag part (8) read by the entry address does not match the logical address LMA, the address translation table is referred to, and the logical address is stored in the tag part (8) as the translated physical address. is stored in the real address field (9), and when the converted physical address is larger than the capacity of the main storage device (2), the invalid address bit (
11) is set.

このように、不正アドレスビット(11)がセットされ
た時に、すなわち限界アドレスが検出された時には、制
御部(5)によりアドレス限界エラー処理が起動される
In this manner, when the invalid address bit (11) is set, that is, when a limit address is detected, address limit error processing is activated by the control unit (5).

〔発明の効果〕 以上のように、この発明によれば、アドレス変換バッフ
ァに不正アドレスビットを追加したので、アドレス変換
後の物理アドレスを使わず、論理アドレスから直接限界
アドレスの検出ができ、より高速のデータ処理装置を得
ることができる。
[Effects of the Invention] As described above, according to the present invention, since an invalid address bit is added to the address translation buffer, a limit address can be detected directly from a logical address without using the physical address after address translation, and the A high-speed data processing device can be obtained.

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

第1図はこの発明の一実施例によるデータ処理装置を示
すブロック図、′jFS2図は第1図実施例におけるア
ドレス変換バッファのより詳細なブロック図、第3図は
従来のデータ処理装置を示すブロック図、第4図は従来
のデータ処理装置におけるアドレス変換バッファのより
詳細なブロック図である。 図において、(1)は基本処理装置、(2)は主記憶装
置、(3)はアドレス生成部、(4)はアドレス変換バ
ッファ、(5)は制御部、(6)はアドレス比較器、(
7)はハツシング部、(8)はタグ部、(9)はリアル
アドレス部、(10)は比較部、(11)は不正アドレ
スビット部である。
FIG. 1 is a block diagram showing a data processing device according to an embodiment of the present invention, FIG. FS2 is a more detailed block diagram of the address translation buffer in the embodiment of FIG. Block Diagram FIG. 4 is a more detailed block diagram of an address translation buffer in a conventional data processing device. In the figure, (1) is a basic processing unit, (2) is a main memory, (3) is an address generation unit, (4) is an address translation buffer, (5) is a control unit, (6) is an address comparator, (
7) is a hashing section, (8) is a tag section, (9) is a real address section, (10) is a comparison section, and (11) is an invalid address bit section.

Claims (1)

【特許請求の範囲】[Claims] アドレス変換テーブルの一部の内容の写しを保持しアド
レス生成部より生成される論理アドレスを物理アドレス
に変換するアドレス変換バッファを備えて、上記物理ア
ドレスを主記憶装置に送り参照すべきメモリのアドレス
とするデータ処理装置において、上記アドレス変換バッ
ファ内に、論理アドレス情報と該論理アドレス情報に対
応する物理アドレス情報と該物理アドレスが主記憶装置
の容量より大きいか否かを示す不正アドレス情報を保持
する手段を設けると共に、上記不正アドレス情報により
不正アドレス処理を起動する制御部を備えたことを特徴
とするデータ処理装置。
An address translation buffer is provided that holds a copy of a part of the contents of the address translation table and converts the logical address generated by the address generation unit into a physical address, and sends the physical address to the main storage device to address the memory to be referenced. In the data processing device, the address translation buffer holds logical address information, physical address information corresponding to the logical address information, and invalid address information indicating whether the physical address is larger than the capacity of the main storage device. What is claimed is: 1. A data processing device comprising: a control section for activating fraudulent address processing based on the fraudulent address information;
JP2178763A 1990-07-06 1990-07-06 Data processor Pending JPH0467243A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2178763A JPH0467243A (en) 1990-07-06 1990-07-06 Data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2178763A JPH0467243A (en) 1990-07-06 1990-07-06 Data processor

Publications (1)

Publication Number Publication Date
JPH0467243A true JPH0467243A (en) 1992-03-03

Family

ID=16054185

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2178763A Pending JPH0467243A (en) 1990-07-06 1990-07-06 Data processor

Country Status (1)

Country Link
JP (1) JPH0467243A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006252343A (en) * 2005-03-11 2006-09-21 Nec Computertechno Ltd Emulator, address calculation exception detection method in emulator, and program
US10255208B2 (en) 2016-03-04 2019-04-09 Toshiba Memory Corporation Data transfer apparatus and data transfer system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60107156A (en) * 1983-11-16 1985-06-12 Hitachi Ltd Data processing system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60107156A (en) * 1983-11-16 1985-06-12 Hitachi Ltd Data processing system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006252343A (en) * 2005-03-11 2006-09-21 Nec Computertechno Ltd Emulator, address calculation exception detection method in emulator, and program
US10255208B2 (en) 2016-03-04 2019-04-09 Toshiba Memory Corporation Data transfer apparatus and data transfer system

Similar Documents

Publication Publication Date Title
US20050114620A1 (en) Using paging to initialize system memory
JPH0467243A (en) Data processor
JPH05100847A (en) Memory protection system for information processor
JP2578182B2 (en) Data processing device and data processing system
JPH01166148A (en) Memory access device
JP2002132743A (en) Device and method for monitoring memory access and recording medium recording program for memory access monitor
JPH03283093A (en) Writing circuit to e2prom
JPH0262645A (en) Memory protecting system
JPH0567001A (en) Cache memory circuit
JPH04235647A (en) Memory capacity detecting device for ram card
JPS63205743A (en) Extended storage device
JPS6218064B2 (en)
JPH0363850A (en) Store system
JPH0341539A (en) Information processor
JPH07160577A (en) Cache memory controller
JPH0210435A (en) Address trap circuit
JPH0581131A (en) Cache memory
JPH04175944A (en) Data processor
JPH04239941A (en) Address conversion buffer device
JPH0659900A (en) Memory writer
JPH0223425A (en) Rewriting detecting circuit for instruction
JPH0283750A (en) Information processor
JPS58225457A (en) Information processor
JPH02250173A (en) Information processor
JPS6385949A (en) Cache memory storing system