JP2614677B2 - Write control method for storage device - Google Patents

Write control method for storage device

Info

Publication number
JP2614677B2
JP2614677B2 JP3271292A JP27129291A JP2614677B2 JP 2614677 B2 JP2614677 B2 JP 2614677B2 JP 3271292 A JP3271292 A JP 3271292A JP 27129291 A JP27129291 A JP 27129291A JP 2614677 B2 JP2614677 B2 JP 2614677B2
Authority
JP
Japan
Prior art keywords
writing
tailor
data
header
write
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 - Lifetime
Application number
JP3271292A
Other languages
Japanese (ja)
Other versions
JPH05108497A (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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP3271292A priority Critical patent/JP2614677B2/en
Publication of JPH05108497A publication Critical patent/JPH05108497A/en
Application granted granted Critical
Publication of JP2614677B2 publication Critical patent/JP2614677B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、高信頼性と高性能を両
立させることが要件となる情報処理システムの信頼性向
上、性能向上にある。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an improvement in the reliability and performance of an information processing system in which it is necessary to achieve both high reliability and high performance.

【0002】[0002]

【従来の技術】記憶装置の実効的な速度を向上させる技
法としてインターリーブ方式が知られている。これは、
図5に示したように、記憶装置をバンク(BN)と呼ば
れる独立に動作可能なモジュールに分割し、全バンク
(BN)毎に並列動作して記憶制御するものである。例
えば図5のように主記憶が4つのバンク(BN)に分割
され各バンク(BN)は214語からなっているとする。
そしてCPUからのアドレス情報16ビットの下位ビッ
トでバンク(BN)を示し、上位14ビットで各バンク
(BN)内のアドレスを示している。この上位14ビッ
トのアドレスを同時に各バンク(BN)のメモリアドレ
スレジスタに送れば全バンク(BN)が並行動作をして
1記憶サイクル時間内に連続するアドレスの内容をアク
セスできるので、4倍の速度が得られる。このように各
バンク(BN)間に番地を分散させる技法をインターリ
ーブという。
2. Description of the Related Art An interleave method is known as a technique for improving the effective speed of a storage device. this is,
As shown in FIG. 5, the storage device is divided into independently operable modules called banks (BN), and storage is controlled by operating in parallel for all banks (BN). For example, each bank is divided main memory into four banks (BN) as in FIG. 5 (BN) is that composed of two 14-word.
The lower 16 bits of the address information from the CPU indicate the bank (BN), and the upper 14 bits indicate the address in each bank (BN). If the upper 14-bit address is sent to the memory address register of each bank (BN) at the same time, all the banks (BN) operate in parallel and can access the contents of consecutive addresses within one storage cycle time. Speed is obtained. Such a technique of distributing addresses among the banks (BN) is called interleaving.

【0003】ところで、データベースシステムなどの更
新履歴(ログデータ)を記憶装置に格納する際、従来の
インターリーブ方式で書き込み制御すると、書き込みア
クセスの途中で例えばマシンの故障が起こった場合、デ
ータのどこまでが正しいかどこからが正しくないかが確
認できない。特に、ログデータ自体が正しいかわからな
い場合、データベースの復旧が不可能となる可能性があ
る。
By the way, when an update history (log data) of a database system or the like is stored in a storage device, if write control is performed by a conventional interleave method, if a machine failure occurs during a write access, for example, up to where the data is. I can't tell if it's right or not right. In particular, if the log data itself is not known, recovery of the database may not be possible.

【0004】そこで、そのログデータが正しいことを確
認する手段として、図3に示したように、ログデータ
(ボディ(D2))の前後に同一内容のヘッダ(D1)
とテーラ(D3)を持たせ、ヘッダ(D1)を書くまで
ボディ(D2)を書かない、ボディ(D2)を書くまで
はテーラ(D3)を書かない。という制御を行い、ヘッ
ダ(D1)とテーラ(D3)が一致したときデータが正
しいと確認する方式がとられている。
As a means for confirming that the log data is correct, as shown in FIG. 3, a header (D1) having the same contents before and after the log data (body (D2)) is used.
And the tailor (D3), do not write the body (D2) until the header (D1) is written, and do not write the tailor (D3) until the body (D2) is written. Is performed, and when the header (D1) and the tailor (D3) match, the data is confirmed to be correct.

【0005】この制御は、ヘッダ(D1)を書け、
ボディ(D2)を書け、テーラ(D3)を書け、とい
う3つの命令からなり、この3つの命令に従い、前記イ
ンターリーブ方式の下で、これらを書き込んでいる。
This control involves writing a header (D1),
It is composed of three instructions of writing a body (D2) and writing a tailor (D3), and these are written according to the three instructions under the interleave method.

【0006】この場合、本質的には、ヘッダ(D1)の
書き込みが終了した後に始めてボディ(D2)の書き込
みが可能で、また、ボディ(D2)の書き込みが完了し
て始めてテーラ(D3)の書き込みが可能である。
In this case, essentially, the writing of the body (D2) is possible only after the writing of the header (D1) is completed, and the writing of the tailor (D3) is started only after the writing of the body (D2) is completed. Writing is possible.

【0007】[0007]

【発明が解決しようとする課題】もし、このような順序
性を保証せず、ヘッダ(D1)を書く、ボディ(D
2)を書く、テーラ(D3)を書く、という処理をイ
ンターリーブ方式下3つの命令で書込制御すると以下の
ような問題が生ずる。
If such a sequence is not guaranteed and the header (D1) is written, the body (D
If the process of writing 2) and the process of writing the tailor (D3) are write-controlled by three instructions under the interleave method, the following problem occurs.

【0008】すなわち、インターリーブ方式では図に示
すような全バンク(BN)が並列動作するため、上記3
つの命令に従って、ヘッダ(D1)を記録する、ボディ
(D2)を記録する、テーラ(D3)を記録する、とい
う書込制御が全バンク(BN)でそれぞれ並列的に行わ
れる。
That is, in the interleave system, all the banks (BN) shown in FIG.
According to these instructions, write control of recording the header (D1), recording the body (D2), and recording the tailor (D3) is performed in parallel in all the banks (BN).

【0009】この場合、3つの命令のメモリアクセスは
基本的に保証されるが、その保証としてはCPUの中の
命令の実行順序として保証されるだけで、ハードウェ
ア、すなわちメモリの内部状態としては、書き込み順序
は保証されない。
In this case, the memory access of the three instructions is basically guaranteed, but the guarantee is only assured as the execution order of the instructions in the CPU, but the hardware, that is, the internal state of the memory, is not guaranteed. However, the writing order is not guaranteed.

【0010】つまり、メモリアクセスの高速化のためイ
ンターリーブにより、ヘッダ(D1)の書き込み、ボデ
ィ(D2)の書き込み、テーラ(D3)の書き込みが、
互いに他の書き込みが正しく完了されたか否かを問わず
に別個に並列処理されるという結果となる。
That is, the writing of the header (D1), the writing of the body (D2), and the writing of the tailor (D3) are performed by interleaving to speed up the memory access.
The result is that they are processed separately in parallel regardless of whether or not the other writes have been completed correctly.

【0011】従って、並列処理の途中で、ヘッダ(D
1)の書き込みと、テーラ(D3)の書き込みは正しく
行われたが、それらに対応してボデイが並列書き込みさ
れる際に、そのバンク(BN)への書き込みエラーが生
じてしまう場合があると、本来正しくないデータがある
にも拘らず、ヘッダ(D1)とテーラ(D3)が一致す
るため、正しいものと認識してしまうという結果とな
る。
Therefore, during the parallel processing, the header (D
Although the writing of 1) and the writing of the tailor (D3) were performed correctly, there is a case where a writing error to the bank (BN) may occur when the bodies are written in parallel corresponding to them. In spite of the fact that there is originally incorrect data, the header (D1) and the tailor (D3) match, so that the result is that the data is recognized as correct.

【0012】従って、ヘッダ(D1)を書け、ボデ
ィ(D2)を書け、テーラ(D3)を書け、という3
つの命令は必ずその順序通りに各々の完了を待って実行
されなければならない。
Therefore, write a header (D1), write a body (D2), and write a tailor (D3).
Two instructions must be executed in their order, waiting for each to complete.

【0013】一方、記憶装置へのアクセスは一般に実際
のデータ転送動作が開始されるまでの各種チェックや起
動処理のため、通常の命令と比較して非常に長い時間が
かかる。この時間は記憶装置に対する命令を出す毎必要
とする。
On the other hand, access to the storage device generally takes a much longer time than a normal instruction because of various checks and activation processes until the actual data transfer operation is started. This time is required each time a command is issued to the storage device.

【0014】そのため、ヘッダ(D1)、ボディ(D
2)、テーラ(D3)の書き込みを3つの命令で実行し
ていたのでは中央処理装置(CPU)を長時間拘束する
結果となる。
Therefore, the header (D1) and the body (D
2) If the writing of the tailor (D3) is executed by three instructions, the result is that the central processing unit (CPU) is restrained for a long time.

【0015】本発明は、以上のような従来のインターリ
ーブ方式下に於ける記憶制御方式の問題点を解決し、デ
ータの書き込み保証を確実にするとともに、書き込み処
理の高速化を図ることを技術的課題とする。
The present invention solves the above-mentioned problems of the storage control method under the conventional interleave method, and ensures the data write assurance and speeds up the write processing. Make it an issue.

【0016】[0016]

【課題を解決するための手段】本発明は、前記課題を解
決するため以下のような手段を採用した。複数のバンク
(BN)に分割された記憶装置(1)へのデータの書き
込みをインターリーブ方式で行うとともに、本来書き込
むべきデータとしてのボディ(D2)の前後に、同一内
容のヘッダ(D1)とテーラ(D3)を附加し、ヘッダ
(D1)とテーラ(D3)の一致をみてボディ(D2)
の正当性を保証する記憶制御方式において、前記ヘッダ
(D1)のバンク(BN)への書き込みと、前記ボディ
(D2)のバンク(BN)への書き込みと、前記テーラ
(D3)のバンク(BN)への書き込みを1つの命令で
行い、書き込みに際しては、各データの書き込みはイン
ターリビングの対象とするが、各3つの書き込み相互間
ではインタリーブの対象とせず経時的に行うようにした
ものである。
The present invention employs the following means to solve the above-mentioned problems. Data is written to the storage device (1) divided into a plurality of banks (BN) in an interleaved manner, and before and after a body (D2) as data to be originally written, a header (D1) and a tailor having the same contents are written. (D3) is added, and the body (D2) is checked when the header (D1) matches the tailor (D3).
In the storage control method which guarantees the validity of the bank, the header (D1) is written to the bank (BN), the body (D2) is written to the bank (BN), and the bank (BN) of the tailor (D3) is written. ) Is written by one instruction, and at the time of writing, the writing of each data is to be interleaved, but is not to be interleaved among the three writings, and is performed over time. .

