JPH0535640A - Channel priority deciding circuit - Google Patents

Channel priority deciding circuit

Info

Publication number
JPH0535640A
JPH0535640A JP21158791A JP21158791A JPH0535640A JP H0535640 A JPH0535640 A JP H0535640A JP 21158791 A JP21158791 A JP 21158791A JP 21158791 A JP21158791 A JP 21158791A JP H0535640 A JPH0535640 A JP H0535640A
Authority
JP
Japan
Prior art keywords
data transfer
small
transfer request
transfer
priority
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
JP21158791A
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 JP21158791A priority Critical patent/JPH0535640A/en
Publication of JPH0535640A publication Critical patent/JPH0535640A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To shorten the reading time of a channel command by taking priority over a small-scaled data transfer request with the small number of transfers. CONSTITUTION:A transfer number control part 14 to control the number of transfers to be transferred by each channel controller is held, it is judged whether or not the data transfer request is a small-scaled data transfer request, and at the time of the small-scaled data transfer request, the transfer request priority-decided and selected by a small-scaled data transfer priority deciding part 13 takes priority over the transfer request selected by a data transfer request priority deciding part 12 and the small-scaled data transfer of the small number of the transfers such as the channel command transfer is processed earlier.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、チャネル優先判定回路
に関し、特に主記憶装置内に存在するチャネルプログラ
ムの命令で動作するチャネル制御装置を複数備え、各チ
ャネル制御装置からのデータ転送要求を選択するチャネ
ル優先判定回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a channel priority judging circuit, and more particularly, it is provided with a plurality of channel control devices which operate in accordance with an instruction of a channel program existing in a main memory device, and selects a data transfer request from each channel control device. Channel priority determination circuit.

【0002】[0002]

【従来の技術】従来のチャネル優先判定回路は、その配
下の複数のチャネル制御装置が発生するデータ転送要求
をある種の規定で選択するというものとなっている。
2. Description of the Related Art A conventional channel priority determination circuit is designed to select a data transfer request generated by a plurality of channel control devices under its control according to a certain rule.

【0003】例えば、この規定がチャネル制御装置番号
の若い順番で優先するものとすれば、データ転送要求を
しているチャネル制御装置の中で最も若いチャネル制御
装置番号のデータ転送要求を選択するものや、一度優先
判定で選択されたチャネル制御装置が次のデータ転送要
求をするとき、そのデータ転送要求の優先度を最下位に
して優先度を均等化するものとなっていた。
For example, if this rule gives priority to a channel control device number in ascending order, a data transfer request with the smallest channel control device number among channel control devices requesting data transfer is selected. Alternatively, when the channel control device once selected by the priority determination makes the next data transfer request, the priority of the data transfer request is set to the lowest and the priorities are equalized.

【0004】次に、優先判定回路配下のチャネル制御装
置について説明する。チャネル制御装置は、その配下の
周辺制御装置と、上位の入出力制御装置とを連結する情
報の伝送路であり、チャネル制御装置の動作は、中央処
理装置とは独立に主記憶装置内のチャネルプログラムと
呼ばれる入出力動作を実行する命令後(以降、チャネル
コマンドと称す)が一連に連続したプログラムを随時実
行することにより決定される。
Next, the channel control device under the priority determination circuit will be described. The channel control unit is a transmission line for information that connects the peripheral control unit under its control to the higher-order I / O control unit.The operation of the channel control unit is independent of the central processing unit. It is determined by executing a series of programs at any time after an instruction called a program for executing an input / output operation (hereinafter referred to as a channel command).

