JP2533886B2 - Data transfer method - Google Patents

Data transfer method

Info

Publication number
JP2533886B2
JP2533886B2 JP62218912A JP21891287A JP2533886B2 JP 2533886 B2 JP2533886 B2 JP 2533886B2 JP 62218912 A JP62218912 A JP 62218912A JP 21891287 A JP21891287 A JP 21891287A JP 2533886 B2 JP2533886 B2 JP 2533886B2
Authority
JP
Japan
Prior art keywords
transfer
data
interface
data transfer
buffer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP62218912A
Other languages
Japanese (ja)
Other versions
JPS6461850A (en
Inventor
高志 岸部
敏之 小田川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP62218912A priority Critical patent/JP2533886B2/en
Publication of JPS6461850A publication Critical patent/JPS6461850A/en
Application granted granted Critical
Publication of JP2533886B2 publication Critical patent/JP2533886B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)

Description

【発明の詳細な説明】 [概 要] 本発明はデータ処理装置内における転送速度の異なる
2つのデータ転送路間にバッファを設けて、データの転
送を制御する場合の制御方式に関し、 転送速度の異なる2つのインターフェース間のデータ
転送を効率的に行なうことを目的とし、転送データを一
時的に格納するデータバッファを介し、第一のインター
フェースと該第一のインターフェースとデータ転送速度
の異なる第二のインターフェースとの間でデータ転送を
行うデータ処理装置内のデータ転送回路において、第二
のインターフェースに対し、任意の単位毎のデータ転送
の続行又は停止を指示する制御情報を格納する手段と、
該制御情報に従って転送動作を続行又は停止する手段と
を設け、一定の時間内に第一のインターフェースが更新
した前記データバッファのアドレスを示すポインタの内
容に対応して前記制御情報の更新を行うごとく構成す
る。
DETAILED DESCRIPTION OF THE INVENTION [Outline] The present invention relates to a control method for controlling data transfer by providing a buffer between two data transfer paths having different transfer rates in a data processing device. In order to efficiently perform data transfer between two different interfaces, a first interface and a second interface having a different data transfer rate from the first interface via a data buffer that temporarily stores transfer data. In the data transfer circuit in the data processing device for performing data transfer with the interface, a means for storing control information for instructing the second interface to continue or stop the data transfer for each arbitrary unit,
A means for continuing or stopping the transfer operation according to the control information is provided, and the control information is updated corresponding to the content of the pointer indicating the address of the data buffer updated by the first interface within a fixed time. Configure.

[産業上の利用分野] 本発明は転送速度の異なる2系統のインターフェース
の間でバッファを介してデータ転送を行なう場合の制御
に関し、特に、その転送処理をファームウェアで行なう
場合の制御方式に係る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to control when data is transferred between two interfaces having different transfer rates via a buffer, and particularly to a control method when the transfer process is performed by firmware.

[従来の技術] 転送速度、方式の異なる2種類のインターフェースの
間でデータ転送を行う場合、一般に転送用のデータバッ
ファを設け、このバッファを介してデータ転送を実現し
ている。
[Prior Art] When data is transferred between two types of interfaces having different transfer speeds and methods, a data buffer for transfer is generally provided, and the data transfer is realized via this buffer.

この場合、バッファの制御をすべてハードウェアで行
う方式と、制御の一部にファームウェアを介在させて行
う方式とがあり、更にデータバッファの使用方法として
ハードウェア制御に適したFiFO方式とファームウェア制
御に適したオルタネート(ALTERNATE)方式とがある。
In this case, there are a method to control the buffer entirely by hardware, and a method to intervene the firmware as a part of the control.In addition, as a usage method of the data buffer, there are FiFO method and firmware control suitable for hardware control. There is a suitable ALTERNATE method.

これらの方式の内、FiFO方式のものは、パイプライン
状に接線した複数メモリの、一方から入力したデータ
を、これと異なる速度で他方から出力することにより速
度変換を行なうものであり、一方、オルタネート方式の
ものは、2つのバッファメモリを用いて、これを交互に
使用することにより両インターフェース間の速度変換を
行なうものである。
Among these methods, the FiFO method is for performing speed conversion by outputting data input from one of a plurality of memories tangentially connected in a pipeline, from the other at a speed different from this, and In the alternate system, two buffer memories are used, and these buffer memories are alternately used to perform speed conversion between both interfaces.

