JPH04274545A - Channel controller - Google Patents

Channel controller

Info

Publication number
JPH04274545A
JPH04274545A JP3491891A JP3491891A JPH04274545A JP H04274545 A JPH04274545 A JP H04274545A JP 3491891 A JP3491891 A JP 3491891A JP 3491891 A JP3491891 A JP 3491891A JP H04274545 A JPH04274545 A JP H04274545A
Authority
JP
Japan
Prior art keywords
control device
register file
overrun
input
data
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
JP3491891A
Other languages
Japanese (ja)
Inventor
Eiji Takano
高野 栄治
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 Ibaraki Ltd
Original Assignee
NEC Ibaraki 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 NEC Ibaraki Ltd filed Critical NEC Ibaraki Ltd
Priority to JP3491891A priority Critical patent/JPH04274545A/en
Publication of JPH04274545A publication Critical patent/JPH04274545A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce the burden of data transfer by eliminating the execution of transferring futile data and to prevent the occurrence of the overrun of another channel controller. CONSTITUTION:The channel controller is provided with a register file 6 for matching a peripheral controller 3 and input-output controller 1 to each other, channel control circuit 5 which manages the file 6 and communicates with the controller 3, interruption generating circuit 4 which controls the communication with the controller 1, and overrun detection circuit 7 for detecting overruns and, when the detection circuit 7 detects an overrun at the time of transferring an input, the generation circuit 4 generates a firmware interruption even when input data are stored in the register file 6 and executes service code processing by initializing the file 6 while firmware process is performed.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、チャネル制御装置に関
し、特にオーバーラン発生時の処理として必要なデータ
転送を実行しないチャネル制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a channel control device, and more particularly to a channel control device that does not perform necessary data transfer as a process when an overrun occurs.

【0002】0002

【従来の技術】従来、この種のチャネル制御装置は、入
出力データ転送時、例えば、周辺制御装置では1バイト
幅、入出力制御装置では4バイト幅というようにデータ
転送幅が異なるため、周辺制御装置と入出力制御装置間
の整合のためにレジスタファイルを持つている。
Conventionally, this type of channel control device has different data transfer widths when transferring input/output data, for example, a 1-byte width for a peripheral control device and a 4-byte width for an input/output control device. It has a register file for coordination between the control unit and the input/output control unit.

【0003】出力転送では、レジスタファイルに4バイ
ト以上の空領域があると、入出力制御装置へ主記憶装置
から読み出しデータを要求し、読み出しデータが返送さ
れると、レジスタファイルへ4バイト同時に書き込まれ
る。レジスタファイルに格納されたデータは、1バイト
づつ読み出され、周辺制御装置へ送出される。また、入
力転送においては、周辺制御装置から1バイトづつレジ
スタファイルにデータが書込まれ、4バイト以上のデー
タが格納できると、入出力制御装置へデータ転送要求を
送出し、転送要求が受付けられると、4バイトの書込み
データが送出される。しかし、入出力制御装置がチャネ
ル制御装置からのデータ転送要求に対して受付けするこ
とができない場合が長く続くと、周辺制御装置から書込
みデータが随時、レジスタファイルに書込まれ、やがて
、レジスタファイルの領域を越えてしまうオーバーラン
が発生する。このとき、周辺制御装置との通信は中止さ
れるが、入出力制御装置との通信では、レジスタファイ
ル内に書込みデータが格納されているため、即、ファー
ムウェア割込みを発生することができず、主記憶には書
き込まないが、データ転送要求を送出し、レジスタファ
イル内の書込みデータを全て排出させてからファームウ
ェア割込みを発生させ、サービスコードシーケンスを実
行するようになっている。
In output transfer, if there is an empty area of 4 bytes or more in the register file, a request is made to the input/output control unit to read data from the main memory, and when the read data is returned, 4 bytes are simultaneously written to the register file. It will be done. The data stored in the register file is read out one byte at a time and sent to the peripheral control device. In addition, during input transfer, data is written from the peripheral control device to the register file one byte at a time, and when 4 bytes or more of data can be stored, a data transfer request is sent to the input/output control device, and the transfer request is accepted. Then, 4 bytes of write data is sent. However, if the input/output control device is unable to accept data transfer requests from the channel control device for a long time, write data from the peripheral control device is written to the register file from time to time, and eventually the register file becomes An overrun occurs that exceeds the area. At this time, communication with the peripheral control device is stopped, but in communication with the input/output control device, since the write data is stored in the register file, a firmware interrupt cannot be generated immediately, and the main Although it does not write to memory, it sends a data transfer request, drains all write data in the register file, generates a firmware interrupt, and executes a service code sequence.

