JPH03266158A - Channel device - Google Patents

Channel device

Info

Publication number
JPH03266158A
JPH03266158A JP6653790A JP6653790A JPH03266158A JP H03266158 A JPH03266158 A JP H03266158A JP 6653790 A JP6653790 A JP 6653790A JP 6653790 A JP6653790 A JP 6653790A JP H03266158 A JPH03266158 A JP H03266158A
Authority
JP
Japan
Prior art keywords
data
transfer
output
control device
amount
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP6653790A
Other languages
Japanese (ja)
Inventor
Yoshiro Kamata
鎌田 好郎
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP6653790A priority Critical patent/JPH03266158A/en
Publication of JPH03266158A publication Critical patent/JPH03266158A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To carry on data transfer by inhibiting data transfer temporarily when the amount of effective data on a data buffer reaches the amount of data whose overrun is to be detected and restarting the data transfer when the amount of data reaches the amt. of data when the data transfer is restarted. CONSTITUTION:When the amount of effective buffer data on the data buffer 22 becomes equal to the amount of data whose overrun is to be detected after the effectiveness of a data transfer interruption/restart function is indicated, a signal which inhibits the data transfer temporarily is outputted to a peripheral controller 6 and when the amount of effective data on the data buffer 22 reaches the amount of data at the restart of the transfer, the restart of the data transfer is enabled. Consequently, no data overrun is caused and the data transfer can be carried on without retrying an I/O instruction.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明はチャネル装置に関する。[Detailed description of the invention] [Industrial application field] The present invention relates to a channel device.

〔従来の技術〕[Conventional technology]

従来のチャネル装置では、特にディスク等の回転体を制
御している装置を接続する場合においては、周辺処理装
置にデータを規定時間内に転送することを意識しなけれ
ばならず、一定時間内にデータが転送されない場合は、
データが正しくとどかなかったか、あるいは受けとられ
なかった(データオーバラン)としてデータオーバラン
の処理をしなければならなかった。オーバラン処理とは
、ソフトウェアが介在してI10命令の最初から処理を
再開するか、あるいは現在実行中のコマンドの最初から
実行を再開することである。
With conventional channel devices, especially when connecting a device that controls a rotating body such as a disk, it is necessary to be conscious of transferring data to the peripheral processing device within a specified time. If no data is transferred,
Either the data did not arrive correctly or was not received (data overrun), and the data overrun had to be processed. Overrun processing means that software intervenes to restart processing from the beginning of the I10 instruction, or to restart execution from the beginning of the currently executing command.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のチャネル装置は、データオーバランが発
生すると、ll10命令を実行するのに何回もオーバラ
ン処理をしなければならず、ソフトウェアに対する負荷
が増えるだけではなく、データ転送処理全体の性能も落
とすという欠点があった。また、近年、ディスク制御装
置に大容量のキャッシュを持つとか、電子ディスクのよ
うに回転およびメカ(機械)を伴わない大容量、高速の
転送が急増してきているが、このような大容量の転送が
ある場合には、特にデータオーバランによるオーバラン
処理がシステムに及ぼす影響が大きくなるという欠点が
ある。
In the conventional channel device described above, when a data overrun occurs, the overrun process must be performed many times to execute the ll10 instruction, which not only increases the load on the software but also reduces the performance of the entire data transfer process. There was a drawback. In addition, in recent years, there has been a rapid increase in the use of large-capacity caches in disk control devices, and large-capacity, high-speed transfers that do not require rotation or mechanics, such as electronic disks. In this case, there is a drawback that overrun processing due to data overrun in particular has a large influence on the system.