[発明が解決しようとする問題点] 上述した従来のデータ転送方式の内、前者のハードウ
ェアのみで制御するFiFO方式のものは変換速度は速い
が、装置が高価であり、後者のファームウェアを用いて
オルタネート方式で制御するものにおいては経済的では
あるが変換効率が良くないという問題点があった。
[Problems to be Solved by the Invention] Among the above-mentioned conventional data transfer methods, the former one, which uses a FiFO method that is controlled only by hardware, has a high conversion speed, but the device is expensive, and the latter firmware is used. However, there is a problem in that the conversion efficiency is not good in the case of controlling by the alternate method though it is economical.

本発明はこのような従来の問題点に鑑み、経済的でデ
ータ変換効率の高いファームウェア制御によるデータ転
送方式を提供することを目的としている。
The present invention has been made in view of such conventional problems, and an object thereof is to provide a data transfer method by firmware control which is economical and has high data conversion efficiency.

[問題点を解決するための手段] 本発明によれば、上述の目的は前記特許請求の範囲に
記載した手段により達成される。すなわち、本発明は、
転送データを一時的に格納するデータバッファを介し、
第一のインターフェースと該第一のインターフェースと
データ転送速度の異なる第二のインターフェースとの間
でデータ転送を行うデータ処理装置内のデータ転送回路
において、第二のインターフェースに対し、任意の単位
毎のデータの転送の続行又は停止を指示する制御情報を
格納する手段と、該制御情報に従って転送動作を続行又
は停止する手段とを設け、一定の時間内に第一のインタ
ーフェースが更新した前記データバッファのアドレスを
示すポインタの内容に対応して第二のインターフェース
のデータ転送を制御する制御情報の更新を行うデータ転
送方式である。
[Means for Solving the Problems] According to the present invention, the above-mentioned object is achieved by the means described in the claims. That is, the present invention is
Through the data buffer that temporarily stores the transfer data,
In a data transfer circuit in a data processing device for performing data transfer between a first interface and a second interface having a different data transfer rate from the first interface, a second interface is provided for each unit. A means for storing control information for instructing to continue or stop data transfer and a means for continuing or stopping the transfer operation according to the control information are provided, and the first buffer updates the data buffer of the first interface within a fixed time. This is a data transfer method in which control information for controlling data transfer of the second interface is updated corresponding to the content of the pointer indicating the address.

[作 用] 本発明は上記の手段により、バッファを介してデータ
の転送を行なう転送速度の異なる2種類のインターフェ
ースのうち、低速のインターフェースに対し、転送用の
データバッファを固定的な大きさのバッファメモリを用
いてオルタネートするのではなく、高速側インターフェ
ースの転送動作に対応して低速側インターフェースがデ
ータ転送に用いるバッファサイズの更新を行なうことに
より、速度の異なる2種類のインターフェース間のデー
タ転送動作を効率よく同時進行させることによって、転
送効率の向上を図っている。
[Operation] According to the present invention, the data buffer for transfer has a fixed size for the low speed interface of the two types of interfaces having different transfer rates for transferring data through the buffer. Instead of using the buffer memory for alternation, the buffer size used for data transfer by the low speed side interface is updated in response to the transfer operation of the high speed side interface, thereby performing the data transfer operation between two types of interfaces with different speeds. The transfer efficiency is improved by efficiently proceeding simultaneously.

[実施例] 第1図は本発明の一実施例のブロック図であって、1
はチャネル、2はチャネルアダプタ(図においては略号
にてCAと記載)、3はCCU、4はデータ転送制御部、5
はカウンタ、6は+1回路、7はコントロールストレー
ジ(図においては略号にてCSと記載)、8はファームウ
ェア、9はコントロールテーブル、10はデータバッフ
ァ、11は命令実行部、12はバス制御部、13はカウンタ、
14は+1回路、15〜18はレジスタ、19はバス制御部を表
している。
[Embodiment] FIG. 1 is a block diagram of an embodiment of the present invention.
Is a channel, 2 is a channel adapter (abbreviated as CA in the figure), 3 is a CCU, 4 is a data transfer control unit, 5
Is a counter, 6 is a +1 circuit, 7 is a control storage (abbreviated as CS in the figure), 8 is firmware, 9 is a control table, 10 is a data buffer, 11 is an instruction execution unit, 12 is a bus control unit, 13 is a counter,
Reference numeral 14 is a +1 circuit, 15 to 18 are registers, and 19 is a bus control unit.

