JPH05197609A - Store buffer managing system - Google Patents

Store buffer managing system

Info

Publication number
JPH05197609A
JPH05197609A JP4008039A JP803992A JPH05197609A JP H05197609 A JPH05197609 A JP H05197609A JP 4008039 A JP4008039 A JP 4008039A JP 803992 A JP803992 A JP 803992A JP H05197609 A JPH05197609 A JP H05197609A
Authority
JP
Japan
Prior art keywords
store
instruction
data
store data
buffer
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
JP4008039A
Other languages
Japanese (ja)
Inventor
Fumihiko Miyazawa
文彦 宮沢
Junichi Takusagawa
純一 田草川
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
NEC Computertechno Ltd
Original Assignee
NEC Corp
NEC Computertechno 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 NEC Corp, NEC Computertechno Ltd filed Critical NEC Corp
Priority to JP4008039A priority Critical patent/JPH05197609A/en
Publication of JPH05197609A publication Critical patent/JPH05197609A/en
Pending legal-status Critical Current

Links

Landscapes

  • Advance Control (AREA)
  • Memory System (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To reduce the number of performing accesses with a main storage device and to effectively utilize a store buffer with limited capacity by merging the store data of a preceding store instruction and the store data of a following store instruction and registering them on the store buffer as one store instruction later. CONSTITUTION:When the store request information of the preceding store instruction is registered on a waiting register R4 (4) and the store request information of the following store instruction is registered on a waiting register R3 (3) at the same time, at the next time point T, the store data of the preceding store instruction are transmitted from an arithmetic part and written at the word position of a store buffer 6 shown by a WA pointer 9. At such a time, the preceding store request in the R4 (4) is also written in the same word position as the store data buffer 6 in a store request buffer 5.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、コンピュータシステム
に利用し、ストア命令の高速処理を行うストアバッファ
管理方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a store buffer management system which is used in a computer system and performs high speed processing of store instructions.

【0002】[0002]

【従来の技術】従来の情報処理装置におけるストア命令
処理では、連続する2つのストア命令が主記憶装置の同
一アドレスに対するストア命令であるか判断せずに、別
々のストア命令として、その処理を行なっている。
2. Description of the Related Art In conventional store instruction processing in an information processing apparatus, the processing is performed as separate store instructions without judging whether two consecutive store instructions are store instructions for the same address in the main memory. ing.

【0003】[0003]

【発明が解決しようとする課題】したがって、従来例の
情報処理装置では、主記憶装置の同一アドレスに対して
別々に処理を行うため、主記憶装置とのアクセスに2倍
の時間を要するという欠点がある。
Therefore, in the information processing apparatus of the conventional example, since the same address of the main storage device is separately processed, it takes twice as much time to access the main storage device. There is.

【0004】本発明は、このような課題を解決するもの
であり、主記憶装置とのアクセス回数を削減できるとと
もに、限定された容量のストアバッファを有効に活用で
きるストアバッファ管理方式を提供することを目的とす
る。
The present invention solves such a problem, and provides a store buffer management system capable of reducing the number of accesses to the main storage device and effectively utilizing a store buffer having a limited capacity. With the goal.

【0005】[0005]

【課題を解決するための手段】この目的を達成するため
に、本発明のストアバッファ管理方式は、ストアバッフ
ァとストア命令処理を必要とする命令の実行をサポート
する演算装置と主記憶装置とを備えるパイプライン処理
情報処理装置に係るストアバッファ管理方式において、
先行するストア命令と後続のストア命令が同一主記憶ア
ドレスに対するストア命令の場合にストアバッファへの
ストアリクエスト情報、ストアデータ情報の登録は一つ
のストア命令として登録を行うように所定の一つのスト
ア命令に関するストアリクエスト情報が命令制御部から
ストア制御部に送出された場合に、ストアリクエスト情
報と対になるストアデータ情報が数Tサイクル後に演算
制御部からストア制御部に送出され、このストアリクエ
ストとストアデータのストア制御部への送出タイミング
のずれを利用してストアリクエスト情報を多段階のレジ
スタによって待ち合わせする待ち合わせ手段と、多段階
のレジスタの最終段レジスタに先行ストア命令のストア
リクエスト情報が登録され、同時に最終段の一段手前の
レジスタに後続ストア命令が登録された場合に、二段の
レジスタのストアリクエスト情報を比較し、一致した場
合に先行ストア命令と後続ストア命令が同一主記憶アド
レスに対するストア命令であると判断する判断手段とを
有し、同一主記憶アドレスに対するストア命令である場
合に演算制御部からストア制御部に先行ストア命令のス
トアデータ情報が送出されたタイミングで先行するスト
ア命令のストアリクエスト情報とストアデータ情報を同
時にストアバッファ書き込み指示ポインタによって指示
されるワード位置に書き込みを行い、さらに後続ストア
命令のストアデータ情報が演算制御部からストア制御部
に送出された場合にバイト単位のストアデータの有効性
を示すマスク情報が有効である部分のストアデータを先
行ストア命令が登録されたストアバッファの同一ワード
位置に上書きして登録することを特徴とするものであ
る。
To achieve this object, the store buffer management system of the present invention comprises a store buffer, an arithmetic unit for supporting the execution of instructions requiring store instruction processing, and a main memory. In the store buffer management method according to the pipeline processing information processing device provided,
When the preceding store instruction and the subsequent store instruction are store instructions for the same main memory address, the store request information and store data information are registered in the store buffer as one store instruction. When the store request information about the store request is sent from the instruction control unit to the store control unit, the store data information paired with the store request information is sent from the operation control unit to the store control unit after several T cycles, and the store request and the store Waiting means for waiting the store request information by the multi-stage register by utilizing the shift of the transmission timing of the data to the store control unit, and the store request information of the preceding store instruction is registered in the final stage register of the multi-stage register, At the same time, the register next to the register one stage before the final stage A) When the instruction is registered, the store request information of the two-stage register is compared, and when they match, it is determined that the preceding store instruction and the subsequent store instruction are the store instructions for the same main memory address. However, when the store instruction is for the same main memory address, the store request information and the store data information of the preceding store instruction are simultaneously stored at the timing when the store data information of the preceding store instruction is sent from the arithmetic control section to the store control section. When writing is performed at the word position pointed by the write instruction pointer, and the store data information of the subsequent store instruction is sent from the arithmetic control unit to the store control unit, the mask information indicating the validity of the byte-unit store data is valid. The part of the store data is stored in the store It is characterized in that to register overwriting the same word position fa.

