JPH05314050A - Data transfer device - Google Patents

Data transfer device

Info

Publication number
JPH05314050A
JPH05314050A JP11943892A JP11943892A JPH05314050A JP H05314050 A JPH05314050 A JP H05314050A JP 11943892 A JP11943892 A JP 11943892A JP 11943892 A JP11943892 A JP 11943892A JP H05314050 A JPH05314050 A JP H05314050A
Authority
JP
Japan
Prior art keywords
data
command
output
read
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.)
Withdrawn
Application number
JP11943892A
Other languages
Japanese (ja)
Inventor
Katsunori Sakikawa
克典 崎川
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.)
HOKKAIDO NIPPON DENKI SOFTWARE KK
NEC Solution Innovators Ltd
Original Assignee
HOKKAIDO NIPPON DENKI SOFTWARE KK
NEC Software Hokkaido 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 HOKKAIDO NIPPON DENKI SOFTWARE KK, NEC Software Hokkaido Ltd filed Critical HOKKAIDO NIPPON DENKI SOFTWARE KK
Priority to JP11943892A priority Critical patent/JPH05314050A/en
Publication of JPH05314050A publication Critical patent/JPH05314050A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To directly transfer data without interposing any data stack part when the length of data to be transferred is the integral multiple of a block length as the minimum memory unit of an auxiliary storage device. CONSTITUTION:This device is provided with a command analysis part 1 to identify and output the write instruction of read instruction of data to auxiliary storage devices 6, 7, in instructions outputted from host devices, a data transfer method analysis part 2 to output the instruction for transferring data designated by the instruction outputted from the command analysis part 1 without interposing any data stack part 4 when the length of the data is the integral multiple (N) of the block length of the minimum memory unit of the auxiliary storage devices 6 and 7 and to output the write and read instructions of data while interposing the data stack part 4 in the other case. Corresponding to the data designated by the write or read instruction, a data transfer means 3 is controlled by a command outputted from the data transfer method analysis part 2 and when the data length of the data is equal to the integral multiple of the block length, the data are transferred without interposing the data stack part 4.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はデータ転送装置に関し、
特に情報処理装置などの上位装置と補助記憶装置の間に
介在し、情報処理装置と補助記憶装置の内の一方から他
方へのデータの転送を行うために使用するデータ転送装
置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data transfer device,
In particular, the present invention relates to a data transfer device that is interposed between a higher-level device such as an information processing device and an auxiliary storage device and is used to transfer data from one of the information processing device and the auxiliary storage device to the other.

【0002】[0002]

【従来の技術】上位装置から補助記憶装置への操作命令
の内で、読み出し命令が上位装置よりデータ転送装置に
加えられたときには、補助記憶装置からデータが読み出
されデータスタック部へ一時記憶されてから上位装置が
上述の読み出し命令で指定するエリアの順で転送が行わ
れる。上位装置から書き込み命令が出力されたときは上
位装置が指定するエリアのデータがデータスタック部に
一時記憶されてから補助記憶装置へ転送され書き込まれ
る。データスタック部と上位装置が指定するエリア間
は、データの最小単位で転送を行うことができるが、補
助記憶装置とデータスタック部間のデータの転送は、補
助記憶装置が管理する予め定められたブロック長を最小
単位としてブロック長の整数倍でデータの転送が行われ
る。上位装置が要求するデータ長は必ずしも補助記憶装
置が管理するブロック長の整数倍とは限らないため直接
補助記憶装置と上位プログラムが指定するエリア間でデ
ータ転送を行うと、要求データ長以上のデータを上位プ
ログラムの指定するエリアに転送したり、補助記憶装置
に不要なデータを書き込んでしまうということがある。
2. Description of the Related Art When a read command is applied to a data transfer device from a host device among operation commands from a host device to an auxiliary memory device, data is read from the auxiliary memory device and temporarily stored in a data stack section. After that, the transfer is performed in the order of the areas designated by the host device by the above-mentioned read command. When a write command is output from the host device, the data in the area designated by the host device is temporarily stored in the data stack unit and then transferred to the auxiliary storage device for writing. Data can be transferred in the minimum unit of data between the data stack unit and the area specified by the host device, but the transfer of data between the auxiliary storage device and the data stack unit is predetermined by the auxiliary storage device. Data is transferred at an integral multiple of the block length with the block length as the minimum unit. Since the data length requested by the host device is not always an integral multiple of the block length managed by the auxiliary storage device, when data transfer is performed directly between the auxiliary storage device and the area specified by the host program, data of the requested data length or more May be transferred to an area designated by a higher-level program, or unnecessary data may be written to the auxiliary storage device.