【0017】すなわち、従来はヘッダ(D1)のバンク
(BN)への書き込みと、前記ボディ(D2)のバンク
(BN)への書き込みと、前記テーラ(D3)のバンク
(BN)への書き込みがそれぞれ、ヘッダ(D1)書き
込み命令、ボディ(D2)書き込み命令、テーラ(D
3)書き込み命令という3つの命令で行われていたのに
対し、本発明では、ヘッダ(D1)、ボディ(D2)、
テーラ(D3)の前記記憶装置(1)への書き込みは一
つの命令に従って行われるようにし、その際、ヘッダ
(D1)の書き込み、ボディ(D2)の書き込み、テー
ラ(D3)の書き込み自体はそれぞれインターリーブに
よる並列処理は行ってもよいが、ヘッダ(D1)、ボデ
ィ(D2)、テーラ(D3)相互間での並列処理はやめ
てヘッダ(D1)、ボディ(D2)、テーラ(D3)の
順で書き込み処理を行うようにしたものである。
That is, conventionally, writing to the bank (BN) of the header (D1), writing to the bank (BN) of the body (D2), and writing to the bank (BN) of the tailor (D3) are performed. Header (D1) write command, body (D2) write command, tailor (D
3) In contrast to the three instructions of the write instruction, the present invention provides a header (D1), a body (D2),
The writing of the tailor (D3) to the storage device (1) is performed in accordance with one instruction, and at this time, the writing of the header (D1), the writing of the body (D2), and the writing of the tailer (D3) are performed individually. Although parallel processing by interleaving may be performed, parallel processing between the header (D1), the body (D2), and the tailor (D3) is stopped, and the header (D1), the body (D2), and the tailor (D3) are sequentially executed. A writing process is performed.

【0018】より具体的には、図1の原理図のように、
本発明では、ヘッダ(D1)、ボディ(D2)、テーラ
(D3)を記憶装置(1)に書き込めとの1つの書き込
み命令を送出する書き込み命令発生手段(2)と、書き
込むべきデータにおけるヘッダ(D1)、ボディ(D
2)、テーラ(D3)の区別をするデータ識別手段
(3)と、前記書き込み命令発生手段(2)からの書き
込み命令に従って、前記データ識別手段(3)によるヘ
ッダ(D1)、ボディ(D2)、テーラ(D3)の区別
を参照して記憶装置(1)への書き込み制御をする書き
込み制御手段(4)と、を備え、前記書き込み制御手段
(4)は、ヘッダ(D1)の書き込みが終了するまでボ
ディ(D2)及びテーラ(D3)の書き込みを停止し、
ヘッダ(D1)の書き込み終了後にボディ(D2)の書
き込みを開始するとともに、テーラ(D3)の書き込み
を停止したままとし、ボディ(D2)の書き込み終了後
にテーラ(D3)の書き込みを行い、データの書き込み
にあたって、少なくともボディ(D2)の書き込みをイ
ンターリーブ方式により行うことを特徴とする。
More specifically, as shown in the principle diagram of FIG.
According to the present invention, a write command generating means (2) for sending one write command to write a header (D1), a body (D2), and a tailor (D3) to a storage device (1); D1), body (D
2) a data identification means (3) for distinguishing the tailor (D3), and a header (D1) and a body (D2) by the data identification means (3) according to a write command from the write command generation means (2). And write control means (4) for controlling the writing to the storage device (1) with reference to the distinction between the tailor (D3), and the write control means (4) completes the writing of the header (D1). Stop writing the body (D2) and tailor (D3) until
After the writing of the header (D1) is completed, the writing of the body (D2) is started, and the writing of the tailor (D3) is stopped. After the writing of the body (D2) is completed, the writing of the tailor (D3) is performed. In writing, at least writing of the body (D2) is performed by an interleave method.

