JPS6249434A - Cartridge magnetic tape device - Google Patents

Cartridge magnetic tape device

Info

Publication number
JPS6249434A
JPS6249434A JP18731285A JP18731285A JPS6249434A JP S6249434 A JPS6249434 A JP S6249434A JP 18731285 A JP18731285 A JP 18731285A JP 18731285 A JP18731285 A JP 18731285A JP S6249434 A JPS6249434 A JP S6249434A
Authority
JP
Japan
Prior art keywords
data
block
circuit
buffer
dummy
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
JP18731285A
Other languages
Japanese (ja)
Inventor
Takaaki Toyama
外山 隆陽
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP18731285A priority Critical patent/JPS6249434A/en
Publication of JPS6249434A publication Critical patent/JPS6249434A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To shorten data transfer time by writing dummy data by the number of blocks, which has been set in advance, in case of it has been detected that the data to be written does not exist in a buffer means. CONSTITUTION:When the data are transferred to a buffer circuit 20 from a recording/reproducing circuit 23 and stored by a block unit, in case of a regular data block, the contents of N102 of a buffer circuit 22 are inputted to a data number detecting circuit 29. Subsequently, the value of N102 and the contents of a block size counter 25, namely, a count value of a strobe signal 5 are compared by a comparing circuit 30, and when they have coincided, the block is updated to the next block. In case of a dummy block, the contents of N102 are '0', therefore, when an input from the data number detecting circuit 29 is received, the comparing circuit 30 outputs a signal 11 immediately, and updates the block to the next block. In this way, the titled device is constituted so that the dummy data block is recorded in a tape at the time of a buffer under-line, therefore, the decrease of a data transfer speed is prevented.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明はストリーミング機能を有するカートリッジ磁気
テープ装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a cartridge magnetic tape device having a streaming function.

(従来の技術) 近年パーソナルコンピュータ等の小型機器においても大
容量の記憶装置が要求されている。そしてこの要求に答
えてウィンチェスタ−技術を用いたハードディスク(例
えば記録容量が20Mバイト)を搭載したバーンナルコ
ンピュータも出現している。
(Prior Art) In recent years, large-capacity storage devices have been required even in small devices such as personal computers. In response to this demand, burner computers equipped with hard disks (with a recording capacity of 20 Mbytes, for example) using Winchester technology have also appeared.

しかしこのハードディスクは大容量、高速という長所が
あるものの記録媒体が固定されているた−め媒体交換が
できないという短所もある。そしてこの短所を補うため
ハードディスクの記録内容をバックアップする装置がパ
ーソナルコンピュータの一部として用いられている。
However, although this hard disk has the advantage of large capacity and high speed, it also has the disadvantage that the recording medium is fixed and cannot be replaced. To compensate for this shortcoming, a device for backing up the recorded contents of a hard disk is used as part of a personal computer.

上記バックアップ装置としては一度の起動で連続データ
転送を行うスF’)’−ミング機能を持った大容量(例
えば20Mバイト)、高速、低価格なカートリッジ磁気
テープ装置(以下、CMT装置と略称する)が用いられ
ている。
The above-mentioned backup device is a cartridge magnetic tape device (hereinafter abbreviated as CMT device) that has a large capacity (e.g. 20 MB), high speed, and low price and has a streaming function that performs continuous data transfer with a single startup. ) is used.

第2図はカートリッジ磁気テープのフォーマット例を示
す図である。
FIG. 2 is a diagram showing an example of the format of a cartridge magnetic tape.

5YNC100は磁気テープにデータを記録・再生する
時の記録再生回路で同期をとる為のビット列である。A
DDRESSlolはブロックのアドレスを示す。N1
02はDATA103に記録される有効データ数を示す
。DATA103はデータ記録領域である。
5YNC100 is a bit string for synchronizing the recording and reproducing circuit when recording and reproducing data on a magnetic tape. A
DDRESSlol indicates the address of the block. N1
02 indicates the number of valid data recorded in DATA103. DATA103 is a data recording area.

以下の説明ではDATA103は512バイトの固定長
とする。例えば、500バイトのデータを記録する時は
12バイトの無効データ(ダミーデータとも称。
In the following description, it is assumed that DATA 103 has a fixed length of 512 bytes. For example, when recording 500 bytes of data, 12 bytes of invalid data (also called dummy data).

す)が付加されてDATA103は常に512バイトの
固定長が記録される。このときのN 102は有効デー
タ数の500を保持する。CRC104はCRCチェッ
クの結果を記録する領域である。
) is added, and DATA 103 is always recorded with a fixed length of 512 bytes. At this time, N 102 holds 500, which is the number of valid data. CRC 104 is an area for recording the result of CRC check.

第2図は従来のCMT装置の構成例を示すブロック図で
ある。20はバッファ回路で、複数のブロックから構成
され、バイト単位にDATA103に格納する。なお、
以下の説明ではバッファブロック及びファイルブロック
を1ブロツク=512バイト。
FIG. 2 is a block diagram showing an example of the configuration of a conventional CMT device. A buffer circuit 20 is composed of a plurality of blocks and is stored in the DATA 103 in units of bytes. In addition,
In the following explanation, one buffer block and file block = 512 bytes.

ブロック数=4ブロックとして説明する。21は第2図
で説明したフォーマット中のADDRESSlolに記
録するアドレスを格納するバッファ回路で4ブロック分
から構成される。22も同様に第2図のN 102に記
録する有効データ数を格納するバッファ回路で、4ブロ
ック分から構成される。田は磁気テープ(以下テープと
略す)に対しシリアルデータの記録再生を行なう記録/
再生回路である。
The explanation will be made assuming that the number of blocks is 4 blocks. 21 is a buffer circuit for storing the address to be recorded in ADDRESSlol in the format described in FIG. 2, and is composed of four blocks. Similarly, 22 is a buffer circuit for storing the number of valid data to be recorded in N 102 in FIG. 2, and is composed of four blocks. A recording device that records and plays back serial data on magnetic tape (hereinafter abbreviated as tape).
This is a regeneration circuit.