本発明の目的は、データオーバランを発生せず、したが
ってI10命令の再試行なせずにデータ転送を継続でき
るチャネル装置を提供することである。
It is an object of the present invention to provide a channel device that does not cause data overruns and therefore can continue data transfers without retrying I10 instructions.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のチャネル装置は、 転送制御装置からの指示により、データ転送の中断・再
開機能の有効・無効を表示する中断・再開有効フリップ
フロップと、 転送制御装置により、データ入出力に応じてセット/リ
セットされる入力/出力指示フラグと、 転送制御装置により、それぞれデータ入力、出力時の先
行データオーバランを検出すべき、データバッファのデ
ータ量が与えられる第1、第2のレジスタと、 転送制御装置により、それぞれデータ入力、出力時のデ
ータ転送再開時のデータ量が与えられる第3、第4のレ
ジスタと、 入力/出力指示フラグに応じて第1のレジスタまたは第
2のレジスタの出力を選択する第1のセレクタと、 入力/出力指示フラグに応じて第3のレジスタまたは第
4のレジスタの出力を選択する第2のセレクタと、 フリップフロ・ツブと、 第1のセレクタの出力と有効データバッファ量を比較し
、一致するとフリップフロップをセットする第1の比較
回路と、 中断・再開有効フリップフロップがデータ転送の中断・
再開機能の有効を示し、フリップフロップがセットされ
ているときに、データ転送を一時抑止する信号を周辺制
御装置に出力するアンドゲートと、 フリップフロップがセットされているときに有効になり
、第2のセレクタの出力と有効データバッファ量を比較
し、一致すると、フリップフロップをリセットする第2
の比較回路と、前記有効データバッファ量を第1、第2
の比較回路に出力するとともに、データバッファに所定
バイト数以上のデータがたまると、検出信号を出力する
バッファ制御部と、 バッファ制御部より検出信号が出力されると、第1の比
較回路を有効にするとともに、転送開始指示信号を出力
する転送開始指示手段と、転送開始指示信号により周辺
制御装置とデータバッファの間でデータ転送を行ない、
転送制御装置より設定されたバイトカウントを減らすデ
ータ転送制御部とを有している。
The channel device of the present invention includes an interrupt/resume enable flip-flop that indicates whether the interrupt/resume function of data transfer is enabled or disabled based on an instruction from the transfer control device, and a flip-flop that allows the interrupt/resume function to be set/resumed according to data input/output by the transfer control device. an input/output instruction flag to be reset; first and second registers to which the amount of data in the data buffer is given by the transfer control device to detect preceding data overrun at the time of data input and output, respectively; and the transfer control device. The third and fourth registers are given the amount of data when data transfer is restarted during data input and output, respectively, and the output of the first register or the second register is selected according to the input/output instruction flag. a first selector; a second selector that selects the output of the third register or the fourth register according to the input/output instruction flag; a flip-flop tube; the output of the first selector and the effective data buffer amount. The first comparator circuit sets a flip-flop when they match, and the interrupt/resume enable flip-flop interrupts/resumes data transfer.
An AND gate that outputs a signal to the peripheral control device that indicates the restart function is enabled and temporarily inhibits data transfer when the flip-flop is set, and a second AND gate that is enabled when the flip-flop is set. The second selector output and the effective data buffer amount are compared, and if they match, the second flip-flop is reset.
and a comparison circuit that compares the effective data buffer amount with the first and second comparison circuits.
a buffer control section that outputs a detection signal when a predetermined number of bytes or more of data is accumulated in the data buffer; and transfer start instructing means for outputting a transfer start instructing signal, and transferring data between the peripheral control device and the data buffer according to the transfer start instructing signal,
and a data transfer control unit that reduces the byte count set by the transfer control device.

[作用] データ転送中断・再開機能の有効が指示された後、デー
タバッファ内の有効データバッファ量がデータオーバラ
ンを検出すべきデータ量に等しくなると、データ転送を
一時抑止する信号が周辺制御装置に出力され、データバ
ッファ内の有効データ量が転送再開時のデータ量に等し
くなると、データ転送再開を可能にするので、データオ
ーバランが発生せず、したがって工/○命令の再試行な
せずにデータ転送を継続できる。
[Effect] After the data transfer interrupt/resume function is enabled, when the effective data buffer amount in the data buffer becomes equal to the data amount for which data overrun should be detected, a signal to temporarily inhibit data transfer is sent to the peripheral control device. When the amount of valid data in the data buffer becomes equal to the amount of data at the time of restarting the transfer, it is possible to restart the data transfer, so data overrun does not occur, and therefore the data can be transferred without retrying the work/○ instruction. can continue.

