JPH0451850B2 - - Google Patents

Info

Publication number
JPH0451850B2
JPH0451850B2 JP15383185A JP15383185A JPH0451850B2 JP H0451850 B2 JPH0451850 B2 JP H0451850B2 JP 15383185 A JP15383185 A JP 15383185A JP 15383185 A JP15383185 A JP 15383185A JP H0451850 B2 JPH0451850 B2 JP H0451850B2
Authority
JP
Japan
Prior art keywords
data
write
buffer
magnetic tape
instructions
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
JP15383185A
Other languages
Japanese (ja)
Other versions
JPS6215627A (en
Inventor
Masayuki Ishiguro
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 JP60153831A priority Critical patent/JPS6215627A/en
Priority to US06/883,630 priority patent/US4757396A/en
Priority to AU60031/86A priority patent/AU576090B2/en
Priority to CA513624A priority patent/CA1273710C/en
Priority to DE86305345T priority patent/DE3689021T2/en
Priority to EP86305345A priority patent/EP0213703B1/en
Priority to KR8605635A priority patent/KR920004769B1/en
Publication of JPS6215627A publication Critical patent/JPS6215627A/en
Priority to CA000614390A priority patent/CA1280510C/en
Publication of JPH0451850B2 publication Critical patent/JPH0451850B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Description

【発明の詳細な説明】 〔目次〕 概 要 産業上の利用分野 従来の技術 発明が解決しようとする問題点 問題点を解決するための手段(第1図) 作 用 実施例 (a) 一実施例の構成の説明(第2図、第3図) (b) 一実施例の動作の説明(第4図、第5図、第
6図、第7図) (c) 他の実施例の説明 発明の効果 〔概要〕 上位から与えられた命令を複数蓄積しうるバツ
フアを備え、命令を先取りする磁気テープ装置の
命令先取り制御方法において、磁気テープが終端
領域近傍に達したことを検出して該バツフアに蓄
積しうる先取りライト系命令数を減少するように
して、磁気テープ内にバツフアに取込んだ先取り
ライト系命令を全て実行できるようにしたもので
ある。
[Detailed Description of the Invention] [Table of Contents] Overview Industrial Application Fields Conventional Technology Problems to be Solved by the Invention Means for Solving the Problems (Fig. 1) Working Example (a) One Implementation Explanation of the configuration of an example (Fig. 2, Fig. 3) (b) Explanation of the operation of one embodiment (Fig. 4, Fig. 5, Fig. 6, Fig. 7) (c) Explanation of another embodiment Effects of the Invention [Summary] In a command preemption control method for a magnetic tape device that is equipped with a buffer capable of storing a plurality of commands given from a higher level and that preempts commands, the present invention detects that the magnetic tape has reached the vicinity of the end area, and The number of preemptive write instructions that can be stored in the buffer is reduced so that all preemptive write instructions loaded into the buffer can be executed on the magnetic tape.

〔産業上の利用分野〕[Industrial application field]

本発明は、複数の命令の格納可能なバツフアを
有する磁気テープ装置において、当該バツフアに
上位からの命令を先取りしうる命令先取り制御方
法及びその装置に関する。
The present invention relates to an instruction prefetch control method and apparatus for prefetching instructions from a higher level into the buffer in a magnetic tape device having a buffer capable of storing a plurality of instructions.

コンピユータの外部記憶装置として広く磁気テ
ープ装置が利用されており、近年特に磁気デイス
ク装置等の他の外部記憶装置のバツクアツプ用と
して用いられている。
Magnetic tape devices are widely used as external storage devices for computers, and in recent years have been used particularly for backing up other external storage devices such as magnetic disk devices.

このような磁気テープ装置においては、第8図
に示す如く、磁気テープへ書込み及び読出しを行
う磁気ヘツドと、磁気テープの走行駆動を行う磁
気テープ駆動部とを有するテープドライブ部1
と、ホストコントローラからの命令によりこれを
制御する制御部CTとが設けられて構成されてい
る。
In such a magnetic tape device, as shown in FIG. 8, a tape drive unit 1 includes a magnetic head for writing and reading data on the magnetic tape, and a magnetic tape drive unit for driving the magnetic tape.
and a control unit CT that controls this based on instructions from a host controller.

近年、この制御部CT内にバツフアBFを設け、
ホストコントローラからの命令、データを先取り
し、バツファBF内に蓄えておき、テープドライ
ブ部1に対しバツフアBF内の命令、データを順
次実行させる命令先取り制御を行うものが開発さ
れ、実用に供されている。
In recent years, a buffer BF has been installed within this control unit CT,
A system has been developed that performs command prefetch control that preempts commands and data from the host controller, stores them in the buffer BF, and causes the tape drive section 1 to sequentially execute the commands and data in the buffer BF, and has been put into practical use. ing.

このような磁気テープ装置は、バツフア付き磁
気テープ装置と称され、ホストコントローラから
の命令に対し、非同期でテープドライブ部1を動
作できるので、ホストコントローラ側では一命令
に対しテープドライブ部1の動作完了を待つ必要
なく、命令を継続的に発行でき、又テープドライ
ブ部1もホストコントローラからの命令を待つこ
となく継続的に動作が実行できるから、処理効率
の向上が得られ、特にストリーミングモードの動
作効率を向上しうる。
Such a magnetic tape device is called a buffered magnetic tape device, and can operate the tape drive unit 1 asynchronously in response to commands from the host controller, so the host controller side can operate the tape drive unit 1 in response to one command. Since commands can be issued continuously without having to wait for completion, and the tape drive section 1 can also perform operations continuously without waiting for commands from the host controller, processing efficiency can be improved, especially in streaming mode. Operational efficiency can be improved.

〔従来の技術〕[Conventional technology]

このようなバツフアBFを有して命令を先取り
するために、バツフアBFは複数の命令の蓄積し
うる命令バツフアと、複数のデータの蓄積しうる
データバツフアとで構成され、例えば、命令バツ
フアには最大32命令、データバツフアには最大
256KByteのデータを格納しうるようにして、先
取り命令、データを増加しうるようにしている。
In order to have such a buffer BF and preempt instructions, the buffer BF is composed of an instruction buffer that can store multiple instructions and a data buffer that can store multiple data. 32 instructions, maximum for data buffer
It is designed to be able to store 256KBytes of data, allowing for prefetch instructions and data to be increased.

一方、第9図Aに示す如く磁気テープ16は無
限長でなく、有限長のため、終端には、EOT
(END OF TAPE)マーカが貼付られており、
EOT検出後は約3mしか使用できない。
On the other hand, as shown in FIG. 9A, the magnetic tape 16 does not have an infinite length but a finite length, so at the end there is an EOT
(END OF TAPE) marker is attached,
After EOT is detected, it can only be used for about 3m.

従つて、ライト系の処理においては、先取り命
令・データがEOT検出時に3m分以上であると、
これを磁気テープ16上にライトできなくなり、
何等かの対策が必要となる。
Therefore, in write-based processing, if the prefetch command/data is 3 m or more when EOT is detected,
It becomes impossible to write this onto the magnetic tape 16,
Some kind of countermeasure is required.

従来、このため磁気テープの終端であるEOT
を検出する以前にテープ終端近傍信号EWAを、
例えばEOTの約20m分前に発生し、これによつ
て第9図Bの如く、バツフアBFのデータバツフ
アの蓄積可能量(データバイト数)を減少させて
いた。例えば第9図Bの如く最大256KByteのデ
ータの蓄積できるデータバツフアに対し、これを
128KByteに減少し、データバツフアのデータ蓄
積量が128KByte以下にならないと、ホストコン
トローラからのライトデータの受付けを許可しな
いようにして、係る書込み不能を防止するように
していた。
Conventionally, this is why EOT, the end of magnetic tape,
Before detecting the tape end near signal EWA,
For example, this occurred about 20 m before EOT, and as a result, the amount of data that can be stored in the buffer BF (number of data bytes) was reduced, as shown in FIG. 9B. For example, for a data buffer that can store up to 256 KB of data as shown in Figure 9B,
Until the amount of data accumulated in the data buffer becomes 128KByte or less, acceptance of write data from the host controller is not permitted, thereby preventing such writing failure.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

係る従来技術においては、ライト系の命令に対
しライトデータの先取りデータバイト数を制限し
て、ライト不能を防止するものであるが、一般に
ライト系の命令はイレーズやライトテープマーク
の如くライトデータを伴なわない命令も存在す
る。
In such conventional technology, the number of prefetched data bytes of write data is limited for write-related instructions to prevent write failure, but generally write-related instructions do not contain write data such as erase or write tape mark. There are also commands that are not accompanied.

従つて、従来技術によれば、ライトデータの伴
なうライト系命令に対しては、ライト不能を防止
しうるが、ライトデータの伴なわないイレーズや
ライトテープマークに対しては制限が行われず、
EOT後書込める範囲内で全てのライト系命令の
実行ができないという問題点があつた。
Therefore, according to the prior art, it is possible to prevent write-related commands accompanied by write data from being unable to write, but no restrictions are applied to erase or write tape marks that are not accompanied by write data. ,
There was a problem that all write-related commands could not be executed within the range that could be written after EOT.

本発明は、係る問題点に鑑み、ライトデータを
伴なわないライト系命令をも制限して、先取つた
ライト系命令の全てを実行しうるようにした磁気
テープ装置の命令先取り制御方法及びその装置を
提供することを目的とする。
In view of the above problems, the present invention provides an instruction preemption control method and apparatus for a magnetic tape device, which limits write instructions that do not involve write data and allows all preempted write instructions to be executed. The purpose is to provide

〔問題点を解決するための手段〕[Means for solving problems]

第1図は本発明の原理説明図である。 FIG. 1 is a diagram explaining the principle of the present invention.

本発明では、前述のバツフアBFを有する命令
先取り可能な磁気テープ装置において、磁気テー
プの終端領域近傍を検出したことを示すEWA信
号に応じ、命令バツフアに蓄積しうるライト系命
令の蓄積可能数を減少するものである。
In the present invention, in a magnetic tape device having the aforementioned buffer BF and capable of prefetching instructions, the number of write instructions that can be stored in the instruction buffer is determined in response to an EWA signal indicating that the vicinity of the end area of the magnetic tape has been detected. It is something that decreases.

例えば、命令バツフアに蓄積しうるライト系命
令が32であつたものを第1図の実線の如く、4
に制限するようにする。
For example, if the number of write instructions that can be accumulated in the instruction buffer is 32, then the number of write instructions that can be accumulated in the instruction buffer is 4, as shown by the solid line in Figure 1.
be limited to.

又、第1図の点線の如く蓄積しうるライト系命
令数を漸次減少していくようにしてもよい。
Alternatively, the number of write instructions that can be accumulated may be gradually reduced as indicated by the dotted line in FIG.

〔作用〕[Effect]

本発明では、ライト系命令の蓄積可能数を制限
するため、ライトデータを伴なわないイレーズ、
ライトテープマーク等のライト系命令も制限され
るから、磁気テープ内に全てのライト系命令の実
行ができ、ライト系命令の処理不能を防止するこ
とができる。
In the present invention, in order to limit the number of write instructions that can be stored, erase without write data,
Since write-related commands such as write tape marks are also restricted, all write-related commands can be executed on the magnetic tape, and inability to process write-related commands can be prevented.

〔実施例〕〔Example〕

(a)一実施例の構成の説明 第2図は、本発明の一実施例の説明のための
全体構成図である。
(a) Description of configuration of one embodiment FIG. 2 is an overall configuration diagram for explaining one embodiment of the present invention.

図中、第8図で示したものと同一のものとは
同一の記号で示してあり、1はリール間直接駆
動方式の磁気テープドライブユニツト(以下ド
ライブと称す)であり、巻取シール(マシンリ
ール)11と供給リール(フアイルリール)1
2の間に磁気テープ16がテンシヨンアーム1
5のローラ15a、磁気ヘツド14、アイドラ
13を介して巻取リール11に至るよう構成さ
れ、磁気ヘツド14の両側ではガイド17a、
17bによつてガイドされている。
In the figure, the same components as those shown in FIG. reel) 11 and supply reel (file reel) 1
A magnetic tape 16 is placed between the tension arm 1
5 roller 15a, the magnetic head 14, and the idler 13 to reach the take-up reel 11, and on both sides of the magnetic head 14 there are guides 17a,
17b.