【0019】[0019]

【作用】まず、ヘッダ(D1)、ボディ(D2)、テー
ラ(D3)を記憶装置(1)に書き込めとの1つの書き
込み命令が書き込み命令発生手段(2)から送出され
る。書き込み命令発生手段(2)は通常、中央処理装置
(CPU)がこれを担う。
First, one write command to write the header (D1), the body (D2) and the tailer (D3) to the storage device (1) is sent from the write command generating means (2). The write command generating means (2) is usually borne by a central processing unit (CPU).

【0020】本発明では、ヘッダ(D1)、ボディ(D
2)、テーラ(D3)の書き込み命令は、一つであるの
で、書き込み制御にあたって必要とされる、実際のデー
タ転送動作が開始されるまでの各種チェックや起動処理
が1回ですむ。
In the present invention, the header (D1) and the body (D
2) Since the write command of the tailor (D3) is one, various checks and activation processes required for the write control until the actual data transfer operation is started are required only once.

【0021】書き込みに際しては、予め本来書き込むべ
きデータとしてのボディ(D2)の前後に、同一内容の
ヘッダ(D1)とテーラ(D3)が附加される。一つの
命令でヘッダ(D1)、ボディ(D2)、テーラ(D
3)の書き込み処理が行われるため、処理の対象として
はこれらヘッダ(D1)、ボディ(D2)、テーラ(D
3)が一括して扱われるが書き込みにあたっては、デー
タ識別手段(3)によりヘッダ(D1)、ボディ(D
2)、テーラ(D3)の区別がなされ、この区別に従
い、ヘッダ(D1)、ボディ(D2)、テーラ(D3)
の書き込みがこの順序で行われ、相互にインターリーブ
処理すなわちヘッダ(D1)の書き込みとボディ(D
2)の書き込みとテーラ(D3)の書き込みを同時に並
列処理することはしない。
At the time of writing, a header (D1) and a tailor (D3) having the same contents are added before and after the body (D2) as data to be originally written. The header (D1), body (D2), tailor (D
Since the write processing of 3) is performed, the processing target is the header (D1), body (D2), tailor (D
3) are collectively handled, but when writing, the data identification means (3) uses the header (D1) and the body (D1).
2) The tailor (D3) is distinguished, and according to this distinction, the header (D1), the body (D2), and the tailor (D3).
Are written in this order, and are mutually interleaved, that is, the writing of the header (D1) and the writing of the body (D1).
The writing of 2) and the writing of the tailor (D3) are not performed simultaneously in parallel.

【0022】すなわち、書き込み制御手段(4)によ
り、ヘッダ(D1)の書き込みが終了するまでボディ
(D2)及びテーラ(D3)の書き込みを停止し、ヘッ
ダ(D1)の書き込み終了後にボディ(D2)の書き込
みを開始するとともに、テーラ(D3)の書き込みを停
止したままとし、ボディ(D2)の書き込み終了後にテ
ーラ(D3)の書き込みを行う。
That is, the writing of the body (D2) and the tailor (D3) is stopped by the writing control means (4) until the writing of the header (D1) is completed, and the body (D2) is written after the writing of the header (D1) is completed. , The writing of the tailor (D3) is stopped, and the writing of the tailor (D3) is performed after the writing of the body (D2) is completed.

【0023】この結果、ヘッダ(D1)とテーラ(D
3)の書き込みは成功したがボディ(D2)の書き込み
は失敗したという場合は生じない。すなわちヘッダ(D
1)とテーラ(D3)が一致している(書き込み保証は
得られている)にも拘らずボディ(D2)の内容にエラ
ーが存在する状態がなくなる。
As a result, the header (D1) and the tailor (D
The case where writing of 3) succeeds but writing of body (D2) fails does not occur. That is, the header (D
Despite the fact that 1) and the tailor (D3) match (the write guarantee has been obtained), there is no longer a state in which an error exists in the contents of the body (D2).

【0024】ところで、書き込み命令発生手段(2)と
しての中央処理装置(CPU)からの書き込み命令は、
特定のハードウェア命令コードと、転送アドレス、転送
データ長を記憶装置(1)に対して送出することによっ
て行われる。
By the way, the write command from the central processing unit (CPU) as the write command generating means (2)
This is performed by sending a specific hardware instruction code, a transfer address, and a transfer data length to the storage device (1).

【0025】よって、前記データ識別手段(3)を構成
するために、記憶装置(1)に書き込むべきデータのデ
ータ長を保持するデータ長保持手段(11)と、書き込
み単位の先頭と最終の1つ手前であることを検出する検
出手段(41)とを備えることが考えられる。但し、こ
の検出手段(41)はヘッダ(D1)とテーラ(D3)
がそれぞれ最小書き込み単位の長さで成立していること
を前提としている。
Therefore, in order to constitute the data identification means (3), a data length holding means (11) for holding the data length of data to be written in the storage device (1), and a first and last one of a writing unit. It is conceivable to provide a detecting means (41) for detecting that the vehicle is on the near side. However, this detecting means (41) is composed of a header (D1) and a tailor (D3).
Are established with the minimum write unit length.

【0026】そして、送られてきた転送データ長{これ
はヘッダ(D1)の長さ、ボディ(D2)の長さ、テー
ラ(D3)の長さの総和を示す}をデータ長保持手段
(11)に格納する。そして、このデータ長保持手段
(11)に保持されたデータ長からみて、書き込み単位
の先頭をまず検出すればその先頭がヘッダ(D1)に相
当し、最終がテーラ(D3)であると識別できる。
The transmitted data length {which indicates the sum of the length of the header (D1), the length of the body (D2), and the length of the tailor (D3)} is represented by the data length holding means (11). ). In view of the data length held in the data length holding means (11), if the head of the writing unit is detected first, it can be identified that the head corresponds to the header (D1) and the end is the tailor (D3). .