【0004】0004

【発明が解決しようとする課題】上述したように従来の
チャネル制御装置は、入力転送でオーバーランを検出す
ると、周辺制御装置との通信は中止するが、チャネル制
御装置内のレジスタファイルに書込みデータが格納され
ているため、即、ファームウェア割込みを発生させてサ
ービスコードシーケンスを実行することができず、主記
憶装置に書き込まないようにして入出力制御装置のデー
タ転送を要求し、レジスタファイル内の書込みデータを
全て排出してからファームウェア割込みを発生するため
、入出力制御装置は無駄な動作を強いられ、転送負荷の
増大となるという欠点がある。
[Problems to be Solved by the Invention] As mentioned above, when a conventional channel control device detects an overrun in input transfer, communication with the peripheral control device is stopped, but data is not written to the register file within the channel control device. is stored, so it is not possible to immediately generate a firmware interrupt and execute the service code sequence, requesting data transfer from the input/output control unit without writing to main memory, and updating the data in the register file. Since a firmware interrupt is generated after all write data has been ejected, the input/output control device is forced to perform unnecessary operations, resulting in an increased transfer load.

【0005】本発明の目的は、入力転送でオーバーラン
を検出した際に、レジスタファイル内に格納されている
書込みデータをデータ転送で排出するのではなく、ファ
ームウェア割込みを発生させてフアームウェア処理中で
初期化することにより、上記の欠点を解消し、無駄なデ
ータ転送を実行することがなくなり、データ転送の負荷
を低減することができ、また、他のチャネル制御装置の
オーバーランの発生を未然に防止することができるチャ
ネル制御装置を提供することにある。
An object of the present invention is to generate a firmware interrupt to interrupt firmware processing when an overrun is detected during input transfer, instead of discharging the write data stored in the register file by data transfer. By initializing with An object of the present invention is to provide a channel control device that can prevent such problems.

【0006】[0006]

【課題を解決するための手段】本発明のチャネル制御装
置は、周辺制御装置と入出力制御装置間の整合のための
レジストファイルと、レジストファイルの管理と周辺制
御装置との通信を行うチャネル制御回路と、入出力制御
装置との通信を司る割込み発生回路と、オーバーランを
検出するオーバーラン検出回路とを有し、入力転送にお
いて、オーバーラン検出回路によりオーバーランが検出
されると、レジストファイル内に入力データが格納され
ていても割込み発生回路によりファームウェア割込みを
発生し、ファームウェア処理中で前記レジスタファイル
を初期化してサービスコード処理を実行している。
[Means for Solving the Problems] A channel control device of the present invention includes a register file for matching between a peripheral control device and an input/output control device, and a channel control device for managing the register file and communicating with the peripheral control device. The circuit has an interrupt generation circuit that controls communication with the input/output control device, and an overrun detection circuit that detects an overrun.When an overrun is detected by the overrun detection circuit during input transfer, the register file is Even if input data is stored in the memory, the interrupt generation circuit generates a firmware interrupt, initializes the register file during firmware processing, and executes service code processing.

【0007】[0007]

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

【0008】図1は本発明の一実施例のチャネル制御装
置を接続したシステムのブロック図である。
FIG. 1 is a block diagram of a system in which channel control devices according to an embodiment of the present invention are connected.

【0009】図1において、本実施例のチャネル制御装
置を接続したシステムは、入出力制御装置1と、チャネ
ル制御装置2と、周辺制御装置3とから構成されており
、チャネル制御装置2は、割込み発生回路4と、チャネ
ル制御回路5と、レジスタファイル6と、オーバーラン
発生回路7とから構成されている。
In FIG. 1, the system to which the channel control device of this embodiment is connected is composed of an input/output control device 1, a channel control device 2, and a peripheral control device 3. It is composed of an interrupt generation circuit 4, a channel control circuit 5, a register file 6, and an overrun generation circuit 7.

【0010】次に、本実施例のチャネル制御装置の動作
について説明する。
Next, the operation of the channel control device of this embodiment will be explained.

【0011】周辺制御装置3から入出力制御装置1を介
して主記憶制御装置ヘデータを転送する。
Data is transferred from the peripheral control device 3 to the main memory control device via the input/output control device 1.