【0006】また、待ち合わせ手段と判断手段とは、ス
トアリクエスト情報を2段階のレジスタによって保持す
る保持手段と、2段階のレジスタの第2段レジスタに先
行ストア命令のストアリクエスト情報が登録され、第一
段のレジスタに後続ストア命令が登録された場合に二段
のレジスタのストアリクエスト情報を比較し、一致した
場合に先行ストア命令と後続ストア命令は同一主記憶ア
ドレスに対するストアであると判断する判断手段と、ス
トアリクエストをストアリクエストバッファに登録する
専用書き込み指示を行う指示手段と、ストアデータをス
トアデータバッファに登録する専用書き込み指示を行う
指示手段ととで構成されることを特徴とするものである
さらに、前記の構成に加えて、演算制御部からストア制
御部に送出されたストアデータを一段のレジスタで受け
る受付手段を設け、レジスタに先行ストア命令のストア
データが登録された状態で後続ストア命令のストアデー
タが演算制御部からストア制御部に送出された場合に両
ストアデータを後続ストア命令のバイト単位のストアデ
ータの有効性を示すマスク情報が有効であるストアデー
タをレジスタに保持されている先行ストア命令のストア
データ出力信号にマージしてストアデータ書き込み指示
ポインタによって示されるワード位置に一命令として登
録することを特徴とするものである。
Further, the queuing means and the judging means store the store request information in a two-stage register and the store request information of the preceding store instruction is registered in the second stage register of the two-stage register. When the subsequent store instruction is registered in the one-stage register, the store request information of the two-stage register is compared, and if they match, it is determined that the preceding store instruction and the subsequent store instruction are stores for the same main memory address. Means, an instruction means for issuing a dedicated write instruction for registering the store request in the store request buffer, and an instruction means for instructing an exclusive write instruction for registering the store data in the store data buffer. In addition to the above-mentioned configuration, the data is sent from the arithmetic control unit to the store control unit. If the store data of the preceding store instruction is registered in the register and the store data of the subsequent store instruction is sent from the arithmetic control unit to the store control unit, both store data are stored in the register. The mask information indicating the validity of the byte-by-byte store data of the subsequent store instruction is valid. The store data is merged with the store data output signal of the preceding store instruction held in the register and indicated by the store data write instruction pointer. It is characterized in that it is registered as one command at the word position to be stored.

【0007】さらに前記の構成に加えて、ストアリクエ
スト情報を2段階のレジスタによって保持する保持手段
と、二段階のレジスタの第2段レジスタに先行ストア命
令のストアリクエスト情報が登録され、第一段のレジス
タに後続ストア命令が登録された場合に二段のレジスタ
のストアリクエスト情報を比較し、一致した場合に先行
ストア命令と後続ストア命令は同一主記憶アドレスに対
するストアであると判断する判断手段と、ストアリクエ
ストをストアリクエストバッファに登録する専用書き込
み指示を行う指示手段と、ストアデータをストアデータ
バッファに登録する専用書き込み指示を行う指示手段
と、演算制御部からストア制御部に送出されたストアデ
ータを一般のレジスタで受ける受付手段とを設け、レジ
スタに先行ストア命令のストアデータが登録された状態
で後続ストア命令のストアデータが演算制御部からスト
ア制御部に送出された場合に両ストアデータを後続スト
ア命令のバイト単位のストアデータの有効性を示すマス
ク情報が有効であるストアデータをレジスタに保持され
ている先行ストア命令のストアデータにマージすること
によりストアデータ書き込み指示ポインタによって示さ
れるワード位置に一命令として登録することを特徴とす
るものである。
In addition to the above configuration, holding means for holding the store request information by a two-stage register, and the store request information of the preceding store instruction is registered in the second stage register of the two-stage register, and the first stage When the subsequent store instruction is registered in the register of, the store request information of the two-stage register is compared, and when they match, the preceding store instruction and the subsequent store instruction are determined to be the stores for the same main memory address. , Instruction means for issuing a dedicated write instruction for registering the store request in the store request buffer, instruction means for issuing a dedicated write instruction for registering the store data in the store data buffer, and store data sent from the arithmetic control section to the store control section It is equipped with a reception means to receive When the store data of the subsequent store instruction is sent from the arithmetic control unit to the store control unit while the store data of is stored, both store data have mask information indicating the validity of the byte-unit store data of the subsequent store instruction. It is characterized in that the valid store data is merged with the store data of the preceding store instruction held in the register to register it as one instruction at the word position indicated by the store data write instruction pointer.