【0003】図3は従来のこの種のデータ転送装置の一
例を示すブロック図であり、図4は図3に示した装置の
動作を示すフローチャートである。図3に示した従来の
データ転送装置は補助記憶装置6または7に対して上位
装置が出力する命令を識別し出力するコマンド解析部1
と、補助記憶装置と上位装置が指定するエリアとの間で
データを転送するデータ転送手段43と、補助記憶装置
6と7または、図示されていない上位装置が出力するデ
ータを一時的に格納するデータスタック部4と、データ
転送手段43の出力する命令に従って補助記憶装置6ま
たは7へのデータの書き込みと補助記憶装置6または7
内のデータを読み出す入出力制御部5とで構成されてい
る。
FIG. 3 is a block diagram showing an example of a conventional data transfer apparatus of this type, and FIG. 4 is a flow chart showing the operation of the apparatus shown in FIG. The conventional data transfer device shown in FIG. 3 has a command analysis unit 1 for identifying and outputting an instruction output by a higher-level device to the auxiliary storage device 6 or 7.
And a data transfer means 43 for transferring data between the auxiliary storage device and an area designated by the host device, and temporarily storing data output by the auxiliary storage devices 6 and 7 or a host device (not shown). In accordance with an instruction output from the data stack unit 4 and the data transfer means 43, writing of data to the auxiliary storage device 6 or 7 and auxiliary storage device 6 or 7
And an input / output control unit 5 for reading the data in the inside.

【0004】上位装置から補助記憶装置6または7に対
するデータの書き込みあるいはこれら補助記憶装置6あ
るいは7内に記憶されているデータの読み出し命令があ
るとコマンド解析部1が命令内容を識別してこの命令を
データ転送部43に、図2で示すステップ(以下Sと略
称する)51で出力する。
When there is a command for writing data to the auxiliary storage device 6 or 7 or a read command for reading data stored in the auxiliary storage device 6 or 7, the command analysis section 1 identifies the command content and issues this command. Is output to the data transfer unit 43 at step (hereinafter abbreviated as S) 51 shown in FIG.

【0005】データ転送手段43は受信した命令が書き
込み命令か読み出し命令かを判断する(図4のS5
2)。
The data transfer means 43 determines whether the received command is a write command or a read command (S5 in FIG. 4).
2).

【0006】なお上位装置が補助記憶装置6または7に
対して出力する読み出し命令のときには、この読み出し
命令の中には読み出すべき補助記憶装置の指定と、指定
した補助記憶装置の記憶領域中の記憶を開始すべき記憶
位置(アドレス)の指定と、指定した補助記憶装置から
読み出すべきデータのデータ長、たとえば、バイト長と
が含まれており、また、書き込み命令であれば、データ
を書き込むべき補助記憶装置の指定と(図3の装置にお
いては、補助記憶装置6か7かの何れか)、記憶を開始
すべき記憶位置(アドレス)と、記憶すべきデータのデ
ータ長とが指定されている。
When the host device issues a read command to be output to the auxiliary storage device 6 or 7, the read command specifies the auxiliary storage device to be read and the storage in the storage area of the specified auxiliary storage device. Includes the designation of the storage location (address) at which to start, and the data length of the data to be read from the designated auxiliary storage device, for example, the byte length. The designation of the storage device (either the auxiliary storage device 6 or 7 in the device of FIG. 3), the storage position (address) at which storage should be started, and the data length of the data to be stored are specified. ..

【0007】データ転送手段43で判断した命令が読み
出し命令であるときには、データ転送手段43は、命令
中に含まれているデータ長を抽出し、このデータ長を記
憶する、すなわちブロック数をNとすれば、データ長=
N・(ブロック長)となるNを算出する(S53)。デ
ータ転送手段43は入力された読み出し命令の代りに前
述の読み出し命令で指定された補助記憶装置6か7の一
方を指定し、前述のデータ長のかわりにブロック数Nを
指定し、また入力された読み出し命令で指定されている
指定された補助記憶装置の中の読み出し開始位置を指定
した読み出し制御命令を入出力制御部5に出力する。入
出力制御部5は補助記憶装置6または7の内の読み出し
制御命令で指定された補助記憶装置について、指定され
た読み出し開始位置から指定されたブロック数のデータ
を読み出し、データ転送手段43に出力する(S5
4)。
When the command judged by the data transfer means 43 is a read command, the data transfer means 43 extracts the data length contained in the command and stores this data length, that is, the number of blocks is N. Data length =
N, which is N · (block length), is calculated (S53). The data transfer means 43 designates one of the auxiliary storage devices 6 and 7 designated by the above-mentioned read instruction instead of the input read instruction, designates the number of blocks N instead of the above-mentioned data length, and also inputs. The read control command specifying the read start position in the specified auxiliary storage device specified by the read command is output to the input / output control unit 5. The input / output control unit 5 reads the data of the specified block number from the specified read start position in the auxiliary storage device specified by the read control command in the auxiliary storage device 6 or 7 and outputs it to the data transfer means 43. Yes (S5
4).

【0008】データ転送手段43は入出力制御部5から
出力されたデータを一旦データスタック部4に記憶さ
せ、スタック部4に記憶させたデータの内で最初に入出
力制御部5によって読み出されたデータから引続き読み
出されたデータ内で上位装置からの読み出し命令で指定
されたデータ長のデータまでを前述の上位装置から出力
された読み出し命令で指定された上位装置内の記憶先へ
出力する(S55とS56)。
The data transfer means 43 temporarily stores the data output from the input / output control unit 5 in the data stack unit 4, and first reads out the data stored in the stack unit 4 by the input / output control unit 5. The data up to the data length specified by the read command from the host device in the data continuously read from the above data is output to the storage destination in the host device specified by the read command output from the above host device. (S55 and S56).

【0009】また、前述のS52において、データ転送
手段43は入力された命令が書き込み命令であると判断
したときには、この書き込み命令中に指定されている書
き込むべきデータを上位装置より一旦受信し、データス
タック部4に記憶させる。
Further, in S52, when the data transfer means 43 determines that the input command is a write command, it temporarily receives the data to be written specified in the write command from the host device and It is stored in the stack unit 4.