【0005】このため、チャネル制御装置は、次に実行
すべきチャネルコマンドを主記憶装置から読出すために
入出力制御装置へ主記憶装置内の該当するチャネルコマ
ンドの格納番地を計算することを要求し、計算された格
納番地と転送データ数を返送してもらい、その後、入出
力制御装置を介して主記憶装置内のチャネルコマンドを
読出して、周辺制御装置へ引渡すコマンド転送が行われ
る。
Therefore, the channel controller requests the I / O controller to calculate the storage address of the corresponding channel command in the main memory in order to read the channel command to be executed next from the main memory. Then, the calculated storage address and the number of transfer data are returned, and thereafter, the channel command in the main storage device is read out via the input / output control device and the command transfer is delivered to the peripheral control device.

【0006】また、データ転送においては、上記のよう
に読出されたチャネルコマンドを解読して、このチャネ
ルコマンドが入力転送指示、又は、出力転送指示のデー
タ転送要求であるならば、チャネルコマンドの付属デー
タとして一緒に引渡されるフラグ,データ転送開始番地
及び、転送バイト数で、チャネル制御装置が入出力制御
装置を介して主記憶装置からの出力転送データの読出
し、又は主記憶装置への入力転送データの書込みが行わ
れる。
In data transfer, the channel command read as described above is decoded, and if the channel command is a data transfer request of an input transfer instruction or an output transfer instruction, the channel command is attached. The channel control unit reads the output transfer data from the main storage unit via the I / O control unit, or the input transfer to the main storage unit, with the flag, the data transfer start address, and the number of transfer bytes that are passed together as data. Data is written.

【0007】以上のように、コマンド転送においてもデ
ータ転送として扱われ、特に区別して実行しないものと
なっていた。
As described above, the command transfer is also handled as the data transfer and is not particularly distinguished and executed.

【0008】[0008]

【発明が解決しようとする課題】この従来のチャネル優
先判定回路では、多数のデータ転送要求の中から1つの
データ転送要求を選択するためにチャネル制御装置番号
の若い順で優先させたり、1度選択されたチャネル制御
装置の優先度を最下位の優先にして均等化優先にさせた
りしていた。
In this conventional channel priority judgment circuit, in order to select one data transfer request from a large number of data transfer requests, the channel control device numbers are prioritized in the ascending order or once. The priority of the selected channel control device is set to the lowest priority and the equalization priority is set.

【0009】しかしながら、データ転送とコマンド転送
の区別をしていないので、あるチャネル制御装置が急速
にチャネルコマンドを必要としているときに、他の複数
のチャネル制御装置のデータ転送が実行されていて、自
己のコマンド転送要求が受け付けられる優先度が低い
と、チャネル制御装置配下の周辺制御装置に接続されて
いるディスク装置等は、コマンド処理時間制限を越える
ときがあり、本来ならばコマンド処理後、データ転送の
ケースでディスク上に転送データの書込み又は読出す時
間でありながら、その前のコマンド処理が完了しないの
で実行できないというコマンドオーバランが発生してし
まう。
However, since no distinction is made between data transfer and command transfer, when one channel control device rapidly needs a channel command, data transfer of a plurality of other channel control devices is being executed, If the priority of its own command transfer request is low, the disk device connected to the peripheral controller under the channel controller may exceed the command processing time limit. In the case of transfer, although it is time to write or read transfer data on the disk, a command overrun occurs in which it cannot be executed because the previous command processing is not completed.

【0010】このコマンドオーバランが発生すると、チ
ャネルプログラムの最初から再実行しなければならない
という問題点があった。
When this command overrun occurs, there is a problem that the channel program must be re-executed from the beginning.

【0011】本発明の目的は前記課題を解決したチャネ
ル優先判定回路を提供することにある。
An object of the present invention is to provide a channel priority determination circuit that solves the above problems.

【0012】[0012]