【0008】[0008]

【実施例】以下、本発明のストアバッファ管理方式の実
施例について図面をもとに説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the store buffer management system of the present invention will be described below with reference to the drawings.

【0009】先ず、第1の実施例を説明する。なお、こ
の第1の実施例は請求項1に対応する。
First, the first embodiment will be described. The first embodiment corresponds to claim 1.

【0010】図1は第1の実施例の構成を示している。FIG. 1 shows the configuration of the first embodiment.

【0011】図1において、命令制御部から送出された
ストアリクエスト情報は数Tサイクル後に演算部から送
出される対のストアデータと同タイミングでストアバッ
ファに書き込むようにR1,R2,R3,R4(1,
2,3,4)に示す多段階のレジスタによって待ち合わ
せを行なう。そして、ストアデータ情報がストアリクエ
スト情報よりも4Tサイクル後にストアリクエストバッ
ファ5、ストアデータバッファ6に送出されるケースを
示す構成であり、R1〜R4(1〜4)に示す4段の待
ち合わせレジスタを設定している。
In FIG. 1, the store request information sent from the instruction control unit is written into the store buffer at the same timing as the pair of store data sent from the arithmetic unit after several T cycles, R1, R2, R3, R4 ( 1,
Waiting is performed by the multi-stage registers shown in 2, 3, 4). The storage data information is transmitted to the store request buffer 5 and the store data buffer 6 4T cycles later than the store request information, and the four wait registers R1 to R4 (1 to 4) are provided. It is set.

【0012】図1において、R4(4)に先行ストア命
令のストアリクエスト情報が登録され、同時にR3
(3)に後続ストア命令のストアリクエスト情報が登録
された場合、次のTにおいて先行ストア命令のストアデ
ータが演算部から送出されWAポインタ9で示されるス
トアデータバッファ6のワード位置に書き込まれる。こ
のときR4(4)の先行ストアリクエストもストアリク
エストバッファ5のストアデータバッファ6と同一ワー
ド位置に対して書き込まれる。
In FIG. 1, the store request information of the preceding store instruction is registered in R4 (4), and at the same time, R3 (3) is registered.
When the store request information of the subsequent store instruction is registered in (3), the store data of the preceding store instruction is sent from the arithmetic unit at the next T and written in the word position of the store data buffer 6 indicated by the WA pointer 9. At this time, the preceding store request of R4 (4) is also written to the same word position as the store data buffer 6 of the store request buffer 5.

【0013】また、このときR3=R4を検出した場
合、通常、ストアリクエストバッファ5、ストアデータ
バッファ6に書き込みを指示した後に+(プラス)1カ
ウントするWAポインタ9をカウントアップしないよう
に制御し、後続ストア命令のストアデータを先行ストア
命令と同一アドレスに対して書き込みを指示するように
制御する。 R3=R4の検出は先行ストア命令と後続
ストア命令が主記憶装置の同一アドレスに対するストア
命令であることを検出している。さらに次Tにおいて演
算部から後続ストア命令のストアデータが送出されると
図1に示すストアデータ書込み制御部8で、ストアデー
タと一緒に演算部から送出されるバイト単位のデータの
有効性を示すストアマスク情報によって有効であるバイ
トのストアデータのみを選別してストアデータバッファ
6に書き込むように制御を行なう。
Further, when R3 = R4 is detected at this time, the WA pointer 9 which counts + (plus) 1 is usually controlled so as not to count up after instructing writing to the store request buffer 5 and the store data buffer 6. The store data of the subsequent store instruction is controlled so as to instruct the write to the same address as the preceding store instruction. The detection of R3 = R4 detects that the preceding store instruction and the subsequent store instruction are store instructions for the same address in the main memory. Further, at the next T, when the store data of the subsequent store instruction is sent from the operation unit, the store data write control unit 8 shown in FIG. 1 shows the validity of the byte unit data sent from the operation unit together with the store data. Control is performed so that only valid bytes of store data are selected according to the store mask information and written into the store data buffer 6.