【0027】よって、ヘッダ(D1)を書き込むととも
に、その書き込みが終了するまで、ボディ(D2)、テ
ーラ(D3)の書き込みを待機させ、同時にデータ長保
持手段(11)に保持されたデータ長からヘッダ(D
1)の長さ分に相当する分を減算する。次いで、ヘッダ
(D1)の書き込み終了後にボディ(D2)の書き込み
を開始して、その書き込みが終了するまで、テーラ(D
3)の書き込みを待機させる。その間、データ長保持手
段(11)に保持されたデータ長からボディ(D2)の
長さ分に相当する分をボディ(D2)の書き込みに従っ
て減算していく。そして、書き込み単位の最終の1つ手
前であることを検出手段(41)が検出した段階で、ボ
ディ(D2)の書き込み終了が分かるので、最後にテー
ラ(D3)の書き込みを開始する。
Therefore, while writing the header (D1), the writing of the body (D2) and the tailor (D3) is made to wait until the writing is completed, and at the same time, the data length held by the data length holding means (11) is reduced. Header (D
1) Subtract the amount corresponding to the length. Next, after the writing of the header (D1) is completed, the writing of the body (D2) is started.
Wait for the writing of 3). In the meantime, an amount corresponding to the length of the body (D2) is subtracted from the data length held in the data length holding means (11) in accordance with the writing of the body (D2). Then, at the stage where the detection means (41) detects that it is just before the last of the write unit, the end of writing of the body (D2) is known, so that writing of the tailor (D3) is started last.

【0028】以上のデータ長保持手段(11)は例えば
レングスカウンタ(11)で実現でき、検出手段(4
1)はそのカウンタ(11)値から判断して、書き込も
うとするあるいは現在書き込み中の転送データが、ヘッ
ダ(D1)なのか、ボディ(D2)なのか、テーラ(D
3)なのかを識別するデータ種類検出手段(41)で具
体化できる。
The data length holding means (11) can be realized by, for example, a length counter (11).
1) is determined from the value of the counter (11), and whether the transfer data to be written or currently being written is the header (D1), the body (D2), or the tailor (D
3) It can be embodied by the data type detecting means (41) for identifying the kind.

【0029】この他に、ヘッダ(D1)、テーラ(D
3)の内容からを直接ヘッダ(D1)とテーラ(D3)
を識別して書き込み順序の制御を行うことも可能であ
る。以上の方式は、ダイレクトメモリアクセス方式の環
境下で実現されることが好適である。すなわち、ダイレ
クトメモリアクセス方式では、中央処理装置(CPU)
と別個の書き込み制御手段(4)(アクセス制御部
(4))を有し、中央処理装置(CPU)から受け取っ
た書き込み命令を中央処理装置(CPU)の処理とは別
個独立して行う。よって、本発明のように、一つの命令
でヘッダ(D1)、ボディ(D2)、テーラ(D3)の
書き込み処理を一括して行う場合に最適で、その間の中
央処理装置(CPU)の有効活用を図ることができる。
In addition, a header (D1), a tailor (D
Header (D1) and tailor (D3) directly from the contents of 3)
Can be identified to control the writing order. The above method is preferably implemented in an environment of a direct memory access method. That is, in the direct memory access method, the central processing unit (CPU)
And a write control means (4) (access control section (4)) which is independent from the central processing unit (CPU), and performs a write command received from the central processing unit (CPU) independently of the processing of the central processing unit (CPU). Therefore, the present invention is optimal when the write processing of the header (D1), the body (D2), and the tailer (D3) is collectively performed by one instruction, and the central processing unit (CPU) is effectively used during the processing. Can be achieved.

【0030】本発明で制御の対象となる記憶装置として
は拡張記憶装置の他主記憶装置を例示できる。これら
は、書き込み制御手段から直接アクセスできる記憶階層
である。
The storage device to be controlled in the present invention can be exemplified by a main storage device in addition to an extended storage device. These are storage hierarchies that can be directly accessed from the write control means.

【0031】[0031]

【実施例】以下、本発明の好適な一実施例を図面を参照
して説明する。図2に示したように、この実施例の装置
は、中央処理装置(CPU)、主記憶装置31、拡張記
憶装置1(システムストレージ)を備えている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A preferred embodiment of the present invention will be described below with reference to the drawings. As shown in FIG. 2, the device of this embodiment includes a central processing unit (CPU), a main storage device 31, and an extended storage device 1 (system storage).

【0032】前記中央処理装置(CPU)は、書き込み
指令を送出するが、その書き込み指令は特定のハードウ
ェア命令コード、起動アドレス、転送長を伴う。転送長
とは、書き込むべき転送データの長さをいい、ここでは
8バイトの転送単位を有する。すなわち、本実施例で転
送されるデータは、図3のように、ヘッダ(D1)、ボ
ディ(D2)、テーラ(D3)から構成され、そのそれ
ぞれのデータ長はヘッダ(D1)=8バイト、ボディ
(D2)=8×nバイト、テーラ(D3)=8バイトと
定義される。
The central processing unit (CPU) sends a write command, and the write command is accompanied by a specific hardware command code, a start address, and a transfer length. The transfer length refers to the length of transfer data to be written, and here has a transfer unit of 8 bytes. That is, as shown in FIG. 3, the data transferred in this embodiment is composed of a header (D1), a body (D2), and a tailor (D3), each of which has a data length of 8 bytes for the header (D1). It is defined that body (D2) = 8 × n bytes and tailor (D3) = 8 bytes.

【0033】次に、拡張記憶装置1は、記憶階層とし
て、主記憶装置と磁気ディスク装置などの補助記憶装置
との間に位置し、両者のアクセスタイムの速度差を緩衝
するために用いる。本実施例の拡張記憶装置1は、レン
グスカウンタ11を有するアクセス制御部4、狭義の拡
張記憶装置であるメモリアレー部51、データキュー5
2、アクセスパイプライン53を有している。
Next, the extended storage device 1 is located as a storage hierarchy between the main storage device and an auxiliary storage device such as a magnetic disk device, and is used to buffer a difference in access time between the two. The extended storage device 1 according to the present embodiment includes an access control unit 4 having a length counter 11, a memory array unit 51 as an extended storage device in a narrow sense, and a data queue 5.
2. It has an access pipeline 53.

【0034】前記レングスカウンタ11を有するアクセ
ス制御部4は、いわゆるダイレクトメモリアクセス(D
MA)を実現するもので、レングスカウンタ11の他
に、主記憶のアドレスを指定するアドレスレジスタと、
を有し、1語(ここでは8ビットの転送単位)の入出力
動作の終了毎にレングスカウンタ11、アドレスレジス
タをそれぞれ更新して、中央処理装置(CPU)とは独
立して主記憶の連続する領域と前記メモリアレー部51
との間のデータ転送を行っている。そして、メモリアレ
ー部51に対する書き込みはインターリーブ方式によ
る。
The access control unit 4 having the length counter 11 is a so-called direct memory access (D
MA), in addition to the length counter 11, an address register for specifying the address of the main memory;
The length counter 11 and the address register are updated each time an input / output operation of one word (here, an 8-bit transfer unit) is completed, so that the main memory is continuously stored independently of the central processing unit (CPU). Area and the memory array unit 51
And data transfer between them. Writing to the memory array unit 51 is performed by an interleave method.