〔実施例〕〔Example〕

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

第2図は本発明の一実施例を示すシステム構成図である
FIG. 2 is a system configuration diagram showing an embodiment of the present invention.

転送制御装置2は信号線10によりシステム制御装置l
と接続され、システム制御装置1にはそれぞれ信号線1
1.15により主記憶装置4、演算制御装置3が接続さ
れている。転送制御装置2にはそれぞれ信号線12..
122.・・・、’ 12 n−+。
The transfer control device 2 is connected to the system control device l via the signal line 10.
and each signal line 1 is connected to the system control device 1.
1.15, the main storage device 4 and the arithmetic and control device 3 are connected. Each transfer control device 2 has a signal line 12. ..
122. ...,' 12 n-+.

1211によりチャネル装置58.5□、・・・+51
’l−15nが接続され、チャネル装置5□には信号線
13により周辺制御装置6が接続され、周辺制御装着6
には信号線14により周辺装置7が接続されている。チ
ャネル5.は主記憶装置4と周辺装置7のデータの転送
を行なう。
Channel device 58.5□,...+51 by 1211
'l-15n is connected, a peripheral control device 6 is connected to the channel device 5□ by a signal line 13, and a peripheral control installation 6
A peripheral device 7 is connected to the peripheral device 7 by a signal line 14 . Channel 5. transfers data between the main storage device 4 and the peripheral device 7.

第1図はチャネル装置5Iの構成を示す図である。FIG. 1 is a diagram showing the configuration of the channel device 5I.

チャネル51はチャネル制御部2o、バッファ制御部2
1、データバッファ22、転送開始指示手段23、デー
タ転送制御部24、I10インタフェース制御部25、
レジスタ26,27゜28.29、データアウトレジス
タ37、データインレジスタ36、ドライバー39、レ
シーバ−38、セレクタ30,31、比較回路32゜3
3、フリップフロップ34、アンド回路35、入力/出
力指示フラグ42、中断・再開有効フリップフロップ4
1で構成され、転送制御装置2とは信号線50,51,
52.53を通して接続され、周辺制御装置6とは信号
線77.82゜83.84,85.86を通して接続さ
れている。また、チャネル内各部は信号線54,55゜
56.57,58,59,60,61,62゜63.6
4,65,66.67.68,69゜70.71,72
,73.74,75.76゜78.79,80.81に
より接続され、各制御部間で情報を与えながらデータ転
送を行なう。周辺制御装置6に対する起動指示は、信号
線53を通してチャネル制御部2oに入力され、入出力
信号線63を通してI10インタフェース制御部25に
与えられる。I10インタフェース制御部25は入出力
信号線63上の信号を得ることにより周辺制御装置6へ
信号線85により起動をかける。また、I10インタフ
ェース制御部25では、周辺制御装置6への制御線85
.86および信号線83.84のやり取りにより周辺制
御装置6とデータをやり取りしてデータ転送にそなえる
。データ転送は、転送制御装置2から信号線53を通し
て入力/出力指示フラグ42、中断・再開有効フリップ
フロップ41を設定し、転送バイトカウントをチャネル
制御部20を通して信号線64としてデータ転送制御部
24に与えることにより開始される。また、レジスタ2
6.27には入力/出力時の先行データオーバランを検
出すべき、データバッファ22のデータ量が与えられ、
レジスタ28.29には入力/出力時の転送再開時のデ
ータ量が与えられる。ここで、入力/出力指示フラグ4
2は、周辺装置7から主記憶装置4へのデータ転送(入
力)のとき“O”で、主記憶装置4から周辺装置7への
データ転送(出力)のとき”1”となる。中断/再開有
効フリップフロップ41はデータ転送の中断・再開機能
を有効にする時“1”、無効にする時“0”である。
The channel 51 includes a channel control section 2o and a buffer control section 2.
1, data buffer 22, transfer start instruction means 23, data transfer control section 24, I10 interface control section 25,
Registers 26, 27゜28.29, data out register 37, data in register 36, driver 39, receiver 38, selectors 30, 31, comparison circuit 32゜3
3. Flip-flop 34, AND circuit 35, input/output instruction flag 42, interrupt/resume enable flip-flop 4
1, and the transfer control device 2 consists of signal lines 50, 51,
It is connected to the peripheral control device 6 through signal lines 77.82, 83.84, and 85.86. In addition, each part in the channel has signal lines 54, 55° 56.57, 58, 59, 60, 61, 62° 63.6
4,65,66.67.68,69°70.71,72
, 73.74, 75.76°, 78.79, and 80.81, and data transfer is performed while providing information between each control unit. A startup instruction for the peripheral control device 6 is input to the channel control section 2o through the signal line 53, and is given to the I10 interface control section 25 through the input/output signal line 63. The I10 interface control unit 25 receives the signal on the input/output signal line 63 to activate the peripheral control device 6 via the signal line 85. In addition, the I10 interface control unit 25 connects a control line 85 to the peripheral control device 6.
.. 86 and signal lines 83 and 84 to exchange data with the peripheral control device 6 to prepare for data transfer. Data transfer is performed by setting the input/output instruction flag 42 and interrupt/resume enable flip-flop 41 from the transfer control device 2 through the signal line 53, and transmitting the transfer byte count to the data transfer control section 24 through the channel control section 20 via the signal line 64. It begins by giving. Also, register 2
6.27 gives the amount of data in the data buffer 22 for which preceding data overrun at the time of input/output should be detected,
Registers 28 and 29 are given the amount of data when restarting transfer during input/output. Here, input/output instruction flag 4
2 is "O" when data is transferred (input) from the peripheral device 7 to the main storage device 4, and becomes "1" when data is transferred (output) from the main storage device 4 to the peripheral device 7. The interrupt/resume enable flip-flop 41 is set to "1" when the data transfer interrupt/resume function is enabled, and set to "0" when disabled.