一方、巻取リール11、供給リール12は
各々駆動モータ10a,10bによつて回転駆
動され、更に駆動モータ10a,10bにはロ
ータリーエンコーダ18a,18bが設けられ
駆動モータ10a,10bの回転量を検出でき
るようにしている。又、アイドラ13にもロー
タリーエンコーダ19aが設けられ、これによ
つて実際のテープの走行位置の監視を可能と
し、一方、テンシヨンアーム15には張力検出
器19bが設けられ、テープ張力の検出を可能
としている。
On the other hand, the take-up reel 11 and the supply reel 12 are rotationally driven by drive motors 10a and 10b, respectively, and rotary encoders 18a and 18b are provided on the drive motors 10a and 10b to detect the amount of rotation of the drive motors 10a and 10b. I'm trying to make it possible. The idler 13 is also provided with a rotary encoder 19a, which enables monitoring of the actual tape running position, while the tension arm 15 is provided with a tension detector 19b, which detects tape tension. It is possible.

2はドライブ制御部であり、後述する命令・
データ先取り制御部からの命令及びデータによ
つてテープ走行駆動及びヘツド書込み又は読取
り駆動を行うものであり、各ロータリーエンコ
ーダ18a,18b,19aの出力を受けて走
行状態を監視し、又張力検出器19bの出力よ
り張力を監視し、駆動回路20,21を介し両
駆動モータ10a,10bを制御して、テープ
張力を一定にしつつテープを走行駆動するとと
もに磁気ヘツド14にライトデータを与え書込
みを行わせ且つ磁気ヘツド14からのリードデ
ータを受けるものである。
2 is a drive control unit, which executes commands and commands to be described later.
It performs tape running drive and head writing or reading drive according to commands and data from the data prefetch control section, and monitors the running state by receiving outputs from each rotary encoder 18a, 18b, and 19a, and also uses a tension detector. The tension is monitored from the output of the magnetic head 19b, and both drive motors 10a and 10b are controlled via drive circuits 20 and 21 to drive the tape to run while keeping the tape tension constant, and write data is given to the magnetic head 14 to perform writing. It also receives read data from the magnetic head 14.