【0010】データ転送手段43は、データスタック部
4に記憶したデータの末尾に値0を付したデータ長が前
述したブロック長の整数倍となるように、上述の0を必
要数だけ追加する(S58)、従って、上位装置から出
力されデータスタック部4に記憶されたデータ長がブロ
ック長の整数倍である場合にはこのような0の付加は行
わない。
The data transfer means 43 adds the necessary number of the above-mentioned 0 so that the data length in which the value 0 is added to the end of the data stored in the data stack unit 4 becomes an integral multiple of the above-mentioned block length ( S58), therefore, when the data length output from the higher-level device and stored in the data stack unit 4 is an integral multiple of the block length, 0 is not added.

【0011】次いで、データ転送手段43は、上述した
ブロック数分だけのデータを上位装置から出力された書
き込み命令で指定された補助記憶装置(6か7の内の一
つ)を指定し、指定した補助記憶装置内の記憶開始位置
の位置の指定と、上述したデータスタック部4で必要に
応じて0を付加した部分と0を付加する前に記憶したデ
ータとを含むデータ長に相当するブロック数を指定した
書き込み制御信号を入出力制御部5に出力し(S5
9)、データスタック部4に一時記憶しているデータを
出力し、入出力制御部5により指定された補助記憶装置
(6か7の内の一つ)に入力されたデータを書き込む
(S60)。
Next, the data transfer means 43 designates and designates the auxiliary storage device (one of 6 or 7) designated by the write command output from the host device, by the data of the number of blocks described above. A block corresponding to the data length including the designation of the position of the storage start position in the auxiliary storage device described above, and the part to which 0 is added in the data stack unit 4 described above and the data stored before the addition of 0 as necessary. The write control signal specifying the number is output to the input / output control unit 5 (S5
9), output the data temporarily stored in the data stack unit 4, and write the input data to the auxiliary storage device (one of 6 or 7) designated by the input / output control unit 5 (S60). ..

【0012】[0012]

【発明が解決しようとする課題】従来のデータ転送装置
では上位装置が出力する補助記憶装置に対する書き込み
命令あるいは読み出し命令に関して取り扱うデータのデ
ータ長がいかなるものであっても全く同一の手段を用い
て前述の命令で指定された上位装置の記憶エリアと補助
記憶装置間のデータ転送を行っている。すなわち、転送
すべきデータのデータ長が補助記憶装置の記憶単位であ
るブロック長の整数倍であるかないかにかかわらず、す
べて転送すべきデータを一旦データスタック部に記憶さ
せる処理を行なっている。そのためデータの転送に要す
る時間が長くなるという欠点を有している。
In the conventional data transfer apparatus, the same means is used regardless of the data length of the data to be processed regarding the write command or the read command to the auxiliary storage device output by the host device. Data is transferred between the storage area of the host device and the auxiliary storage device specified by the command. That is, regardless of whether or not the data length of the data to be transferred is an integral multiple of the block length which is the storage unit of the auxiliary storage device, all the data to be transferred is temporarily stored in the data stack section. Therefore, there is a drawback that the time required for data transfer becomes long.

【0013】本発明の目的は以上の欠点を解消するため
に、転送しようとするデータが補助記憶装置が管理する
ブロック長の整数倍であるときはデータクタック部への
データの一時退避をせず直接上位装置が指定するエリア
へ転送し、データ転送処理に要する時間を短縮できるデ
ータ転送装置を提供することにある。
In order to solve the above-mentioned drawbacks, the object of the present invention is to temporarily save data to the data tactic unit when the data to be transferred is an integral multiple of the block length managed by the auxiliary storage device. Another object of the present invention is to provide a data transfer device that can directly transfer data to an area designated by a host device and reduce the time required for data transfer processing.

【0014】[0014]