【0014】この制御で、既にストアデータバッファ6
に書き込まれた先行ストア命令のストアデータに後続ス
トア命令のストアデータのうち有効なストアデータのみ
を上書きできる。さらに、先行ストア命令のストアデー
タと後続ストア命令のストアデータをストアバッファ登
録時においてマージとなり一つのストア命令として登録
できる。
With this control, the store data buffer 6 has already been stored.
Only valid store data of the store data of the succeeding store instruction can be overwritten on the store data of the preceding store instruction written in. Further, the store data of the preceding store instruction and the store data of the subsequent store instruction are merged when registering the store buffer, and can be registered as one store instruction.

【0015】次に、第2の実施例を説明する。この第2
の実施例は請求項2に対応する。
Next, a second embodiment will be described. This second
This embodiment corresponds to claim 2.

【0016】図2は第2の実施例を示している。FIG. 2 shows a second embodiment.

【0017】この第2の実施例は、第1の実施例がスト
アリクエストバッファ5への書込み指示ポインタとスト
アデータバッファへの書込み指示ポインタがWAポイン
タ9として同一ポインタによって行うのに対して、書き
込み指示ポインタSWA11、書き込み指示ポインタD
WA12と別々に書込み可能としている。
In the second embodiment, the write instruction pointer to the store request buffer 5 and the write instruction pointer to the store data buffer are the same pointers as the WA pointer 9 in the first embodiment, whereas the second embodiment performs the write operation. Pointer pointer SWA11, write pointer pointer D
Writing is possible separately from WA12.

【0018】ポインタをストアリクエストバッファ登録
用およびストアデータバッファ登録用として専用に持つ
ことにより1図に示すR1〜R4(1〜4)の多段階の
レジスタ保持手段を先行ストア命令と後続ストア命令の
一致を検出するための2段のみにできる。
By having a pointer exclusively for registering the store request buffer and for registering the store data buffer, the multi-stage register holding means of R1 to R4 (1 to 4) shown in FIG. There can only be two stages for detecting a match.

【0019】図2において、R2(2)先行ストア命令
のストアリクエストがストアリクエストバッファ5に登
録され、同時にR1(1)に後続ストア命令のストアリ
クエストが登録されると、次のTにおいてR1=R4の
検出が比較器7によって行なわれる。R1=R2の場合
に先行ストア命令と後続ストア命令は主記憶装置の同一
アドレスに対するストア命令と判断され、ストアリクエ
ストバッファ5およびストアデータバッファ6の書き込
み指示ポインタSWA11、書き込み指示ポインタDW
A12の+1カウントは後続ストア命令のストアデータ
がストアデータバッファ6に登録されるまで待ち合わせ
をするように制御する。
In FIG. 2, when the store request of the R2 (2) preceding store instruction is registered in the store request buffer 5 and at the same time the store request of the subsequent store instruction is registered in R1 (1), R1 = at the next T. The detection of R4 is performed by the comparator 7. When R1 = R2, the preceding store instruction and the subsequent store instruction are judged to be the store instructions for the same address in the main memory device, and the write instruction pointer SWA11 and the write instruction pointer DW of the store request buffer 5 and the store data buffer 6 are stored.
The +1 count of A12 is controlled to wait until the store data of the subsequent store instruction is registered in the store data buffer 6.

【0020】先行ストア命令のストアデータがストアデ
ータバッファ6に登録された後、後続ストア命令のスト
アデータが演算部から送出された場合に、同時に演算部
から送出されるストアマスク情報により、有効であるバ
イトのストアデータのみにストアデータバッファへ書込
みを行なうように、ストアデータ書込み制御部8におい
て制御する。よってストアデータバッファの同一ワード
位置において先行ストア命令と後続ストア命令のストア
データのマージが行なわれ一つのストア命令のストアデ
ータとして登録される。
When the store data of the preceding store instruction is registered in the store data buffer 6 and then the store data of the succeeding store instruction is transmitted from the arithmetic unit, it is effective by the store mask information transmitted from the arithmetic unit at the same time. The store data write control unit 8 controls so that only the store data of a certain byte is written to the store data buffer. Therefore, at the same word position in the store data buffer, the store data of the preceding store instruction and the store data of the subsequent store instruction are merged and registered as the store data of one store instruction.

【0021】さらに、第3の実施例を説明する。この第
3の実施例は請求項3に対応する。
Further, a third embodiment will be described. This third embodiment corresponds to claim 3.

【0022】図3は第3の実施例を示している。FIG. 3 shows a third embodiment.

【0023】この第3の実施例は、第1の実施例が演算
部から送出されたストアデータは直接ストアデータバッ
ファ6に登録するために先行ストア命令のストアデータ
と後続ストア命令のストアデータのマージはストアデー
タバッファ6内において実行しているのに対して、演算
部から送出されたストアデータは1段のレジスタWDR
13に保持され、次のTにおいてレジスタWDR13出
力ストアデータとこのタイミングで演算部から送出され
るストアデータのマージをセレクタWDX14によって
行ない、一命令のストアデータを生成した後にストアデ
ータバッファに登録する。
In the third embodiment, since the store data sent from the arithmetic unit in the first embodiment is directly registered in the store data buffer 6, the store data of the preceding store instruction and the store data of the succeeding store instruction are stored. The merge is executed in the store data buffer 6, whereas the store data sent from the arithmetic unit is the one-stage register WDR.
In the next T, the store WDR13 output store data is merged with the store data sent from the arithmetic unit at this timing by the selector WDX14, and the store data of one instruction is generated and then registered in the store data buffer.