同図において、、レジスタ15はバス・アウトレジスタ
(図においては略号にてBORと記載)、レジスタ16はバ
ス・インレジスア(図においては略号にとBIRと記
載)、レジスタ17はタグ・アウトレジスタ(図において
は略号にてTORと記載)、レジスタ18はタグ・インレジ
スタ(図においては略号にてTIRと記載)であり、ま
た、カウンタ5はデータ・バッファアドレス1カウンタ
(図においては略号にてDBA1と記載)、カウンタ13はデ
ータ・バッファアドレス2カウンタ(図においては略号
にてDBA2と記載)である。
In the figure, a register 15 is a bus out register (in the figure, is abbreviated as BOR), a register 16 is a bus register (in the figure is abbreviated as and BIR), and a register 17 is a tag out register ( The register 18 is a tag-in register (abbreviated to TIR in the figure), and the counter 5 is a data buffer address 1 counter (abbreviated in the figure). The counter 13 is a data buffer address 2 counter (abbreviated in the figure as DBA2).

第2図は上記実施例のデータ転送に係る制御を示す流
れ図である。
FIG. 2 is a flow chart showing the control relating to the data transfer of the above embodiment.

以下、上記両図に基づいて、本発明の実施例として中
央制御部(以下CCUという)→チャネル制御用アダプタ
(以下CAという)→ホスト(チャネル)のデータ転送に
ついて説明する。
Data transfer from a central control unit (hereinafter referred to as CCU) to a channel control adapter (hereinafter referred to as CA) to a host (channel) will be described below as an embodiment of the present invention with reference to the drawings.

制御記憶(CS)7上には、ファームウェア8の他に転
送データを一時的に格納するデータバッファ10、及び、
データ転送制御部がアクセスしてチャネル側の転送機能
を続行または停止するためのストップビット(STOP Bi
T)をセットするコントロールテーブル9がある。スト
ップビットは、データバッファバイトに対して1つ存在
する。
On the control memory (CS) 7, in addition to the firmware 8, a data buffer 10 for temporarily storing transfer data, and
A stop bit (STOP Bi) for accessing the data transfer control block to continue or stop the transfer function on the channel side.
There is a control table 9 for setting T). There is one stop bit for each data buffer byte.

ファームウェア8、まず、CCU側の転送機能(CCU→C
A)を起動する。次に転送すべきバイト数に対するスト
ップビットをコントロールテーブル9上にセットする。
次にバス制御部12内のカウンタ13(DBA2)を読み出す。
DBA2は、CCU側の転送機能を転送を開始するデータバッ
ファの先頭アドレス値を、転送を行ったバイト数分だけ
歩進させる。ファームウェア8はDBA2に対するストップ
ビットをコントロールテーブル9上にセットして、デー
タ転送制御部4にチャネル側の転送機能(CA→チャネ
ル)を起動する。次にファームウェア8はCCU側の転送
が行われているかどうかをチェックする。もし、転送中
であれば、再度DBA2を読んで、新しく読んだDBA2に対す
るストップビットをコントロールテーブル9上にセット
して、前にDB2を読んでつけたストップビットをリセッ
トする。転送中でなければ、前に読んだDBA2に対するス
トップビットのリセットのみを行う。CCU側が転送中で
ない場合は、すでにCCU側から指示されたバイト数分の
データがCS7のデータバッファ10内に入っているため、
前に読んだDBA2に対するストップビットのリセットのみ
を行って、指示されたバイトカウントに対するストップ
ビットまで転送を行うことになる。CCU側が転送中かど
うかは、ファームウェア8がフラグを持ち、データの転
送開始時にセットする。そのリセットはバス制御部12が
指示されたバイトカウント分の転送を終了すると転送制
御を行っているより上位のレベルの割込みが発生し、割
込みのリセットとともに転送中のフラグをリセットする
ことにより行なわれる。次に、ファームウェア8は、チ
ャネル側が転送中かどうかを調べ転送中であれば前記の
CCU側の転送中かどうかのチェックから繰り返す。
Firmware 8, First, the transfer function on the CCU side (CCU → C
Start A). A stop bit for the number of bytes to be transferred next is set on the control table 9.
Next, the counter 13 (DBA2) in the bus control unit 12 is read.
The DBA2 advances the start address value of the data buffer for starting the transfer by the transfer function on the CCU side by the number of bytes transferred. The firmware 8 sets the stop bit for DBA2 on the control table 9 and activates the transfer function (CA → channel) on the channel side in the data transfer control unit 4. Next, the firmware 8 checks whether or not the transfer on the CCU side is being performed. If the transfer is in progress, the DBA2 is read again, the stop bit for the newly read DBA2 is set on the control table 9, and the stop bit read by DB2 before is reset. If it is not transferring, it only resets the stop bit for DBA2 read previously. If the CCU side is not transferring, the data for the number of bytes instructed by the CCU side has already been stored in the CS7 data buffer 10.
It will only reset the stop bit for the DBA2 read before and will transfer up to the stop bit for the indicated byte count. Whether or not the CCU side is transferring data is set at the start of data transfer by the firmware 8 having a flag. When the bus control unit 12 completes the transfer of the instructed byte count, an interrupt of a higher level than that under the transfer control is generated, and the reset is performed by resetting the interrupt and resetting the flag during transfer. . Next, the firmware 8 checks whether the channel side is transferring, and if it is transferring,
Repeat from the check whether the CCU side is transferring.

