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
JPS6017134B2 - Storage device control method - Google Patents
[go: Go Back, main page]

JPS6017134B2 - Storage device control method - Google Patents

Storage device control method

Info

Publication number
JPS6017134B2
JPS6017134B2 JP56028477A JP2847781A JPS6017134B2 JP S6017134 B2 JPS6017134 B2 JP S6017134B2 JP 56028477 A JP56028477 A JP 56028477A JP 2847781 A JP2847781 A JP 2847781A JP S6017134 B2 JPS6017134 B2 JP S6017134B2
Authority
JP
Japan
Prior art keywords
block
data
request
storage device
address
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
Application number
JP56028477A
Other languages
Japanese (ja)
Other versions
JPS57143781A (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 JP56028477A priority Critical patent/JPS6017134B2/en
Publication of JPS57143781A publication Critical patent/JPS57143781A/en
Publication of JPS6017134B2 publication Critical patent/JPS6017134B2/en
Expired legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Description

【発明の詳細な説明】 本発明は記憶装置制御方式に関する。[Detailed description of the invention] The present invention relates to a storage device control method.

さらに詳細には、複数のブロックよりなる主記憶装置(
MS)と、MSの一部データをブロックを単位としてそ
の写を保持する緩衝記憶装置(斑)とを有するデータ処
理装置における記憶装置制御方式に関する。データ処理
装置はMSに比較して小容量高速な斑を有し、Sに所望
のデータが存在すれば、BSから該データを高速に利用
することができる。
More specifically, the main memory (which consists of multiple blocks)
The present invention relates to a storage device control method in a data processing device that has an MS) and a buffer storage device that holds a copy of partial data of the MS in units of blocks. The data processing device has a small capacity and high speed compared to the MS, and if desired data exists in S, the data can be used from the BS at high speed.

既に所望のデータが存在しなければ、そのデー夕を含む
ブロックを単位としてMSからBSにブロック転送し、
これを利用することができる。データの書換えは、該デ
ータを含むブロックカミBSに存在すれば、BS内のデ
ータを書換えると共にMS内のデーテも書換える。該デ
ータを含むブロックが既に存在しなければ、MS内のデ
ータのみを書換える。BSはMSの写しであり、BSが
保持するデータはMS上のデータと一致していることが
必要である。ところがMSから母へのブロック転送中に
MSへの書換え要求があった場合、MSとBS間のデー
タに不一致(矛盾)が起るケースがある。即ち、ブロッ
ク転送中にあっては、該ブロック転送中のデータは既に
未だ未登録であるため、該ブロック転送中のデータはB
Sに存在しないと判定されるので、BS内のデータは書
換えられずMS内のデータのみ書換えられ、よって母上
のデータに矛盾が起る。第1図は、茂1とMS2の関係
を示したものである。今、BSIのあるブロック11の
内容を入れ替えるべく、MS2のブロック21に対しブ
ロック転送要求(図ではBT)を発行した場合、BSI
のブロック11の内容はそれまでXであったものが、M
Sのブロック21の内容に書換えられる。しかしこの時
、ブロック転送要求をMSで処0理している間に、演算
処理装置(BPU)或はチャネル(CH)3より、MS
2の同一ブロック21に対し、その内容を書換える要求
(図ではST)があった場合、MS2は実行中のブロッ
ク転送処理が終了后この要求を処理する。この結果、ブ
ロタツク21の内容はAからBに書換えられる。なおこ
こでブロックの内容について、A,B,×と述べたのは
データ内容をシンボル化したものである。従って、以上
2つの要求が処理された結果、MS2のブロック21の
内容はBであるのに対し、このブロックに対応するBS
Iのブロック11の内容はAとなってしまい、データ内
容は矛盾が発生する。この間のタイムチャートを示した
ものが第2図であり、ブロック転送要求とブロックリプ
レース(既におけるXからAへのりプレース)の間に発
生したストア要求は、ブロック転送要求処理後にMSで
処理されるため、BS,MSの対応するブロックの内容
は、X→A,A→Bと書換えられ、データ内容に矛盾を
生ずる。
If the desired data does not already exist, the block containing the data is transferred from the MS to the BS as a unit;
You can take advantage of this. When data is rewritten, if the block BS containing the data exists, the data in the BS is rewritten and the data in the MS is also rewritten. If a block containing the data does not already exist, only the data in the MS is rewritten. The BS is a copy of the MS, and the data held by the BS must match the data on the MS. However, if a rewrite request is made to the MS while a block is being transferred from the MS to the mother, a mismatch (inconsistency) may occur in the data between the MS and the BS. That is, while a block is being transferred, the data being transferred is already unregistered, so the data being transferred is B.
Since it is determined that the data does not exist in S, the data in the BS is not rewritten, but only the data in the MS is rewritten, resulting in an inconsistency in the data on the mother. FIG. 1 shows the relationship between Shigeru 1 and MS2. Now, if a block transfer request (BT in the figure) is issued to block 21 of MS2 in order to replace the contents of block 11 with BSI, the BSI
The contents of block 11 are
The contents of block 21 of S are rewritten. However, at this time, while the MS is processing the block transfer request, the MS
When there is a request (ST in the figure) to rewrite the contents of the same block 21 of No. 2, MS 2 processes this request after the ongoing block transfer process is completed. As a result, the contents of block 21 are rewritten from A to B. Note that regarding the contents of the blocks, the symbols A, B, and x are symbols of the data contents. Therefore, as a result of processing the above two requests, the content of block 21 of MS2 is B, whereas the BS corresponding to this block
The contents of block 11 of I become A, and a contradiction occurs in the data contents. Figure 2 shows a time chart during this period, and a store request that occurs between a block transfer request and a block replacement (already replacing from X to A) is processed by the MS after the block transfer request is processed. Therefore, the contents of the corresponding blocks of BS and MS are rewritten as X→A, A→B, causing a contradiction in the data contents.