【0024】図3において、R4(4)に先行ストア命
令のストアリクエストが登録され、同時にR3(3)に
後続ストア命令のストアリクエスト登録されると、次の
Tにおいて比較器7によって先行ストア命令と後続スト
アリクエストの一致検出が行なわれる。一致が検出され
た場合に先行ストア命令と後続ストア命令は主記憶装置
の同一アドレスに対するストア命令であると判断し、W
Aポインタ9の+1カウントを抑止するように制御す
る。
In FIG. 3, when the store request of the preceding store instruction is registered in R4 (4) and the store request of the succeeding store instruction is registered in R3 (3) at the same time, the preceding store instruction is made by the comparator 7 at the next T. And the subsequent store request is matched. If a match is detected, it is determined that the preceding store instruction and the subsequent store instruction are store instructions for the same address in the main memory, and W
The A pointer 9 is controlled so as to suppress the +1 count.

【0025】このタイミングにおいてレジスタWDR1
3には先行ストア命令のストアデータが保持されてい
る。演算部から後続ストア命令のストアデータが送出さ
れた場合に、セレクタWDX14においてレジスタWD
R13からの出力信号である先行ストア命令のストアデ
ータと後続ストア命令のストアデータから後続ストア命
令のストアデータと同時に演算部から送出されるストア
マスク情報の有効であるバイトのデータは後続ストア命
令のストアデータを選択し、無効であるバイトのデータ
は先行ストア命令のストアデータを選択するように、選
択制御部で制御する。よってセレクタWDX14の出力
信号は先行ストア命令のストアデータと後続ストア命令
のストアデータがマージされた一つのストア命令のスト
アデータとしてストアデータバッファ6のWAポインタ
9で示されるワード位置に書き込まれる。
At this timing, the register WDR1
3 stores the store data of the preceding store instruction. When the store data of the subsequent store instruction is sent from the arithmetic unit, the register WD is selected by the selector WDX14.
From the store data of the preceding store instruction and the store data of the succeeding store instruction which are output signals from R13, the valid byte data of the store mask information sent from the operation unit at the same time as the store data of the succeeding store instruction is the data of the succeeding store instruction. The selection control unit controls so that the store data is selected and invalid byte data is selected as the store data of the preceding store instruction. Therefore, the output signal of the selector WDX 14 is written in the word position indicated by the WA pointer 9 of the store data buffer 6 as the store data of one store instruction in which the store data of the preceding store instruction and the store data of the subsequent store instruction are merged.

【0026】次に、第4の実施例を説明する。この第4
の実施例は請求項4に対応する。
Next, a fourth embodiment will be described. This 4th
This embodiment corresponds to claim 4.

【0027】図4は、この第4の実施例を示している。FIG. 4 shows this fourth embodiment.

【0028】この第4の実施例は、第2の実施例と第3
の実施例が組み合わされたものである。
The fourth embodiment is the same as the second embodiment and the third embodiment.
The examples are combined.

【0029】ストアリクエストバッファ5のストアリク
エストの登録はそれぞれ専用の書込み指示ポインタSW
A12、レジスタDWA13により行なう。ポインタを
別々に持つことから図1に示したR1〜R4(1〜4)
の多段階の待ち合わせレジスタは先行ストア命令と後続
ストア命令の一致送出を行なうための2段のレジスタの
みを持てば良い。また図1実施例において演算部から送
出された先行ストア命令のストアデータと後続ストア命
令のストアデータのマージはストアデータバッファ6内
において行なっていたが、レジスタWDR13およびセ
レクタWDX14を用いることにより、ストアデータバ
ッファ6を登録タイミングで制御できるようになる。
The registration of the store request in the store request buffer 5 is performed by the dedicated write instruction pointer SW.
A12 and register DWA13. R1 to R4 (1 to 4) shown in FIG. 1 because they have separate pointers
The multi-stage wait register of 2 need only have two stages of registers for coincident transmission of the preceding store instruction and the subsequent store instruction. In the embodiment of FIG. 1, the store data of the preceding store instruction and the store data of the subsequent store instruction sent from the arithmetic unit were merged in the store data buffer 6, but by using the register WDR13 and the selector WDX14, The data buffer 6 can be controlled at the registration timing.