【0035】また、このアクセス制御部4は前記レング
スカウンタ11のカウンタ11値からこれから書き込も
うとするあるいは現在書き込み中の転送データが、ヘッ
ダ(D1)なのか、ボディ(D2)なのか、テーラ(D
3)なのかを識別するデータ種類検出手段41を備えて
いる。このデータ種類検出手段41と前記レングスカウ
ンタ11でデータ識別手段3を構成する。
The access control unit 4 determines whether the transfer data to be written or the data currently being written is the header (D1) or the body (D2) from the value of the counter 11 of the length counter 11,
3) A data type detecting means 41 for identifying the type is provided. The data type detecting means 3 is composed of the data type detecting means 41 and the length counter 11.

【0036】すなわち、レングスカウンタ11は、デー
タ長さをカウントし、そのカウント数により、データ種
類検出手段41は、書き込み中のデータがヘッダ(D
1)なのか、ボディ(D2)なのか、テーラ(D3)な
のかを識別する。すなわち、本実施例で転送されるデー
タのデータ長はヘッダ(D1)=8バイト、ボディ(D
2)=8×nバイト、テーラ(D3)=8バイトと定義
されるので、レングスカウンタ11では、8バイトをカ
ウントの最小単位とし、8バイト読み込んだとき1とカ
ウントするようになっている。
That is, the length counter 11 counts the data length, and the data type detecting means 41 determines that the data being written is a header (D
1) Whether it is a body (D2) or a tailor (D3). That is, the data length of the data transferred in this embodiment is as follows: header (D1) = 8 bytes, body (D1)
2) Since 8 × n bytes and tailor (D3) = 8 bytes are defined, the length counter 11 uses 8 bytes as the minimum unit of counting, and counts 1 when 8 bytes are read.

【0037】そして、前記中央処理装置(CPU)から
書き込み指令をアクセス制御部4が受けたとき、アクセ
ス制御部4は、中央処理装置(CPU)から送られてき
た転送長(Xバイト)を8で除して得た商を前記レング
スカウンタ11にセットする。
When the access control unit 4 receives a write command from the central processing unit (CPU), the access control unit 4 sets the transfer length (X bytes) sent from the central processing unit (CPU) to 8 Is set in the length counter 11.

【0038】ここで、ヘッダ(D1)=8バイト、ボデ
ィ(D2)=8×nバイト、テーラ(D3)=8バイト
と定義されているので、データの内最初のカウント値
「1」に相当する書き込みデータはヘッダ(D1)であ
ることを識別できる。そして、ボディ(D2)の書き込
み中に、8バイト書き込む毎にカウンタ11を1づつ減
算していき、カウンタ11の値が「1」となれば、ボデ
ィ(D2)の書き込みが終了したことを確認できるとと
もに、最後に残った未書き込みデータがテーラ(D3)
であると識別できる。
Since the header (D1) is defined as 8 bytes, the body (D2) is defined as 8 × n bytes, and the tailor (D3) is defined as 8 bytes, it corresponds to the first count value “1” of the data. The write data to be written can be identified as the header (D1). During the writing of the body (D2), the counter 11 is decremented by one each time 8 bytes are written. When the value of the counter 11 becomes "1", it is confirmed that the writing of the body (D2) has been completed. While the last unwritten data is tailored (D3)
Can be identified.

【0039】さらに、アクセス制御部4は前記データ種
類検出手段41によるデータ識別結果に基づき、データ
の書き込み停止のためのインターロック信号、及び、そ
の書き込み停止解除のためのキャンセル信号を前記アク
セスパイプライン53に送る書き込み制御部42を有し
ている。また、この書き込み制御部42は、メモリアレ
ー部51を監視し、書き込みエラーとなる一定のマシン
チェック条件を検出するようになっている。その監視情
報は常時メモリアレー部51からマシンチェック報告と
して受け、そのマシンチェック報告を中央処理装置(C
PU)へ送るようになっている。
Further, based on the data identification result by the data type detecting means 41, the access control section 4 sends an interlock signal for stopping data writing and a cancel signal for releasing the writing stop to the access pipeline. A write control unit 42 for sending the data to the write control unit 53 is provided. The write control unit 42 monitors the memory array unit 51 and detects certain machine check conditions that cause a write error. The monitoring information is constantly received as a machine check report from the memory array unit 51, and the machine check report is sent to the central processing unit (C
PU).

【0040】メモリアレー部51は、複数のバンク(B
N)に分けられ、いわゆるインターリーブに使用され
る。データキュー52はデータバッファレジスタであ
り、主記憶からメモリアレー部51へ転送すべきデータ
を一時的に保持する。
The memory array 51 includes a plurality of banks (B
N) and used for so-called interleaving. The data queue 52 is a data buffer register and temporarily holds data to be transferred from the main storage to the memory array unit 51.

【0041】アクセスパイプライン53は、データキュ
ー52とメモリアレー部51とを結び、メモリアレー部
51に対する書き込みをいわゆるパイプライン処理で行
う部分である。そして、前記インターロック信号、及
び、その書き込み停止解除のためのキャンセル信号を受
けて書き込み処理を停止・再開できるようになってい
る。
The access pipeline 53 connects the data queue 52 and the memory array unit 51 and performs writing to the memory array unit 51 by so-called pipeline processing. Then, the writing process can be stopped and restarted in response to the interlock signal and a cancel signal for canceling the writing stop.

【0042】以下、本実施例の装置の動作例を説明す
る。まず、中央処理装置(CPU)からの書き込み命令
は特定のハードウェア命令コードと、起動アドレス、転
送長を拡張記憶に対して送出することによって行われ
る。この命令は、拡張記憶装置1のアクセス制御部4に
送られるが、まず、所定のタイミングで送出される転送
長を前記レングスカウンタ11にセットする。
Hereinafter, an operation example of the apparatus of this embodiment will be described. First, a write instruction from the central processing unit (CPU) is performed by sending a specific hardware instruction code, a start address, and a transfer length to the extended storage. This instruction is sent to the access control unit 4 of the extended storage device 1. First, the transfer length transmitted at a predetermined timing is set in the length counter 11.

【0043】ここで、書き込み指令にあたっては、中央
処理装置(CPU)は、ボディ(D2)となるべきデー
タの前後に、同一内容のヘッダ(D1)とテーラ(D
3)を8バイトの長さで付与する。このヘッダ(D1)
とテーラ(D3)の内容は書き込み指令毎に新しい内容
に更新される。
Here, when a write command is issued, the central processing unit (CPU) places a header (D1) having the same contents and a tailor (D) before and after data to be a body (D2).
3) is given in a length of 8 bytes. This header (D1)
And the contents of the tailor (D3) are updated to new contents for each write command.