【0012】チャネル制御装置2が、周辺制御装置3と
のインタロック方式による通信を制御するチャネル制御
回路5からの制御信号を周辺制御インタフェース18を
介して入力転送開始の指示を送出すると、周辺制御装置
3から送出される書込みデータが1バイト幅のデータパ
ス(1バイト幅)9を介してレジスタファイル6にチャ
ネル制御回路5の判断でレジスタファイル6に書込むタ
イミングを示すレジスタファイル書込み指示16をレジ
スタファイル6へ送出し、この指示により転送データが
書込まれ、レジスタファイル6内に書込みデータが4バ
イト以上格納されたとチャネル制御回路5が判断すると
、割込み発生回路4にデータ転送要因信号15を送出し
、割込み発生回路4でデータ転送要求信号10を入出力
制御装置1へ送出し、データ転送要求が受付けられると
、受付信号12が返送され、入出力制御装置2との通信
を制御するチャネル制御回路5から発生する制御信号を
入出力制御インタフェース17を介して転送するための
情報を応答すると、レジスタファイル6から4バイトの
書込みデータが読み出され、4バイト幅のデータパス8
を使って転送データが送出される。
When the channel control device 2 sends an instruction to start input transfer of a control signal from the channel control circuit 5 that controls interlock communication with the peripheral control device 3 via the peripheral control interface 18, the peripheral control The write data sent from the device 3 is sent to the register file 6 via a 1-byte wide data path (1-byte wide) 9, and a register file write instruction 16 indicating the timing to write to the register file 6 is sent as determined by the channel control circuit 5. When the channel control circuit 5 determines that 4 bytes or more of the write data has been stored in the register file 6, it sends the data transfer cause signal 15 to the interrupt generation circuit 4. The sending and interrupt generating circuit 4 sends a data transfer request signal 10 to the input/output control device 1, and when the data transfer request is accepted, an acceptance signal 12 is sent back to the channel that controls communication with the input/output control device 2. When the control circuit 5 responds with information for transferring the control signal via the input/output control interface 17, 4-byte write data is read from the register file 6, and the 4-byte wide data path 8 is read out.
Transfer data is sent using .

【0013】しかし、受付信号12が返送できない場合
が長い時間続き、周辺制御装置3から送信される書込み
データが随時、レジスタファイル6に書込まれ続け、レ
ジスタファイルの領量を越えてしまったとき、オーバー
ラン検出回路7でレジスタファイル使用率指示信号14
の情報をもとにオーバーランを検出する。また、オーバ
ーランを検出すると、割込み発生回路4へオーバーラン
であることを示すオーバーラン指示信号13を送出する
。そして、割込み発生回路4は、オーバーラン指示信号
13を受取ると、送出し続けていたデータ転送要求信号
10を取消し、即、ファームウェア割込み要求11を送
出し、サービスコードシーケンスの実行に移る。
However, when the acceptance signal 12 cannot be returned for a long time and the write data sent from the peripheral control device 3 continues to be written to the register file 6 at any time, exceeding the capacity of the register file. , the overrun detection circuit 7 outputs the register file usage rate instruction signal 14.
Overrun is detected based on the information. Further, when an overrun is detected, an overrun instruction signal 13 is sent to the interrupt generation circuit 4 to indicate an overrun. When the interrupt generation circuit 4 receives the overrun instruction signal 13, it cancels the data transfer request signal 10 that it has been sending out, immediately sends out a firmware interrupt request 11, and starts executing the service code sequence.

【0014】以上により、従来では、このケースにおい
ては、レジスタファイル内にデータが残っていると、フ
ァームウェア割込み要求が送出できなかったため、主記
憶制御装置に書込を阻止してレジスタファイル内の書込
みデータが全て排出するまでデータ転送を実行していた
が、本実施例ではオーバーラン検出時には、データ転送
要求を取消し、レジスタファイル内に書込みデータが格
納されていてもファームウェア割込みを発生し、ファー
ムウェア処理の内でレジスタファイルの初期設定を行う
ようにするため、オーバーラン後のデータ転送を実行し
ないですむようになる。
As described above, conventionally, in this case, if data remained in the register file, a firmware interrupt request could not be sent, so writing to the main memory control unit was prevented and writing in the register file Data transfer is executed until all data is ejected, but in this embodiment, when an overrun is detected, the data transfer request is canceled, a firmware interrupt is generated even if write data is stored in the register file, and firmware processing is performed. Since the register file is initialized within the program, there is no need to perform data transfer after an overrun.

【0015】[0015]