24はCMT装置の制御を行なうホスト中央処理装置(
以下、ホスト装置と略す)である。5はブロックサイズ
カウンタで、リード/ライトのストローブ信号のタイミ
ングでカウントし、通常はバッファブロックサイズ51
2でクリアされる。512までカウントされると、有効
データレジスタ26E512がセットされる。また、フ
ロックサイズカウンタ5はストップ信号4が入力された
時もクリアされる。26は有効データレジスタで、スト
ップ信号4が入力されるまでのブロックサイズカウンタ
あのカウント値がセットされる。27はブロックカウン
トレジスタで、上記記載の様にブロックサイズカウンタ
5がクリアされるごとにインクリメントされて第2図に
示すADDRESSlolに記録するデータとな゛る。
24 is a host central processing unit (
(hereinafter abbreviated as host device). 5 is a block size counter, which counts at the timing of the read/write strobe signal, and normally has a buffer block size of 51.
Cleared with 2. When the count reaches 512, valid data register 26E512 is set. Further, the flock size counter 5 is also cleared when the stop signal 4 is input. 26 is a valid data register in which the count value of the block size counter until the stop signal 4 is input is set. 27 is a block count register, which is incremented each time the block size counter 5 is cleared as described above, and becomes data to be recorded in ADDRESSlol shown in FIG.

従って、ライト時のバッファ回路加の各ブロックのどの
ブロックへデータを格納すればよいかを示すブロック指
定信号13は、このレジスタの下位2ビツトをデコード
することによシ出力される。路は、ブロック内有効デー
タが512バイトでない場合、舜、効データをバッファ
冗に書き込むダミーデータセット回路であり、ライトス
トローブも自から発生しバッファ回路20に書き込む同
期をとる。29はデータリード時に有効データ数格・納
領域22から有効データ数を読み出すデータ数検出回路
である。30はデータ数検出回路29で読み出した有効
データ数とホスト装置Uへ転送したデータ数の比較を行
なう比較回路である。
Therefore, a block designation signal 13 indicating which block of each block of the buffer circuit to store data at the time of writing is output by decoding the lower two bits of this register. The circuit is a dummy data set circuit that writes valid data into the buffer when the valid data in the block is not 512 bytes, and also generates a write strobe from itself and synchronizes writing to the buffer circuit 20. Reference numeral 29 denotes a data number detection circuit that reads the number of valid data from the valid data number storage/storage area 22 when reading data. A comparison circuit 30 compares the number of valid data read by the data number detection circuit 29 and the number of data transferred to the host device U.

次に信号及び信号線の説明を行なう。Next, signals and signal lines will be explained.

1はバッファ回路20とホスト装置24を結ぶデータバ
スである。2はバッファ回路20と記録/再生回路器を
結ぶシリアルデータ線である。3はダミーデータ(無効
データ)をバッファ回路20に書き込むダミーデータ書
き込みラインである。4はデータリード、データライト
の終了を示すリード/ライトストップ信号(以後、スト
ップ信号と略す)である。このストップ信号4によって
、ダミーデータセット回路路は起動し、ブロックサイズ
カウンタ25はクリアされる。5はリード/ライトのス
トローブ信号(以後ストローブ信号と略す)である。6
はCMT装置がリード動作中であるがライト動作中であ
るかを示すリード/ライト信号である。7は有効データ
レジスタ26の内容ヲバッファ回路nに書き込む有効デ
ータ数ライトラインである。8はリード時にバッファ頷
がらホスト装置24へ転送したデータ数を比較回路(9
)へ入力するラインである。9はリード時ブロック内の
N 102の値を読み出すデータ数入力ラインである。
1 is a data bus connecting the buffer circuit 20 and the host device 24. 2 is a serial data line connecting the buffer circuit 20 and the recording/reproducing circuit. Reference numeral 3 denotes a dummy data write line for writing dummy data (invalid data) into the buffer circuit 20. 4 is a read/write stop signal (hereinafter abbreviated as stop signal) indicating the end of data read and data write. This stop signal 4 activates the dummy data set circuit and clears the block size counter 25. 5 is a read/write strobe signal (hereinafter abbreviated as strobe signal). 6
is a read/write signal indicating whether the CMT device is in a read operation or in a write operation. 7 is an effective data number write line for writing the contents of the effective data register 26 into the buffer circuit n. 8 is a comparison circuit (9
). 9 is a data number input line from which the value of N102 in the block is read at the time of reading.

1oは検出した有効データ数を26の比較回路へ入力す
る有効データ数入力ラインである。11はリード時に1
つのブロック内の有効データ全てがnのポストへ転送さ
れたことを示し次のブロックデータの転送を要求する次
ブロツク転送要求信号である。12はADDRESSl
olに記録するブロックアドレスをバッファ回路21に
入力するブロックアドレスラインである。13はブロッ
クアドレスライン12の信号がどのブロックのアドレス
を示している。がを入力する信号である。
1o is a valid data number input line for inputting the detected valid data number to 26 comparison circuits. 11 is 1 when leading
This is a next block transfer request signal indicating that all valid data in one block has been transferred to post n and requesting transfer of the next block data. 12 is ADDRESSl
This is a block address line for inputting the block address to be recorded in the buffer circuit 21 to the buffer circuit 21. 13 indicates the address of which block the signal on the block address line 12 corresponds to. is the input signal.

次に従来のCMT装置の動作を説明する。まず、テープ
にデータをライトするデータライト動作を説明する。ホ
スト24はストローブ信号5をONすることによシデー
タバス1を介して1バイトデータをバッファ回路20に
転送する。それ故、nバイトのブロックデータはn回の
ストローブ信号5をONにすることによりバッファ回路
側に転送されることになり、転送データ数はストローブ
信号5がONになる回数をブロックサイズカウンタ5で
カウントすることKより得られる。このカウント数がデ
ータバッファのブロックサイズ512に達したら、これ
を1ブロツクとするシリアルデータがバッファ回路20
から記録/再生回路21を介してテープに記録される。
Next, the operation of the conventional CMT device will be explained. First, a data write operation for writing data onto a tape will be explained. The host 24 transfers 1 byte data to the buffer circuit 20 via the data bus 1 by turning on the strobe signal 5. Therefore, n-byte block data is transferred to the buffer circuit side by turning on the strobe signal 5 n times, and the number of transferred data is determined by the number of times the strobe signal 5 is turned on using the block size counter 5. It is obtained from counting K. When this count reaches the block size 512 of the data buffer, the serial data with this as one block is transferred to the buffer circuit 20.
The data is then recorded on a tape via the recording/reproducing circuit 21.

また、有効データレジスタ26からバッファメモリ乙の
該当ブロックに格納された有効データ数はN102とし
てテープに記録さ枢ブロックカウントレジスタnからバ
ッファメモリ21の該当ブロックに格納されたブロック
アドレスはADDRESSlolとしてテープに記録さ
れる。
Also, the number of valid data stored in the corresponding block of the buffer memory 21 from the valid data register 26 is recorded on the tape as N102, and the block address stored in the corresponding block of the buffer memory 21 from the central block count register n is recorded on the tape as ADDRESSlol. recorded.

513バイト以降のデータも1〜512バイトまでのデ
ータと同様である。つまり、512バイト目のストロー
ブ信号5がブロックサイズカウンタ5に入力されると、
有効データレジスタ26に”512”を出力する。この
とき、カウンタ5はクリアされる。
The data after the 513th byte is also the same as the data from 1st to 512th bytes. In other words, when the 512th byte strobe signal 5 is input to the block size counter 5,
“512” is output to the valid data register 26. At this time, counter 5 is cleared.

同時にブロックカウントレジスタnがインクリメントさ
れる。いま、第nブロックの512バイトのデータがバ
ッファ回路銀に転送されたとすればバッファ回路21 
、22にはそれぞれADDRESS=nN二512がセ
ットされることになる。テープにはn 、 512と1
〜512バイトのデータが第nブロックとして記録され
る。シリアルデータ線2を介して記録/再生回路器によ
りテープに第nブロックを記録中に第り十・1ブロツク
つまり513バイト目のデータとストローブ信号5が転
送されても、第nブロックと同様にバッファ回路20 
、21 、22の次のブロックにデー、夕、ブロックア
ドレス、有効データ数がそれぞれ格納される。以上の様
にしてバッファ回路銀の4ブロツク全てにデータが格納
されることがバッファフルの状態であシ、ホスト装置2
4からのデータ転送が一時中断されるがテープにデータ
が記録されることKよシバラフアブロック1つが空にな
ればホスト装置Uからのデータ転送が再開される。
At the same time, block count register n is incremented. Now, if 512 bytes of data of the n-th block is transferred to the buffer circuit 21, the buffer circuit 21
, 22 are set to ADDRESS=nN2512, respectively. The tape has n, 512 and 1
~512 bytes of data are recorded as the nth block. Even if the data of the 10th and 1st block, that is, the 513th byte, and the strobe signal 5 are transferred while the n-th block is being recorded on the tape by the recording/reproducing circuit through the serial data line 2, the data will be transferred in the same way as the n-th block. Buffer circuit 20
, 21 and 22, data, data, block address, and number of valid data are stored, respectively. As described above, data is stored in all four blocks of the buffer circuit silver, which is the buffer full state, and the host device 2
The data transfer from the host device U is temporarily interrupted, but the data is recorded on the tape K. When one of the Shibara hard blocks becomes empty, the data transfer from the host device U is resumed.

書き込むデータがバッファブロックサイズ512バイト
に満たない場合はホスト装置24からストップ信号4を
入力することによシ、ブロックサイズ。
If the data to be written is less than the buffer block size of 512 bytes, the block size is changed by inputting the stop signal 4 from the host device 24.

カウンタ5はそれ°までカウントした値を有効データレ
ジスタ26にセットし、ブロックカウントレジスタnも
1だけインクリメントする。また、ストップ信号4の入
力によシダミーデータセット回路28はバッファ回路銀
にダミーデータ(例えばFF)を(512−有効レジス
タあの内容)の数だけ格納する。バッファ回路銀がバッ
ファブロックサイズ512になった時バッファ回路21
 、22 、20が乙へ転送可能となる。第4図は第へ
ブロックがバッファサイズ512に満たない場合の例で
ある。510バイト目のストローブ信号5が入力した後
、ストップ信号4を入力すると、このストップ信号4が
オンの間に有効データ数Nがバッファ回路22に入力さ
れ、最後のダミーデータがバッファ回路20に格納され
てからバッファ回路21にADDRESSが格納される
。ここで、バッファ回路20 、21 、 Z3から記
録/再生回路nへの転送が可能となる。
The counter 5 sets the value counted up to that point in the valid data register 26, and also increments the block count register n by one. Further, upon input of the stop signal 4, the dummy data set circuit 28 stores dummy data (for example, FF) in the buffer circuit silver by the number of times (512-valid register contents). When buffer circuit silver reaches buffer block size 512, buffer circuit 21
, 22, and 20 can be transferred to Party B. FIG. 4 is an example in which the buffer size of the first block is less than 512. When the stop signal 4 is input after the 510th byte strobe signal 5 is input, the valid data number N is input to the buffer circuit 22 while the stop signal 4 is on, and the last dummy data is stored in the buffer circuit 20. After that, ADDRESS is stored in the buffer circuit 21. Here, the data can be transferred from the buffer circuits 20, 21, and Z3 to the recording/reproducing circuit n.

第5図(a)(b)にテープに記録される具体例を示す
FIGS. 5(a) and 5(b) show specific examples of recording on tape.

第5図(a)は概略例であシ、第5図(b)は第5図(
a)の第n + 1ブロツクの詳細例である。
FIG. 5(a) is a schematic example, and FIG. 5(b) is a schematic example.
This is a detailed example of the (n+1)th block in a).