【0044】ここでは、ボディ(D2)のデータ長さが
24バイトであるとする。従って全体のデータ長は40
バイトで、転送単位が8バイトであるから40/8=5
の値がレングスカウンタ11に初期値としてセットされ
る。
Here, it is assumed that the data length of the body (D2) is 24 bytes. Therefore, the total data length is 40
40/8 = 5 bytes because the transfer unit is 8 bytes
Is set in the length counter 11 as an initial value.

【0045】まず、図4ののように、最初の書き込み
単位はヘッダ(D1)であるから書き込み制御部42は
アクセスパイプライン53にインタロック信号を送り、
ボディ(D2)の書き込みアクセスを停止する。
First, as shown in FIG. 4, since the first write unit is the header (D1), the write control unit 42 sends an interlock signal to the access pipeline 53,
The write access of the body (D2) is stopped.

【0046】このとき、レングスカウンタ11の値は
「1」だけ減算され、カウンタ11値は「4」となる。
ヘッダ(D1)がメモリアレー部51の第1のバンク
(BN)に書き込まれると、その書き込み終了を示すラ
イト・フィニッシュ信号がメモリアレー部51からアク
セス制御部4に返される。
At this time, the value of the length counter 11 is decremented by "1", and the value of the counter 11 becomes "4".
When the header (D1) is written into the first bank (BN) of the memory array unit 51, a write finish signal indicating the end of the writing is returned from the memory array unit 51 to the access control unit 4.

【0047】ライト・フィニッシュ信号を受信したこと
をきっかけにして、書き込み制御部42はインターロッ
クのキャンセル信号をアクセスパイプライン53に送
る。すると、図4−1、−2、−3のように、ボ
ディ(D2)の書き込みが開始され、8バイトの書き込
み単位毎に書き込み処理が並列に行われ、同時に書き込
み単位毎に、レングスカウンタ11が1づつ減算され、
カウンタ値は「1」となる。
Upon receiving the write finish signal, the write control unit 42 sends an interlock cancel signal to the access pipeline 53. Then, as shown in FIGS. 4-1, -2, and -3, the writing of the body (D2) is started, the writing process is performed in parallel for each writing unit of 8 bytes, and at the same time, the length counter 11 is written for each writing unit. Is subtracted by one,
The counter value becomes “1”.

【0048】この時、各書き込み単位のアクセスはイン
ターリーブ機構により並列して行われるので、書き込み
アクセスは高速化される。レングスカウンタ11の内容
が「1」になると、再び後続のアクセスを停止するイン
ターロック信号が書き込み制御部42からアクセスパイ
プライン53に送られ、テーラ(D3)の書き込みアク
セスが停止される。そして、ボディ(D2)のメモリア
レー部51への全ての書き込み終了を示すライト・フィ
ニッシュ信号を受信したことをきっかけにして、書き込
み制御部42はインターロックのキャンセル信号をアク
セスパイプライン53に送る。
At this time, since the access of each write unit is performed in parallel by the interleave mechanism, the write access is speeded up. When the content of the length counter 11 becomes "1", an interlock signal for stopping the subsequent access is sent from the write control unit 42 to the access pipeline 53 again, and the write access of the tailor (D3) is stopped. Then, upon receiving a write finish signal indicating that all writing of the body (D2) to the memory array unit 51 is completed, the write control unit 42 sends an interlock cancel signal to the access pipeline 53.

【0049】すると、図4ののように、テーラ(D
3)の書き込みが行われる。ヘッダ(D1)、ボディ
(D2)、テーラ(D3)の各書き込みアクセスの途中
でマシンチェック条件が検出されると、書き込み処理は
その時点で中断され、中央処理装置(CPU)に対して
マシンチェック割り込みが報告されるとともに、それと
も中央処理装置(CPU)がマシンの復旧プログラムを
起動する。この割り込みが生じると、書き込み処理中、
及び、書き込みを待っている未処理の書き込み単位はク
リアされる。
Then, as shown in FIG. 4, the tailor (D
The writing of 3) is performed. If a machine check condition is detected during the write access of the header (D1), the body (D2), and the tailer (D3), the write processing is interrupted at that point and the machine check is performed on the central processing unit (CPU). An interrupt is reported, or the central processing unit (CPU) invokes the machine's recovery program. When this interrupt occurs, during the write process,
The unprocessed write unit waiting for writing is cleared.

【0050】ヘッダ(D1)、ボディ(D2)、テーラ
(D3)の各書き込みが終了するとアクセス制御部4か
ら中央処理装置(CPU)へ書き込み処理終了報告が送
られるので、中央処理装置(CPU)はこれを受けて次
の書き込み命令をアクセス制御部4に送る。
When the writing of the header (D1), the body (D2) and the tailer (D3) is completed, a write processing completion report is sent from the access control unit 4 to the central processing unit (CPU). Receives this and sends the next write command to the access control unit 4.

【0051】以上のようにヘッダ(D1)、ボディ(D
2)、テーラ(D3)の各書き込みは、中央処理装置
(CPU)からの1つの書き込み命令で行われ、ヘッダ
(D1)、ボディ(D2)、テーラ(D3)がこの順序
でシーケンシャルに書き込まれる。よって、ヘッダ(D
1)、テーラ(D3)の書き込みのみが順当に行われ、
ボディ(D2)の書き込みが失敗するという状況は発生
しない。また、個々のデータの書き込みに当たってはイ
ンターリーブによる並列処理が行われる。但し、上記の
ように、ヘッダ(D1)、テーラ(D3)はそれぞれ最
小書き込み単位であるため、並列処理の意味はない。少
なくともボディ(D2)の書き込みは書き込み単位毎
(バンク(BN)毎)に並列処理で行われるため、処理
は高速化される。
As described above, the header (D1) and the body (D
2) Each write of the tailor (D3) is performed by one write command from the central processing unit (CPU), and the header (D1), the body (D2), and the tailer (D3) are sequentially written in this order. . Therefore, the header (D
1) Only writing of tailor (D3) is performed in order,
The situation where the writing of the body (D2) fails does not occur. In writing individual data, parallel processing by interleaving is performed. However, as described above, since the header (D1) and the tailor (D3) are the minimum write units, there is no meaning in parallel processing. Since at least the writing of the body (D2) is performed in parallel processing for each writing unit (for each bank (BN)), the processing speed is increased.

【0052】ところで、拡張記憶装置1へのアクセスは
一般に実際のデータ転送動作が開始されるまでの各種チ
ェックや起動処理のため、通常の命令と比較して非常に
長い時間がかかるのが通常である。この時間は拡張記憶
に対する命令を出す毎必要とする。
By the way, access to the extended storage device 1 generally takes a much longer time than a normal instruction because of various checks and activation processing until the actual data transfer operation is started. is there. This time is required each time an instruction to the extended storage is issued.