【課題を解決するための手段】前記目的を達成するた
め、本発明に係るチャネル優先判定回路においては、複
数のチャネル制御装置から発生するデータ転送要求を最
も優先度の高いデータ転送要求を選択するデータ転送優
先判定部と、前記データ転送要求の転送すべき転送数が
少数で小規模のデータ転送とみなす転送数上限値を格納
する小規模転送数上限レジスタと、前記データ転送要求
の転送すべき転送数を各チャネル制御装置対応に保持す
る転送数管理部と、前記小規模転送数上限レジスタの転
送数上限値と前記転送数管理部の転送数を比較して上限
値より少なくて小規模の小規模データ転送であることを
示すチャネル制御装置対応の有効ビットと、前記有効ビ
ットで有効となった前記データ転送要求を優先判定する
小規模データ転送要求優先判定部と、前記データ転送要
求優先判定部で選択されたデータ転送要求よりも、前記
小規模データ転送優先判定部で選択された小規模データ
転送要求を優先して切替る転送要求切替部とを有するも
のである。
In order to achieve the above object, in a channel priority determination circuit according to the present invention, a data transfer request having a highest priority is selected from data transfer requests generated from a plurality of channel control devices. A data transfer priority determination unit, a small transfer number upper limit register that stores an upper limit value of the number of transfers for which the number of transfers of the data transfer request is small and is regarded as small-scale data transfer, and the transfer of the data transfer request A transfer number management unit that holds the transfer number for each channel control device is compared with the transfer number upper limit value of the small transfer number upper limit register and the transfer number of the transfer number management unit, and the transfer number management unit compares the transfer number lower than the upper limit value. A valid bit corresponding to a channel control device indicating small-scale data transfer and a small-scale data transfer required for prioritizing the data transfer request validated by the valid bit. A priority determination unit and a transfer request switching unit that switches the small-scale data transfer request selected by the small-scale data transfer priority determination unit with priority over the data transfer request selected by the data transfer request priority determination unit. Is to have.

【0013】[0013]

【作用】本発明では、データ転送数が小規模転送上限値
より少ない小規模データ転送に対して、通常のデータ転
送よりも優先度を高くするものである。
In the present invention, the priority is given to the small-scale data transfer in which the number of data transfers is smaller than the upper-limit value of the small-scale transfer, as compared with the normal data transfer.

【0014】[0014]

【実施例】次に本発明について図面を参照して説明す
る。図1は、本発明の一実施例を示すブロック図であ
る。
The present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of the present invention.

【0015】図1において、チャネル優先判定回路10
は、複数のチャネル制御装置30と接続され、さらに上
位装置の入出力制御装置50とに接続されている。ま
た、チャネル制御装置30の配下には各個別に周辺制御
装置40が接続されている。
In FIG. 1, a channel priority determination circuit 10
Are connected to a plurality of channel control devices 30, and are further connected to the input / output control device 50 of the host device. Further, a peripheral control device 40 is individually connected under the channel control device 30.

【0016】本発明のチャネル優先判定回路は、複数の
チャネル制御装置30から発生するデータ転送要求を選
択するデータ転送要求優先判定部12と、データ転送要
求の転送すべき転送数が少数で小規模のデータ転送とみ
なす転送数上限値を格納する小規模転送数上限レジスタ
22と、データ転送要求の転送すべき転送数を各チャネ
ル制御装置対応に保持する転送数管理部14と、小規模
転送数上限レジスタ22の転送数上限値と転送数管理部
14の転送数を比較して転送数上限値より少なくて小規
模のデータ転送であることを示すチャネル制御装置対応
の有効ビット15と、有効ビット15で小規模データ転
送として有効となったデータ転送要求を優先判定する小
規模データ転送優先判定部13と、データ転送要求優先
判定部12で選択されたデータ転送要求よりも小規模デ
ータ転送優先判定部13で選択された小規模データ転送
要求を優先して切替る転送要求切替部11とを有する。
40は周辺制御装置である。
The channel priority determination circuit of the present invention comprises a data transfer request priority determination unit 12 for selecting data transfer requests generated from a plurality of channel control devices 30, and a small number of data transfer requests to be transferred. Data transfer upper limit register 22 for storing the upper limit value of the number of transfers, a transfer number management unit 14 for holding the transfer number of the data transfer request to be transferred for each channel control device, and the small transfer number. A valid bit 15 corresponding to the channel control device, which indicates that the transfer count upper limit value of the upper limit register 22 and the transfer count of the transfer count management unit 14 are smaller than the transfer count upper limit value and indicates small-scale data transfer, and a valid bit. Selected by the small-scale data transfer priority determining unit 13 and the data-transfer request priority determining unit 12 that prioritize a data transfer request that has been validated as a small-scale data transfer in 15. And a transfer request switching unit 11 toggle its small data transfer request selected by the small data transfer priority determining unit 13 than the data transfer request with priority.
Reference numeral 40 is a peripheral control device.