「先行データオーバランを検出すべきデータバッファの
データ量」とは転送の中断指示が出されてから中断する
までに転送されるデータの量(オーバーフローにならな
い値)、「転送再開時のデータ量」は中断したデータ転
送を再開することができるデータ量をいう。したがって
、出力データ転送の時は先行データオーバランを検出す
べきデータバッファのデータ置く転送再開時のデータ量
"Amount of data in the data buffer for which advance data overrun should be detected" is the amount of data that is transferred from when a transfer interruption instruction is issued until it is interrupted (a value that does not cause an overflow), and "the amount of data when the transfer is restarted." is the amount of data that can be used to resume interrupted data transfer. Therefore, when transferring output data, the amount of data to be stored in the data buffer to detect the preceding data overrun is the amount of data when the transfer is restarted.

入力データ転送の時は先行データオーバーランを検出す
べきデータバッファのデータ量〉転送再開水のデータ量
である。レジスタ26.27の出力信号57.58はセ
レクタ30に入力され、入力/出力指示フラグレジスタ
42の出力信号59により選択され、比較回路32の一
方の入力信号65として入力される。比較回路32の他
方の入力にはバッファ制御部21からのデータ有効バッ
ファ量(nバイト)を示す信号67が入力され比較され
る。比較回路32の出力信号75はフリップフロップ3
4のセット信号として使用され、出力信号76は中断・
再開有効フリップフロップ41の出力信号62とともに
アンド回路35に入力されデータ転送を一時抑止する信
号77を周辺制御装置6に送ると共に、転送制御装置2
に対して、本チャネルの要求優先度を上げる信号として
送られる。また、信号76は、比較回路33の有効信号
として使用されている。レジスタ2829の出力信号6
0.61はセレクタ31に入力され選択信号59により
選択され、比較回路33の一方の入力信号66として入
力されている。比較回路33の他方の入力にはバッファ
制御部21からのデータ有効バッファ量を示す信号67
が入力され比較される。比較回路33の出力信号74は
フリップフロップ34のリセット信号として使用されて
いる。データは信号50を通して、セレクタ40を通し
てデータバッファ22に格納される。ここで、周辺制御
装置6からのデータバッファ22へのデータの書込みは
1バイト単位、転送制御装置2からのデータバッファ2
2へのデータ書込みは4バイト単位で行なわれる。デー
タバッファ22にデータがnバイト以上たまるとバッフ
ァ制御部21は信号線69を論理値“1”にする。転送
開始指示手段23は本信号を受けると論理値“1”の信
号72をデータ転送制御部24に送ると共に比較回路3
2を有効にする有効信号73を論理値“1”にする。デ
ータ転送制御部24は本信号を受けることによりデータ
アウトレジスタ37にデータバッファ22からのデータ
71をセットして周辺制御装置6とのデータ転送を開始
する。データアウトレジスタ37のデータは信号線81
によりドライバー39に送られ、信号線82により周辺
制御装置6に送られる。データ転送制御部24では信号
83.84のやりとりにより周辺制御装置6とデータ転
送を行ない、バイトカウントを減らすと共に転送側のカ
ウンタをアップする。本信号は信号線68によりバッフ
ァ制御部21に送られ、データバッファ22の有効デー
タ量を求めるために使用される。バッファ制御部21内
にはデータバッファ22へのメモリからの/メモリへの
開始アドレスを制御するメモリポインタとPSIインタ
フェース側に転送するデータバッファ22の読出し/書
込みアドレスな制御するPSIポインタがあり、この両
ポインタを使用してデータバッファ22内の有効データ
量を求める。
At the time of input data transfer, the amount of data in the data buffer for which preceding data overrun should be detected is greater than the amount of data at which data is to be resumed. Output signals 57 and 58 of registers 26 and 27 are input to selector 30, selected by output signal 59 of input/output instruction flag register 42, and input as one input signal 65 of comparator circuit 32. A signal 67 indicating the data valid buffer amount (n bytes) from the buffer control unit 21 is input to the other input of the comparison circuit 32 and compared. The output signal 75 of the comparator circuit 32 is sent to the flip-flop 3.
4 is used as the set signal, and the output signal 76 is used as the interrupt/
A signal 77 that is input to the AND circuit 35 together with the output signal 62 of the restart enable flip-flop 41 and temporarily inhibits data transfer is sent to the peripheral control device 6, and the transfer control device 2
This signal is sent as a signal to increase the request priority of this channel. Further, the signal 76 is used as a valid signal for the comparison circuit 33. Output signal 6 of register 2829
0.61 is input to the selector 31 and selected by the selection signal 59, and is input as one input signal 66 of the comparison circuit 33. The other input of the comparator circuit 33 receives a signal 67 from the buffer control unit 21 indicating the data valid buffer amount.
are input and compared. The output signal 74 of the comparison circuit 33 is used as a reset signal for the flip-flop 34. Data is stored in data buffer 22 through selector 40 via signal 50. Here, data is written from the peripheral control device 6 to the data buffer 22 in 1-byte units, and from the transfer control device 2 to the data buffer 22.
Data writing to 2 is performed in units of 4 bytes. When n bytes or more of data accumulate in the data buffer 22, the buffer control unit 21 sets the signal line 69 to a logical value "1". Upon receiving this signal, the transfer start instructing means 23 sends a signal 72 with a logical value of "1" to the data transfer control section 24 and also sends the signal 72 to the comparison circuit 3.
The enable signal 73 that makes the signal 2 valid is set to the logic value "1". Upon receiving this signal, the data transfer control section 24 sets the data 71 from the data buffer 22 in the data out register 37 and starts data transfer with the peripheral control device 6. The data in the data out register 37 is transferred to the signal line 81.
The signal is sent to the driver 39 via the signal line 82 and sent to the peripheral control device 6 via the signal line 82. The data transfer control unit 24 transfers data with the peripheral control device 6 by exchanging signals 83 and 84, decreases the byte count, and increases the counter on the transfer side. This signal is sent to the buffer control unit 21 via the signal line 68 and is used to determine the amount of effective data in the data buffer 22. Inside the buffer control unit 21, there is a memory pointer that controls the start address from/to the memory to the data buffer 22, and a PSI pointer that controls the read/write address of the data buffer 22 to be transferred to the PSI interface side. The effective amount of data in the data buffer 22 is determined using both pointers.