3は命令・データ先取り制御部であり、ホス
トコントローラからのライト系又はリード系の
命令及びライトデータを受け、これらを蓄え、
ライト系命令ならドライブ制御部2ヘライト命
令及びライトデータを送り、ライト動作せし
め、且つ正常終了なら次のブロツクライト命令
及びライトデータを送り、正常終了でなければ
ドライブ制御部2ヘライトリトライ動作せしめ
るものである。
3 is an instruction/data prefetch control unit that receives write or read instructions and write data from the host controller, stores them,
If it is a write-related command, it sends a write command and write data to the drive control unit 2, causing it to perform a write operation, and if it ends normally, it sends the next block write command and write data, and if it does not end normally, it causes the drive control unit 2 to perform a write retry operation. It is.

命令・データ先取り制御部3は、後述する命
令バツフアとデータバツフアを有し、ホストコ
ントローラに対しては磁気テープ装置として動
作し、ドライブ制御部2に対してはホストコン
トローラとして動作するアダプタである。
The command/data prefetch control section 3 has a command buffer and a data buffer to be described later, and is an adapter that operates as a magnetic tape device for the host controller and as a host controller for the drive control section 2.

第3図は第2図構成における要部、即ち、命
令・データ先取り制御部3の構成図である。
FIG. 3 is a block diagram of the main part in the configuration of FIG. 2, that is, the instruction/data prefetch control section 3.

