JPH0298735A - Instruction pre-fetch system - Google Patents

Instruction pre-fetch system

Info

Publication number
JPH0298735A
JPH0298735A JP25076188A JP25076188A JPH0298735A JP H0298735 A JPH0298735 A JP H0298735A JP 25076188 A JP25076188 A JP 25076188A JP 25076188 A JP25076188 A JP 25076188A JP H0298735 A JPH0298735 A JP H0298735A
Authority
JP
Japan
Prior art keywords
instruction
software error
signal line
section
error signal
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
JP25076188A
Other languages
Japanese (ja)
Inventor
Toshiaki Fujino
藤野 俊顕
Atsushi Yamazaki
篤 山崎
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 JP25076188A priority Critical patent/JPH0298735A/en
Publication of JPH0298735A publication Critical patent/JPH0298735A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce the number of times of a memory access operation due to a software error and to suppress contention in memory access by an execution part by stopping a pre-read function at the time of generating the software error. CONSTITUTION:A software error signal line 12 which informs the software error to a control part 3 is further added in addition to a memory part 1, an address conversion part 2, a program buffer part 4, instruction fetch signal lines 60 and 61, a data line 10, a signal line 7 representing a null status, and an initialization signal line 8. Also, the control part 3 is provided with a function to stop the pre-read function by a software error signal inputted from the software error signal line 12. Therefore, at the time of receiving the software error signal 12, the control part 3 interrupts an instruction pre-fetch operation hereafter. In such a way, it is possible to omit a meaningless instruction pre-fetch operation after recognizing the software error, and to prevent a required operation from being disturbed.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は計算機の命令先取り方式に関する。[Detailed description of the invention] [Industrial application field] The present invention relates to a computer instruction prefetching method.

[従来の技術] 従来、この種の命令先取り方式は、次のように行われて
いた。
[Prior Art] Conventionally, this type of instruction prefetching method has been performed as follows.

第3図に示すように、メモリ部1、アドレス変換部2、
制御部3′、及びプログラムバッファ部4で構成される
命令先取り機構において、制御部3がプログラムバッフ
ァの空き状況を示す信号7をみて、先読み動作のための
命令取出し信号線61を用いてコマンドとアドレスをア
ドレス変換部2に送信する。アドレス変換部2では、論
理アドレスを物理アドレスに変換するほか、セグメント
テーブルやページテーブルをひく場合に、そのテーブル
が存在しないまたはアクセス権侵害、などのようなソフ
トエラーの検出を行う。アドレス変換部2は、次に命令
取出し信号線60を通じて、コマンドとアドレスをメモ
リ部1に送り、先読み動作を指示する。エラーがあった
場合にはエラーフラグをコマンドに付加する。メモリ部
1はそれに応じてアドレス変換部2によって指定された
主記憶番地の内容をデータ49110を通じてプログラ
ムバッファ部4に送出する。プログラムバッファ部4は
、バッファの空き状況を、空き状況を示す信号線7によ
って制御部3′に示し、データ線10を通じて送られて
きたデータ及びフラグをプログラムバッファ部4内の所
定のデータフィールド41とフラグフィールド42に各
々格納する。
As shown in FIG. 3, a memory section 1, an address conversion section 2,
In the instruction prefetch mechanism consisting of a control section 3' and a program buffer section 4, the control section 3 looks at the signal 7 indicating the empty status of the program buffer and issues a command using the instruction fetch signal line 61 for prefetch operation. Send the address to the address translation section 2. In addition to converting a logical address into a physical address, the address conversion unit 2 also detects soft errors such as non-existence of the table or infringement of access rights when drawing a segment table or page table. The address conversion section 2 then sends a command and address to the memory section 1 through the instruction fetch signal line 60 to instruct a prefetch operation. If there is an error, add an error flag to the command. In response, the memory section 1 sends the contents of the main memory address specified by the address conversion section 2 to the program buffer section 4 through data 49110. The program buffer section 4 indicates the empty status of the buffer to the control section 3' through a signal line 7 indicating the empty status, and sends data and flags sent through the data line 10 to a predetermined data field 41 in the program buffer section 4. and are stored in the flag field 42, respectively.

制御部3′はバッファに空きがある限り先読み動作を実
行する。
The control unit 3' executes the prefetch operation as long as there is space in the buffer.