ここで、出力時のデータ転送動作について説明する。Here, the data transfer operation at the time of output will be explained.

中断・再開有効フリップフロップ41が論理値“1”、
入力/出力指示フラグ42が論理値“1″、すなわち出
力時、先行データオーバラン検出用のバイトカウントレ
ジスタ27には例えば“8”がセットされ、レジスタ2
9には“16”がセットされ、データ転送制御部24内
のバイトカウントレジスタには転送バイトカウントがセ
ットされて転送が開始される。データバッファ22に1
6バイト以上が格納され、信号69が論理値“1″にな
り転送開始指示手段23の出力信号72を論理値“1”
にすると共に信号73も論理値”1“にする。データ転
送制御部24はI10インタフェースとのデータ転送を
開始する。通常はメモリ系の方が転送能力が大なのでデ
ータバッファ22はいつも一杯であるが、他のチャネル
の要求や演算制御装置3との主記憶装置競合でメモリリ
クエストが待たされ、データが遅れる場合が発生する。
The interrupt/resume enable flip-flop 41 has a logic value of “1”,
When the input/output instruction flag 42 has a logical value of "1", that is, when it is output, the byte count register 27 for preceding data overrun detection is set to, for example, "8", and the register 2
9 is set to "16", a transfer byte count is set in the byte count register in the data transfer control unit 24, and the transfer is started. 1 to data buffer 22
When 6 bytes or more are stored, the signal 69 becomes a logical value "1" and the output signal 72 of the transfer start instruction means 23 becomes a logical value "1".
At the same time, the signal 73 is also set to the logic value "1". The data transfer control unit 24 starts data transfer with the I10 interface. Normally, the data buffer 22 is always full because the memory system has a larger transfer capacity, but there are cases where the memory request is kept waiting due to requests from other channels or main storage contention with the arithmetic control unit 3, and the data is delayed. Occur.