第5図(a)に示す第nブロックはバッフアブロックサ
イズ512バイト分全てデータが記録されている例であ
る。N102にば512が記録され有効データは512
バイトである。第n+1ブロックは有効データが10バ
イトの例である。N102には10が記録されている。
The nth block shown in FIG. 5(a) is an example in which all data corresponding to the buffer block size of 512 bytes is recorded. 512 is recorded in N102, and the valid data is 512.
It's a part-time job. In the (n+1)th block, valid data is 10 bytes. 10 is recorded in N102.

第5図(b)に示すように、第n+1ブロックのDAT
A 103の部分にOOHからのインクリメントデータ
が09Hまで記録されている。1〜10バイトに数値O
OHから09Hが記録され、11バイト目から512バ
イトまではFFめデータが記録されていることがわかる
As shown in FIG. 5(b), the DAT of the n+1 block
Increment data from OOH to 09H is recorded in the A103 portion. Numeric value O in 1 to 10 bytes
It can be seen that 09H is recorded from OH, and FF data is recorded from the 11th byte to the 512th byte.

次にテープよりデータをリードするデータリード動作を
説明する。
Next, a data read operation for reading data from the tape will be explained.

ホスト装置24はリード/ライト信号6をリード状態に
すると、記録/再生回路23でテープから読み出された
シリアルデータがバッファ回路20に格納され、1ブロ
ツクのデータ読み出し終了時点でバッファ回路20に読
み込まれたデータ数、つまり、N102の内容がデータ
数検出回路29に移される。
When the host device 24 sets the read/write signal 6 to a read state, the serial data read from the tape by the recording/reproducing circuit 23 is stored in the buffer circuit 20, and is read into the buffer circuit 20 at the end of reading one block of data. The number of data detected, that is, the contents of N102, is transferred to the data number detection circuit 29.