【0053】そのため、ヘッダ(D1)、ボディ(D
2)、テーラ(D3)の書き込みを3つの命令で実行し
ていたのでは中央処理装置(CPU)を長時間拘束する
結果となる。これに対し、上記例ではヘッダ(D1)、
ボディ(D2)、テーラ(D3)という一連データの書
き込みを1命令で行うことができ、しかも、インターリ
ーブの目的である処理の並列化によるアクセス高速化を
も達成できる。
Therefore, the header (D1) and the body (D
2) If the writing of the tailor (D3) is executed by three instructions, the result is that the central processing unit (CPU) is restrained for a long time. On the other hand, in the above example, the header (D1),
The writing of a series of data of the body (D2) and the tailor (D3) can be performed by one instruction, and the access can be speeded up by the parallel processing of the interleaving.

【0054】[0054]

【発明の効果】本発明よれば、ヘッダとテーラの一致に
よるデータ書き込みの正当性を確認が確実となる。しか
も、インターリーブの目的とする処理の高速化は妨げら
れない。また、ヘッダ、ボディ、テーラの書き込みを3
つの命令で行うのではなく、1つの命令で行うことが出
来るので、一連の書き込み処理を迅速に行え、処理速度
の向上を図ることができる。
According to the present invention, the validity of data writing based on the coincidence between the header and the tailor can be surely confirmed. In addition, the speeding up of processing for interleaving is not hindered. Write header, body and tailor
Since a single instruction can be used instead of one instruction, a series of writing processes can be performed quickly and the processing speed can be improved.

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

【図1】本発明の原理図FIG. 1 is a principle diagram of the present invention.

【図2】本発明の実施例を示す図FIG. 2 shows an embodiment of the present invention.

【図3】転送データの構成図FIG. 3 is a configuration diagram of transfer data.

【図4】本発明による書き込み制御を示す図FIG. 4 is a diagram showing write control according to the present invention;

【図5】インターリーブを示す図FIG. 5 illustrates interleaving.

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

(CPU) 中央処理装置 (BN) バンク (D1) ヘッダ (D2) ボディ (D3) テーラ 1(51) 記憶装置(拡張記憶装置) 2 書き込み命令発生手段 3 データ識別手段 4 書き込み制御手段(アクセス制御部) 11 データ長保持手段(レングスカウンタ) 31 主記憶装置 41 データ種類検出手段 42 書き込み制御部 51 メモリアレー部、 52 データキュー 53 アクセスパイプライン (CPU) Central processing unit (BN) Bank (D1) Header (D2) Body (D3) Tailor 1 (51) Storage device (extended storage device) 2 Write command generation unit 3 Data identification unit 4 Write control unit (Access control unit) 11) Data length holding means (length counter) 31 Main storage device 41 Data type detecting means 42 Write control unit 51 Memory array unit, 52 Data queue 53 Access pipeline

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 複数のバンク(BN)に分割された記憶
装置(1)へのデータの書き込みをインターリーブ方式
で行うとともに、本来書き込むべきデータとしてのボデ
ィ(D2)の前後に、同一内容のヘッダ(D1)とテー
ラ(D3)を附加し、ヘッダ(D1)とテーラ(D3)
の一致をみてボディ(D2)の正当性を保証する記憶制
御方式において、 ヘッダ(D1)、ボディ(D2)、テーラ(D3)を記
憶装置(1)に書き込むことを1命令で指示する書き込
み命令を送出する書き込み命令発生手段(2)と、 書き込むべきデータにおけるヘッダ(D1)、ボディ
(D2)、テーラ(D3)の区別をするデータ識別手段
(3)と、 前記書き込み命令発生手段(2)からの書き込み命令に
従って、前記データ識別手段(3)によるヘッダ(D
1)、ボディ(D2)、テーラ(D3)の区別を参照し
て記憶装置(1)への書き込み制御をする書き込み制御
手段(4)と、 を備え、 前記書き込み制御手段(4)は、ヘッダ(D1)の書き
込みが終了するまでボディ(D2)及びテーラ(D3)
の書き込みを停止し、ヘッダ(D1)の書き込み終了後
にボディ(D2)の書き込みを開始するとともに、テー
ラ(D3)の書き込みを停止したままとし、ボディ(D
2)の書き込み終了後にテーラ(D3)の書き込みを行
い、 データの書き込みにあたって、少なくともボディ(D
2)の書き込みをインターリーブ方式により行うことを
特徴とする記憶装置への書き込み制御方式。
1. A method of writing data to a storage device (1) divided into a plurality of banks (BN) by an interleave method, and a header having the same contents before and after a body (D2) as data to be written. (D1) and tailor (D3) are added, and header (D1) and tailor (D3) are added.
In a storage control method that guarantees the validity of the body (D2) by checking the match of the above, a write instruction instructing to write the header (D1), the body (D2), and the tailor (D3) to the storage device (1) with one instruction Command generation means (2) for sending out the data, data identification means (3) for distinguishing a header (D1), body (D2), and tailor (D3) in data to be written; and the write command generation means (2) In accordance with the write command from the header (D) by the data identification means (3).
1) a writing control means (4) for controlling writing to the storage device (1) with reference to the distinction between the body (D2) and the tailor (D3). The writing control means (4) Until the writing of (D1) is completed, the body (D2) and the tailor (D3)
Is stopped, the writing of the body (D2) is started after the writing of the header (D1) is completed, and the writing of the tailor (D3) is stopped.
After the end of the writing of 2), the tailor (D3) is written, and at least the body (D
A writing control method for a storage device, wherein the writing in 2) is performed by an interleave method.
【請求項2】前記ヘッダ(D1)とテーラ(D3)はそ
れぞれ1つのバンクの幅を最小書き込み単位としてデー
タ長で成立しており、 前記データ識別手段(3)は、記憶装置(1)に書き込
むべきデータのデータ長を保持するデータ長保持手段
(11)と、書き込み単位の先頭と最終の1つ手前であ
ることを検出する検出手段(41)とを備え、 前記データ長保持手段(11)は、書き込むべきヘッダ
(D1)、ボディ(D2)、テーラ(D3)の長さの総
和からなるデータ長を格納し、 前記検出手段(41)は、前記データ長保持手段(1
1)に保持されたデータ長からみて、書き込み単位の先
頭をヘッダ(D1)と識別し、書き込み単位の最終の1
つ手前を検出することで最終がテーラ(D3)であると
識別し、 前記書き込み制御手段(4)は、前記検出手段(41)
の検出結果を参照しつつ、ヘッダ(D1)の書き込みが
終了するまでボディ(D2)及びテーラ(D3)の書き
込みを停止し、ヘッダ(D1)の書き込み終了後にボデ
ィ(D2)の書き込みを開始するとともに、テーラ(D
3)の書き込みを停止したままとし、ボディ(D2)の
書き込み終了後にテーラ(D3)の書き込みを行うこと
を特徴とする請求項1記載の記憶装置への書き込み制御
方式。
2. The header (D1) and the tailor (D3) each have a data length with the width of one bank as a minimum write unit, and the data identification means (3) is provided in a storage device (1). A data length holding means (11) for holding a data length of data to be written; and a detecting means (41) for detecting that the data is one immediately before the beginning and the end of the writing unit. ) Stores the data length that is the sum of the lengths of the header (D1), body (D2), and tailor (D3) to be written, and the detecting means (41) stores the data length holding means (1).
In view of the data length held in 1), the head of the writing unit is identified as the header (D1), and the last 1 of the writing unit is identified.
By detecting the last position, the last is determined to be the tailor (D3), and the writing control means (4) sets the detection means (41)
The writing of the body (D2) and the tailor (D3) is stopped until the writing of the header (D1) is completed, and the writing of the body (D2) is started after the writing of the header (D1) is completed, with reference to the detection result of. With the tailor (D
2. The write control method for a storage device according to claim 1, wherein the write operation of the storage device is stopped, and the write operation of the tailor is performed after the write operation of the body is completed.
【請求項3】 前記データ長保持手段(11)は、デー
タ長を最小書き込み単位で除して得た値を初期値として
保持し、 前記検出手段(41)は、前記データ長保持手段(1
1)に保持された値からみて、ヘッダ(D1)、ボディ
(D2)、テーラ(D3)の判別をし、 前記書き込み制御手段(4)は、前記検出手段(41)
の検出結果を参照しつつ、ヘッダ(D1)である先頭の
書き込み単位のデータ書き込みが終了するまで、その後
続くデータであるボディ(D2)及びテーラ(D3)の
書き込みを停止し、先頭の書き込み単位のデータ書き込
みが終了したら、前記データ長保持手段(11)に保持
された値を「1」減算し、次いで、ヘッダ(D1)の書
き込み終了後にボディ(D2)の書き込みを開始してイ
ンターリーブ方式で書き込むとともに、ボディ(D2)
の書き込み中に書き込み単位のデータ書き込みが終了す
る毎に前記データ長保持手段(11)に保持された値を
「1」づつ減算していき、データ長保持手段(11)に
保持された値が「1」となった時点で書き込みを停止
し、ボディ(D2)の書き込みが完了したことを確認し
た後、テーラ(D3)の書き込みを開始することを特徴
とする請求項2記載の記憶装置への書き込み制御方式。
3. The data length holding means (11) holds, as an initial value, a value obtained by dividing a data length by a minimum writing unit, and the detection means (41) holds the data length holding means (1).
The write control means (4) discriminates the header (D1), the body (D2), and the tailor (D3) based on the value held in 1).
While referring to the detection result of (1), the writing of the subsequent data (body (D2) and tailor (D3)) is stopped until the data writing of the first writing unit (header (D1)) is completed. Is completed, the value held in the data length holding means (11) is decremented by "1". Then, after the writing of the header (D1) is completed, the writing of the body (D2) is started and the interleave method is used. Write and body (D2)
Each time the data writing of the writing unit is completed during the writing of the data, the value held in the data length holding means (11) is subtracted by "1", and the value held in the data length holding means (11) is subtracted. 3. The storage device according to claim 2, wherein the writing is stopped when the value becomes "1", and after the writing of the body (D2) is confirmed to be completed, the writing of the tailor (D3) is started. Write control method.
【請求項4】 前記データ長保持手段(11)は、レジ
スタからなるレングスカウンタ(11)で構成され、 前記検出手段(41)は、前記レングスカウンタ(1
1)の値から、書き込むべきデータがヘッダ(D1)で
あるか、ボディ(D2)であるか、テーラ(D3)であ
るかの判別をすることを特徴とする請求項3記載の記憶
装置への書き込み制御方式。
4. The data length holding means (11) comprises a length counter (11) comprising a register, and the detection means (41) comprises a length counter (1).
4. The storage device according to claim 3, wherein whether the data to be written is a header (D1), a body (D2), or a tailor (D3) is determined from the value of 1). Write control method.
【請求項5】 前記記憶装置(1)が拡張記憶装置
(1)であることを特徴とする請求項1から4のいずれ
かに記載の記憶装置への書き込み制御方式。
5. The write control method for a storage device according to claim 1, wherein said storage device (1) is an extended storage device (1).
【請求項6】 前記書き込み命令発生手段(2)は中央
処理装置(CPU)により構成され、前記書き込み制御
手段(4)は、中央処理装置(CPU)とは別個独立し
て形成され、ダイレクトメモリアクセス方式を実現する
ことを特徴とする請求項1から5のいずれかに記載の記
憶装置への書き込み制御方式。
6. The write command generating means (2) is constituted by a central processing unit (CPU), and the write control means (4) is formed independently of the central processing unit (CPU), 6. The write control method for a storage device according to claim 1, wherein an access method is realized.
JP3271292A 1991-10-18 1991-10-18 Write control method for storage device Expired - Lifetime JP2614677B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3271292A JP2614677B2 (en) 1991-10-18 1991-10-18 Write control method for storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3271292A JP2614677B2 (en) 1991-10-18 1991-10-18 Write control method for storage device

