JPH01140362A - Channel controller - Google Patents

Channel controller

Info

Publication number
JPH01140362A
JPH01140362A JP30093187A JP30093187A JPH01140362A JP H01140362 A JPH01140362 A JP H01140362A JP 30093187 A JP30093187 A JP 30093187A JP 30093187 A JP30093187 A JP 30093187A JP H01140362 A JPH01140362 A JP H01140362A
Authority
JP
Japan
Prior art keywords
channel
command word
preemption
control unit
ccw
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
JP30093187A
Other languages
Japanese (ja)
Inventor
Yoshihisa Shibata
柴田 義久
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 JP30093187A priority Critical patent/JPH01140362A/en
Publication of JPH01140362A publication Critical patent/JPH01140362A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent the overrun of data from being generated by comparing the bi-count of a pre-fetch CCW with a prescribed value, and performing the pre-fetch operation of the next CCW with a low priority order when the bi-count is equal to or exceeds the prescribed value, and with a high priority order when it is less than the prescribed value. CONSTITUTION:A comparator 4 which compares the bi-count of a channel command word (CCW) read out from a main storage device 1 with the prescribed value is provided. And the bi-count of the pre-fetch CCW is compared with the prescribed value by the comparator 4, and the pre-fetch processing of the next CCW is performed with the low priority order level when the bi- count of the CCW is equal to or exceeds the prescribed value, and with the high priority order level when it is less than the prescribed value. In such a way, it is possible to evade the unrequired continuous operation of a device or interruption from another channel in the case of requiring a fast processing, and to reduce the generation of the overrun of the data.

Description

【発明の詳細な説明】 f産業上の利用分野】 本発明は主記憶装置に接続され、複数のチャネル装置を
制御するチャネル制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to a channel control device connected to a main storage device and controlling a plurality of channel devices.

〔従来の技術] 従来、この種のチャネル制御装置では、データチエイニ
ング時、入出力インタフェースのデータ転送が中断しな
いようにチャネルコマンドワード(以下CCWという。
[Prior Art] Conventionally, in this type of channel control device, a channel command word (hereinafter referred to as CCW) is used to prevent data transfer of an input/output interface from being interrupted during data chaining.

)の先取りを行なって格納しておき、チャネル装置から
のデータチェーン要求時に先取りしであるCCWをデー
タ転送情報としてチャネル装置に送出し、次のデータチ
ェーンに備えるためにその次のCCWの先取処理を行な
っていた。
) is prefetched and stored, and when a data chain is requested from the channel device, the prefetched CCW is sent to the channel device as data transfer information, and the next CCW is prefetched in order to prepare for the next data chain. was doing.

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

上述した従来のチャネル制御装置では、CCWの先取処
理中に他チャネル装置からより優先度の高い処理要求が
割込まれると、処理中の先取りな中断してそのより優先
度の高い処理の要求に応するので処理中であった先取処
理の期間が長くなってしまい、該当チャネル装置からの
次のデータチェーン要求時までに先取りが完了せずデー
タオーバーランが発生するという欠点がある。
In the conventional channel control device described above, if a processing request with a higher priority is interrupted from another channel device during CCW preemption processing, the processing is preemptively interrupted and the request for the higher priority processing is executed. Therefore, the period of prefetching processing that is currently being processed becomes longer, and the prefetching is not completed by the time of the next data chain request from the corresponding channel device, resulting in a data overrun.