ここでストローブ信号5をブロックサイズカウンタ5及
びバッファ回路mに入力すると、このストローブ信号5
0入力タイミングでバッファ回路20からホスト装置2
4へ1バイトのデータが転送される。ブロックサイズカ
ウンタ部でストローブ信号5をカウントすることにより
、カウント値とデータ数検出回路29で読み出した有効
データ数が比較回路(9)で比較される。有効データ数
が全てホスト装置24に転送されると、ブロックサイズ
カウンタ′25は有効データ数に等しい値までカウント
されているので比較回路30の出力信号11がオンとな
りバッファ回路20に入力され次のブロックの転送の要
求をする。このとき次のブロックがバッファ回路20 
、21 、22に格納されていればストローブ信号5が
ホスト24から入力され、再びブロックサイズカウンタ
部で転送したデータのカウントを開始する。
Here, when the strobe signal 5 is input to the block size counter 5 and the buffer circuit m, this strobe signal 5
From the buffer circuit 20 to the host device 2 at 0 input timing
1 byte of data is transferred to 4. By counting the strobe signal 5 in the block size counter section, the count value and the number of valid data read out by the data number detection circuit 29 are compared in a comparator circuit (9). When all the number of valid data has been transferred to the host device 24, the block size counter '25 has counted up to a value equal to the number of valid data, so the output signal 11 of the comparator circuit 30 is turned on and is input to the buffer circuit 20 and the next Request a block transfer. At this time, the next block is the buffer circuit 20.
, 21, and 22, the strobe signal 5 is input from the host 24, and the block size counter starts counting the transferred data again.

例えば、テープから読み出されてデータ検出回路29に
移されたN102の内容がバッファブロックサイズ51
2バイトであった場合、バッファ回路20の該当ブロッ
クには512バイトの有効データが格納されている。ス
トローブ信号5のタイミングでホスト装置24ヘデータ
転送が開始されると、ブロックサイズカウンタ5でスト
ローブ信号5をカウントする。ブロックサイズカウンタ
5でカウントされる値とデータ検出回路四の内容512
を比較回路加で比較する。比較回路30は一致した場合
には次ブロツク転送要求信号11をバッファ回路加に入
力して次ブロックの先頭1.つまり513バイト目のデ
ータ転送を要求する。以後、ストローブ信号50入力で
同様の動作を行なう。
For example, the contents of N102 read from the tape and transferred to the data detection circuit 29 have a buffer block size of 51.
If it is 2 bytes, the corresponding block of the buffer circuit 20 stores 512 bytes of valid data. When data transfer to the host device 24 is started at the timing of the strobe signal 5, the block size counter 5 counts the strobe signal 5. Value counted by block size counter 5 and contents of data detection circuit 4 512
are compared using a comparator circuit. If there is a match, the comparison circuit 30 inputs the next block transfer request signal 11 to the buffer circuit and transfers the next block starting 1. In other words, a request is made to transfer the 513th byte of data. Thereafter, the same operation is performed by inputting the strobe signal 50.