【課題を解決するための手段】上位装置と1以上の補助
記憶装置との間に挿入され、前記上位装置から出力され
る命令中から前記補助記憶装置に対する上位装置からの
データの書き込み命令と前記補助記憶装置に記憶されて
いるデータの読み出し命令とを識別し識別した前記命令
を出力するコマンド解析部と、書き込み制御信号を受信
すると続いて加えられるデータを前記書き込み制御信号
により指定された記憶位置から指定されたブロック数の
記憶領域までに書き込む制御と読み出し制御信号を受信
すると前記読み出し制御信号で指定された補助記憶装置
の指定された記憶領域から指定されたブロック数に亘る
領域のデータを読み出し出力する制御を行う入出力制御
部とを備えるデータ転送装置において、前記コマンド解
析部からの出力を受信し受信した書き込み命令または読
み出し命令中に含まれるデータ長と前記補助記憶装置の
ブロック長の整数倍とを比較し前記データ長が前記ブロ
ック長の整数倍となる場合には前記受信した命令が書き
込み命令であるときには前記受信した書き込み命令に含
まれている前記補助記憶装置の指定と指定された補助記
憶装置の書き込み開始位置と前記データ長に対応するブ
ロック数とを含む直接書き込み命令を出力し前記受信し
た命令が読み出し命令であるときには前記受信した読み
出し命令に含まれている前記補助記憶装置の指定と指定
された補助記憶装置の読み出し開始位置の指定と前記デ
ータ長に対応するブロック数とを含む直接読み出し命令
を出力し前記データ長と前記ブロック長の整数倍とが等
しくならないときには前記受信した命令が書き込み命令
であれば前記受信した書き込み命令の指定する補助記憶
装置の指定と指定された補助記憶装置の書き込み開始位
置とデータ長とを含む間接書き込み命令を出力し前記受
信した命令が読み出し命令であるときには前記受信した
読み出し命令で指定された前記補助記憶装置の指定と前
記指定された補助記憶装置内の読み出し開始位置と読み
出すべきデータ長とを含む間接読み出し命令を出力する
データ転送方法解析部と、前記データ転送方法解析部の
出力を入力とし前記直接書き込み命令を受信すると、受
信した直接書き込み命令を書き込み制御命令として前記
入出力制御部に転送出力し続いて上位装置から出力され
るデータを受信して前記入出力制御部に転送出力し前記
直接読み出し命令を受信するとこの命令を前記読み出し
制御命令として前記入出力制御部に転送出力し前記入出
力制御部より出力される読み出しデータを上位装置に転
送出力し前記間接書き込み命令を受信すると前記書き込
み制御信号として前記入出力制御部に転送出力し上位装
置から出力されるデータを受信し前記データの末尾に値
が0のデータを付加してデータ長を前記ブロック長の整
数倍としたデータを書き込みデータとして前記入出力制
御部に出力し前記間接読み出し命令を受信するとこの命
令を前記読み出し制御命令として転送出力しかつ前記入
出力制御部からの読み出し出力を受信し指定されたデー
タ長部分のみを選択してから前記上位装置に出力するデ
ータ転送手段とを備えて構成されている。
A command for writing data from the host device to the auxiliary storage device from among commands output from the host device and inserted between the host device and one or more auxiliary storage devices, and A command analysis unit that identifies the read command of the data stored in the auxiliary storage device and outputs the identified command, and the data that is subsequently added when the write control signal is received is stored in the storage location specified by the write control signal. From the specified storage area of the auxiliary storage device specified by the read control signal, the data in the area over the specified number of blocks is read In a data transfer device including an input / output control unit that controls output, output from the command analysis unit The data length contained in the received write command or read command is compared with an integral multiple of the block length of the auxiliary storage device, and if the data length is an integral multiple of the block length, the received instruction is When it is a write command, a direct write command including the designation of the auxiliary storage device included in the received write command, the write start position of the designated auxiliary storage device, and the number of blocks corresponding to the data length is output. When the received instruction is a read instruction, the designation of the auxiliary storage device included in the received read instruction, the designation of the read start position of the designated auxiliary storage device, and the number of blocks corresponding to the data length are included. And a direct read command including the above is output, and when the data length is not equal to an integral multiple of the block length, the received If the command is a write command, an indirect write command including the designation of the auxiliary storage device specified by the received write command, the write start position of the specified auxiliary storage device, and the data length is output, and the received command is the read command. , The data transfer method outputs an indirect read command including the designation of the auxiliary storage device designated by the received read command, the read start position in the designated auxiliary storage device, and the data length to be read. When the output of the analysis unit and the data transfer method analysis unit is used as an input and the direct write command is received, the received direct write command is transferred as a write control command to the input / output control unit, and is then output from the host device. When data is received, transferred to the input / output control unit and output, and the direct read command is received, this command is read When output as a control command to the input / output control unit, the read data output from the input / output control unit is output to a higher-level device, and when the indirect write command is received, it is transferred as the write control signal to the input / output control unit. Then, the data output from the host device is received, data having a value of 0 is added to the end of the data, and the data whose data length is an integral multiple of the block length is output to the input / output control unit as write data, When an indirect read command is received, this command is transferred and output as the read control command, and the read output from the input / output control unit is received to select only a specified data length portion and then output to the host device. And means.

【0015】[0015]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。
Embodiments of the present invention will now be described with reference to the drawings.

【0016】図1は本発明のデータ転送装置の一実施例
を示すブロック図であり、図2は図1で示したデータ転
送装置の動作を示すフローチャートである。
FIG. 1 is a block diagram showing an embodiment of the data transfer apparatus of the present invention, and FIG. 2 is a flow chart showing the operation of the data transfer apparatus shown in FIG.