[発明が解決しようとする課題] 従来の方式では、命令を実行する前に次の命令を読み込
む先読み機能によって、先読みデータがバッファの中に
次々と入ってくる。このような場合、途中でソフトエラ
ーフラグが立っているいないにもかかわらず、先読み動
作により次々にバッファにデータが蓄積されるため、エ
ラーフラグ認識以後のバッファ内の先読みデータの内容
は、ソフトエラーによって発生する割込みにより無意味
となり、用をなさないというむだがある。また、エラー
フラグ認識後のデータ先読み動作が、実行部によるメモ
リアクセスと競合する可能性があり、その結果実行部を
待たせる事態が生じ、装置としての性能を低下させる恐
れがあるという欠点がある。
[Problems to be Solved by the Invention] In the conventional system, preread data is successively entered into a buffer by a prefetch function that reads the next instruction before executing the instruction. In such a case, even though the soft error flag is not set, data is accumulated in the buffer one after another due to the read-ahead operation, so the contents of the read-ahead data in the buffer after the error flag is recognized are not affected by the soft error. It becomes meaningless due to the interrupt generated by the process, and there is a waste in that it is of no use. Another disadvantage is that the data prefetching operation after error flag recognition may conflict with memory access by the execution unit, resulting in a situation where the execution unit is forced to wait, which may reduce the performance of the device. .

[課題を解決するための手段] 本発明はメモリ部、アドレス変換部、及びプログラムバ
ッファ部を有する命令先取り方式であって、制御部はソ
フトエラー信号を受けると、それによって以後の命令先
取り動作を中止する機能をもつ。これによって、無意味
なソフトエラー認識後の命令先取り動作が省け、必要な
動作をさまたげない。
[Means for Solving the Problems] The present invention is an instruction prefetching system having a memory section, an address conversion section, and a program buffer section, in which the control section, upon receiving a soft error signal, performs a subsequent instruction prefetching operation based on the soft error signal. Has a function to cancel. This eliminates a meaningless instruction prefetch operation after recognition of a soft error, and does not interfere with necessary operations.

[実施例] 次に本発明について図面を参照して説明する。[Example] Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例による命令先取り機構の構成
要素の関係を示すブロック図である。
FIG. 1 is a block diagram showing the relationship of components of an instruction prefetch mechanism according to an embodiment of the present invention.

第1図において、メモリ部1、アドレス変換部2、プロ
グラムバッファ部4、命令取出し信号線60.61、デ
ータ線10、空き状況を示す信号!I7、及び初期化信
号線8は、第3図に示した従来のものと同様である。
In FIG. 1, a memory section 1, an address conversion section 2, a program buffer section 4, instruction fetch signal lines 60 and 61, a data line 10, and a signal indicating the empty status! I7 and initialization signal line 8 are similar to the conventional one shown in FIG.

本発明においては、ソフトウェアエラーを制御部3に知
らせるソフトエラー信号線12を追加した。さらに、制
御部3は、ソフトエラー信号線12から来るソフトエラ
ー信号によって先読み機能を停止する機能を持つ。
In the present invention, a soft error signal line 12 is added to notify the control unit 3 of software errors. Further, the control unit 3 has a function of stopping the pre-reading function in response to a soft error signal coming from the soft error signal line 12.

第2図は制御部3を詳細に示した図であり、先読み抑止
フリップフロップ14はソフトエラー信号線12からソ
フトエラー信号を受けると、エラー発生時“1゛となり
、先読み機能を抑止する。
FIG. 2 is a diagram showing the control unit 3 in detail. When the prefetch inhibiting flip-flop 14 receives a soft error signal from the soft error signal line 12, it becomes "1" when an error occurs and inhibits the prefetch function.

次に、第1図及び第2図を参照して、本実施例の動作に
ついて説明する。
Next, the operation of this embodiment will be explained with reference to FIGS. 1 and 2.