【0017】次に、本実施例の動作について説明する。
各チャネル制御装置30が発生するデータ転送要求31
に対して、データ転送要求優先判定部12で、最も優先
度の高いデータ転送要求31を1つ選択して最優先デー
タ転送要求17と最優先データ転送要求チャネル番号1
9を送出する。
Next, the operation of this embodiment will be described.
Data transfer request 31 generated by each channel control device 30
On the other hand, the data transfer request priority determination unit 12 selects one data transfer request 31 having the highest priority and selects the highest priority data transfer request 17 and the highest priority data transfer request channel number 1.
9 is sent out.

【0018】この動作は従来装置と変らないが、転送数
管理部14で各チャネル制御装置30が転送すべき転送
バイト数を持ち小規模転送数上限値23より少ない小規
模データ転送を実行すると判断されると、チャネル制御
装置30対応に小規模データ転送であることを示す有効
ビット15の該当するビット位置を有効にして、小規模
データ転送と判断されたデータ転送要求31を小規模デ
ータ転送優先判定部13側で優先判定させるようにす
る。
Although this operation is the same as that of the conventional apparatus, the transfer number management unit 14 judges that each channel control device 30 executes small-scale data transfer having the number of transfer bytes to be transferred and smaller than the small-scale transfer number upper limit value 23. Then, the corresponding bit position of the valid bit 15 indicating the small-scale data transfer corresponding to the channel control device 30 is validated, and the data transfer request 31 determined to be the small-scale data transfer is given the small-scale data transfer priority. The determination unit 13 side makes priority determination.

【0019】なお、小規模転送数上限値23を保持する
小規模転送数上限レジスタ22は、任意の転送数をセッ
トできるものとする。また、小規模データ転送優先判定
部13では、小規模データ転送要求専用の優先判定部で
あり、有効ビット15で小規模データ転送となったチャ
ネル制御装置30のデータ転送要求31の中から最も優
先度の高い最優先小規模データ転送要求16と最優先小
規模データ転送要求チャネル番号18が選ばれる。
It is assumed that the small-scale transfer number upper limit register 22 holding the small-scale transfer number upper limit value 23 can set an arbitrary number of transfers. The small-scale data transfer priority determination unit 13 is a priority determination unit dedicated to a small-scale data transfer request, and has the highest priority from the data transfer requests 31 of the channel control device 30 that have performed small-scale data transfer with the valid bit 15. The highest priority small-scale data transfer request 16 and the highest-priority small-scale data transfer request channel number 18 with high frequency are selected.

【0020】次に、データ転送要求優先判定部12で選
択された最優先データ転送要求17、最優先データ転送
要求チャネル番号19と小規模データ転送優先判定部1
3で選択された最優先小規模データ転送要求16、最優
先小規模データ転送要求チャネル番号18は、競合する
が、転送要求切替部11で、最優先データ転送要求17
と小規模データ転送優先判定部13をORゲート20で
転送要求が存在することを入出力制御装置50へ送出す
る。
Next, the highest priority data transfer request 17, the highest priority data transfer request channel number 19 and the small data transfer priority determination unit 1 selected by the data transfer request priority determination unit 12 are selected.
The highest priority small-scale data transfer request 16 and the highest-priority small-scale data transfer request channel number 18 selected in No. 3 compete, but the transfer request switching unit 11 determines the highest-priority data transfer request 17
Then, the small-scale data transfer priority determination unit 13 sends to the input / output control device 50 that the OR gate 20 has a transfer request.