[問題点を解決するための手段〕 本発明のチャネル制御装置は、 各チャネル装置に対応したエリアを有し゛、主記憶装置
から先取りされたチャネルコマンドワードが格納される
先取りエリアと、主記憶装置から読出されたチャネルコ
マンドワードのバイトカウントとあらかじめ定められた
値とを比較する比較器と、 各チャネル装置に対応した複数のフリップフロップで構
成され、前記比較器の比較結果を記憶する先取優先フリ
ップフロップ群と、 主記憶装置よりチャネルコマンドワードの先取りを行な
い該チャネルコマンドワードを前記先取エリアの当該チ
ャネル装置に対応したエリアに格納する先取制御部と、 前記各チャネル装置からのデータ転送の割込要求を受付
ける割込制御部と、 主記憶装置から読出されたチャネルコマンドワードによ
りデータ転送情報を作成して当該チャネル装置に送出し
、該チャネルコマンドワードのデータチェーンフラグを
判定してデータチェーンの指示があるときは、前記先取
制御部にチャネルコマンドワードの先取指示を行ない、
前記各チャネル装置からの割込要求により前記割込制御
部から転送指示を受けたとき前記先取エリアより先取チ
ャネルコマンドワードを取出して当該チャネル装置へデ
ータ転送情報を送出し、このとき該チャネルコマンドワ
ードのデータチェーンフラグにデータチェーンが指示さ
れている場合は、前記先取優先フリップフロップ群の当
該チャネル装置に対応するフリップフロップが、該チャ
ネルコマンドワードのバイトカウントがあらかじめ定め
られた値に等しいかまたはその値より大きいことを示し
ているときは低優先レベルで、小さいことを示している
ときは高優先レベルで次のチャネルコマンドワードの先
取処理を行なうように前記先取制御部に指示する転送制
御部とを有する。
[Means for Solving the Problems] The channel control device of the present invention has an area corresponding to each channel device, a prefetch area in which channel command words prefetched from the main memory are stored, and a comparator that compares the byte count of the channel command word read from the channel with a predetermined value; and a pre-emption priority flip-flop that stores the comparison results of the comparator and is composed of a plurality of flip-flops corresponding to each channel device. a prefetch control unit that prefetches a channel command word from a main memory and stores the channel command word in an area corresponding to the channel device in the prefetch area; and an interrupt for data transfer from each channel device. An interrupt control unit that accepts requests creates data transfer information using the channel command word read from the main memory, sends it to the channel device, determines the data chain flag of the channel command word, and instructs the data chain. If there is, instruct the preemption control unit to preempt the channel command word,
When a transfer instruction is received from the interrupt control unit in response to an interrupt request from each channel device, a preemption channel command word is extracted from the preemption area and data transfer information is sent to the channel device. If the data chain flag of indicates a data chain, the flip-flop corresponding to the channel device in the pre-emption priority flip-flop group is set so that the byte count of the channel command word is equal to or less than a predetermined value. a transfer control unit that instructs the preemption control unit to prefetch the next channel command word at a low priority level when the value is larger than the value, and at a high priority level when it is smaller than the value; has.

〔作 用〕[For production]

先取CCWのバイトカウントと定められた値とを比較器
により比較し、CCWのバイトカウントがその値に等し
いかまたはその値より大きかったときは低優先レベルで
、また小書かったときは高優先レベルで次のCCWの先
取処理が行なわれるので、装置の不必要な連続動作や高
速処理が必要な場合に当該チャネル以外からの割込みを
避けることができ、データオーバーランの発生が減少す
る。
A comparator compares the byte count of the pre-empted CCW with a predetermined value, and if the byte count of the CCW is equal to or greater than that value, it is given a low priority level, and if it is small, it is given a high priority level. Since the next CCW is pre-fetched at the channel level, when unnecessary continuous operation of the device or high-speed processing is required, interrupts from sources other than the relevant channel can be avoided, reducing the occurrence of data overruns.

C実施例〕 ・ 次に、本発明の実施例について図面を参照して説明
する。
C Embodiment] - Next, an embodiment of the present invention will be described with reference to the drawings.

第1図は本発明のチャネル制御装置の一実施例のブロッ
ク図である。
FIG. 1 is a block diagram of an embodiment of a channel control device of the present invention.

このチャネル制御装置2は、主記憶装置1に接続され、
複数のチャネル装置101〜10nを制御し、先取エリ
ア3と比較器4と先取優先フリップフロップ群5と先取
制御部6と割込制御部7と転送制御部8とから構成され
ている。
This channel control device 2 is connected to the main storage device 1,
It controls a plurality of channel devices 101 to 10n, and is composed of a preemption area 3, a comparator 4, a preemption priority flip-flop group 5, a preemption control section 6, an interrupt control section 7, and a transfer control section 8.