このような状態が発生すると、転送制御装置2への転送
データが入ってこなくなり、データバッファ22内の有
効データ量が減ってゆく。バッファ制御部21からの信
号67が論理値“8”を表示すると比較回路32により
一致がとられ、論理値“1”の信号75を発生すると、
フリップフロップ34が論理値“1”にセットされる。
When such a state occurs, no more data is transferred to the transfer control device 2, and the amount of valid data in the data buffer 22 decreases. When the signal 67 from the buffer control unit 21 displays the logical value "8", a match is determined by the comparison circuit 32, and when the signal 75 with the logical value "1" is generated,
Flip-flop 34 is set to logic "1".

論理値“1”の出力信号76によりアンド回路35の条
件がとられ、論理値“1”のデータ転送−時抑止信号7
7が周辺制御装置6に送られる。また、論理値“1”の
信号76は比較回路33の有効信号として与えられる。
The condition of the AND circuit 35 is taken by the output signal 76 with a logic value of "1", and the data transfer-time inhibit signal 7 with a logic value of "1" is set.
7 is sent to the peripheral control device 6. Further, a signal 76 having a logical value of "1" is given as a valid signal to the comparator circuit 33.

周辺制御装置6では本信号を検出すると周辺制御装置6
からの転送要求信号が一時中断する。また、バッファ制
御部21からの有効データバッファ量を示す信号67が
“16”を表示す浸と比較回路33により一致がとられ
、論理値“1”の一致信号74が発生する。本信号74
はフリップフロップ34をリセットする。出力信号76
は論理値“0”になりアンド回路35の条件がくずれ、
データ転送−時抑止信号77は論理値“0”になり、再
度データ転送が再開される。
When the peripheral control device 6 detects this signal, the peripheral control device 6
The transfer request signal from is temporarily interrupted. Further, when the signal 67 indicating the effective data buffer amount from the buffer control unit 21 indicates "16", the comparator circuit 33 finds a match, and a match signal 74 having a logical value of "1" is generated. Main signal 74
resets the flip-flop 34. Output signal 76
becomes the logical value "0" and the condition of the AND circuit 35 collapses,
The data transfer-time inhibit signal 77 becomes a logical value "0", and the data transfer is restarted again.