制御部3は空き状況を示す信号線7によってバッファに
空きがあることが明確な場合で、かつ第2図中の先読み
抑止フリップフロップ14がセットされていない時に、
先読み動作のためのコマンドとアドレスを命令取出し信
号線61を通じてアドレス変換部2に送る。アドレス変
換部2では、論理アドレスを物理アドレスに変換するほ
か、アクセス権侵害等のソフトエラー検出も行う。アド
レス変換部2は、命令取出し信号線60を通じて、コマ
ンドとアドレスをメモリ部1に送り、先読み動作を指示
するが、エラーがあった場合には、エラーフラグをコマ
ンドに付加する。メモリ部1は、それに答えてプログラ
ムバッファ部4にアドレス変換部2によって指定された
主記憶番地の内容をデータ線10を通じて送出する。
When it is clear from the signal line 7 indicating the empty status that there is empty space in the buffer, and when the prefetch inhibiting flip-flop 14 in FIG. 2 is not set,
A command and address for a prefetch operation are sent to the address converter 2 through an instruction fetch signal line 61. The address conversion unit 2 not only converts a logical address into a physical address, but also detects soft errors such as violation of access rights. The address conversion section 2 sends a command and address to the memory section 1 through the instruction fetch signal line 60 to instruct a prefetch operation, but if there is an error, it adds an error flag to the command. In response, the memory section 1 sends the contents of the main memory address specified by the address conversion section 2 to the program buffer section 4 through the data line 10.

プログラムバッファ部4は送られてきたデータ及びフラ
グをそれぞれ所定のデータフィールド41とフラグフィ
ールド42に格納する。また、バッファの空き状況を、
空き状況を示すf:9線7によって制御部3に示す。デ
ータフィールド41とフラグフィールド42に同時に入
ってくる最新データのうち、エラーフラグが格納される
エラーフィールドをチエツクする。もし、ソフトエラー
であれば、ソフトエラー信号12を1゛にする。
The program buffer section 4 stores the sent data and flags in predetermined data fields 41 and flag fields 42, respectively. Also, check the buffer free status,
It is shown to the control unit 3 by f:9 line 7 indicating the availability status. Among the latest data that enters the data field 41 and flag field 42 at the same time, the error field in which the error flag is stored is checked. If it is a soft error, the soft error signal 12 is set to 1.

すると、第2図中の制御部3内にある先読み抑止フリッ
プフロップ14がセットされる。
Then, the prefetch inhibiting flip-flop 14 in the control unit 3 in FIG. 2 is set.