先取エリア3は各チャネル装置10.〜lOnに対応す
るエリアを持っていて、主記憶装置1から先取りされた
CCWが当該チャネル装置に対応するエリアに格納され
る。比較器4は主記憶装置1から読出されたCCWのバ
イトカウントとあらかじめ定められた値とを比較し、バ
イトカウントの値が定められた値に等しいかまたはその
値より大きいときは”0”、小さいときは”1”を出力
する。先取優先フリップフロップ群5はチャネル装置1
01〜10nに対応したフリップフロップからなり、比
較器4による比較結果が対応するフリップフロップにセ
ットされる。先取制御部6はCCWの先取処理を行ない
、主記憶装置から読出されたCCWを先取エリア3の当
該チャネル装置に対応するエリアに格納する。割込制御
部7はチャネル装置10、〜10nからデータ転送の割
込要求を受付は転送制御部8に対して転送動作の指示を
行なう。転送制御部8は主記憶装置1または先取エリア
3からのCCWによりデータ転送情報を作成し該当する
チャネル装置101〜10.へ送出してデータ転送を指
示し、同時にCCWのデータチェーンフラグ(不図示)
を判定してデータチェーンの指示があるときは、先取制
御部6にCCWの先取りを指示する。転送制御部8はま
た、チャネル装置101〜nからの割込要求があり割込
制御部7から転送動作の指示を受けたときは先取エリア
3から先取CCWを取出して該当チャネル装置10.〜
nヘデータ転送情報として送出し、送出したCCWのデ
ータチェーンフラグを判定してデータチェーンが指示さ
れているときは、先取優先フリップフロップ群5に記憶
されていた比較器4による比較結果が”0”のときは低
優先レベルで、”1“のときは高優先レベルで次のCC
Wの先取処理を行なうように先取制御部6に指示する。
Preemption area 3 is for each channel device 10. It has an area corresponding to ~lOn, and the CCW prefetched from the main storage device 1 is stored in the area corresponding to the channel device concerned. The comparator 4 compares the CCW byte count read from the main memory 1 with a predetermined value, and when the byte count value is equal to or larger than the predetermined value, the comparator 4 outputs "0". When it is small, it outputs "1". The first priority flip-flop group 5 is the channel device 1
It consists of flip-flops corresponding to 01 to 10n, and the comparison result by the comparator 4 is set in the corresponding flip-flop. The pre-fetch control unit 6 performs CCW pre-fetch processing and stores the CCW read from the main storage device in the pre-fetch area 3 corresponding to the channel device concerned. The interrupt control section 7 receives interrupt requests for data transfer from the channel devices 10, .about.10n, and instructs the transfer control section 8 to perform a transfer operation. The transfer control unit 8 creates data transfer information based on the CCW from the main storage device 1 or the prefetch area 3, and transmits the data transfer information to the corresponding channel devices 101 to 10. to instruct data transfer, and at the same time set the CCW data chain flag (not shown).
When it is determined that there is a data chain instruction, the preemption control unit 6 is instructed to prefetch the CCW. When the transfer control section 8 receives an interrupt request from the channel devices 101 to 10n and receives a transfer operation instruction from the interrupt control section 7, the transfer control section 8 extracts the preemption CCW from the preemption area 3 and transfers it to the corresponding channel device 10. ~
n as data transfer information, and when the data chain flag of the sent CCW is determined and the data chain is instructed, the comparison result by the comparator 4 stored in the preemption priority flip-flop group 5 is "0". When it is "1", it is a low priority level, and when it is "1", it is a high priority level and the next CC is
The preemption control unit 6 is instructed to perform preemption processing for W.

次に、本実施例の動作について説明する。Next, the operation of this embodiment will be explained.