本発明の目的は「ブロック転送処理中にMSの同一ブロ
ックを書換える要求があった場合でも斑,MSの対応す
るブロックのデータ内容に不一致を生ぜしめないため記
憶装置制御方式を提供することにある。
The purpose of the present invention is to provide a storage device control method that does not cause discrepancies in the data contents of corresponding blocks of MSs even if there is a request to rewrite the same block of MSs during block transfer processing. be.

本発明の特徴は、ブロック転送処理中のMSの同一ブロ
ックを書換える要求が発生した場合には、本ブロック転
送によるデータのBSへの登録を抑止することにある。
A feature of the present invention is that when a request to rewrite the same block of an MS during block transfer processing occurs, registration of data in the BS by this block transfer is suppressed.

第3図は本発明の一実施例を示す。本実施例では、BP
U32で発生したMS35へのアクセス要求は聡部31
を経由して処理され、CH33および他のBPU34で
発生し、MS35を書換える要求は、ブロックキャンセ
ル要求として斑部31へ入力されるものとする。
FIG. 3 shows an embodiment of the invention. In this example, BP
The access request to MS35 generated by U32 is sent to Satoshibe 31.
It is assumed that a request to rewrite the MS 35 that is processed through the CH 33 and other BPUs 34 and is input to the patch unit 31 as a block cancellation request.