転送中でない場合は、カウンタ(DBA1)を読み出す。
DBA1は、転送を開始したデータバッファの先頭アドレス
値を、データ転送制御部4がCS7のデータバッファ10か
らチャネルに対して転送したバイト数分だけ歩進させ
る。ここで、DBA2を読み出してDBA1とDBA2を比較し、DB
A1=DBA2の場合は、指示されたバイト数分の転送が終了
したことになるので、転送終了後の処理へ移行する。な
お、この時点では上述のとおり“CCU側が転送中か否か
を表すフラグ”はリセットされている。DBA1<DBA2の場
合は指示されたバイト数分の転送が終了していないため
チャネル側の転送を再起動して、前記のCCU側の転送が
行われているかどうかのチェックから繰り返す。
If not transferring, read the counter (DBA1).
The DBA1 advances the start address value of the data buffer that started the transfer by the number of bytes transferred from the data buffer 10 of CS7 to the channel by the data transfer control unit 4. Now, read DBA2, compare DBA1 and DBA2, and
If A1 = DBA2, it means that the transfer of the designated number of bytes has been completed, so the process proceeds to the process after the transfer is completed. At this point in time, as described above, the "flag indicating whether or not the CCU side is transferring" is reset. If DBA1 <DBA2, the transfer for the designated number of bytes has not been completed, so the transfer on the channel side is restarted, and the process is repeated from the above-mentioned check whether the transfer on the CCU side is being performed.

DBA1のカウントはストップビットの検出で中止される
ため転送終了状態以外ではDBA1<DBA2の状態になる。そ
して、転送終了状態でのみDBA1=DBA2になり、DBA1>DB
A2の状態は存在しない。
Since the count of DBA1 is stopped when the stop bit is detected, DBA1 <DBA2 is set except in the transfer end state. And DBA1 = DBA2 only in the transfer end state, DBA1> DB
There is no A2 condition.

チャネルが転送中かどうかは、ファームウェア8でフ
ラグを持ち、転送開始時にセッする。このフラグは、デ
ータ転送制御部がストップビットを検出した時に、転送
制御を行っているより上位のレベルに対する割込みが発
生した時に割込みリセットとともにリセットする。
Whether or not the channel is being transferred has a flag in the firmware 8 and is set at the start of transfer. When the data transfer control unit detects the stop bit, this flag is reset together with an interrupt reset when an interrupt to a higher level for which transfer control is performed occurs.

同様の方法により逆方向の転送も可能である。 The transfer in the opposite direction is possible by the same method.

[発明の効果] 以上説明したように、本発明の方式によれば、ファー
ムウェアの制御を用いてバッファを介して速度の異なる
2つのインターフェースにおけるデータ転送を、並行的
に同時に進行させることにより、経済的で、データ転送
効率のよいデータ転送方式を容易に表現し得る利点があ
る。
[Effects of the Invention] As described above, according to the method of the present invention, by controlling the firmware, the data transfer in the two interfaces having different speeds can be simultaneously progressed in parallel by using the buffer. In addition, there is an advantage that a data transfer method with high efficiency and easy data transfer can be easily expressed.

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