【0021】さらに、この最優先データ転送要求17と
小規模データ転送優先判定部13からANDゲート21
で小規模データ転送側を優先して、最優先小規模データ
転送要求チャネル番号18を転送要求チャネル番号15
として入出力制御装置50へ送出する。
Further, the highest priority data transfer request 17 and the small-scale data transfer priority determination unit 13 to the AND gate 21.
Then, the small-scale data transfer side is given priority, and the highest-priority small-scale data transfer request channel number 18 is set to the transfer request channel number 15
To the input / output control device 50.

【0022】入出力制御装置50では、転送要求14と
転送要求チャネル番号15を基に主記憶装置への入力デ
ータの書込み、又は主記憶装置からのコマンド転送時に
は、チャネルコマンド,フラグ等の読出し,データ転送
時には出力データの読出しが行われる。
In the input / output control device 50, based on the transfer request 14 and the transfer request channel number 15, when input data is written in the main storage device or when a command is transferred from the main storage device, channel commands, flags, etc. are read out. At the time of data transfer, output data is read.

【0023】[0023]

【発明の効果】以上説明したように本発明は、データ転
送数が小規模転送数上限値より少ない小規模データ転送
に対して、通常のデータ転送よりも優先度を高くするこ
とにより、チャネルプログラムのチャネルコマンド,フ
ラグ等を転送する際、その転送数は少ないので、小規模
データ転送として優先させて、チャネルコマンドを周辺
制御装置へ速く転送できる。
As described above, according to the present invention, the priority is given to the small-scale data transfer in which the number of data transfers is smaller than the upper limit of the number of small-scale transfers, and the priority is higher than that of the normal data transfer. When transferring the channel command, flag, etc., the number of transfers is small, so that the channel command can be transferred to the peripheral control device quickly by giving priority to small-scale data transfer.

【0024】このため、他のデータ転送が実行していく
コマンド転送が待されることがないので、周辺制御装置
におけるチャネルコマンド処理時間制限を越える確率を
減少させることができ、その結果、コマンドオーバーラ
ンの発生率を減少させることができる効果がある。
Therefore, the command transfer which is executed by other data transfer is not waited, so that the probability of exceeding the channel command processing time limit in the peripheral control device can be reduced, and as a result, the command over This has the effect of reducing the occurrence rate of orchids.

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

【図1】本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.

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

10 チャネル優先判定回路 11 転送要求切替部 12 データ転送要求優先判定部 13 小規模データ転送優先判定部 14 転送要求 15 有効ビット 16 最優先小規模データ転送要求 17 最優先データ転送要求 18 最優先小規模データ転送要求チャネル番号 19 最優先データ転送要求チャネル番号 20 ORゲート 21 ANDゲート 22 小規模転送数上限レジスタ 23 小規模転送数上限値 30 チャネル制御装置 31 データ転送要求 40 周辺制御装置 50 入出力制御装置 10 Channel Priority Judgment Circuit 11 Transfer Request Switching Unit 12 Data Transfer Request Priority Judgment Unit 13 Small Data Transfer Priority Judgment Unit 14 Transfer Request 15 Effective Bit 16 Top Priority Small Data Transfer Request 17 Top Priority Data Transfer Request 18 Top Priority Small Scale Data transfer request channel number 19 Highest priority data transfer request channel number 20 OR gate 21 AND gate 22 Small scale transfer number upper limit register 23 Small scale transfer number upper limit value 30 Channel control device 31 Data transfer request 40 Peripheral control device 50 Input / output control device

Claims (1)