【0017】本実施例のデータ転送装置は、図1に示す
ように、図示されていない上位装置から出力される各種
の命令の中から補助記憶装置6と7に対するデータの書
き込み命令と読み出し命令とを識別し、識別したこれら
の命令を出力するコマンド解析部1とコマンド解析部1
の出力を入力とし、上述した書き込み命令と読み出し命
令とに含まれている書き込みまたは読み出しをすべきデ
ータの長さであるデータ長と補助記憶装置6および7が
記憶するときの最小データ単位であるブロック長との関
係を調べその結果に対応した命令を出力するデータ転送
方法解析部2と、データ転送方法解析部2の出力する命
令に応じて図示されていない上位装置中の記憶領域と補
助記憶装置6または7な内の何れか一方との間のデータ
の転送とデータについての書き込み制御命令と読み出し
制御命令を出力するデータ転送手段3と、データ転送手
段3から出力された書き込み制御命令と読み出し制御命
令の何れか一方を受信すると、受信した命令により指定
された補助記憶装置6または7について上述の命令に応
じて、データの書き込みあるいは読み出しを行う入出力
制御部5と、データ転送手段3に接続され、データ転送
手段3から自己宛に出力されたデータを記憶するデータ
スタック部4とを備えている。
As shown in FIG. 1, the data transfer apparatus of this embodiment includes a data write command and a data read command for the auxiliary storage devices 6 and 7 from various commands output from a host device (not shown). And a command analysis unit 1 for outputting these identified commands
Is the input and the data length that is the length of the data to be written or read included in the write command and the read command described above and the minimum data unit when the auxiliary storage devices 6 and 7 store. A data transfer method analysis unit 2 for checking the relationship with the block length and outputting an instruction corresponding to the result, and a storage area and an auxiliary storage in a host device (not shown) according to the instruction output by the data transfer method analysis unit 2. Data transfer between the device 6 or 7 and a data transfer unit 3 for outputting a write control command and a read control command for the data, and a write control command and a read command output from the data transfer unit 3. When either one of the control commands is received, the auxiliary memory device 6 or 7 designated by the received command is written with data according to the above command. Output control unit 5 to perform write or read, is connected to the data transfer means 3, and a data stack unit 4 for storing the output from the data transfer means 3 self addressed data.

【0018】データ転送方法解析部2に書き込み命令あ
るいは読み出し命令が入力されると、この命令中に含ま
れている転送すべきデータ長と前述したブロック長の関
係を調べ、ブロック長を整数倍したものがデータ長に等
しいとき、対象となる命令が書き込み命令であれば直接
書き込み命令を出力し、対象となる命令が読み出し命令
であれば、直接読み出し命令を出力し、データ長とブロ
ック長との関係が上述した関係にないときには、対象と
なる命令が書き込み命令であるときには、間接書き込み
命令を出力し、対象となる命令が読み出し命令であると
きには、間接読み出し命令を出力する。これらの命令中
には、上位装置から入力された命令中に含まれている補
助記憶装置の指定と、この補助記憶装置の記憶領域の内
の書き込みまたは読み出しを開始すべきアドレスと、上
位装置内のデータの読み出しまたは書き込みをすべき記
憶領域のアドレスとデータ長とが含まれている。
When a write command or a read command is input to the data transfer method analysis unit 2, the relationship between the data length to be transferred included in this command and the block length described above is checked, and the block length is multiplied by an integer. When the target instruction is a write instruction, a direct write instruction is output, and when the target instruction is a read instruction, a direct read instruction is output and the data length and the block length are equal to each other. When the relation is not the above-mentioned relation, the indirect write instruction is output when the target instruction is the write instruction, and the indirect read instruction is output when the target instruction is the read instruction. In these instructions, the designation of the auxiliary storage device included in the instruction input from the higher-level device, the address in the storage area of this auxiliary storage device to start writing or reading, and the high-level device The address and the data length of the storage area in which the data of (1) is to be read or written are included.

【0019】以下に図2において、図1に示されている
本発明のデータ転送装置の動作を説明する。
The operation of the data transfer apparatus of the present invention shown in FIG. 1 will be described below with reference to FIG.

【0020】上位装置から補助記憶装置6あるいは7に
対するデータの書き込み命令または読み出し命令がコマ
ンド解析部1に加えられると、コマンド解析部1がこれ
らの命令を識別し、データ転送方法解析部2に出力する
(S21)。
When a command for writing or reading data to or from the auxiliary storage device 6 or 7 is applied to the command analysis unit 1 from the host device, the command analysis unit 1 identifies these commands and outputs them to the data transfer method analysis unit 2. (S21).