先取制御部6によりCCWが先取りされると、比較器4
は先取CCWのバイトカウントとあらかじめ定められた
値とを比較する。比較器4での比較結果がCCWのバイ
トカウントが定められた値に等しいかまたは大きいとき
は、先取優先フリップフロップ群5の当該チャネル装置
のフリップフロップに”0“が、バイトカウントが小さ
いときは”l”がセットされる。次に、チャネル装置1
0゜〜。よりの割込要求により先取CCWが要求先に送
出されるとき、転送制御部8はこのCCWにデータチェ
ーン指示があると、先取優先フリップフロップ群5の当
該フリップフロップに”0”が記憶されているときは低
優先で、”l”が記憶されているときは高優先でこの次
のCCWの先取処理を先取制御部6に行なわせる。
When the CCW is prefetched by the prefetch control unit 6, the comparator 4
compares the byte count of the prefetch CCW with a predetermined value. If the comparison result of the comparator 4 is that the byte count of CCW is equal to or larger than the predetermined value, "0" is set in the flip-flop of the corresponding channel device in the preemption priority flip-flop group 5, and if the byte count is small, "0" is set. "l" is set. Next, channel device 1
0°~. When a pre-emption CCW is sent to the request destination due to an interrupt request from a client, the transfer control unit 8 stores "0" in the corresponding flip-flop of the pre-emption priority flip-flop group 5 if there is a data chain instruction for this CCW. When "1" is stored, the preemption control unit 6 performs preemption processing for the next CCW with low priority, and with high priority when "l" is stored.

[発明の効果] 以上説明したように本発明は、チャネル制御装置におい
てCCWの先取りに際し、先取りCCWのバイトカウン
トと定められた値とを比較し、バイトカウントが定めら
れた値に等しいかまたはその値より大きい場合は低優先
で、小さい場合は高優先で次のCCWの先取処理を行な
うことにより、装置の不必要な連続動作や高速処理が必
要な場合の他チャネルからの割込を回避することができ
、データオーバーランの発生が減少してシステム全体と
して使用効率が向上するという効果がある。
[Effects of the Invention] As explained above, the present invention compares the byte count of the preempted CCW with a predetermined value when prefetching a CCW in a channel control device, and determines whether the byte count is equal to or below the predetermined value. By pre-empting the next CCW with low priority if it is larger than the value and with high priority if it is smaller, unnecessary continuous operation of the device and interrupts from other channels are avoided when high-speed processing is required. This has the effect of reducing the occurrence of data overruns and improving the usage efficiency of the system as a whole.

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

第1図は本発明のチャネル制御装置の一実施例のブロッ
ク図である。 l・・・・・・主記憶装置、2・・・・・・チャネル制
御装置、3・・・・・・先取エリア、4・・・・・・比
較器、5・・・・・・先取優先フリップフロップ群、6
・・・・・・先取制御部、7・・・・・・割込制御部、
8・・・・・・転送制御部、 10+ 、 +02 、・・・、 10n・・・・・・
チャネル装置。
FIG. 1 is a block diagram of an embodiment of a channel control device of the present invention. l...Main storage device, 2...Channel control device, 3...Preemption area, 4...Comparator, 5...Preemption Priority flip-flop group, 6
... Preemption control section, 7 ... Interrupt control section,
8...Transfer control unit, 10+, +02,..., 10n...
Channel device.

Claims (1)