まだ、ブロックの有効データがバッファブロックサイズ
512バイトに満たない場合はバッファ加。
If the valid data in the block is still less than the buffer block size of 512 bytes, add the buffer.

21.22にテープから読み出されて格納された後、デ
ータ数検出回路四に移されたN102の値とブロックサ
イズカウンタ5のカウンタの値が一致した時、次ブロツ
ク転送信号11がバッファ回路側に入力され、ダミーデ
ータは無視される。例えば、有効データが510バイト
の時は、無効データ2バイトはバッファ回路20には格
納されるがホスト装置24へは転送されないことになる
After being read from the tape and stored at 21.22, when the value of N102 transferred to the data number detection circuit 4 and the value of the block size counter 5 match, the next block transfer signal 11 is transferred to the buffer circuit side. , and dummy data is ignored. For example, when valid data is 510 bytes, 2 bytes of invalid data are stored in the buffer circuit 20 but are not transferred to the host device 24.

(発明が解決しようとする問題点) しかしながら前記構成のCMT装置ではバッファ回路2
0の容量の不足やホスト装置のソフト処理時間が長くか
かる等の原因で、バッファ回路が空状態とな9書き込む
べきデータがない状態となるバッファアンダーランが発
生した場合には、このバッファアンダーランによって生
じるリボジョニングによって、データ転送速度が著しく
低下するという問題点があった。なお、ここでリボジョ
ニングとはデータバッファにテープに書き込むべきデー
タが無い場合、CMT装置は走行をすぐに停止できない
ため第6図の様に伺ブロックか先まで走行し、その後、
既に書き込んだ領域1で巻き戻し、再び最後に書いたブ
ロックの次まで走行してテープ駆動を停止する動作を言
う。
(Problems to be Solved by the Invention) However, in the CMT device having the above configuration, the buffer circuit 2
If a buffer underrun occurs in which the buffer circuit becomes empty and there is no data to be written due to a lack of 0 capacity or a long software processing time on the host device, etc., this buffer underrun will occur. There is a problem in that the data transfer speed is significantly reduced due to the rotation caused by this. Incidentally, what is meant by "revolutioning" here is that when there is no data to be written to the tape in the data buffer, the CMT device cannot stop running immediately, so as shown in Figure 6, the CMT device runs to the next block or beyond, and then,
This refers to the operation of rewinding in area 1 that has already been written, running again to the next block written last, and then stopping the tape drive.

時間を短縮させることが可能なカートリッジ磁気テープ
装置を提供するものである。
It is an object of the present invention to provide a cartridge magnetic tape device that can reduce time.

(問題点を解決するための手段) 本発明の前記問題点を解決するために、バッファ手段を
備え、該手段を介して中央処理装置との間でブロック単
位のデータ郵送を行なうストリーミング型のカートリッ
ジ磁気テープ装置において、前記バッファ手段の空状態
を検出する検出手段と、該検出手段の出力信号に基づい
て予め設定されたブロック数のダミーデータをカートリ
ッジ磁気テープに記録するダミーデータ記録手段とを設
けたものである。
(Means for Solving the Problems) In order to solve the above-mentioned problems of the present invention, a streaming type cartridge is provided with a buffer means and transmits data in blocks to and from a central processing unit via the buffer means. The magnetic tape device includes a detection means for detecting an empty state of the buffer means, and a dummy data recording means for recording a preset number of blocks of dummy data on the cartridge magnetic tape based on an output signal of the detection means. It is something that

(作用) 本発明によれば以上のようにカートリッジ磁気テープ装
置(CMT装置)を構成したので、技術的手段は次のよ
うに作用する。記録時に、検出手段はバッファ手段に書
き込むべきデータがない空状態を検出し、空状態を示す
信号を記録手段へ出力する。ダミーデータ記録手段は記
録していたデ−タて続いて予め設定されたブロック数だ
けダミーデータをカートリッジ磁気テープに記録するよ
うに働く。ダミーデータ分記録し終えた時点で中央処理
装置からの書き込みデータがバッファ手段に格納されて
いる場合には、ストリーミングを行なうことなく、この
データをダミーデータに続いて磁気テープに書き込むこ
とが可能となる。また、再生時にはこの書き込まれたダ
ミーデータのブロック数だけ無視して有効なデータのみ
読み出すことが可能となる。従って、前記従来技術の問
題点が解決できるのである。
(Function) According to the present invention, since the cartridge magnetic tape device (CMT device) is configured as described above, the technical means functions as follows. During recording, the detection means detects an empty state in which there is no data to be written in the buffer means, and outputs a signal indicating the empty state to the recording means. The dummy data recording means operates to record dummy data for a predetermined number of blocks onto the cartridge magnetic tape following the recorded data. If the write data from the central processing unit is stored in the buffer means at the time when the recording of the dummy data is finished, it is possible to write this data to the magnetic tape following the dummy data without performing streaming. Become. Further, during reproduction, it is possible to ignore the number of blocks of written dummy data and read only valid data. Therefore, the problems of the prior art described above can be solved.

(実施例) 第1図は本発明のCMT装置の一実施例を示すブロック
図である。同図において、第3図と同一の参照符号は同
一性のある構成部分を示す。
(Embodiment) FIG. 1 is a block diagram showing an embodiment of a CMT device of the present invention. In this figure, the same reference numerals as in FIG. 3 indicate the same components.