【0030】図4において、R2(2)に先行ストア命
令のストアリクエストが登録され同時にR1(1)に後
続ストア命令のストアリクエストが登録された場合に比
較器7によりR1(1)とR2(2)の一致の検出が行
なわれる。一致が検出された場合に先行ストア命令と後
続ストア命令は主記憶装置の同一アドレスに対するスト
ア命令であると判断され、ストアリクエストバッファ5
を書き込み指示ポインタSWA11とストアデータバッ
ファ書込み指示ポインタDWA12の+1カウントを抑
止するように制御する。
In FIG. 4, when the store request of the preceding store instruction is registered in R2 (2) and at the same time the store request of the subsequent store instruction is registered in R1 (1), the comparator 7 causes R1 (1) and R2 ( The match of 2) is detected. If a match is detected, it is determined that the preceding store instruction and the subsequent store instruction are store instructions for the same address in the main memory, and the store request buffer 5
Is controlled so that the +1 count of the write instruction pointer SWA11 and the store data buffer write instruction pointer DWA12 is suppressed.

【0031】先行ストア命令のストアデータが演算部か
ら送出されるとレジスタWDR13に保持される。後続
ストア命令のストアデータが演算部から送出された場合
にレジスタWDR13からの先行ストア命令のストアデ
ータとセレクタWDX14において後続ストア命令のス
トアデータと同時に演算部から送出されるストアマスク
情報によって、有効であるバイト単位のストアデータは
後続ストア命令のストアデータを選択し、後続ストア命
令のストアマスク情報が無効であるバイト単位のストア
データは先行ストア命令のストアデータを選択するよう
に選択制御部15を制御する。
When the store data of the preceding store instruction is sent from the arithmetic unit, it is held in the register WDR13. When the store data of the succeeding store instruction is sent from the arithmetic unit, it is valid by the store data of the preceding store instruction from the register WDR13 and the store mask information sent from the arithmetic unit at the same time as the store data of the subsequent store instruction in the selector WDX14. The selection control unit 15 selects the store data of the subsequent store instruction as the store data of a certain byte unit, and selects the store data of the preceding store instruction for the store data of the byte unit in which the store mask information of the subsequent store instruction is invalid. Control.

【0032】よってセレクタWDX14から出力される
ストアデータは先行ストア命令と後続ストア命令のスト
アデータをマージした一命令のストアデータとしてスト
アデータバッファのDWAポインタ12で示されるワー
ド位置に対して登録される。
Therefore, the store data output from the selector WDX 14 is registered as the store data of one instruction obtained by merging the store data of the preceding store instruction and the subsequent store instruction with respect to the word position indicated by the DWA pointer 12 of the store data buffer. .

【発明の効果】以上の説明から明らかなように、本発明
のストアバッファ管理方式は、ポインタは同一主記憶ア
ドレスに対して連続するストア命令が存在する場合、ス
トアバッファ登録時に先行するストア命令のストアデー
タと後続のストア命令のストアデータのマージを行なっ
た後、一つのストア命令としてストアバッファに登録す
るようにしているため、主記憶装置とのアクセス回数を
削減できるとともに、限定された容量のストアバッファ
を有効に活用できるという効果を有する。
As is apparent from the above description, in the store buffer management method of the present invention, when the pointer has consecutive store instructions for the same main memory address, the store instruction of the preceding store instruction is registered when the store buffer is registered. After merging the store data and the store data of the subsequent store instruction, it is registered in the store buffer as one store instruction, so that it is possible to reduce the number of accesses to the main memory and to save the limited capacity. This has the effect of effectively utilizing the store buffer.

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

【図1】本発明のストアバッファ管理方式の第1の実施
例における構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration in a first embodiment of a store buffer management system of the present invention.

【図2】第2の実施例における構成を示すブロック図で
ある。
FIG. 2 is a block diagram showing a configuration in a second exemplary embodiment.

【図3】第3の実施例における構成を示すブロック図で
ある。
FIG. 3 is a block diagram showing a configuration in a third exemplary embodiment.

【図4】第4の実施例における構成を示すブロック図で
ある。
FIG. 4 is a block diagram showing a configuration in a fourth exemplary embodiment.

【符号の説明】[Explanation of symbols]