Publications (2)

Publication Number Publication Date
JPH05108497A JPH05108497A (en) 1993-04-30
JP2614677B2 true JP2614677B2 (en) 1997-05-28

Family

ID=17498018

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3271292A Expired - Lifetime JP2614677B2 (en) 1991-10-18 1991-10-18 Write control method for storage device

Country Status (1)

Country Link
JP (1) JP2614677B2 (en)

Also Published As

Publication number Publication date
JPH05108497A (en) 1993-04-30

Similar Documents

Publication Publication Date Title
US3688274A (en) Command retry control by peripheral devices
US4604750A (en) Pipeline error correction
EP0106670A2 (en) CPU with multiple execution units
GB1588396A (en) Data processing apparatus
US4385365A (en) Data shunting and recovering device
CA1279407C (en) Buffer storage control system
US5530815A (en) Apparatus and method for verifying the order and operation of a data processing device when asynchronous commands are held in a command queue
US5261084A (en) Error judgment method
JP2614677B2 (en) Write control method for storage device
EP0529557B1 (en) Apparatus for preventing computer data destructively read out from storage unit
KR890003322B1 (en) Data processing system
US5201052A (en) System for transferring first and second ring information from program status word register and store buffer
JP2783285B2 (en) Information processing device
EP0655686B1 (en) Retry control method and device for control processor
EP0382529A2 (en) Microprocessor having store buffer
JP2793409B2 (en) Branch history table failure handling method
JP2580587B2 (en) Address translation buffer
JPH02297235A (en) Memory data protecting circuit
JPS6252333B2 (en)
JP3225057B2 (en) Disk cache and control method thereof
JPH0275023A (en) Interruption system for delayed branch instruction
JP3009168B2 (en) Data processing device
JPS6158033A (en) Disc controller
JPH10143444A (en) Fault processing system
JPS5842546B2 (en) Store control method

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19970121

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080227

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090227

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090227

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100227

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110227

Year of fee payment: 14

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110227

Year of fee payment: 14

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120227

Year of fee payment: 15

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120227

Year of fee payment: 15