第1図は本発明の一実施例のブロック図、第2図は実施
例のデータ転送に係る制御を示す流れ図である。 1……チャネル、2……チャネルアダプタ、3……CC
U、4……データ転送制御部、5……カウンタ、6……
+1回路、7……コントロールストレージ、8……ファ
ームウェア、9……コントロールテーブル、10……デー
タバッファ、11……命令実行部、12……バス制御部、13
……カウンタ、14……+1回路、15〜18……レジスタ、
19……バス制御部
FIG. 1 is a block diagram of an embodiment of the present invention, and FIG. 2 is a flow chart showing control relating to data transfer of the embodiment. 1 ... Channel, 2 ... Channel adapter, 3 ... CC
U, 4 ... Data transfer control unit, 5 ... Counter, 6 ...
+1 circuit, 7 ... Control storage, 8 ... Firmware, 9 ... Control table, 10 ... Data buffer, 11 ... Command execution section, 12 ... Bus control section, 13
...... Counter, 14 …… + 1 circuit, 15-18 …… Register,
19 ... Bus control unit

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】転送データを一時的に格納するデータバッ
ファを介し、第一のインターフェースと該第一のインタ
ーフェースとデータ転送速度の異なる第二のインターフ
ェースとの間でデータ転送を行うデータ処理装置内のデ
ータ転送回路において、第二のインターフェースに対
し、任意の単位毎のデータの転送の続行又は停止を指示
する制御情報を格納する手段と、該制御情報に従って転
送動作を続行又は停止する手段とを設け、一定の時間内
に第一のインターフェースが更新した前記データバッフ
ァのアドレスを示すポインタの内容に対応して、第二の
インターフェースを制御する前記制御情報の更新を行な
うことを特徴とするデータ転送方式。
1. A data processing device for performing data transfer between a first interface and a second interface having a different data transfer rate from a first interface via a data buffer for temporarily storing transfer data. In the data transfer circuit, the means for storing control information for instructing the second interface to continue or stop the transfer of data in arbitrary units, and means for continuing or stopping the transfer operation according to the control information. Data transfer, characterized in that the control information for controlling the second interface is updated according to the content of the pointer indicating the address of the data buffer updated by the first interface within a fixed time. method.
JP62218912A 1987-09-01 1987-09-01 Data transfer method Expired - Lifetime JP2533886B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62218912A JP2533886B2 (en) 1987-09-01 1987-09-01 Data transfer method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62218912A JP2533886B2 (en) 1987-09-01 1987-09-01 Data transfer method

Publications (2)

Publication Number Publication Date
JPS6461850A JPS6461850A (en) 1989-03-08
JP2533886B2 true JP2533886B2 (en) 1996-09-11

Family

ID=16727264

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62218912A Expired - Lifetime JP2533886B2 (en) 1987-09-01 1987-09-01 Data transfer method

Country Status (1)

Country Link
JP (1) JP2533886B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02262862A (en) * 1989-02-22 1990-10-25 Matsushita Electric Ind Co Ltd Brushless motor

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57134738A (en) * 1981-02-16 1982-08-20 Fuji Facom Corp Conversation type screen correcting method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57134738A (en) * 1981-02-16 1982-08-20 Fuji Facom Corp Conversation type screen correcting method

Also Published As

Publication number Publication date
JPS6461850A (en) 1989-03-08

Similar Documents

Publication Publication Date Title
US4271466A (en) Direct memory access control system with byte/word control of data bus
CA1297198C (en) Program mode access control system
US4365296A (en) System for controlling the duration of the time interval between blocks of data in a computer-to-computer communication system
JPH0221619B2 (en)
JP2533886B2 (en) Data transfer method
KR20010013137A (en) Communication DMA Device
US8769167B2 (en) Channel device, information processing system and data transfer method
KR20020019437A (en) Systems and Methods for a Disk Controller Memory Architecture
JP2615677B2 (en) Shared extended storage control method
SU752318A1 (en) Multiplexor channel
JPH0736806A (en) Dma system
JP2826780B2 (en) Data transfer method
JPH06105922B2 (en) Communication control device
JPH0581165A (en) Data transfer circuit
JP2531209B2 (en) Channel device
JPS6019023B2 (en) data processing equipment
JP3442099B2 (en) Data transfer storage device
JPH03294951A (en) High speed data transfer system in personal computer system
JPS6143366A (en) Data transfer system
JPH0769885B2 (en) Data transfer device
JPS6051751B2 (en) Communication control device
JPH0425581B2 (en)
JPS6145343A (en) Swapping control system
JPH0567035A (en) Data alignment system for dma transfer
JPS5860347A (en) Communication controller