5 ストアリクエストバッファ 6 ストアデータバッファ 7 比較器 8 ストアデータ書込み制御部 9 WAポインタ 11,12 書き込み指示ポインタDWA 13 レジスタWDR 14 WDXセレクタ 15 選択制御部 5 Store Request Buffer 6 Store Data Buffer 7 Comparator 8 Store Data Write Control Section 9 WA Pointer 11, 12 Write Instruction Pointer DWA 13 Register WDR 14 WDX Selector 15 Selection Control Section

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】ストアバッファとストア命令処理を必要と
する命令の実行をサポートする演算装置と主記憶装置と
を備えるパイプライン処理情報処理装置に係るストアバ
ッファ管理方式において、 先行するストア命令と後続のストア命令が同一主記憶ア
ドレスに対するストア命令の場合にストアバッファへの
ストアリクエスト情報、ストアデータ情報の登録は一つ
のストア命令として登録を行うように所定の一つのスト
ア命令に関するストアリクエスト情報が命令制御部から
ストア制御部に送出された場合に、前記ストアリクエス
ト情報と対になるストアデータ情報が数Tサイクル後に
演算制御部からストア制御部に送出され、このストアリ
クエストとストアデータのストア制御部への送出タイミ
ングのずれを利用してストアリクエスト情報を多段階の
レジスタによって待ち合わせする待ち合わせ手段と、 前記多段階のレジスタの最終段レジスタに先行ストア命
令のストアリクエスト情報が登録され、同時に最終段の
一段手前のレジスタに後続ストア命令が登録された場合
に、前記二段のレジスタのストアリクエスト情報を比較
し、一致した場合に先行ストア命令と後続ストア命令が
同一主記憶アドレスに対するストア命令であると判断す
る判断手段とを有し、 同一主記憶アドレスに対するストア命令である場合に演
算制御部からストア制御部に先行ストア命令のストアデ
ータ情報が送出されたタイミングで先行するストア命令
のストアリクエスト情報とストアデータ情報を同時にス
トアバッファ書き込み指示ポインタによって指示される
ワード位置に書き込みを行い、さらに後続ストア命令の
ストアデータ情報が演算制御部からストア制御部に送出
された場合にバイト単位のストアデータの有効性を示す
マスク情報が有効である部分のストアデータを前記先行
ストア命令が登録されたストアバッファの同一ワード位
置に上書きして登録することを特徴とするストアバッフ
ァ管理方式。
1. A store buffer management method according to a pipeline processing information processing apparatus comprising a store buffer, an arithmetic unit that supports execution of instructions requiring store instruction processing, and a main memory, and a preceding store instruction and a succeeding store instruction. If the store instructions for the same main memory address are the store instruction information, the store request information and the store data information in the store buffer are registered as one store instruction. When transmitted from the control unit to the store control unit, the store data information paired with the store request information is transmitted from the arithmetic control unit to the store control unit after several T cycles, and the store control unit for the store request and the store data. Store request information Waiting means for waiting by a multi-stage register, and store request information of the preceding store instruction is registered in the final stage register of the multi-stage register, and at the same time, a subsequent store instruction is registered in the register one stage before the final stage. And comparing the store request information of the two-stage registers and judging that the preceding store instruction and the succeeding store instruction are store instructions for the same main memory address when they match, for the same main memory address When the store instruction is a store instruction, the store request information and the store data information of the preceding store instruction are simultaneously indicated by the store buffer write instruction pointer at the timing when the store data information of the preceding store instruction is sent from the arithmetic control section to the store control section. Write to word position, and then follow When the store data information of the tor instruction is sent from the arithmetic control unit to the store control unit, the store data of the portion where the mask information indicating the validity of the byte-unit store data is valid is stored in which the preceding store instruction is registered. Store buffer management method characterized by overwriting and registering at the same word position in the buffer.
【請求項2】待ち合わせ手段と判断手段とは、 ストアリクエスト情報を2段階のレジスタによって保持
する保持手段と、 前記2段階のレジスタの第2段レジスタに先行ストア命
令のストアリクエスト情報が登録され、第一段のレジス
タに後続ストア命令が登録された場合に前記二段のレジ
スタのストアリクエスト情報を比較し、一致した場合に
先行ストア命令と後続ストア命令は同一主記憶アドレス
に対するストアであると判断する判断手段と、 ストアリクエストをストアリクエストバッファに登録す
る専用書き込み指示を行う指示手段と、 ストアデータをストアデータバッファに登録する専用書
き込み指示を行う指示手段と、 とで構成されることを特徴とする請求項1記載のストア
バッファ管理方式。
2. The queuing means and the judging means are holding means for holding the store request information by a two-stage register, and store request information of the preceding store instruction is registered in a second-stage register of the two-stage register, When the subsequent store instruction is registered in the register of the first stage, the store request information of the registers of the two stages are compared, and when they match, it is determined that the preceding store instruction and the subsequent store instruction are stores for the same main memory address. Determination means, an instruction means for issuing a dedicated write instruction for registering the store request in the store request buffer, and an instruction means for issuing a dedicated write instruction for registering the store data in the store data buffer. The store buffer management method according to claim 1.
【請求項3】請求項1記載の構成に加えて演算制御部か
らストア制御部に送出されたストアデータを一段のレジ
スタで受ける受付手段を設け、 前記レジスタに先行ストア命令のストアデータが登録さ
れた状態で後続ストア命令のストアデータが演算制御部
からストア制御部に送出された場合に両ストアデータを
後続ストア命令のバイト単位のストアデータの有効性を
示すマスク情報が有効であるストアデータを前記レジス
タに保持されている先行ストア命令のストアデータ出力
信号にマージしてストアデータ書き込み指示ポインタに
よって示されるワード位置に一命令として登録すること
を特徴とするストアバッファ管理方式。
3. In addition to the configuration according to claim 1, there is provided a receiving means for receiving the store data sent from the arithmetic control section to the store control section by a one-stage register, and the store data of the preceding store instruction is registered in the register. When the store data of the subsequent store instruction is sent from the arithmetic control unit to the store control unit in the above state, the mask data indicating the validity of the byte-unit store data of the subsequent store instruction A store buffer management system characterized by merging with a store data output signal of a preceding store instruction held in the register and registering as one instruction at a word position indicated by a store data write instruction pointer.
【請求項4】請求項1記載の構成に加えて、ストアリク
エスト情報を2段階のレジスタによって保持する保持手
段と、前記二段階のレジスタの第2段レジスタに先行ス
トア命令のストアリクエスト情報が登録され、第一段の
レジスタに後続ストア命令が登録された場合に前記二段
のレジスタのストアリクエスト情報を比較し、一致した
場合に先行ストア命令と後続ストア命令は同一主記憶ア
ドレスに対するストアであると判断する判断手段と、ス
トアリクエストをストアリクエストバッファに登録する
専用書き込み指示を行う指示手段と、ストアデータをス
トアデータバッファに登録する専用書き込み指示を行う
指示手段と、演算制御部からストア制御部に送出された
ストアデータを一般のレジスタで受ける受付手段とを設
け、 前記レジスタに先行ストア命令のストアデータが登録さ
れた状態で後続ストア命令のストアデータが演算制御部
からストア制御部に送出された場合に両ストアデータを
後続ストア命令のバイト単位のストアデータの有効性を
示すマスク情報が有効であるストアデータを前記レジス
タに保持されている先行ストア命令のストアデータにマ
ージすることによりストアデータ書き込み指示ポインタ
によって示されるワード位置に一命令として登録するこ
とを特徴とするストアバッファ管理方式。
4. In addition to the configuration according to claim 1, holding means for holding store request information by a two-stage register, and store request information of a preceding store instruction in a second-stage register of the two-stage register. When the subsequent store instruction is registered in the register of the first stage, the store request information of the registers of the two stages is compared, and when they match, the preceding store instruction and the subsequent store instruction are stores for the same main memory address. Determining means, an instruction means for issuing a dedicated write instruction for registering a store request in the store request buffer, an instruction means for issuing a dedicated write instruction for registering store data in the store data buffer, and an operation control section to a store control section. A register for receiving the store data sent to the general register, When the store data of the subsequent store instruction is sent from the arithmetic control unit to the store control unit while the store data of the preceding store instruction is registered in, the validity of the byte-unit store data of the subsequent store instruction A store characterized by registering as one instruction at the word position indicated by the store data write instruction pointer by merging the store data of which the mask information shown is valid with the store data of the preceding store instruction held in the register. Buffer management method.
JP4008039A 1992-01-21 1992-01-21 Store buffer managing system Pending JPH05197609A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4008039A JPH05197609A (en) 1992-01-21 1992-01-21 Store buffer managing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4008039A JPH05197609A (en) 1992-01-21 1992-01-21 Store buffer managing system