【特許請求の範囲】 【請求項1】 複数のチャネル制御装置から発生するデ
ータ転送要求を最も優先度の高いデータ転送要求を選択
するデータ転送優先判定部と、 前記データ転送要求の転送すべき転送数が少数で小規模
のデータ転送とみなす転送数上限値を格納する小規模転
送数上限レジスタと、 前記データ転送要求の転送すべき転送数を各チャネル制
御装置対応に保持する転送数管理部と、 前記小規模転送数上限レジスタの転送数上限値と前記転
送数管理部の転送数を比較して上限値より少なくて小規
模の小規模データ転送であることを示すチャネル制御装
置対応の有効ビットと、 前記有効ビットで有効となった前記データ転送要求を優
先判定する小規模データ転送要求優先判定部と、 前記データ転送要求優先判定部で選択されたデータ転送
要求よりも、前記小規模データ転送優先判定部で選択さ
れた小規模データ転送要求を優先して切替る転送要求切
替部とを有することを特徴とするチャネル優先判定回
路。
Claim: What is claimed is: 1. A data transfer priority determination unit for selecting a data transfer request having the highest priority among data transfer requests generated from a plurality of channel control devices, and a transfer to be transferred of the data transfer request. A small-scale transfer number upper limit register that stores a transfer number upper limit value that is regarded as a small number of small-scale data transfers, and a transfer number management unit that holds the transfer number to be transferred of the data transfer request for each channel control device. An effective bit corresponding to a channel control device indicating that the transfer count upper limit value of the small scale transfer count upper limit register is compared with the transfer count of the transfer count management unit to indicate a small scale small data transfer. A small-scale data transfer request priority determination unit that prioritizes the data transfer request that has been validated by the valid bit, and data selected by the data transfer request priority determination unit. A channel priority determination circuit comprising: a transfer request switching unit that switches the small-scale data transfer request selected by the small-scale data transfer priority determination unit with priority over the transfer request.
JP21158791A 1991-07-29 1991-07-29 Channel priority deciding circuit Pending JPH0535640A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21158791A JPH0535640A (en) 1991-07-29 1991-07-29 Channel priority deciding circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21158791A JPH0535640A (en) 1991-07-29 1991-07-29 Channel priority deciding circuit

Publications (1)

Publication Number Publication Date
JPH0535640A true JPH0535640A (en) 1993-02-12

Family

ID=16608237

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21158791A Pending JPH0535640A (en) 1991-07-29 1991-07-29 Channel priority deciding circuit

Country Status (1)

Country Link
JP (1) JPH0535640A (en)

Similar Documents

Publication Publication Date Title
US6182177B1 (en) Method and apparatus for maintaining one or more queues of elements such as commands using one or more token queues
US7162556B2 (en) Matrix type bus connection system and power reduction method therefor
US6618780B1 (en) Method and apparatus for controlling interrupt priority resolution
US6581119B1 (en) Interrupt controller and a microcomputer incorporating this controller
JP2002073527A (en) Dma controller
JP5056668B2 (en) Data transfer apparatus and data transfer method
US7185122B2 (en) Device and method for controlling data transfer
JPH08235092A (en) Data transfer controller
JPH0535640A (en) Channel priority deciding circuit
JP2005258509A (en) Storage device
US6920513B2 (en) Bus management techniques
US10540305B2 (en) Semiconductor device
JPH05189349A (en) Channel priority discriminating circuit
US20090276553A1 (en) Controller, hard disk drive and control method
JPH07325779A (en) Input/output controller
JP2001222382A (en) Disk device
JPH03158952A (en) Dma controller and information processing system
JPH08249269A (en) Method and device for controlling dma transfer
JP3233073B2 (en) Disk access method
JPS59172030A (en) Data channel control system
JPH0736806A (en) Dma system
JP2847863B2 (en) Microprocessor interrupt control method
JPH0736820A (en) I/o controller
WO2023081491A1 (en) System and method for enhancing flash channel utilization
JPH0644193A (en) I/o register access system