ここで、BS部31の基本動作並にブロックキャンセル
については衆知であり、詳細説明は省略する。BPU3
2から発行されたMS35への議出し要求は、茂部31
のリクエスト受付部311によって受付けられ、アドレ
スがアドレスレジスタ(SAR)312に格納された後
、BSアドレスアレイ(BAA)およびBSアクセス部
313およびBAAおよびBS314により、求めるア
ドレスのデータカミBSに存在するか否かがBAAを索
引することにより調べられる。BAAが母が保持するデ
ータブロックのMS上におけるアドレスを保持するもの
である。求めるデータが既に存在しなかった場合には、
ブロック転送要求発行論理315により、MS35へブ
ロック転送を起動する。本ブロック転送要求に対しMS
が講出し処理を終了すると、ブロック転送処理論理31
9に制御が渡り、BAAおよび斑アクセス部31 3に
対し、フロックリプレース要求を発行し、BSのあるブ
ロツクを新たな内容に書換える(ブロックリプレース)
と同時にBAAにそのアドレスを登録する。ここで、こ
の一連のブロック転送処理中に、BPU32からMS3
5へのデータ書換要求や、CH33、他庇PU34から
のブロックキヤンセル要求のアドレスが、本ブロック転
送のブロックのアドレスと一致した場合には、本ブロッ
ク転送によるブロックリプレースを抑止することが本発
明の要点であるが、これは次のように実現する。斑部3
1では、MS35に対してブロック転送要求を発行する
と、そのアドレスをブロック転送アドレスレジスタ(B
FAR)361に退避しておく。以後、本ブロック転送
要求がMS35および母部31で処理されている間に、
リクエスト受付部311が次の1」クェストを受付けた
時にはトそのリクエストのアドレスがセットされるSA
R312の内容とBFAR316の内容を比較回路31
7で比較する。ここで一致が検出されると一致ビット3
18をセットし、ブロック転送処理論理319により発
行されるブロックリプレース信号31 91を、否定回
路3182およびAND回路3192によって抑止し、
ブロックリプレース要求信号3193が発行されないよ
うにする。次に第4図により、アドレス比較論理317
周辺および、ブロックリプレース要求信号抑止論理を説
明する。アドレス比較回路3 1 7は、SAR3 1
2とBFAR316のブロック内アドレス部を除いた
部分について比較する。
Here, the basic operations of the BS unit 31 and block cancellation are well known, and detailed explanations will be omitted. BPU3
The request for discussion to MS35 issued by 2 is from Shigebe 31
After the address is accepted by the request receiving unit 311 and stored in the address register (SAR) 312, the BS address array (BAA) and the BS access unit 313 and the BAA and BS 314 determine whether or not the data of the desired address exists in the BS. This can be determined by indexing the BAA. The BAA holds the address on the MS of the data block held by the mother. If the data you are looking for does not already exist,
Block transfer request issuing logic 315 initiates a block transfer to MS 35 . MS in response to this block transfer request.
When the block transfer processing logic 31 finishes the offer processing, the block transfer processing logic 31
Control is passed to 9, which issues a block replacement request to the BAA and block access unit 313, and rewrites a certain block in the BS with new content (block replacement).
At the same time, register the address with BAA. Here, during this series of block transfer processing, from the BPU 32 to the MS 3
According to the present invention, if the address of a data rewrite request to 5 or a block cancel request from CH 33 or other PU 34 matches the address of the block of this block transfer, block replacement by this block transfer is suppressed. The main point is that this is achieved as follows. Spotted area 3
1, when a block transfer request is issued to the MS35, the address is stored in the block transfer address register (B
FAR) 361. Thereafter, while this block transfer request is being processed by the MS 35 and the mother unit 31,
When the request reception unit 311 accepts the next 1'' quest, the SA is set to the address of that request.
A circuit 31 compares the contents of R312 and BFAR316.
Compare with 7. If a match is detected here, match bit 3
18, the block replace signal 3191 issued by the block transfer processing logic 319 is suppressed by the NOT circuit 3182 and the AND circuit 3192,
Block replacement request signal 3193 is prevented from being issued. Next, according to FIG.
The peripherals and block replacement request signal suppression logic will be explained. The address comparison circuit 3 1 7 is SAR 3 1
2 and the portion of the BFAR 316 excluding the intra-block address portion.