Publications (1)

Publication Number Publication Date
JPH05197609A true JPH05197609A (en) 1993-08-06

Family

ID=11682205

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4008039A Pending JPH05197609A (en) 1992-01-21 1992-01-21 Store buffer managing system

Country Status (1)

Country Link
JP (1) JPH05197609A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002304292A (en) * 2001-04-05 2002-10-18 Fujitsu Ltd Simulation method, program for making computer implement it, and recording medium recording program

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03100842A (en) * 1989-09-14 1991-04-25 Nec Corp Information processor
JPH0414151A (en) * 1990-05-08 1992-01-20 Nec Corp Store buffer control method and its mechanism

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03100842A (en) * 1989-09-14 1991-04-25 Nec Corp Information processor
JPH0414151A (en) * 1990-05-08 1992-01-20 Nec Corp Store buffer control method and its mechanism

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002304292A (en) * 2001-04-05 2002-10-18 Fujitsu Ltd Simulation method, program for making computer implement it, and recording medium recording program

Similar Documents

Publication Publication Date Title
JP3273367B2 (en) Method for asynchronously reading / writing data to / from memory and direct memory access controller therefor
US5636353A (en) Superscalar processor with direct result bypass between execution units having comparators in execution units for comparing operand and result addresses and activating results bypassing
US20060165109A1 (en) Data communication device
US20080201615A1 (en) Apparatus and computer program product for implementing atomic data tracing
EP0223150B1 (en) Information processing apparatus
JP3420091B2 (en) Microprocessor
US7111127B2 (en) System for supporting unlimited consecutive data stores into a cache memory
JPH05197609A (en) Store buffer managing system
JPH11110214A (en) Command control system and method for the same
JP2536415B2 (en) DMA transfer control device
JP3061106B2 (en) Bus bridge and computer system having the same
KR920002830B1 (en) Direct memory access controller
JP2908273B2 (en) Vector processing equipment
US5832307A (en) Satellite communication system overwriting not validated message stored in circular buffer with new message in accordance with address stored in last valid write address register
JP2901573B2 (en) Super scalar information processing device
JP2806690B2 (en) Microprocessor
JPH10111798A (en) Information processor
JPS6391756A (en) Partial write instruction processing system for storage device
JPH11353242A (en) Memory control system
JPH05250258A (en) Cache control system
JP2549410B2 (en) Main memory reference order control method
JPH081613B2 (en) Information processing device
JPH01129334A (en) Data control system for cache memory
JPH02259945A (en) Storing processing system
JPH03116345A (en) Data processor