〔発明の効果] 以上説明したように本発明は、データバッファ内の有効
データ量が、データオーバランを検出すべきデータ量に
なったときデータ転送を一時抑止する信号を出力し、デ
ータ転送再開時のデータ量になったときデータ転送の再
開を可能にすることにより、データオーバランを発生さ
せずI10命令の再試行をせずにデータ転送を継続でき
る効果がある。
[Effects of the Invention] As explained above, the present invention outputs a signal that temporarily inhibits data transfer when the amount of valid data in the data buffer reaches the amount of data that should be used to detect a data overrun, and when data transfer is resumed. By making it possible to restart data transfer when the amount of data reaches , it is possible to continue data transfer without causing a data overrun and without retrying the I10 instruction.

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

第1図は本発明の一実施例のチャネル装置のブロック図
、第2図はシステムの構成図である。 1・・・システム制御装置、2・・・転送制御装置、3
・・・演算制御装置、   4・・・主記憶装置、51
〜5o・・・チャネル、6・・・周辺制御装置、7・・
・周辺装置、   20・・・チャネル制御部、21・
・・バッファ制御部、22・・・データバッファ、23
・・・転送開始指示手段、 24・・・データ転送制御部、 25・・・I10インタフェース制御部、26.27,
28,29,36.37・・・レジスタ、 38・・・レシーバ−39・・・ドライバー41・・・
中断・再開有効フリップフロップ、42・・・入力/出
力指示フラグ、 35・・・アンド回路、  32.33・・・比較回路
、30.31・・・セレクタ、 34・・・フリップフロップ。
FIG. 1 is a block diagram of a channel device according to an embodiment of the present invention, and FIG. 2 is a system configuration diagram. 1... System control device, 2... Transfer control device, 3
... Arithmetic control unit, 4... Main storage device, 51
~5o...channel, 6...peripheral control device, 7...
- Peripheral device, 20... Channel control unit, 21.
...Buffer control unit, 22...Data buffer, 23
...Transfer start instruction means, 24...Data transfer control unit, 25...I10 interface control unit, 26.27,
28, 29, 36. 37...Register, 38...Receiver-39...Driver 41...
Suspension/resume valid flip-flop, 42... Input/output instruction flag, 35... AND circuit, 32.33... Comparison circuit, 30.31... Selector, 34... Flip-flop.

Claims (1)

【特許請求の範囲】 1、チャンネル装置において、 転送制御装置からの指示により、データ転送の中断・再
開機能の有効・無効を表示する中断・再開有効フリップ
フロップと、 転送制御装置により、データ入出力に応じてセット/リ
セットされる入力/出力指示フラグと、 転送制御装置により、それぞれデータ入力、出力時の先
行データオーバランを検出すべき、データバッファのデ
ータ量が与えられる第1、第2のレジスタと、 転送制御装置により、それぞれデータ入力、出力時のデ
ータ転送再開時のデータ量が与えられる第3、第4のレ
ジスタと、 入力/出力指示フラグに応じて第1のレジスタまたは第
2のレジスタの出力を選択する第1のセレクタと、 入力/出力指示フラグに応じて第3のレジスタまたは第
4のレジスタの出力を選択する第2のセレクタと、 フリップフロップと、 第1のセレクタの出力と有効データバッファ量を比較し
、一致するとフリップフロップをセットする第1の比較
回路と、 中断・再開有効フリップフロップがデータ転送の中断・
再開機能の有効を示し、フリップフロップがセットされ
ているときに、データ転送を一時抑止する信号を周辺制
御装置に出力するアンドゲートと、 フリップフロップがセットされているときに有効になり
、第2のセレクタの出力と有効データバッファ量を比較
し、一致すると、フリップフロップをリセットする第2
の比較回路と、 前記有効データバッファ量を第1、第2の比較回路に出
力するとともに、データバッファに所定バイト数以上の
データがたまると、検出信号を出力するバッファ制御部
と、 バッファ制御部より検出信号が出力されると、第1の比
較回路を有効にするとともに、転送開始指示信号を出力
する転送開始指示手段と、 転送開始指示信号により周辺制御装置とデータバッファ
の間でデータ転送を行ない、転送制御装置より設定され
たバイトカウントを減らすデータ転送制御部とを有する
ことを特徴とするチャネル装置。
[Claims] 1. In the channel device, an interrupt/resume enable flip-flop that displays whether the interrupt/resume function of data transfer is enabled or disabled according to instructions from the transfer control device; and data input/output by the transfer control device. an input/output instruction flag that is set/reset according to the input/output instruction flag, and first and second registers to which the amount of data in the data buffer is given by the transfer control device to detect preceding data overrun at the time of data input and output, respectively. and third and fourth registers to which the transfer control device gives the amount of data when data transfer is restarted during data input and output, respectively, and a first register or a second register depending on the input/output instruction flag. a first selector that selects the output of the first selector, a second selector that selects the output of the third register or the fourth register according to the input/output instruction flag, a flip-flop, and the output of the first selector. The first comparator circuit compares the effective data buffer amount and sets a flip-flop when they match, and the interrupt/resume enable flip-flop interrupts/resumes data transfer.
An AND gate that outputs a signal to the peripheral control device that indicates the restart function is enabled and temporarily inhibits data transfer when the flip-flop is set, and a second AND gate that is enabled when the flip-flop is set. The second selector output and the effective data buffer amount are compared, and if they match, the second flip-flop is reset.
a comparison circuit; a buffer control unit that outputs the effective data buffer amount to the first and second comparison circuits and outputs a detection signal when a predetermined number of bytes or more of data is accumulated in the data buffer; When the detection signal is output from the controller, the first comparison circuit is enabled, and a transfer start instruction means outputs a transfer start instruction signal, and the transfer start instruction signal causes data transfer between the peripheral control device and the data buffer. 1. A channel device comprising: a data transfer control unit that performs data transfer and reduces a byte count set by a transfer control device.
JP6653790A 1990-03-16 1990-03-16 Channel device Pending JPH03266158A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6653790A JPH03266158A (en) 1990-03-16 1990-03-16 Channel device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6653790A JPH03266158A (en) 1990-03-16 1990-03-16 Channel device