31はバッファ回路銀の各ブロックにデータが存在する
時は1をたてて、データが存在しない時は0をたてるフ
ラグレジスタである。32はフラグレジスタ31のフラ
グの論理和をとるオアゲートで、全てのフラグがOのと
き出力信号16がオンになる。
Reference numeral 31 is a flag register that sets 1 when data exists in each block of the buffer circuit silver, and sets 0 when no data exists. 32 is an OR gate that takes the logical sum of the flags in the flag register 31, and when all the flags are O, the output signal 16 is turned on.

33はオアゲート32の出力信号16がオンかっ、リー
ド/ライト信号6がライトを示す時起動しシリアルデー
タライン17からダミーデータブロック会テープに書き
込むダミーデータブロックライト回路である。34はプ
ログラム又はディン18w等によりダミーデータブロッ
クライト回路33がら書き込むダミーデータブロック数
を初期値として設定するダミーデータブロック数設定回
路である。
33 is a dummy data block write circuit which is activated when the output signal 16 of the OR gate 32 is on and the read/write signal 6 indicates write, and writes the dummy data block to the tape from the serial data line 17. 34 is a dummy data block number setting circuit that sets the number of dummy data blocks to be written from the dummy data block write circuit 33 as an initial value by a program or the din 18w or the like.

14はバッファ回路加の各ブロックにデータが存在しな
い時にフラグレジスタ3Iをクリア(フラグ0)にする
信号線である。16はオアゲート32の入力が全てOの
ときに出力がオンとなる信号である。
A signal line 14 clears the flag register 3I (flag 0) when there is no data in each block of the buffer circuit. 16 is a signal whose output is turned on when all inputs of the OR gate 32 are O.

17はダミーデータブロックライト回路33がら出力さ
れるダミーデータライトラインである。18はダミーデ
ータブロック設定数回格調から出方されダく−アータブ
ロックライト回路33に何ブロックのダミーデータを書
き込むかをセットするデータラインである。
Reference numeral 17 denotes a dummy data write line outputted from the dummy data block write circuit 33. Reference numeral 18 is a data line for setting the number of blocks of dummy data to be written in the dummy data block write circuit 33, which is output from the dummy data block setting number scale.

次に動作を説明する。Next, the operation will be explained.

まず、テープにデータをライトするデータライト動作を
説明する。
First, a data write operation for writing data onto a tape will be explained.

ダミーデータブロック設定回路あにバッファアンダーラ
ン時に書き込むデータ数をセットする。
Dummy data block setting circuit Sets the number of data to be written in case of buffer underrun.

例えば10ブロツクとセットする。その後のデータ転送
は第3図で説明したのと全く同様に、ブロックサイズカ
ウンタ5でストローブ信号5をカウントシ、ブロックサ
イズ512バイトごとにデータをバッファ回路加に格納
する。また、バッファ回路21.22にはブロックアド
レス、有効データ数をそれぞれ格納する。1ブロツクの
データがブロックサイズに一致すると、シリアルデータ
ライン2よシデータが出力され記録/再生回路田よシテ
ープに第2図のフォーマットで記録される。
For example, set it to 10 blocks. The subsequent data transfer is performed in exactly the same manner as described in FIG. 3, with the block size counter 5 counting the strobe signal 5 and storing data in the buffer circuit every 512 bytes of block size. Further, the buffer circuits 21 and 22 respectively store a block address and the number of valid data. When one block of data matches the block size, the serial data line 2 outputs the data and records it on the recording/reproducing circuit tape in the format shown in FIG.