次に、第2図に示すように、制御部3からアドレス変換
部2への3本の信号、リクエスト信号611、アドレス
信号612、及びコマンド信号613のうち、リクエス
ト信号611が先読み抑止フリップフロップ14によっ
て抑えられ、命令先読み機能は停止する。先読み抑止フ
リップフロップ14は、実行部(図示されていない)か
ら来る分岐動作指示信号11が有効となったことにより
制御部3からプログラムバッファ4への初期化(5号が
初期化信号線8で送られた時、その動作に連動してリセ
ットされる。
Next, as shown in FIG. 2, among the three signals sent from the control unit 3 to the address conversion unit 2, a request signal 611, an address signal 612, and a command signal 613, the request signal 611 is sent to the prefetch inhibiting flip-flop 14. , the instruction prefetch function stops. The prefetch inhibit flip-flop 14 is activated when the control unit 3 initializes the program buffer 4 (no. 5 is connected to the initialization signal line 8 When sent, it is reset in conjunction with the action.

上記の実施例では、ソフトエラー信号は、プログラムバ
ッファ部4から制御部3へ送られるが、プログラムバッ
ファ部4を介さず、メモリ部1から直接制御部3に送る
ようにしても良い。また、アドレス変換部2でソフトエ
ラーを検出した時点で、アドレス変換部2から直接、制
御部3ヘソフト工ラー信号を送ってもよい。
In the above embodiment, the soft error signal is sent from the program buffer section 4 to the control section 3, but it may be sent directly from the memory section 1 to the control section 3 without going through the program buffer section 4. Further, when a soft error is detected in the address conversion section 2, a software error signal may be sent directly from the address conversion section 2 to the control section 3.

[発明の効果] 以上説明したように本発明は、ソフトエラー発生時に、
先読み機能を停止することにより、それによって起こる
メモリアクセス動作を減らし、実行部とのメモリアクセ
スにおける競合をおさえることを可能とし、無意味な実
行部の待ち時間を削除することができる。
[Effects of the Invention] As explained above, the present invention provides the following advantages when a soft error occurs:
By stopping the read-ahead function, it is possible to reduce the memory access operations that occur thereby, suppress contention in memory access with the execution unit, and eliminate meaningless waiting time for the execution unit.

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

第1図は本発明の一実施例による命令先取り方式が適用
される情報処理装置の構成を示すブロックす、第2図は
第1図中の制御部3の詳細な構成を示す図、第3図は従
来の情報処理装置の構成を示すブロック図である。 1・・・メモリ部、2・・・アドレス変換部、3・・・
制御部、4・・・プログラムバッファ部、41・・・デ
ータフィールド、42・・・フラグフィールド、60・
・・命令読出し信号線、61・・・命令読出し信号線、
7・・・空き状況を示す信号線、8・・・初期化信号線
、9・・・命令語(実行部へ送られる)、10・・・デ
ータ線、11・・・分岐動作指示信号、12・・・ソフ
トエラー信号線、611・・・リクエスト信号、612
・・・アドレス信号、613・・・コマンド信号、14
・・・先読み抑止フリップフロップ。
FIG. 1 is a block diagram showing the configuration of an information processing apparatus to which an instruction prefetching method according to an embodiment of the present invention is applied, FIG. 2 is a block diagram showing the detailed configuration of the control unit 3 in FIG. The figure is a block diagram showing the configuration of a conventional information processing device. 1...Memory section, 2...Address conversion section, 3...
Control unit, 4... Program buffer unit, 41... Data field, 42... Flag field, 60.
...Instruction read signal line, 61...Instruction read signal line,
7... Signal line indicating free status, 8... Initialization signal line, 9... Command word (sent to execution unit), 10... Data line, 11... Branch operation instruction signal, 12... Soft error signal line, 611... Request signal, 612
... Address signal, 613 ... Command signal, 14
...Lookahead suppression flip-flop.

Claims (1)

【特許請求の範囲】[Claims] 1、先読みした命令語を格納しておくプログラムバッフ
ァの空き状況によって、命令語先取りの主記憶読み出し
指示を順次発行する命令先取り制御部と、主記憶読出し
に伴ってソフトウェアのエラーを検出する検出手段とを
有し、上記命令先取り制御部は上記検出手段によって認
識されたエラーの信号を受けると以後の先取り動作を中
止することを特徴とする命令先取り方式。
1. An instruction prefetch control unit that sequentially issues main memory read instructions for prefetching instructions depending on the free space of the program buffer that stores prefetched instruction words, and a detection means that detects software errors associated with main memory read. An instruction prefetching method, characterized in that the instruction prefetching control section suspends subsequent prefetching operations upon receiving an error signal recognized by the detection means.
JP25076188A 1988-10-06 1988-10-06 Instruction pre-fetch system Pending JPH0298735A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25076188A JPH0298735A (en) 1988-10-06 1988-10-06 Instruction pre-fetch system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25076188A JPH0298735A (en) 1988-10-06 1988-10-06 Instruction pre-fetch system

Publications (1)

Publication Number Publication Date
JPH0298735A true JPH0298735A (en) 1990-04-11

Family

ID=17212649

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25076188A Pending JPH0298735A (en) 1988-10-06 1988-10-06 Instruction pre-fetch system

Country Status (1)

Country Link
JP (1) JPH0298735A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008290635A (en) * 2007-05-25 2008-12-04 Tachi S Co Ltd Automobile seat

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008290635A (en) * 2007-05-25 2008-12-04 Tachi S Co Ltd Automobile seat

Similar Documents

Publication Publication Date Title
EP0391517B1 (en) Method and apparatus for ordering and queueing multiple memory access requests
US4038642A (en) Input/output interface logic for concurrent operations
EP0895163B1 (en) A data processor having a cache memory
US4053950A (en) Residual status reporting during chained cycle steal input/output operations
JPH03201130A (en) Data processing system
KR950001417B1 (en) Computer system
JPH06309230A (en) Bus snooping method
JP2583525B2 (en) Data processing device
JPH0298735A (en) Instruction pre-fetch system
US6738867B1 (en) Disk array system reading ahead operand databackground of the invention
JPH07121443A (en) Information process system and its operating method
US5201052A (en) System for transferring first and second ring information from program status word register and store buffer
JPS6051947A (en) Instruction prefetching system in virtual storage computer
EP0382529B1 (en) Microprocessor having store buffer
JPH0651982A (en) Arithmetic processing unit
JPS61133439A (en) Instruction advance fetch control system
JPS63148329A (en) Instruction prefetch control system
JPS6125168B2 (en)
JP2560312B2 (en) Information processing system
JPS6240555A (en) Prefetch control system
TW312767B (en) The method for conditional pre-picking memory data from controller
JPH01230152A (en) Cache memory
JPH0628303A (en) Communication processor
JPS61168046A (en) Microprocessor
JPH0713865A (en) Cache memory control system