Publications (1)

Publication Number Publication Date
JPH03266158A true JPH03266158A (en) 1991-11-27

Family

ID=13318749

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6653790A Pending JPH03266158A (en) 1990-03-16 1990-03-16 Channel device

Country Status (1)

Country Link
JP (1) JPH03266158A (en)

Similar Documents

Publication Publication Date Title
EP0464615B1 (en) Microcomputer equipped with DMA controller
US5941964A (en) Bridge buffer management by bridge interception of synchronization events
US5740466A (en) Flexible processor-driven SCSI controller with buffer memory and local processor memory coupled via separate buses
US6363438B1 (en) Method of controlling DMA command buffer for holding sequence of DMA commands with head and tail pointers
US7502896B2 (en) System and method for maintaining the integrity of data transfers in shared memory configurations
US7698474B2 (en) Virtual first in first out (FIFO) direct memory access (DMA) device, electronic device and memory access method using the same
US20060165109A1 (en) Data communication device
JP3180362B2 (en) Information processing device
EP0535793B1 (en) Method for managing data transfers in a computing system having a dual bus structure
US6560657B1 (en) System and method for controlling peripheral devices
JPH01197866A (en) Interface apparatus and method
US6330631B1 (en) Data alignment between buses
US6581119B1 (en) Interrupt controller and a microcomputer incorporating this controller
US6418497B1 (en) Method and system for interrupt handling using system pipelined packet transfers
JPH06309230A (en) Bus snooping method
US6738837B1 (en) Digital system with split transaction memory access
US6732198B1 (en) Methods and apparatus for saving and restoring scatter/gather list processing context in intelligent controllers
US5544341A (en) Data access apparatus for preventing further cache access in case of an error during block data transfer
JPH03266158A (en) Channel device
US6134642A (en) Direct memory access (DMA) data transfer requiring no processor DMA support
US7024523B1 (en) Host adapter integrated data FIFO and data cache and method for improved host adapter sourcing latency
JP2643931B2 (en) Information processing device
JP4592944B2 (en) CPU interface circuit
US5603057A (en) System for initiating data transfer between input/output devices having separate address spaces in accordance with initializing information in two address packages
JP2615677B2 (en) Shared extended storage control method