【発明の効果】以上説明したように、本発明のチャネル
制御装置は、入力転送でオーバーランを検出した際に、
レジスタファイル内に格納されている書込みデータをデ
ータ転送で排出するのではなく、ファームウェア割込み
を発生させてフアームウェア処理中で初期化することに
より、無駄なデータ転送を実行することがなくなり、デ
ータ転送の負荷を低減することができ、また、他のチャ
ネル制御装置のオーバーランの発生を未然に防止するこ
とができるという効果がある。
[Effects of the Invention] As explained above, the channel control device of the present invention, when an overrun is detected in input transfer,
Rather than discharging the write data stored in the register file by data transfer, by generating a firmware interrupt and initializing it during firmware processing, unnecessary data transfer is no longer executed and data transfer is faster. This has the effect that it is possible to reduce the load on other channel control devices, and to prevent the occurrence of overruns in other channel control devices.

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

【図1】本発明の一実施例のチャネル制御装置を接続し
たシステムのブロック図である。
FIG. 1 is a block diagram of a system connected to a channel control device according to an embodiment of the present invention.

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

1    入出力制御装置 2    チャネル制御装置 3    周辺制御装置 4    割込み発生回路 5    チャネル制御回路 6    レジスタファイル 7    オーバーラン発生回路 8    データパス(4バイト幅) 9    データパス(1バイト幅) 10    データ転送要求信号 11    ファームウェア割込み要求12    受
付信号 13    オーバーラン指示信号 14    レジスタファイル使用率指示15    
データ転送要因信号
1 Input/output control device 2 Channel control device 3 Peripheral control device 4 Interrupt generation circuit 5 Channel control circuit 6 Register file 7 Overrun generation circuit 8 Data path (4-byte width) 9 Data path (1-byte width) 10 Data transfer request signal 11 Firmware interrupt request 12 Acceptance signal 13 Overrun instruction signal 14 Register file usage rate instruction 15
Data transfer factor signal

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  周辺制御装置と入出力制御装置間の整
合のためのレジストファイルと、前記レジストファイル
の管理と前記周辺制御装置との通信を行うチャネル制御
回路と、前記入出力制御装置との通信を司る割込み発生
回路と、オーバーランを検出するオーバーラン検出回路
とを有し、入力転送において、前記オーバーラン検出回
路によりオーバーランが検出されると、前記レジストフ
ァイル内に入力データが格納されていても前記割込み発
生回路によりファームウェア割込みを発生し、ファーム
ウェア処理中で前記レジスタファイルを初期化してサー
ビスコード処理を実行することを特徴とするチャネル制
御装置。
1. A register file for matching between a peripheral control device and an input/output control device, a channel control circuit for managing the register file and communicating with the peripheral control device, and a channel control circuit for controlling the input/output control device. It has an interrupt generation circuit that controls communication and an overrun detection circuit that detects an overrun, and when an overrun is detected by the overrun detection circuit during input transfer, the input data is stored in the registration file. The channel control device is characterized in that the interrupt generating circuit generates a firmware interrupt even when the firmware is being processed, initializes the register file during firmware processing, and executes service code processing.
JP3491891A 1991-03-01 1991-03-01 Channel controller Pending JPH04274545A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3491891A JPH04274545A (en) 1991-03-01 1991-03-01 Channel controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3491891A JPH04274545A (en) 1991-03-01 1991-03-01 Channel controller

Publications (1)

Publication Number Publication Date
JPH04274545A true JPH04274545A (en) 1992-09-30

Family

ID=12427599

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3491891A Pending JPH04274545A (en) 1991-03-01 1991-03-01 Channel controller

Country Status (1)

Country Link
JP (1) JPH04274545A (en)

Similar Documents

Publication Publication Date Title
EP0166272B1 (en) Processor bus access
US4821172A (en) Apparatus for controlling data transfer between storages
JP2978539B2 (en) Data transfer control device
JPH01277928A (en) Printer
US5481756A (en) DMA controller mailing auto-initialize halting unit
JPH04274545A (en) Channel controller
US6134642A (en) Direct memory access (DMA) data transfer requiring no processor DMA support
EP0560393B1 (en) Microprocessor and data processing system with register file
JPH02207364A (en) Data transfer system
JPS63118949A (en) Information processor
JP2765267B2 (en) Direct memory access transfer controller
JPS63180153A (en) Line-back control system for cache memory
JPH0764886A (en) Processor provided with serial interface device
JP2586157B2 (en) System control unit
JP2522051B2 (en) Control device
JP2747154B2 (en) I / O processor
JPH02183342A (en) Interruption controller
JPH04369065A (en) Direct memory access controller
JPH06348644A (en) Dma circuit
JPH07146839A (en) Dma circuit
JPH0521458B2 (en)
JPS6252900B2 (en)
JPS6252342B2 (en)
JPS5837577B2 (en) common bass
JPH0322071A (en) Data transfer processing circuit