図中、30はマイクロプロセツサ(以下
MPUと称す)であり、後述するプログラムメ
モリのマイクロプログラムに従つてホストコン
トローラからの命令及びデータの受信制御及び
データ、ステータスの送信制御を行うととも
に、ドライブ制御部2へ命令、データの送信制
御及びドライブ制御部からのデータ、ステータ
スの受信制御を行い、更にリトライ制御の処理
を行うもの、31aはプログラムメモリであ
り、MPU30が実行すべきプログラムを格納
しておくもの、31bはランダムアクセスメモ
リ(以下RAMと称す)であり、MPU30の
処理に必要な各種データ、命令、パラメータを
格納しておくものであり、命令バツフアエリア
CBA、命令バツフア管理エリアCA及びデータ
バツフア管理エリアDAを有するものである。
In the figure, 30 is a microprocessor (hereinafter referred to as
It controls the reception of commands and data from the host controller and the transmission of data and status according to the microprogram in the program memory described later, and also controls the transmission of commands and data to the drive control unit 2. 31a is a program memory that stores programs to be executed by the MPU 30; 31b is a random access memory (hereinafter referred to as It stores various data, instructions, and parameters necessary for the processing of the MPU 30, and is an instruction buffer area.
It has a CBA, an instruction buffer management area CA, and a data buffer management area DA.

命令バツフアエリアCBAは、ホストコント
ローラからの命令及びその命令により転送され
たデータのデータバツフア内のアドレス、バイ
トカウント数などが格納され、命令バツフア管
理エリアCAには、命令バツフアエリアCBAに
記憶され、未だ実行されていない命令数である
命令記憶数CNと、命令バツフアエリアCBAに
記憶できるライト系命令の命令数を示す命令記
憶領域数(可能命令数)ANとが格納され、デ
ータバツフア管理エリアDAには、データバツ
フアの空き容量を単位数(1KByte単位)で示
すバツフア容量と、データバツフアへの書込み
を行うデータ転送時のバツフアの先頭アドレス
を示すバツフアアドレスと、処理の対象となる
データブロツクの最大長を示す最大ブロツク長
とが格納される。
The instruction buffer area CBA stores instructions from the host controller, as well as the addresses and byte counts in the data buffer of data transferred by the instructions, and the instruction buffer management area CA stores instructions that are stored in the instruction buffer area CBA but have not yet been executed. The instruction memory number CN, which is the number of instructions that are not stored, and the instruction storage area number (possible number of instructions) AN, which indicates the number of write-related instructions that can be stored in the instruction buffer area CBA, are stored. Buffer capacity indicating the free space in units (in units of 1KByte), Buffer address indicating the start address of the buffer when transferring data to write to the data buffer, and Maximum block indicating the maximum length of the data block to be processed. The length is stored.

32aはドライブインターフエイス回路であ
り、ドライブ制御部2との間で制御信号等のや
りとりを行うためのもの、32bはホストイン
ターフエイス回路であり、ホストコントローラ
との間で制御信号等のやりとりをするもの、3
3はデータ転送制御回路であり、後述するデー
タバツフアを制御してホストコントローラ或い
はドライブ制御部2との間のデータ転送を制御
するものであり、ホストコントローラへデータ
転送要求信号を発し且つドライブ制御部2から
のデータ転送要求信号を受けデータ転送制御を
行うものであり、データバツフアへのストアア
ドレスカウタSAC、データバツフアからのロ
ードアドレスカウンタLAC、ロード時のバイ
トカウンタBCなどを有するものである。
32a is a drive interface circuit for exchanging control signals etc. with the drive control unit 2; 32b is a host interface circuit for exchanging control signals etc. with the host controller. thing, 3
Reference numeral 3 denotes a data transfer control circuit, which controls a data buffer to be described later to control data transfer between the host controller or the drive control section 2, and issues a data transfer request signal to the host controller and also controls the drive control section 2. It controls data transfer in response to a data transfer request signal from the data buffer, and includes a store address counter SAC to the data buffer, a load address counter LAC from the data buffer, and a byte counter BC at the time of loading.

34はデータバツフアであり、データ転送制
御回路33によつて制御され、ホストコントロ
ーラからのライトデータを蓄え、ドライブ制御
部2へ転送し、逆にドライブ制御部2からのリ
ードデータを蓄え、ホストコントローラへ転送
するためのものであり、例えば256キロバイト
のっ容量を持つもの、35はデータバスであ
り、MPU30とプログラムメモリ31a、
RAM31b、ドライブインターフエイス回路
32a、ホストインターフエイス回路32b、
データ転送制御回路33とを接続し、コマン
ド、データのやりとりを行うものである。
34 is a data buffer, which is controlled by the data transfer control circuit 33, stores write data from the host controller and transfers it to the drive control unit 2, and conversely stores read data from the drive control unit 2 and sends it to the host controller. 35 is a data bus, which is used for data transfer, and has a capacity of, for example, 256 kilobytes.
RAM31b, drive interface circuit 32a, host interface circuit 32b,
It is connected to the data transfer control circuit 33 to exchange commands and data.

36aは制御信号線であり、ドライブ制御部
2へコマンド等を送信し、逆にドライブ制御部
2からステータス等を受信するためのもの、3
6bはテープエンド近傍領域検出信号線であ
り、ドライブ制御部2からのテープエンド近傍
領域検出(EWA)信号のためのもの、36c
は割込み線であり、ドライブインターフエイス
回路32aよりMPU30へ割込みを通知する
もの、37aはデータ転送要求信号線であり、
ドライブ制御部2からデータ転送要求信号をデ
ータ転送制御回路33へ伝えるためのもの、3
7bはライトデータバスであり、データバツフ
ア34からライトデータをドライブ制御部2へ
伝えるためのもの、37cはリードデータバス
であり、ドライブ制御部2からのリードデータ
をデータバツフア34へ伝えるためのもの、3
8は制御信号線であり、ホストコントローラと
コマンド、ステータスのやりとりを行うための
もの、39aはデータ転送要求信号線であり、
ホストコントローラへデータ転送要求信号を伝
えるためのもの、39bはライトデータバスで
あり、ホストコントローラからのライトデータ
をデータバツフア34へ伝えるためのもの、3
9cはリードデータバスであり、ホストコント
ローラへデータバツフア34からリードデータ
を伝えるためのものである。
36a is a control signal line for transmitting commands etc. to the drive control unit 2 and conversely receiving status etc. from the drive control unit 2;
6b is a tape end vicinity area detection signal line, which is for a tape end vicinity area detection (EWA) signal from the drive control unit 2; 36c;
37a is an interrupt line that notifies the MPU 30 of an interrupt from the drive interface circuit 32a, and 37a is a data transfer request signal line.
3 for transmitting a data transfer request signal from the drive control unit 2 to the data transfer control circuit 33;
7b is a write data bus for transmitting write data from the data buffer 34 to the drive control unit 2; 37c is a read data bus for transmitting read data from the drive control unit 2 to the data buffer 34;
8 is a control signal line for exchanging commands and status with the host controller; 39a is a data transfer request signal line;
3 is a write data bus for transmitting a data transfer request signal to the host controller; 39b is a write data bus for transmitting write data from the host controller to the data buffer 34;
A read data bus 9c is used to transmit read data from the data buffer 34 to the host controller.

従つて、MPU30はデータバス35を介し
てRAM31b、ホストインターフエイス回路
32b、ドライブインターフエイス回路32
a、データ転送制御回路33との間で書込み、
読出しを行い、所望の処理を行う。
Therefore, the MPU 30 connects the RAM 31b, the host interface circuit 32b, and the drive interface circuit 32 via the data bus 35.
a, writing between data transfer control circuit 33;
Read and perform desired processing.

即ち、ホストコントローラと制御信号線38
を介しMPU30の制御によりホストインター
フエイス回路32bがコマンド、ステータスの
やりとりを行い、ドライブ制御部2と制御信号
線36aを介しMPU30の制御によりドライ
ブインターフエイス回路32aがコマンド、ス
テータスのやりとりを行う。
That is, the host controller and the control signal line 38
The host interface circuit 32b exchanges commands and status under the control of the MPU 30 via the drive control unit 2 and the control signal line 36a, and the drive interface circuit 32a exchanges commands and status under the control of the MPU 30 via the drive control unit 2 and the control signal line 36a.

一方、MPU30の指示によりデータ転送制
御回路33が、データ転送要求信号線39aを
介しホストコントローラにデータ転送要求を発
し、これに応じてホストコントローラはライト
データをライトデータバス39bを介しデータ
バツフア34へ送り、蓄積せしめる。又、ドラ
イブ制御部2からのデータ転送要求信号線37
aのデータ転送要求により、データ転送制御回
路33はライトデータバス37bを介してデー
タバツフア34のライトデータをドライブ制御
部2へ発する。
On the other hand, in response to instructions from the MPU 30, the data transfer control circuit 33 issues a data transfer request to the host controller via the data transfer request signal line 39a, and in response, the host controller sends write data to the data buffer 34 via the write data bus 39b. , let it accumulate. Also, the data transfer request signal line 37 from the drive control unit 2
In response to the data transfer request a, the data transfer control circuit 33 issues write data from the data buffer 34 to the drive control unit 2 via the write data bus 37b.

更に、データ転送制御回路33はMPU30
の指示によりドライブ制御部2からリードデー
タバス37cを介するリードデータをデータバ
ツフア34に蓄え、ホストコントローラへリー
ドデータバス39cを介しデータバツフア34
のリードデータを送信する。
Furthermore, the data transfer control circuit 33 is connected to the MPU 30.
According to instructions from the drive controller 2, the read data via the read data bus 37c is stored in the data buffer 34, and is sent to the host controller via the read data bus 39c to the data buffer 34.
Send lead data.

尚、ドライブ制御部2は、ロータリーエンコ
ーダ19aによる走行位置の監視によつてテー
プ終端領域近傍を検出してEWA信号を信号線
36に発し、EOT検出によつてTWA信号線3
6aに発する。
The drive control unit 2 detects the vicinity of the tape end area by monitoring the running position using the rotary encoder 19a, and issues an EWA signal to the signal line 36, and sends an EWA signal to the signal line 36 by detecting the EOT.
Emit at 6a.

(b) 一実施例の動作の説明 第4図は本発明の一実施例動作の起動処理フ
ロー図であり、第4図Aはホストからの起動処
理ルーチンを示す図、第4図Bはその初期設定
処理ルーチンを示す図である。
(b) Description of the operation of one embodiment FIG. 4 is a flowchart of the startup processing of the operation of one embodiment of the present invention, FIG. 4A is a diagram showing the startup processing routine from the host, and FIG. FIG. 3 is a diagram showing an initial setting processing routine.

電源が投入されると、第4図Bの初期設定
処理を行う。
When the power is turned on, the initial setting process shown in FIG. 4B is performed.

即ち、先づMPU30は実行処理モードが
ライト(Write)モードかを調べ、ライトモ
ードでなければ、RAM31の命令バツフア
管理エリアCAの命令記憶領域数ANを最大
の32に設定する。ライトモードであれば、ド
ライブインターフエイス回路32aを介し信
号線36bのEWA信号がオンかオフかを調
べ、オフ(未だテープ終端近傍領域へ到つて
いない)なら、前述と同様にRAM31の命
令バツフア管理エリアCAの命令記憶領域数
ANを最大の32に設定する。
That is, first, the MPU 30 checks whether the execution processing mode is the write mode, and if it is not the write mode, sets the number AN of instruction storage areas in the instruction buffer management area CA of the RAM 31 to 32, which is the maximum. If it is the write mode, it is checked whether the EWA signal on the signal line 36b is on or off via the drive interface circuit 32a, and if it is off (the area near the end of the tape has not been reached yet), the command buffer of the RAM 31 is changed as described above. Number of instruction storage areas in management area CA
Set AN to maximum 32.

EWA信号がオンであれば、命令記憶領域
数ANを最小の2に設定する。
If the EWA signal is on, the number AN of instruction storage areas is set to the minimum value of 2.

次に、MPU30はRAM31の命令バツ
フア管理エリアCAの命令記憶数CNを零ク
リアし、データバツフア管理エリアDAのバ
ツフア容量を(データバツフア)を最大の
256とし、データバツフアアドレス“00”に
設定し、初期設定を終了する。
Next, the MPU 30 clears the instruction memory number CN of the instruction buffer management area CA of the RAM 31 to zero, and sets the buffer capacity (data buffer) of the data buffer management area DA to the maximum.
256, set the data buffer address to “00”, and complete the initial setting.

次に電源投入時の初期設定終了後又はホス
トからの起動待ちルーチンにおいて、MPU
30はバス35を介しホストインターフエイ
ス回路32bのレジスタの内容を調べ、ホス
トからの起動(GO)があるかを調べる。
Next, after the initial settings are completed when the power is turned on, or in the routine waiting for startup from the host, the MPU
30 checks the contents of the register of the host interface circuit 32b via the bus 35 to check whether there is a start (GO) from the host.

ホストからの起動がなければ、起動待ちと
なり、このルーチンを繰返す。
If there is no activation from the host, it waits for activation and repeats this routine.

ホストからの起動あり、即ちGOの信号受信
と判断すると、MPU30はバス35を介し
ホストインターフエイス回路32bのレジス
タの内容を調べ、与えられた命令が何かを判
断する。
When it is determined that there is activation from the host, that is, a GO signal has been received, the MPU 30 checks the contents of the register of the host interface circuit 32b via the bus 35, and determines what the given command is.

与えられた命令がリード系等のライト系で
なければ、その処理ルーチンを実行する。
If the given command is not a write command such as a read command, the processing routine is executed.

一方、与えられた命令がライト系なら、
MPU30はドライブ制御部2の実行処理モ
ードがリード系か、ライト系か又は実行中で
ないかを調べる。
On the other hand, if the given command is light type,
The MPU 30 checks whether the execution processing mode of the drive control unit 2 is read type, write type, or not currently being executed.

実行処理モードがリード系なら、ドライブ
処理を停止させる。即ち、ドライブ制御部2
が実行中の処理を終了したならばドライブイ
ンターフエイス回路32aを介し制御線36
aよりドライブ制御部2に、新たな処理を命
じないようにし、リード系処理を停止させ
る。次に、テープ位置を調整すべく、ドライ
ブ制御部2にテープ位置調整のための命令
(スペースまたはバツクスペース)をドライ
ブインターフエイス回路32aを介して命じ
る。
If the execution processing mode is read type, drive processing is stopped. That is, the drive control section 2
When the process that is being executed is completed, the control line 36 is sent via the drive interface circuit 32a.
From a, the drive control unit 2 is not instructed to perform any new processing, and the read-related processing is stopped. Next, in order to adjust the tape position, a command (space or backspace) for adjusting the tape position is given to the drive control section 2 via the drive interface circuit 32a.

このステツプの終了後又はドライブ制御
部2が実行中でなければ、ステツプの初期
設定を行い、ライト系処理ルーチン(第5
図)へ進む。
After this step is completed or if the drive control unit 2 is not running, perform initial settings for the step and write-related processing routine (fifth
Proceed to figure).

一方、ステツプで実行処理モードがライト
系なら直ちにライト系処理ルーチンへ進む。
On the other hand, if the execution processing mode in the step is write type, the process immediately advances to the write type processing routine.

従つて、ホストからの起動がライト系コマンド
であれば、リード系処理中でも、ライト系処理に
切換わり、ライト系処理なら、ライト系処理を続
行する。
Therefore, if the activation from the host is a write-related command, even if read-related processing is in progress, it switches to write-related processing, and if it is write-related processing, write-related processing is continued.

第5図は対ホストライト系処理フロー図、第6
図はライト系コマンドの先取り説明図である。
Figure 5 is a process flow diagram for host write system, Figure 6
The figure is an explanatory diagram of prefetching of write-related commands.

MPU30は第4図によつてホストコントロ
ーラからライト系コマンドによつて起動される
と、RAM31bの命令バツフア管理エリア
CAの命令記憶数CNと命令記憶領域数ANをバ
ス35を介し読み出し比較する。AN≦CN、
即ち記憶可能な命令数以上にライト系命令が命
令バツフアCBAに格納されていると、命令バ
ツフアCBAへのライト系コマンドの格納を保
留する。
When the MPU 30 is activated by a write command from the host controller as shown in FIG.
The number of instruction storage areas CN of CA and the number of instruction storage areas AN are read out via the bus 35 and compared. AN≦CN,
That is, if more write-related instructions are stored in the instruction buffer CBA than the number of instructions that can be stored, storage of the write-related commands in the instruction buffer CBA is suspended.

一方、AN>CNであれば、ライト系命令の
命令バツフアCBAへの格納可能なため、MPU
30は係るライト系命令がデータバツフア34
を使用するものかどうかを調べる。イレーズ、
ライトテープマークのデータバツフア34を使
用しないものであれば、データビジーDBをオ
ンとし、ステツプの命令格納ステツプへ進
む。
On the other hand, if AN > CN, write instructions can be stored in the instruction buffer CBA, so the MPU
30, such write-related commands are sent to the data buffer 34.
Find out if you want to use it. Erase,
If the data buffer 34 of the write tape mark is not used, the data busy DB is turned on and the process advances to the instruction storage step.

第6図Aに示す如く上位(ホスト)から起動
(GO)とコマンドが与えられると、下位(先
取り制御部3)はその命令の実行可能なら、実
行中であることを示すデータビジーDB信号を
オンとし上位へ返す。この関係は先取り制御部
3を上位とし、ドライブ制御部2を下位とした
場合も同様である。
As shown in FIG. 6A, when a start (GO) command is given from the higher level (host), the lower level (preemption control unit 3) sends a data busy DB signal indicating that the command is being executed, if it is possible to execute the command. Turn it on and return to the top. This relationship is the same even when the prefetch control section 3 is placed at the upper level and the drive control section 2 is placed at the lower level.

逆に、MPU30はライト系命令がデータバ
ツフア34を使用する通常のライト命令である
と、データバツフア34への自動転送の準備を
行う。
Conversely, if the write-related instruction is a normal write instruction that uses the data buffer 34, the MPU 30 prepares for automatic transfer to the data buffer 34.

即ち、先づ、MPU30はRAM31bのデ
ータバツフア管理エリアDAの空きバツフア容
量(パラメータデータバツフア)と最大ブロツ
ク長を読出し、バツフア容量が最大ブロツク長
以上か否かを調べる。バツフア容量が最大ブロ
ツク長以下なら、ライトデータの受信を保留
し、データバツフア34が空くまで待ち、バツ
フア容量が最大ブロツク長以上なら、転送許可
する。従つて、前述のデータビジーDB信号を
オンとして、ホストコントローラへ転送可を通
知する。
That is, first, the MPU 30 reads the free buffer capacity (parameter data buffer) and maximum block length in the data buffer management area DA of the RAM 31b, and checks whether the buffer capacity is greater than or equal to the maximum block length. If the buffer capacity is less than the maximum block length, reception of write data is suspended and waits until the data buffer 34 becomes free, and if the buffer capacity is greater than or equal to the maximum block length, transfer is permitted. Therefore, the aforementioned data busy DB signal is turned on to notify the host controller that transfer is possible.

次に、MPU30は、RAM31bのデータ
バツフア管理エリアDAの先頭をバツフアアド
レスを読出し、データ転送制御回路33のスト
アアドレスカウンタSACにセツトし、データ
転送制御回路33を起動する。これによつてデ
ータ転送制御回路33はデータ転送要求信号線
39aよりデータ転送要求を第6図Aの如くホ
ストコントローラへ発する。
Next, the MPU 30 reads the buffer address from the beginning of the data buffer management area DA of the RAM 31b, sets it in the store address counter SAC of the data transfer control circuit 33, and activates the data transfer control circuit 33. As a result, the data transfer control circuit 33 issues a data transfer request to the host controller from the data transfer request signal line 39a as shown in FIG. 6A.

従つて、ホストコントローラはライトデータ
をライトデータバス39bよりデータバツフア
34へ転送し、データ転送制御回路33のスト
アアドレスカウンタSACのアドレスに従つて
ライトデータがデータバツフア34へ蓄積され
る。ストアアドレスカウンタSACはライトデ
ータが1バイト転送される毎にカウントアツプ
する。
Therefore, the host controller transfers the write data from the write data bus 39b to the data buffer 34, and the write data is stored in the data buffer 34 according to the address of the store address counter SAC of the data transfer control circuit 33. The store address counter SAC counts up every time one byte of write data is transferred.

データ転送制御回路33がデータ転送終了と
判定すると、MPU30ほデータ転送制御回路
33のストアアドレスカウンタSACを読出し
データバツフア管理エリアDAのバツフアアド
レスとの差を敬さして転送されたライトデータ
のバイト数を求める。
When the data transfer control circuit 33 determines that the data transfer has ended, the MPU 30 reads the store address counter SAC of the data transfer control circuit 33 and calculates the number of bytes of the transferred write data, taking into account the difference from the buffer address in the data buffer management area DA. demand.

次に、MPU30はRAM31bの命令バツフ
アCBA及びデータバツフア管理エリアDAの更
新を行う。
Next, the MPU 30 updates the instruction buffer CBA and data buffer management area DA of the RAM 31b.

先づ、RAM31bの命令バツフアCBAの当
該命令欄にRAM31bのデータバツフア管理
エリアDAのバツフアアドレス(即ちライトデ
ータの先頭アドレス)と、で算出されたライ
トデータのバイト数を格納する。
First, the buffer address (ie, the start address of the write data) of the data buffer management area DA of the RAM 31b and the calculated number of bytes of the write data are stored in the relevant instruction column of the instruction buffer CBA of the RAM 31b.

次に、RAM31bのデータバツフア管理エ
リアDAの空き容量からデータバツフア34の
使用単位数を差し引き、この空き要量を更新
し、更に、バツフアアドレスに使用単位数を加
算し、先頭アドレスを更新する。
Next, the number of used units of the data buffer 34 is subtracted from the free space of the data buffer management area DA of the RAM 31b to update this free space, and the number of used units is added to the buffer address to update the start address.

次に、MPU30は受信したライト系命令の
格納処理を行う。
Next, the MPU 30 performs storage processing of the received write-related command.

先づ、MPU30はRAM31bの命令バツ
フアCBAにホストインターフエイス回路32
b受信コマンドを格納する。
First, the MPU 30 connects the host interface circuit 32 to the instruction buffer CBA of the RAM 31b.
b Store the received command.

次に、MPU30はRAM31bの命令バツ
フア管理エリアCAを更新すべく、命令記憶数
に「1」加算して更新する。
Next, the MPU 30 adds "1" to the number of stored instructions to update the instruction buffer management area CA of the RAM 31b.

更に、MPU30は、ドライブインターフエ
イス回路32aのを調べ、制御線36bの
EWA信号がオンかオフかを調べる。オフであ
れば、磁気テープ16がテープ終端近傍に達し
ていないので、ステツプへ進む。
Furthermore, the MPU 30 checks the drive interface circuit 32a and checks the control line 36b.
Find out if the EWA signal is on or off. If it is off, the magnetic tape 16 has not reached the vicinity of the end of the tape, so the process advances to step.

一方、オンであればテープ終端近傍に達して
いるので、RAM31bの命令バツフア管理エ
リアCAの命令記憶領域数ANが最小値「2」
かを調べ、最小値なら、ANの更新の必要がな
いから、ステツプへ進む。
On the other hand, if it is on, it has reached near the end of the tape, so the number AN of instruction storage areas in the instruction buffer management area CA of the RAM 31b is the minimum value "2".
If it is the minimum value, there is no need to update AN, so proceed to step.

一方、ANが最小値でなければ、ANを「3」
減少して更新し、ステツプへ進む。
On the other hand, if AN is not the minimum value, set AN to "3"
Decrease, update, and proceed to step.

従つて、テープ終端近傍に達しEWA信号が
オンとなると、命令記憶領域数ANは最大値
「32」からホストコントローラからのライト系
コマンド受信毎に「3」づつ減少され、即ち命
令格納許可数が漸次減少する。
Therefore, when the tape reaches near the end and the EWA signal turns on, the number AN of instruction storage areas decreases from the maximum value ``32'' by ``3'' every time a write command is received from the host controller, that is, the number of instruction storage areas permitted is reduced. gradually decreases.

次に、MPU30はドライブ制御部2が処理
実行中かを調べ、処理実行中でなければ(停止
中であれば)、第7図の後述するドライブ起動
処理を行う。
Next, the MPU 30 checks whether the drive control unit 2 is executing a process, and if it is not executing a process (if it is stopped), performs a drive activation process shown in FIG. 7, which will be described later.

処理実行中又はドライブ起動処理が行われる
と、MPU30は、ドライブインターフエイス
回路32aを介したドライブ制御部2がEOT
を検出したことを示すTWA信号が制御線36
aより生じているかを調べる。
During processing or when drive startup processing is performed, the MPU 30 controls the drive control unit 2 via the drive interface circuit 32a to
The TWA signal indicating that the
Check whether it is occurring from a.

TWA信号が生じていれば、MPU30は
RAM31bの命令バツフア管理エリアCAの
命令記憶数(未実行命令数)CNが零かを調
べ、零でなければ、ドライブの実行によつて零
になるまで待つ。これはEOT以降の処理にお
いてはホストからの命令とドライブが実行する
命令の同期をとるためである。
If the TWA signal is generated, MPU30
It is checked whether the number of stored instructions (number of unexecuted instructions) CN in the instruction buffer management area CA of the RAM 31b is zero, and if it is not zero, it waits until it becomes zero through drive execution. This is to synchronize the commands from the host and the commands executed by the drive in processing after EOT.

TWA信号が生じていない時又はCNが零と
なると、ホストコントローラへMPU30はホ
ストインターフエイス回路32bより終了報告
するとともにデータビジーDB信号をオフと
し、第4図の起動待ちルーチンへ戻る。
When the TWA signal is not generated or when CN becomes zero, the MPU 30 notifies the host controller of completion from the host interface circuit 32b, turns off the data busy DB signal, and returns to the startup waiting routine of FIG. 4.

このようにして、ホストコントローラから起動
(GO)がかかり、ライト系コマンドが与えられ
ると、先づ命令バツフアの命令記憶可能数内であ
るかを調べ、命令記憶可能数内であれば、このコ
マンドを受付け、命令記憶可能数を越えると、こ
のコマンドの受付けを保留してデータビジーDB
を上げない。
In this way, when a start (GO) is received from the host controller and a write command is given, it is first checked to see if it is within the number of instructions that can be stored in the instruction buffer, and if it is within the number of instructions that can be stored, the command If the command is accepted and the number of commands that can be stored is exceeded, the acceptance of this command is suspended and the data busy DB is
I don't raise it.

即ち、第6図Bの如く、ドライブ側が命令バツ
フア内の命令を第7図で後述する如く実行し、命
令記憶可能数以内になるまでデータビジーを上げ
ず、命令記憶可能数以内となると、データビジー
を上げ、処理実行中をホストコントローラへ通知
する。
That is, as shown in FIG. 6B, the drive side executes the instructions in the instruction buffer as described later in FIG. Increases the busy level and notifies the host controller that the process is being executed.

そして、EWA信号がオンとなると、ホストコ
ントローラからのライト系コマンド受信毎に命令
記憶可能数を漸次減少する。更にTWA信号が発
せられると、命令記憶数が零となるまで終了報告
をしない。
Then, when the EWA signal is turned on, the number of commands that can be stored is gradually reduced each time a write-related command is received from the host controller. Furthermore, when the TWA signal is issued, no completion report is made until the number of stored instructions reaches zero.

このため、命令記憶可能数は第1図の点線で示
す如く漸次減少する。
Therefore, the number of instructions that can be stored gradually decreases as shown by the dotted line in FIG.

このような漸次減少する様にすると、ホストコ
ントローラは次のコマンドを受付けるまでの時間
が極度に長びかされることがない。これに対し一
挙に減少してしまうと、ホストコントローラは、
(蓄積済の命令数)−(減少後の蓄積可能命令数−
1)だけの数の命令をドライブが実行するまで次
の命令が受付けられないので、ホストコントロー
ラの時間監視によつてタイムオーバーによる装置
異常と見なされてしまい不都合が生じてしまう。
This gradual decrease prevents the host controller from taking an extremely long time to accept the next command. On the other hand, if it decreases all at once, the host controller will
(Number of stored instructions) - (Number of instructions that can be stored after reduction -
Since the next command cannot be accepted until the drive executes the number of commands equal to 1), the host controller's time monitoring will treat this as an abnormality in the device due to a timeout, resulting in an inconvenience.

従つて漸次減少によりこの不都合が防止でき
る。
Gradual reduction can therefore prevent this disadvantage.

次に、ドライブのライト系処理について第7図
を用いて説明する。第7図Aはドライブ起動処理
フロー図、第7図Bはドライブ処理終了の処理フ
ロー図である。
Next, write-related processing of the drive will be explained using FIG. 7. FIG. 7A is a flow diagram of the drive startup process, and FIG. 7B is a process flow diagram of the end of the drive process.

() 第7図Aにおいて、MPU30はドライブ
起動を行うべく、RAM31bの命令バツフア
CBAより次に実行すべき命令を読み出し、ラ
イト系命令かを調べる。
() In FIG. 7A, the MPU 30 buffers the instruction buffer of the RAM 31b in order to start the drive.
Reads the next instruction to be executed from CBA and checks whether it is a write type instruction.

ライト系命令でなければ、対応するリード系
処理ルーチンへ進む。
If it is not a write-related command, the process proceeds to the corresponding read-related processing routine.

() ライト系命令なら、データバツフア34を
使用する命令かを調べる。イレーズ、ライトテ
ープマークなどのデータバツフア34を使用し
ない命令ならステツプ()に進む。
() If the instruction is a write type instruction, check whether the instruction uses the data buffer 34. If the command does not use the data buffer 34, such as erase or write tape mark, the process advances to step ().

逆にデータバツフア34を使用する命令であ
れば、MPU30はRAM31bの命令バツフ
アCBAの先頭アドレス及びバイト数をデータ
転送制御回路33のロードアドレスカウンタ
LAC、バイトカウンタBCに各々セツトする。
Conversely, if the instruction uses the data buffer 34, the MPU 30 uses the start address and number of bytes of the instruction buffer CBA in the RAM 31b in the load address counter of the data transfer control circuit 33.
Set LAC and byte counter BC respectively.

更にデータ転送制御回路33を起動する。 Furthermore, the data transfer control circuit 33 is activated.

() 次に、MPU30は読出した命令と、起動
(GO)信号をドライブインターフエイス回路
32aを介し制御線36aよりドライブ制御部
2へ発行する。
() Next, the MPU 30 issues the read command and a start (GO) signal to the drive control unit 2 via the drive interface circuit 32a and the control line 36a.

一方、ドライブ制御部2はデータビジーを返
し、且つバツフアを使用する命令なら、データ
転送準備完了後、データ転送要求信号線37a
よりデータ転送要求をデータ転送制御回路33
へ送る。これによつてデータ転送制御回路33
は、データバツフア34のロードアドレスカウ
ンタLACで示す先頭アドレスからバイトカウ
ンタBCのバイト数分ライトデータをライトデ
ータバス37bを介しドライブ制御部2へ送
り、これを実行せしめ磁気テープ16にライト
させる。
On the other hand, if the drive control unit 2 returns data busy and the command uses the buffer, the data transfer request signal line 37a is sent after data transfer preparation is completed.
The data transfer request is sent to the data transfer control circuit 33.
send to As a result, the data transfer control circuit 33
sends write data corresponding to the number of bytes of the byte counter BC from the start address indicated by the load address counter LAC of the data buffer 34 to the drive control unit 2 via the write data bus 37b, and causes it to be executed and written to the magnetic tape 16.

一方、MPU30はステツプ()の命令発
行後第5図のルーチンへ戻る。
On the other hand, the MPU 30 returns to the routine shown in FIG. 5 after issuing the step () instruction.

() 次にドライブ制御部2において係るライト
系コマンドの実行が終了すると、終了報告を制
御線36aを介しドライブインターフエイス回
路32aへ上げる。ドライブインターフエイス
回路32aは、これによつてMPU30に割込
みをかけ、第5図乃至第4図の処理を中断せし
める。
() Next, when the execution of the write-related command in the drive control section 2 is completed, a completion report is sent to the drive interface circuit 32a via the control line 36a. The drive interface circuit 32a thereby interrupts the MPU 30 and interrupts the processing shown in FIGS. 5 to 4.

MPU30はこれによつて第7図Bの処理を
開始する。
The MPU 30 thereby starts the process shown in FIG. 7B.

先づ、MPU30は命令がライト系命令かを
調べる。ライト系命令でなければ対応するリー
ド系処理ルーチンへ進む。ライト系命令ならデ
ータバツフア34を使用する命令かを調べ、使
用する命令であれば、RAM31bのデータバ
ツフア管理エリアDAの空き容量(パラメータ
データバツフア)に使用単位数を加算し、空き
容量を更新する。
First, the MPU 30 checks whether the instruction is a write type instruction. If the instruction is not a write type command, the process proceeds to the corresponding read type processing routine. If the instruction is a write type instruction, it is checked whether the instruction uses the data buffer 34, and if the instruction is used, the number of used units is added to the free capacity (parameter data buffer) of the data buffer management area DA of the RAM 31b, and the free capacity is updated.

() 次に、この更新後、又はデータバツフア3
4を使用していない時には、RAM31bの命
令バツフア管理エリアCAの命令記憶数を「1」
減算し、更新する。
() Next, after this update or data buffer 3
4 is not in use, set the number of instructions stored in the instruction buffer management area CA of RAM31b to "1".
Subtract and update.

更に、MPU30は、RAM31bの命令記
憶数が零かを調べ、零なら第6図のルーチンへ
戻り、零でなければ、第7図Aのステツプ
()以降を実行する。
Furthermore, the MPU 30 checks whether the number of instructions stored in the RAM 31b is zero, and if it is zero, returns to the routine of FIG. 6, and if it is not zero, executes step () and subsequent steps of FIG. 7A.

このようにしてドライブはホスコントローラと
非同期に命令バツフアの命令を順次実行してい
く。
In this way, the drive sequentially executes the instructions in the instruction buffer asynchronously with the host controller.

(c) 他の実施例の説明 上述の実施例では、ライト系の命令の蓄積可
能数をホストからのライト系コマンド受信毎に
漸次減少しているが、前述の如く一挙に減少し
てもよく、ドライブ側の複数命令実行毎に漸次
減少するようにしてもよい。
(c) Description of other embodiments In the above embodiment, the number of write-related commands that can be stored is gradually reduced each time a write-related command is received from the host, but it may be reduced all at once as described above. , may be gradually decreased each time a plurality of instructions are executed on the drive side.

又、ドライブ制御部2と命令データ先取り制
御部が一体であつてもよく、ドライブ1もテー
プバツフアを有するものであつてもよい。
Further, the drive control section 2 and the command data prefetch control section may be integrated, and the drive 1 may also have a tape buffer.

以上本発明を実施例により説明したが、本発
明は本発明の主旨に従い種々の変形が可能であ
り、本発明からこれらを排除するものではな
い。
Although the present invention has been described above using examples, the present invention can be modified in various ways according to the gist of the present invention, and these are not excluded from the present invention.

〔発明の効果〕〔Effect of the invention〕

以上に説明した様に、本発明によれば、ライト
系の命令を制限しているので、命令バツフア内に
蓄えられた全てのライト系命令の実行が可能とな
るという効果を奏し、係るバツフアを有する磁気
テープ装置の命令先取りによつてテープ終端で生
じる不都合を防止することができる。
As explained above, according to the present invention, since write-related instructions are restricted, it is possible to execute all the write-related instructions stored in the instruction buffer, and the buffer is Inconveniences occurring at the end of the tape due to command prefetching of the magnetic tape device having the present invention can be prevented.

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

第1図は本発明の原理説明図、第2図は本発明
の一実施例全体構成図、第3図は第2図の構成の
要部構成図、第4図は本発明の一実施例起動処理
フロー図、第5図は本発明の一実施例のホストに
対するライト系処理フロー図、第6図は本発明の
一実施例によるコマンド先取り説明図、第7図は
本発明の一実施例のドライブに対するライト系処
理フロー図、第8図は命令先取り制御説明図、第
9図は従来技術の説明図である。 図中、1……磁気テープドライブ部、2……ド
ライブ制御部、3……命令・データ先取り制御
部、CBA……命令バツフア。
Fig. 1 is a diagram explaining the principle of the present invention, Fig. 2 is an overall configuration diagram of an embodiment of the invention, Fig. 3 is a diagram showing the main part of the configuration of Fig. 2, and Fig. 4 is an embodiment of the invention. 5 is a flowchart of write-related processing for the host according to an embodiment of the present invention; FIG. 6 is an explanatory diagram of command preemption according to an embodiment of the present invention; FIG. 7 is a diagram of an embodiment of the present invention. FIG. 8 is an explanatory diagram of instruction prefetch control, and FIG. 9 is an explanatory diagram of the prior art. In the figure, 1...magnetic tape drive unit, 2...drive control unit, 3...command/data prefetch control unit, CBA...command buffer.

Claims (1)

【特許請求の範囲】 1 磁気ヘツドと磁気テープ駆動機構を有する磁
気テープドライブ部と、 上位から与えられた命令を複数蓄積しうるバツ
フア部と、 該バツフア部の蓄積された命令に従つて該磁気
テープドライブ部を制御して該命令を実行する制
御部とを備える磁気テープ装置において、 該制御部が該磁気テープドライブ部によつて走
行される磁気テープの終端領域近傍を検出し、 該終端領域近傍検出に基いて該バツフア部に蓄
積しうるライト系命令数を減少するようにしたこ
とを特徴とする磁気テープ装置の命令先取り制御
方法。 2 前記命令数の減少を漸次行うようにしたこと
を特徴とする特許請求の範囲第1項記載の磁気テ
ープ装置の命令先取り制御方法。 3 磁気ヘツドと磁気テープ駆動機構を有する磁
気テープドライブ部と、 上位から与えた命令を複数蓄積しうるバツフア
部を有する命令先取り制御部と、 該バツフア部の蓄積された命令に従つて該磁気
テープドライブ部を制御して該命令を実行するド
ライブ制御部とを備える磁気テープ装置であつ
て、 該命令先取り制御部は、該バツフア部に蓄積し
うる命令数を管理するとともに、 該ドライブ制御部からの該磁気テープの終端領
域近傍を示す検出信号に基いて該蓄積しうるライ
ト系命令数を減少するように構成したことを特徴
とする磁気テープ装置の命令先取り制御装置。
[Scope of Claims] 1. A magnetic tape drive unit having a magnetic head and a magnetic tape drive mechanism; a buffer unit capable of storing a plurality of commands given from a higher level; In a magnetic tape device comprising a control unit that controls a tape drive unit and executes the command, the control unit detects a vicinity of a terminal area of a magnetic tape run by the magnetic tape drive unit, 1. An instruction prefetch control method for a magnetic tape device, characterized in that the number of write instructions that can be accumulated in the buffer section is reduced based on proximity detection. 2. An instruction prefetch control method for a magnetic tape device according to claim 1, wherein the number of instructions is gradually reduced. 3. A magnetic tape drive unit having a magnetic head and a magnetic tape drive mechanism; an instruction prefetch control unit having a buffer unit capable of storing a plurality of commands given from a higher level; A magnetic tape device comprising: a drive control unit that controls a drive unit to execute the instructions; the instruction prefetch control unit manages the number of instructions that can be stored in the buffer unit; An instruction prefetch control device for a magnetic tape device, characterized in that the number of write instructions that can be accumulated is reduced based on a detection signal indicating the vicinity of the end region of the magnetic tape.
JP60153831A 1985-07-12 1985-07-12 Method and device for instruction prefetch control of magnetic tape device Granted JPS6215627A (en)

Priority Applications (8)

Application Number Priority Date Filing Date Title
JP60153831A JPS6215627A (en) 1985-07-12 1985-07-12 Method and device for instruction prefetch control of magnetic tape device
US06/883,630 US4757396A (en) 1985-07-12 1986-07-09 Magnetic tape system with command prefetch means
AU60031/86A AU576090B2 (en) 1985-07-12 1986-07-10 Magnetic tape system
CA513624A CA1273710C (en) 1985-07-12 1986-07-11 Magnetic tape system with command prefetch means
DE86305345T DE3689021T2 (en) 1985-07-12 1986-07-11 Magnetic tape system with command preselection means.
EP86305345A EP0213703B1 (en) 1985-07-12 1986-07-11 Magnetic tape system with command prefetch means
KR8605635A KR920004769B1 (en) 1985-07-12 1986-07-12 Magnetic tape system having command pretetching means
CA000614390A CA1280510C (en) 1985-07-12 1989-09-28 Magnetic tape system with command prefetch means

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60153831A JPS6215627A (en) 1985-07-12 1985-07-12 Method and device for instruction prefetch control of magnetic tape device

Publications (2)

Publication Number Publication Date
JPS6215627A JPS6215627A (en) 1987-01-24
JPH0451850B2 true JPH0451850B2 (en) 1992-08-20

Family

ID=15571040

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60153831A Granted JPS6215627A (en) 1985-07-12 1985-07-12 Method and device for instruction prefetch control of magnetic tape device

Country Status (1)

Country Link
JP (1) JPS6215627A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0814933B2 (en) * 1987-09-14 1996-02-14 アンリツ株式会社 Buffer controller for magnetic tape unit

Also Published As

Publication number Publication date
JPS6215627A (en) 1987-01-24

Similar Documents

Publication Publication Date Title
US5249271A (en) Buffer memory data flow controller
JPH0451851B2 (en)
JP2637788B2 (en) Disk cache control method and information processing system
JPH07104817B2 (en) Data record transfer method
JPS6292022A (en) Control system for transfer of data
JPH0477367B2 (en)
JPH0451850B2 (en)
US6535953B1 (en) Magnetic disk, method of accessing magnetic disk device, and recording medium storing disk access control program for magnetic disk device
JPH02129746A (en) Input/output channel equipment
JPH0452966B2 (en)
JPS6295755A (en) Method and apparatus for controlling instruction prefetching of magnetic tape device
JPH0452965B2 (en)
JP3472357B2 (en) Information processing device
JP2546074B2 (en) Disk unit usage rate collection method
JP2914695B2 (en) Cache control unit
JPH0456334B2 (en)
JP4499909B2 (en) Multiplexed storage controller
JP3364751B2 (en) Data transfer system
JPS6217877Y2 (en)
JPS59173867A (en) Control system for transfer of disk cache data
JPH04102116A (en) Interruption control system for disk sub system
JPS6111867A (en) Processing method of abnormality in interface control
JPH0477942A (en) Stop system for pre-fetch function for cache memory
JPH04364553A (en) Disk controller
JPH02201678A (en) Channel device