比較するアドレス部分は、できる限り広い範囲である方
が無駄な一致検出を避ける上で好ましいが、特に制約は
ない。ただし「アドレス変換により仮想アドレスから実
アドレスへの変換を伴うような装置においては、実アド
レスによって比較しなければならない。タ 比較回路3
17からの一致出力信号は、その時SAR31 2に格
納されているアドレスに対応するりクェスト要求が、B
PU32によるMS35へのデータ書換要求BPUST
、あるいはCH33および他BPU34からのブロック
キャンセル要求OCHBCおよび、BPUBCである場
合、それらをORゲート41で○RしたものとANDゲ
ート42でANDして、一致ラッチ318にセットする
。ブロックリプレース信号3191は、ブロック転送処
理論理319内のブロック転送の終了を示すラツチ43
がセットされることによりセットされ、前記一致ラッチ
318の出力3181の否定ゲート3182出力とAN
Dゲート3191でANDされてブロックリプレース要
求信号31 93が作られる。即ち、一致ラッチ318
がセットされている状態では、ブロックリプレース信号
3191がセットされてもブロックリプレース要求信号
3193の発行は抑止され、BSへのデータの登録が抑
止される。なお、一致ラッチ43のデイレイラツチ44
の出力によりリセットされる。なお、本リセットは次回
のブロック転送要求発行時にリセットするなど他にも種
々の方法が考えられる。なお本実施例では、CH33お
よび池BPU34からのIJクェストは、ブロックキャ
ンセル要求としたが、BS3 1のデータを使用するい
わゆる、CH或はBPU間でのBSシェア構成では、そ
れら装置からのMS書替え要求について、本実施例での
BPU32からのMS書替え要求とまったく同様に扱え
ば良く、本発明は各種装置による醜の使用形態には依存
しない。
It is preferable for the address part to be compared to be as wide as possible in order to avoid unnecessary matching detection, but there is no particular restriction. However, in a device that involves address translation from a virtual address to a real address, the comparison must be made using real addresses.
The match output signal from B17 indicates that the quest request corresponds to the address then stored in SAR312.
Data rewrite request from PU32 to MS35 BPUST
, or block cancel requests OCHBC and BPUBC from the CH 33 and other BPUs 34, they are ORed by the OR gate 41 and ANDed by the AND gate 42, and set in the coincidence latch 318. Block replace signal 3191 connects latch 43 to indicate the end of a block transfer within block transfer processing logic 319.
is set by setting the output 3181 of the match latch 318 and the output of the NOT gate 3182 of the output 3181 of the match latch 318 and the AN
A D gate 3191 performs an AND operation to generate a block replacement request signal 3193. That is, match latch 318
In the state where is set, even if the block replace signal 3191 is set, the issuance of the block replace request signal 3193 is inhibited, and the registration of data to the BS is inhibited. Note that the delay latch 44 of the matching latch 43
It is reset by the output of Note that various other methods can be considered for this reset, such as resetting at the time of issuing the next block transfer request. In this embodiment, the IJ quest from the CH33 and the pond BPU34 is a block cancellation request, but in a so-called BS share configuration between CHs or BPUs that uses BS31 data, MS rewriting from these devices is required. The request can be handled in exactly the same way as the MS rewrite request from the BPU 32 in this embodiment, and the present invention does not depend on the ugly usage patterns of various devices.

また、一致ラッチ3181こ代るものとして、ブロック
転送処理中のMS書替要求アドレスも退避しておき、比
較結果を保持する方法なども考えられ、唯一の方法では
ない。
Furthermore, as an alternative to the coincidence latch 3181, there may be a method in which the MS rewrite request address during block transfer processing is also saved and the comparison result is held, but this is not the only method.

本発明によれば、ブロック転送処理中にMSの同一ブロ
ックを書換える要求があった場合、BSへの登録を抑止
することにより、BS,MSの対応するブロックのデー
タ内容の不一致を防ぐことができる。
According to the present invention, when there is a request to rewrite the same block in the MS during block transfer processing, it is possible to prevent mismatch in the data contents of the corresponding blocks in the BS and the MS by suppressing registration in the BS. can.

また、アドレス比較の比較ビット数をできる限り多くす
ることにより、厳密な比較が可能となり、ブロックリプ
レースの無駄な抑止を避け、斑を有効に使用することが
可能となる。
Furthermore, by increasing the number of comparison bits for address comparison as much as possible, strict comparison becomes possible, unnecessary inhibition of block replacement can be avoided, and spots can be used effectively.

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