【0021】データ転送方法解析部2は、まず、入力さ
れた書き込み命令が書き込み命令であるか読み出し命令
であるかを判断する(S22)。読み出し命令であれ
ば、入力された読み出し命令中で指定されている転送す
べきデータ長を補助記憶装置6と7の記憶の最小単位で
あるブロック長との関係を調べ、ブロック長の整数倍
(N倍)したものがデータ長と等しくなるか否かを判断
する(S23)。
First, the data transfer method analysis unit 2 determines whether the input write command is a write command or a read command (S22). If it is a read command, the relationship between the data length to be transferred specified in the input read command and the block length, which is the minimum unit of storage in the auxiliary storage devices 6 and 7, is checked, and an integer multiple of the block length ( It is determined whether or not (N times) is equal to the data length (S23).

【0022】データ長がブロック長の整数倍であるとき
は、入力された書き込み命令で指定されたデータ長を上
述のブロック数であるNに替えた直接読み出し命令をデ
ータ転送手段3に出力し、データ転送手段3はこの命令
を受信すると、入出力制御部5に対して入力された直接
読み出し命令に対応した読み出し制御信号を出力し前述
した上位装置により指定された補助記憶装置の指定され
た読み出し開始位置より、指定されたブロック長に亘る
記憶領域のデータを読み出し、データ転送手段に出力す
る。この読み出されたデータはデータ転送手段3が受け
取り、指定された上位装置の記憶領域にこのデータを転
送する(S25)。
When the data length is an integral multiple of the block length, a direct read command in which the data length designated by the input write command is changed to N, which is the number of blocks, is output to the data transfer means 3, When the data transfer unit 3 receives this command, it outputs a read control signal corresponding to the direct read command input to the input / output control unit 5, and the specified read of the auxiliary storage device specified by the above-mentioned upper device. From the start position, the data in the storage area over the designated block length is read and output to the data transfer means. The read data is received by the data transfer means 3, and this data is transferred to the storage area of the designated host device (S25).

【0023】前述したS23で、もし、入力された書き
込み命令で指定された転送すべきデータ長がブロック長
の整数倍でないときには、データ転送方法解析部2は指
定されたデータ長を含むことができるブロック数を入力
された書き込み命令のデータ長に付け加えた間接読み出
し命令をデータ転送部3に出力する(S27)。データ
転送手段3は、間接読み出し命令を受信すると、入出力
制御部5に間接読み出し命令により指定されたブロック
長に亘るデータを指定された補助記憶装置6または7の
指定された読み出し開始アドレスから読み出す読み出し
制御信号を加える。この読み出し制御信号を受信した入
出力制御部5により読み出されたデータを、データ転送
手段3が一旦受信し、データスタック部4に記憶させ、
間接読み出し信号中に含まれているデータ長のデータを
記憶されているデータの中から抽出修正(S29)し、
命令中に指定された上位装置の記憶部のアドレスにデー
タを送出する(S30)。
In S23, if the data length to be transferred specified by the input write command is not an integral multiple of the block length, the data transfer method analysis unit 2 can include the specified data length. The indirect read command in which the number of blocks is added to the data length of the input write command is output to the data transfer unit 3 (S27). When the data transfer means 3 receives the indirect read command, the data transfer unit 3 reads the data over the block length specified by the indirect read command from the input / output control unit 5 from the specified read start address of the specified auxiliary storage device 6 or 7. Add a read control signal. The data read out by the input / output control unit 5 which has received the read control signal is once received by the data transfer means 3 and stored in the data stack unit 4.
The data of the data length included in the indirect read signal is extracted and corrected from the stored data (S29),
The data is sent to the address of the storage unit of the host device specified in the command (S30).

【0024】前述したS22でデータ転送方法解析部2
に入力された命令が書き込み命令であるときには、デー
タ転送方法解析部2は命令中に指定されている転送すべ
きデータ長と、前述したブロック長との間で、ブロック
長を整数倍(N倍)したものが、データ長と等しくなる
か否かを調べる(S24)。ブロック長を整数倍(N
倍)したものと等しくなるときは、入力された書き込み
命令をデータ長をブロック数であるNに替えた、直接書
き込み命令をデータ転送手段3に出力し、データ転送手
段3は、このブロック数を指定し入力された命令中に指
定された補助記憶装置の指定と補助記憶装置の書き込み
開始位置を示すアドレスを指定した書き込み制御信号を
入出力制御部5に加え、続いて、入力された命令で指定
された上位装置の記憶部の指定されたアドレスからデー
タを入出力制御部5に転送し、入出力制御部5により指
定された補助記憶装置(6または7の内の何れか)の指
定された記憶位置に記憶させる(S26)。
In step S22 described above, the data transfer method analysis unit 2
When the instruction input to is a write instruction, the data transfer method analysis unit 2 multiplies the block length by an integer multiple (N times) between the data length to be transferred specified in the instruction and the block length described above. ) Is checked to see if it is equal to the data length (S24). An integer multiple of the block length (N
When the input write command is equal to the number of blocks, the data length of the input write command is changed to N, which is the number of blocks, and a direct write command is output to the data transfer unit 3. A write control signal specifying the designation of the auxiliary storage device specified in the designated and input instruction and the address indicating the write start position of the auxiliary storage device is applied to the input / output control unit 5, and then the input instruction is executed. Data is transferred to the input / output control unit 5 from the specified address in the storage unit of the specified host device, and the auxiliary storage device (either 6 or 7) specified by the input / output control unit 5 is specified. It is stored in the storage location (S26).

【0025】上述のS24で、データ長がブロック長の
整数倍ではないときには、データ転送方法解析部2は、
入力された書き込み命令で指定されたデータ長に加え
て、このデータ長をすべて含むことのできるブロック数
を指定した間接書き込み命令をデータ転送手段3に加
え、データ転送手段3により指定された上位装置の記憶
領域にあるデータをデータスタック部4に一旦記憶させ
る(S31)。
When the data length is not an integral multiple of the block length in S24 described above, the data transfer method analysis unit 2
In addition to the data length specified by the input write command, an indirect write command that specifies the number of blocks that can include this data length is added to the data transfer means 3, and the host device specified by the data transfer means 3 The data in the storage area is temporarily stored in the data stack unit 4 (S31).

【0026】続いて、データ転送手段3はデータスタッ
ク部4に記憶されたデータの末尾にデータ長がブロック
長の整数倍となるまで、0を付加させる(S32)。
Next, the data transfer means 3 adds 0 to the end of the data stored in the data stack unit 4 until the data length becomes an integral multiple of the block length (S32).

【0027】データ転送手段3は、次に、上述の0を付
加したデータのデータ長に等しくなるようなブロック数
を指定した書き込み制御信号を入出力制御部5に出力し
てから(S33)、データスタック部4内に記憶してい
る末尾に0を付加したデータを入出力制御部5に出力
し、上位装置から出力された書き込み命令で指定された
補助記憶装置の指定されたアドレスにデータ転送手段3
から出力されるデータを書き込ませる(S34)。
Next, the data transfer means 3 outputs a write control signal designating the number of blocks to be equal to the data length of the data added with 0 to the input / output control section 5 (S33), The data with 0 added to the end stored in the data stack unit 4 is output to the input / output control unit 5, and the data is transferred to the specified address of the auxiliary storage device specified by the write command output from the host device. Means 3
The data output from is written (S34).

【0028】以上の説明から明らかなように、転送すべ
きデータついてのデータ長がブロック長の整数倍に等し
いときには、データはデータスタック部に一旦記憶され
ることなく、データの転送が行われることになる。
As is apparent from the above description, when the data length of the data to be transferred is equal to an integral multiple of the block length, the data is transferred without being temporarily stored in the data stack section. become.

【0029】なお、今までの説明においては、補助記憶
装置6と7とを本発明のデータ転送装置に接続している
が、入出力制御部5に接続される補助記憶装置は1台以
上であれば任意の台数でもよいことは明らかである。
In the above description, the auxiliary storage devices 6 and 7 are connected to the data transfer device of the present invention, but the input / output control unit 5 is connected to at least one auxiliary storage device. Obviously, any number of units can be used.

【0030】[0030]

【発明の効果】以上説明したように本発明のデータ転送
装置は、データ転送方法解析部2により上位装置か出力
される書き込み命令または読み出し命令に含まれている
データ長が補助記憶装置の記憶の最小単位であるブロッ
ク長の整数倍に等しいか否かを判断させ、命令で指定さ
れたデータ長がブロック長の整数倍に等しいときには、
データスタック部に一旦転送すべきデータを記憶させる
ことなく、補助記憶装置と上位装置との間の転送を行わ
せるので、従来のこの種のデータ転送装置にくらべて、
データの転送に要する時間を短縮することができるとい
う効果を有している。
As described above, in the data transfer device of the present invention, the data length included in the write command or the read command output from the host device by the data transfer method analysis unit 2 is stored in the auxiliary storage device. It is judged whether it is equal to an integral multiple of the block length which is the minimum unit, and when the data length specified by the instruction is equal to an integral multiple of the block length,
Since data is transferred between the auxiliary storage device and the higher-level device without storing the data to be transferred in the data stack unit, as compared with the conventional data transfer device of this type,
This has the effect of reducing the time required to transfer data.

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

【図1】本発明のデータ転送装置の一実施例を示すブロ
ック図である。
FIG. 1 is a block diagram showing an embodiment of a data transfer device of the present invention.

【図2】図1に示したデータ転送装置の動作を示したフ
ローチャートである。
2 is a flowchart showing an operation of the data transfer device shown in FIG.

【図3】従来のこの種のデータ転送装置の一例を示すブ
ロック図である。
FIG. 3 is a block diagram showing an example of a conventional data transfer device of this type.

【図4】図3に示したデータ転送装置の動作を示すフロ
ーチャートである。
FIG. 4 is a flowchart showing an operation of the data transfer device shown in FIG.

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

1 コマンド解析部 2 データ転送方法解析部 3 データ転送手段 4 データスタック部 5 入出力制御部 1 command analysis unit 2 data transfer method analysis unit 3 data transfer means 4 data stack unit 5 input / output control unit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 上位装置と1以上の補助記憶装置との間
に挿入され、前記上位装置から出力される命令中から前
記補助記憶装置に対する上位装置からのデータの書き込
み命令と前記補助記憶装置に記憶されているデータの読
み出し命令とを識別し識別した前記命令を出力するコマ
ンド解析部と、書き込み制御信号を受信すると続いて加
えられるデータを前記書き込み制御信号により指定され
た記憶位置から指定されたブロック数の記憶領域までに
書き込む制御と読み出し制御信号を受信すると前記読み
出し制御信号で指定された補助記憶装置の指定された記
憶領域から指定されたブロック数に亘る領域のデータを
読み出し出力する制御を行う入出力制御部とを備えるデ
ータ転送装置において、前記コマンド解析部からの出力
を受信し受信した書き込み命令または読み出し命令中に
含まれるデータ長と前記補助記憶装置のブロック長の整
数倍とを比較し前記データ長が前記ブロック長の整数倍
となる場合には前記受信した命令が書き込み命令である
ときには前記受信した書き込み命令に含まれている前記
補助記憶装置の指定と指定された補助記憶装置の書き込
み開始位置と前記データ長に対応するブロック数とを含
む直接書き込み命令を出力し前記受信した命令が読み出
し命令であるときには前記受信した読み出し命令に含ま
れている前記補助記憶装置の指定と指定された補助記憶
装置の読み出し開始位置の指定と前記データ長に対応す
るブロック数とを含む直接読み出し命令を出力し前記デ
ータ長と前記ブロック長の整数倍とが等しくならないと
きには前記受信した命令が書き込み命令であれば前記受
信した書き込み命令の指定する補助記憶装置の指定と指
定された補助記憶装置の書き込み開始位置とデータ長と
を含む間接書き込み命令を出力し前記受信した命令が読
み出し命令であるときには前記受信した読み出し命令で
指定された前記補助記憶装置の指定と前記指定された補
助記憶装置内の読み出し開始位置と読み出すべきデータ
長とを含む間接読み出し命令を出力するデータ転送方法
解析部と、前記データ転送方法解析部の出力を入力とし
前記直接書き込み命令を受信すると、受信した直接書き
込み命令を書き込み制御命令として前記入出力制御部に
転送出力し続いて上位装置から出力されるデータを受信
して前記入出力制御部に転送出力し前記直接読み出し命
令を受信するとこの命令を前記読み出し制御命令として
前記入出力制御部に転送出力し前記入出力制御部より出
力される読み出しデータを上位装置に転送出力し前記間
接書き込み命令を受信すると前記書き込み制御信号とし
て前記入出力制御部に転送出力し上位装置から出力され
るデータを受信し前記データの末尾に値が0のデータを
付加してデータ長を前記ブロック長の整数倍としたデー
タを書き込みデータとして前記入出力制御部に出力し前
記間接読み出し命令を受信するとこの命令を前記読み出
し制御命令として転送出力しかつ前記入出力制御部から
の読み出し出力を受信し指定されたデータ長部分のみを
選択してから前記上位装置に出力するデータ転送手段と
を備えること特徴とするデータ転送装置。
1. An instruction to write data from a higher-level device to the auxiliary storage device in the command output from the higher-level device inserted between the higher-level device and one or more auxiliary storage devices and the auxiliary storage device. A command analysis unit that identifies the read command of the stored data and outputs the identified command, and the data that is subsequently added when the write control signal is received is specified from the storage position specified by the write control signal. When a write control and a read control signal are received up to the storage area of the number of blocks, a control of reading and outputting the data of the area for the specified number of blocks from the specified storage area of the auxiliary storage device specified by the read control signal is performed. In a data transfer device having an input / output control unit for performing, the output from the command analysis unit is received and the received data is written. The data length included in the write command or the read command is compared with an integer multiple of the block length of the auxiliary storage device, and if the data length is an integer multiple of the block length, the received command is a write command. In some cases, a direct write command including the designation of the auxiliary storage device included in the received write command, the write start position of the designated auxiliary storage device, and the number of blocks corresponding to the data length is output and received. When the command is a read command, a direct read including the designation of the auxiliary storage device included in the received read command, the designation of the read start position of the designated auxiliary storage device, and the number of blocks corresponding to the data length. When the command is output and the data length is not equal to an integral multiple of the block length, the received command is the write command. If so, an indirect write command including the designation of the auxiliary storage device specified by the received write command, the write start position of the specified auxiliary storage device, and the data length is output, and when the received command is a read command, the indirect write command is output. A data transfer method analysis unit for outputting an indirect read command including designation of the auxiliary storage device designated by the received read command, a read start position in the designated auxiliary storage device, and a data length to be read; When the output of the transfer method analysis unit is input and the direct write command is received, the received direct write command is transferred and output as the write control command to the input / output control unit, and subsequently the data output from the host device is received. When the direct output command is transferred to the entry output control unit and the direct read command is received, this command is used as the read control command. When the read data output to the writing output control unit and output from the input / output control unit is output to the host device and the indirect write command is received, the read data is transferred to the input / output control unit as the write control signal and output from the host device. The output data is received, data having a value of 0 is added to the end of the data, and data having a data length that is an integral multiple of the block length is output to the input / output control unit as write data and the indirect read command is output. When receiving, this command is transferred and output as the read control command, and the read output from the input / output control unit is received, and only the designated data length portion is selected and then output to the upper device. A data transfer device characterized.
JP11943892A 1992-05-13 1992-05-13 Data transfer device Withdrawn JPH05314050A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11943892A JPH05314050A (en) 1992-05-13 1992-05-13 Data transfer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11943892A JPH05314050A (en) 1992-05-13 1992-05-13 Data transfer device

Publications (1)

Publication Number Publication Date
JPH05314050A true JPH05314050A (en) 1993-11-26

Family

ID=14761425

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11943892A Withdrawn JPH05314050A (en) 1992-05-13 1992-05-13 Data transfer device

Country Status (1)

Country Link
JP (1) JPH05314050A (en)

Similar Documents

Publication Publication Date Title
JPH05314050A (en) Data transfer device
JP4471947B2 (en) Data processing apparatus and data processing method
JP4826873B2 (en) Microprocessor system with hot routine memory
JPH04251347A (en) Disk file controller and updating method
US7369173B2 (en) Image processing apparatus and control method therefor
US5148531A (en) System for executing a conditional statement without reading program data part that does not satisfy the conditional clause
JP3843189B2 (en) Optical disk system control chip and update method used for optical disk system
JPH06342414A (en) Data transfer device
JPH0573233A (en) Priority processor for job processing output
JP2978008B2 (en) Memory management method
JPH07281962A (en) Access method to electrically rewritable nonvolatile memory
JPH06222987A (en) Reader of semiconductor storage device
JPH01200450A (en) Memory extending circuit
JPH1040165A (en) Data read method and read buffer
JP3351337B2 (en) DMA method and apparatus
JPH06103056A (en) Address controller
JP4466833B2 (en) Bus control device
JP2506591B2 (en) Auxiliary processor
JPH06110506A (en) Comment storage method for programmable controller
JP2005078255A (en) Device and method for data processing
JP2739790B2 (en) Disk file access control method
JPH05204847A (en) Data transfer controller
JPH08174926A (en) Printer
JPH05290589A (en) Semiconductor integrated circuit
JPS6236268B2 (en)

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19990803