【特許請求の範囲】 主記憶装置に接続され、複数のチャネル装置を制御する
チャネル制御装置であって、 各チャネル装置に対応したエリアを有し、主記憶装置か
ら先取りされたチャネルコマンドワードが格納される先
取エリアと、 主記憶装置から読出されたチャネルコマンドワードのバ
イトカウントとあらかじめ定められた値とを比較する比
較器と、 各チャネル装置に対応した複数のフリップフロップで構
成され、前記比較器の比較結果を記憶する先取優先フリ
ップフロップ群と、 主記憶装置よりチャネルコマンドワードの先取りを行な
い該チャネルコマンドワードを前記先取エリアの当該チ
ャネル装置に対応したエリアに格納する先取制御部と、 前記各チャネル装置からのデータ転送の割込要求を受付
ける割込制御部と、 主記憶装置から読出されたチャネルコマンドワードによ
りデータ転送情報を作成して当該チャネル装置に送出し
、該チャネルコマンドワードのデータチェーンフラグを
判定してデータチェーンの指示があるときは、前記先取
制御部にチャネルコマンドワードの先取指示を行ない、
前記各チャネル装置からの割込要求により前記割込制御
部から転送指示を受けたとき前記先取エリアより先取チ
ャネルコマンドワードを取出して当該チャネル装置へデ
ータ転送情報を送出し、このとき該チャネルコマンドワ
ードのデータチェーンフラグにデータチェーンが指示さ
れている場合は、前記先取優先フリップフロップ群の当
該チャネル装置に対応するフリップフロップが、該チャ
ネルコマンドワードのバイトカウントがあらかじめ定め
られた値に等しいかまたはその値より大きいことを示し
ているときは低優先レベルで、小さいことを示している
ときは高優先レベルで次のチャネルコマンドワードの先
取処理を行なうように前記先取制御部に指示する転送制
御部とを有するチャネル制御装置。
[Claims] A channel control device connected to a main storage device and controlling a plurality of channel devices, the device having an area corresponding to each channel device, and storing channel command words prefetched from the main storage device. A comparator that compares the prefetch area to be read, a byte count of the channel command word read from the main memory and a predetermined value, and a plurality of flip-flops corresponding to each channel device. a pre-emption priority flip-flop group that stores the comparison results of the pre-emption priority flip-flops; a pre-preemption control unit that pre-fetches a channel command word from a main memory and stores the channel command word in an area corresponding to the channel device in the pre-fetch area; An interrupt control unit that accepts a data transfer interrupt request from a channel device, and creates data transfer information using a channel command word read from the main storage device and sends it to the channel device, and creates a data chain of the channel command word. When a data chain is instructed by determining the flag, instructing the preemption control unit to prefetch a channel command word;
When a transfer instruction is received from the interrupt control unit in response to an interrupt request from each channel device, a preemption channel command word is extracted from the preemption area and data transfer information is sent to the channel device. If the data chain flag of indicates a data chain, the flip-flop corresponding to the channel device in the preemption priority flip-flop group is set to a state where the byte count of the channel command word is equal to or less than a predetermined value. a transfer control unit that instructs the preemption control unit to prefetch the next channel command word at a low priority level when the value is larger than the value, and at a high priority level when it is smaller than the value; a channel control device having a
JP30093187A 1987-11-27 1987-11-27 Channel controller Pending JPH01140362A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30093187A JPH01140362A (en) 1987-11-27 1987-11-27 Channel controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30093187A JPH01140362A (en) 1987-11-27 1987-11-27 Channel controller

Publications (1)

Publication Number Publication Date
JPH01140362A true JPH01140362A (en) 1989-06-01

Family

ID=17890838

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30093187A Pending JPH01140362A (en) 1987-11-27 1987-11-27 Channel controller

Country Status (1)

Country Link
JP (1) JPH01140362A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02110754A (en) * 1988-10-20 1990-04-23 Nec Corp Data transfer equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02110754A (en) * 1988-10-20 1990-04-23 Nec Corp Data transfer equipment

Similar Documents

Publication Publication Date Title
US4181938A (en) Processor device
JP5040050B2 (en) Multi-channel DMA controller and processor system
JP2004199698A (en) Interruption controller and interruption control method for determining priority of interruption request generated from multiple interruption generation sources
JPH01140362A (en) Channel controller
JP2004326782A (en) Data transfer with implicit notification
JPH02129746A (en) Input/output channel equipment
JPH02128250A (en) Access control circuit for information processor
JPS63223860A (en) Multi-processor constituting device
JPS62172840A (en) Transferring system for data
JPH0644234B2 (en) Task management device
JPH0342723A (en) Data processor
JPH02271455A (en) Data transfer device
JPH0719235B2 (en) Channel controller
JPH01309149A (en) Input/output control method
JPS63318634A (en) Instruction prefetching system
JPS61202258A (en) Channel processing system
JP2879854B2 (en) Address conversion value setting processing method
JPH04168553A (en) Data processor
JPH0365746A (en) Input/output controller
JPH0272435A (en) Central arithmetic processor
JPS61166657A (en) Input and output control system
JPS61250749A (en) Main memory access control system
JPS58182738A (en) Data preemption control method
JPH04235625A (en) Buffer control system
JPH01240956A (en) Data transmission equipment