第1図は本発明が必要となる背景を説明する図、第2図
はその時間関係を説明する図、第3図は本発明の一実施
例を示すブロック図。 第4図は第3図の一部を詳細に示すブロック図である。
31・・・・・・緩衝記憶装置(茂部)、35・・・・
・・主記憶装置(MS)、317・・・・・・比較回路
、319・・・・・・ブロック転送処理論理。 第1図 拳2図 多4図 多3図
FIG. 1 is a diagram explaining the background that makes the present invention necessary, FIG. 2 is a diagram explaining the time relationship thereof, and FIG. 3 is a block diagram showing one embodiment of the present invention. FIG. 4 is a block diagram showing a part of FIG. 3 in detail.
31... Buffer storage device (Shigebe), 35...
. . . Main memory (MS), 317 . . . Comparison circuit, 319 . . . Block transfer processing logic. Figure 1 fist figure 2 figure 4 figure figure 3 figure

Claims (1)

【特許請求の範囲】[Claims] 1 複数のブロツクよりなる主記憶装置と、主記憶装置
の一部のデータをブロツクを単位としてその写を保持す
る緩衝記憶装置とを有するデータ処理装置において、上
記主記憶装置より緩衝記憶装置へブロツク単位にデータ
転送処理を実行中、上記主記憶装置データの書換え要求
が発生した場合、上記データ転送処理中の主記憶装置ア
ドレスと書換え要求の主記憶装置アドレスを比較し、一
致している場合には上記データ転送による緩衝記憶装置
への転送データの登録を抑止することを特徴とする記憶
装置制御方式。
1. In a data processing device that has a main memory device consisting of a plurality of blocks and a buffer memory device that holds a copy of some data in the main memory device in units of blocks, a block is transferred from the main memory device to the buffer memory device. If a request to rewrite the main storage device data occurs while data transfer processing is being performed in units, the main storage device address during the data transfer processing and the main storage device address of the rewrite request are compared, and if they match, the A storage device control method is characterized in that registration of transferred data in a buffer storage device due to the data transfer is suppressed.
JP56028477A 1981-03-02 1981-03-02 Storage device control method Expired JPS6017134B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56028477A JPS6017134B2 (en) 1981-03-02 1981-03-02 Storage device control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56028477A JPS6017134B2 (en) 1981-03-02 1981-03-02 Storage device control method

Publications (2)

Publication Number Publication Date
JPS57143781A JPS57143781A (en) 1982-09-06
JPS6017134B2 true JPS6017134B2 (en) 1985-05-01

Family

ID=12249720

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56028477A Expired JPS6017134B2 (en) 1981-03-02 1981-03-02 Storage device control method

Country Status (1)

Country Link
JP (1) JPS6017134B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0664550B2 (en) * 1985-12-27 1994-08-22 株式会社日立製作所 Buffer memory control system

Also Published As

Publication number Publication date
JPS57143781A (en) 1982-09-06

Similar Documents

Publication Publication Date Title
EP0474253B1 (en) Register circuit for copying contents of one register into another register
US4385365A (en) Data shunting and recovering device
US5280597A (en) Pipeline processor with self timed data transfer
JPS6017134B2 (en) Storage device control method
US4802125A (en) Memory access control apparatus
EP0461631B1 (en) Data storing device having a plurality of registers allotted for one address
US5012410A (en) Data processor with instruction cache memory
JPS5953631B2 (en) storage controller
JPS5916354B2 (en) Storage device
JPH0283736A (en) OSC detection method of buffer storage controller
US11650738B2 (en) Integrity check of a memory
JPS5864534A (en) Data transfer system of computer device
JPS59144955A (en) Information processor
JPS6252333B2 (en)
JPS58166581A (en) Addressing system of memory
JPS60183652A (en) Cash memory control method
JPS5938827A (en) Microprocessor ipl system
JPS6388671A (en) Simultaneous concurrent processing control system
JPH0322073A (en) Data transfer controller
JPS6212532B2 (en)
JPS6340954A (en) Memory device
JPH03127126A (en) Information processor
JPH0156429B2 (en)
JPH0580698B2 (en)
JPS589520B2 (en) storage controller