以上の様に、バッファ回路mを介してデータがテープに
記録される。また通常は、ホスト装置24とバッファ回
路20間のデータ転送はバッファ回路20と記録/再生
回路23間のデータ転送よシも高速のためバッファ20
は常にバッファフルの状態である。しかし、ホスト装置
24側のソフト処理が遅い場合(実動作ではライトデー
タはハードディスクからホスト装置24のメインメモリ
に転送されるのでディスクからの読出し時間とそのソフ
ト処理に時間がかかる。)、バッファ加のデータが全て
記録/再生回路器に出力されテープ(で記録されても次
のデータがホスト装置Uからバッファ回路20にデータ
が送られないだめバッファ回路加はバッファエンプティ
となる。このとき、従来のCMT装置ではテープ上で数
ブロツク相当だけギャップ(データブロック等がテープ
上に何も書かれていない状態。)がテープに書かれ、そ
の間に次のデータが送信されない場合はりボジショニン
グを行なっていた。
As described above, data is recorded on the tape via the buffer circuit m. Also, normally, the data transfer between the host device 24 and the buffer circuit 20 is faster than the data transfer between the buffer circuit 20 and the recording/reproducing circuit 23;
is always buffer full. However, if the software processing on the host device 24 side is slow (in actual operation, write data is transferred from the hard disk to the main memory of the host device 24, it takes time to read from the disk and the software processing), Even if all the data is output to the recording/reproducing circuit and recorded on the tape (the next data is not sent from the host device U to the buffer circuit 20, the buffer circuit becomes empty. In CMT devices, if a gap equivalent to several blocks is written on the tape (a state in which no data blocks, etc. are written on the tape) and the next data is not transmitted during that time, repositioning is performed. Ta.

゛これに対し本発明の実施例ではバッファエンプティの
状態をフラグレジスタ31及びオアゲート32で検出し
信号16を出力する。かつリードライト信号6がライト
動作中を示している時にダミーデータブロックライト回
路33がオンし、あらかじめダミーデータブロックライ
ト回路33内に設定されていたダミーデータブロックを
シリアルデータとしてデータライン17に出力し、テー
プに書き込む。
In contrast, in the embodiment of the present invention, the buffer empty state is detected by the flag register 31 and the OR gate 32, and the signal 16 is output. And when the read/write signal 6 indicates that a write operation is in progress, the dummy data block write circuit 33 is turned on, and outputs the dummy data block previously set in the dummy data block write circuit 33 to the data line 17 as serial data. , write to tape.

例えば、ダミーデータライト回路33内に設定されてい
たダミーデータブロックのデータはROMに予め書き込
んだデータブロックである。ダミーデータブロックライ
ト回路33はデフォルト値としてダミーデータブロック
数設定回路34にセットされたブロック数だけダミーデ
ータブロックをテープに書き込む。指定されたダミーデ
ータブロック数を書き込んでも次のデータがバッファ頷
に送信されない場合は従来のCMT装置と同様にリポジ
ショニングを行なう。しかし指定されたダミーデータブ
ロック数を全て書き込む以前に次のデータがバッファ回
路かに送信された場合には、ダミーデータブロックライ
ト回路33はいま出力中のデータブロックを全て出力後
オフし1、シリアルデータ線2をバッファ回路銀に引き
渡す。バッファ回路20では送信されたデータが1ブロ
ック揃ったら記録/再生回路路に出力する。
For example, the data of the dummy data block set in the dummy data write circuit 33 is a data block written in the ROM in advance. The dummy data block write circuit 33 writes dummy data blocks on the tape by the number of blocks set in the dummy data block number setting circuit 34 as a default value. If the next data is not sent to the buffer even after writing the specified number of dummy data blocks, repositioning is performed in the same way as in the conventional CMT device. However, if the next data is sent to the buffer circuit before all the specified number of dummy data blocks are written, the dummy data block write circuit 33 outputs all the data blocks currently being output and turns off. Transfer data line 2 to buffer circuit Silver. In the buffer circuit 20, when one block of transmitted data is complete, it is output to the recording/reproducing circuit path.

以上の様に、本実施例ではバッファ回路銀がバッファエ
ンプティになった時はダミーデータブロックライト回路
33からダミーデータブロックを出力し、再びバッファ
回路銀にデータが送信された時は、バッファ20からデ
ータブロックを出力する動作を繰り返す様にしたことを
特徴とする。
As described above, in this embodiment, when the buffer circuit Silver becomes buffer empty, a dummy data block is output from the dummy data block write circuit 33, and when data is sent to the buffer circuit Silver again, from the buffer 20. It is characterized by repeating the operation of outputting data blocks.

次に、テープからデータをリードするデータリード動作
を説明する。
Next, a data read operation for reading data from the tape will be explained.

テープにダミーデータブロックが書き込まれていない場
合のデータリード動作は第3図の場合と同様であるので
、データライト動作の説明のように、ライト時にバッフ
ァアンダーランが発生してダミーデータブロックが書き
込まれた場合のみを説明する。
The data read operation when no dummy data block is written on the tape is the same as the case shown in Figure 3, so as explained in the data write operation, a buffer underrun occurs during writing and a dummy data block is written. We will explain only the case where

記録/再生回路器からバッファ回路銀にデータが転送さ
れブロック単位に格納されると、通常のデータブロック
の場合にはバッファ回路nのN102の内容がデータ数
検出回路29に入力され、比較回路間でN102の値と
ブロックサ°イズカウンタ邸の内容、即ちストローブ信
号5のカウント値とが比較され、一致した時にブロック
を次のブロックに更新している。ダミーデータブロック
の場合にはN 102の内容が0である為、比較回路3
0はデータ数検出回路29からの入力があると即座に信
号11を出力しブロックを次のブロックに更新する。つ
まりダミーデータブロックの内容はホスト装置24へ転
送されない。
When data is transferred from the recording/reproducing circuit to the buffer circuit silver and stored in blocks, in the case of a normal data block, the contents of N102 of the buffer circuit n are input to the data number detection circuit 29, and the data is transferred between the comparison circuits. The value of N102 is compared with the contents of the block size counter, that is, the count value of strobe signal 5, and when they match, the block is updated to the next block. In the case of a dummy data block, the content of N102 is 0, so the comparison circuit 3
0 outputs the signal 11 immediately upon receiving the input from the data number detection circuit 29 to update the block to the next block. In other words, the contents of the dummy data block are not transferred to the host device 24.

以上のように、本実施例ではバッファアンダーラン時に
ダミーデータブロックをテープに記録するように構成し
たのでバッファアンダーランによって起こるリポジショ
ニングによるデータ転送速度の減少が防げるためデータ
転送時間の短縮が期待できる。
As described above, in this embodiment, a dummy data block is recorded on the tape at the time of a buffer underrun, so a decrease in data transfer speed due to repositioning caused by a buffer underrun can be prevented, and a reduction in data transfer time can be expected. .

(発明の効果) 以上説明したように本発明によれば、バッファ手段に書
き込むべきデータがないことを検出した場合には予め設
定されたブロック数だけダミーデータを書き込むように
したので、データ転送時間を短縮させることができる。
(Effects of the Invention) As explained above, according to the present invention, when it is detected that there is no data to be written in the buffer means, dummy data is written in a preset number of blocks, so that the data transfer time is reduced. can be shortened.

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

第1図は本発明のカートリッジ磁気テープ(CMT)装
置の一実施例を示すブロック図、第2図はカートリッジ
磁気テープのフォーマット例を示す図、第3図は従来の
CMT装置を示すブロック図、第4図は第3図のデータ
ライト動作を示すタイムチャート、第5図(a)(b)
はカートリッジ磁気テープの実際の記入例を示す図、第
6図はりポジショニング動作の説明図である。 加〜お・・・バッファ回路、24・・・ポスト中央処理
装置(ホスト装置)、5・・・ブロックサイズレジスタ
、26・・・有効データレジスタ、n・・・ブロックカ
ウントレジスタ、あ・・・ダミーデータセット回路、2
9・・・データ数検出回路、(資)・・・比較回路、3
1・・・フラグレジスタ、32・・・オアゲート、33
・・・ダミーデータブロックライト回路、34・・・ダ
ミーデータブロック数設定回路。
FIG. 1 is a block diagram showing an embodiment of a cartridge magnetic tape (CMT) device of the present invention, FIG. 2 is a diagram showing an example of the format of a cartridge magnetic tape, and FIG. 3 is a block diagram showing a conventional CMT device. Figure 4 is a time chart showing the data write operation in Figure 3, Figures 5 (a) and (b)
6 is a diagram showing an example of actual writing on the cartridge magnetic tape, and FIG. 6 is an explanatory diagram of the beam positioning operation. Add...Buffer circuit, 24...Post central processing unit (host device), 5...Block size register, 26...Valid data register, n...Block count register, Ah... Dummy data set circuit, 2
9... Data number detection circuit, (capital)... Comparison circuit, 3
1... Flag register, 32... OR gate, 33
... Dummy data block write circuit, 34... Dummy data block number setting circuit.

Claims (1)

【特許請求の範囲】 バッファ手段を備え、該手段を介して中央処理装置との
間でブロック単位のデータ転送を行なうストリーミング
型のカートリッジ磁気テープ装置において、 前記バッファ手段の空状態を検出する検出手段と、 該検出手段の出力信号に基づいて予め設定されたブロッ
ク数のダミーデータをカートリッジ磁気テープに記録す
るダミーデータ記録手段とを設けたことを特徴とするカ
ートリッジ磁気テープ装置。
[Scope of Claims] A streaming type cartridge magnetic tape device that includes buffer means and performs data transfer in blocks with a central processing unit via the buffer means, further comprising a detection means for detecting an empty state of the buffer means. and dummy data recording means for recording a preset number of blocks of dummy data on the cartridge magnetic tape based on the output signal of the detection means.
JP18731285A 1985-08-28 1985-08-28 Cartridge magnetic tape device Pending JPS6249434A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18731285A JPS6249434A (en) 1985-08-28 1985-08-28 Cartridge magnetic tape device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18731285A JPS6249434A (en) 1985-08-28 1985-08-28 Cartridge magnetic tape device

Publications (1)

Publication Number Publication Date
JPS6249434A true JPS6249434A (en) 1987-03-04

Family

ID=16203794

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18731285A Pending JPS6249434A (en) 1985-08-28 1985-08-28 Cartridge magnetic tape device

Country Status (1)

Country Link
JP (1) JPS6249434A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5384673A (en) * 1991-03-15 1995-01-24 Fujitsu Limited Magnetic-tape storage apparatus
JPH10106156A (en) * 1996-09-30 1998-04-24 Ricoh Co Ltd Information recorder
WO2011058794A1 (en) * 2009-11-13 2011-05-19 インターナショナル・ビジネス・マシーンズ・コーポレーション Device and method for controlling writing of data

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5384673A (en) * 1991-03-15 1995-01-24 Fujitsu Limited Magnetic-tape storage apparatus
US5525902A (en) * 1991-03-15 1996-06-11 Fujitsu Limited Magnetic tape storage apparatus writing status information to magnetic tape indicating a tape abnormality
JPH10106156A (en) * 1996-09-30 1998-04-24 Ricoh Co Ltd Information recorder
WO2011058794A1 (en) * 2009-11-13 2011-05-19 インターナショナル・ビジネス・マシーンズ・コーポレーション Device and method for controlling writing of data
GB2488689A (en) * 2009-11-13 2012-09-05 Ibm Device and method for controlling writing of data
JP5476395B2 (en) * 2009-11-13 2014-04-23 インターナショナル・ビジネス・マシーンズ・コーポレーション Apparatus and method for controlling data writing
US8810951B2 (en) 2009-11-13 2014-08-19 International Business Machines Corporation Apparatus and method for controlling data writing to a tape medium
GB2488689B (en) * 2009-11-13 2018-10-03 Ibm Apparatus, method and computer program for controlling data writing to a tape medium

Similar Documents

Publication Publication Date Title
US4558446A (en) Memory system
JP2854391B2 (en) Method for assembling data groups on DAT tape
US4811124A (en) Defect skipping mechanism for disk drives
US4092732A (en) System for recovering data stored in failed memory unit
KR101091225B1 (en) Apparatus, system, and method for detection of mismatches in continuous remote copy using metadata
US7350021B2 (en) Method of controlling write and read of data for tape recording apparatus
JP2576512B2 (en) Data recorder
JPS62117049A (en) Digital data transfer system
US7146494B2 (en) High speed data transfer between mainframe storage systems
JP3070494B2 (en) Optical disk recording device
US8176243B2 (en) Tape recording apparatus and method
JPH08147879A (en) Optical disk recorder
JPS6249434A (en) Cartridge magnetic tape device
JP4324993B2 (en) Data transfer method and apparatus
JP3525615B2 (en) Tape cassette, digital data recording device, and digital data reproducing device
JPH09231508A (en) Data recording system with demarking function and its method
JP2000155737A (en) Data packet receiving device
US6775721B1 (en) Method and system for handling a data stream from optical media utilizing automatic link sector detection
JP3750137B2 (en) Digital data recording apparatus and reproducing apparatus
EP0437779B1 (en) Dat drive/controller interface
JPH08161123A (en) Disk array device
JP3065697B2 (en) Magnetic recording method
JPH0541037A (en) Digital data recording and reproducing device
JPS6013360A (en) Storage device
JP2522272B2 (en) Data recorder