JPS59231628A - Interruption control system of channel - Google Patents

Interruption control system of channel

Info

Publication number
JPS59231628A
JPS59231628A JP10546283A JP10546283A JPS59231628A JP S59231628 A JPS59231628 A JP S59231628A JP 10546283 A JP10546283 A JP 10546283A JP 10546283 A JP10546283 A JP 10546283A JP S59231628 A JPS59231628 A JP S59231628A
Authority
JP
Japan
Prior art keywords
channel
read
timer
data
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
JP10546283A
Other languages
Japanese (ja)
Inventor
Naoto Kitazawa
北沢 直人
Toshimitsu Tokumoto
利光 徳元
Eiichi Tohata
戸畑 栄一
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 JP10546283A priority Critical patent/JPS59231628A/en
Publication of JPS59231628A publication Critical patent/JPS59231628A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To eliminate the delay of the processing of each frame when frame intervals are uneven, and reduce the overhead of a host CPU when frames arrive continuously by providing a channel with a timer. CONSTITUTION:The channel 2 is provided with the timer 26 in a communication system wherein the host CPU1 commands the channel 2 to execute a channel program with a read channel command word CCW when data is fetched from a terminal. Namely, the circuit 26 is actuated every time one read CCW is executed, and a program control interruption is sent out of an interruption generation part 25 to the CPU1 for the first time when the circuit 26 enters in a time-out state. Further, when a next read CCW is executed before the circuit 2 enters in the time-out state, timer cancellation is performed. Thus, the circuit 26 is provided to reduce the overhead of the CPU1, speeding up data processing.

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は、端末からのデータを取り込むとき、ホスト計
算機がリード−チャネル・コマンド語よりなるチャネル
・プログラムを用意し、チャネルに対してその実行を指
示し、チャネルがチャネルプログラムを実行して端末か
ら送られてくるデータをバッファ領域に格納するデータ
通信システムにおいて、リードチャネル・コマンド語の
プログラム制御割込みをタイマにより一定時間ディレィ
させた後ホスト計算機にあげるように制御するチャネル
の割込み制御方式に関するものである。
[Detailed Description of the Invention] [Technical Field of the Invention] In the present invention, when importing data from a terminal, a host computer prepares a channel program consisting of read-channel command words and executes the program on the channel. In a data communication system where the channel executes the channel program and stores the data sent from the terminal in the buffer area, the program control interrupt of the read channel command word is delayed for a certain period of time by a timer and then sent to the host computer. This invention relates to a channel interrupt control method that is controlled as described above.

〔従来技術と問題点〕[Conventional technology and problems]

第1図は計′:li、機システムの概要を説明する図、
第2図はチェインされたり−ドCCWの実行を説明する
図である。第1図において、1はホス)CPU(中央処
理装置)、2はチャネル、3−1ないし3−3は端末、
2】はCaWフェッチ部、22はccwWI析部、23
はCCW実行部、24は後処理部、25は割込み発生部
を示す。
Figure 1 is a diagram explaining the outline of the machine system.
FIG. 2 is a diagram illustrating the execution of chained CCW. In FIG. 1, 1 is a host) CPU (central processing unit), 2 is a channel, 3-1 to 3-3 are terminals,
2] is the CaW fetch section, 22 is the ccwWI analysis section, 23
24 shows a CCW execution section, 24 a post-processing section, and 25 an interrupt generation section.

第1図において、端末3−1ないし3−3からチャネル
2を経由してホス)CPUIへデータを取り込む場合、
チャネル2では、CCWフェッチ921がホス)CPU
Iの主記憶(図示せず)からリードCCW (READ
  Channel Command Word;リー
ド・チャネル・コマンド語]をフェッチし、それ管CC
W解析部22が屏析し、CCW実行部23が実行してリ
ード・データを成るバッファ領域に格納する。
In FIG. 1, when importing data from terminals 3-1 to 3-3 to the host CPUUI via channel 2,
In channel 2, the CCW fetch 921 is
Read CCW (READ
Channel Command Word; read channel command word] and send it to the CC
The W analysis section 22 analyzes the read data, and the CCW execution section 23 executes it and stores the read data in the buffer area.

一般に、リードCCWがさす1つのバッファには、高々
1つのフレーム(回線から上がってくるデータの単位]
しか読み込まない。即ち、第2図に示すように、フレー
ムの最終データをリート°すると、次のリードCCWを
フェッチする。このようにリードCCWは、複数のフレ
ームが連続してきたときの処理の効率化のため、チェイ
ンされている。そして、リードCCWがチェインされて
いるとき、チャネルでは、1つのり−ドCCW?5%行
する毎にホストCPUIへ割込みをあげること金せず続
けて端末3−1ないし3−3からのデータをリードして
バッファに格納し、チェインが切れている最後のリード
CCWでホストcpu iヘチャネル自エンド(CE)
やデバイス・エンド(DB)等による終了割込みをあげ
る。後処理部24は、そのCCWがチェインされている
か否かを調べ、チェインされている場合にはCCWCエ
フエッチ1へ制御を移し、最後のリードCOWである場
合には割込み発生部25から終了割込みをホス)CPU
Iへあげさせる。ホス)CPUIでは、それ全契機にデ
ータを処理する。しかし、フレームとフ1ノ−ムとの間
の時間があく場合には、最後のリードccwv実行し終
るのに相当の時間がかかってしまうため、総【のリード
CCWのPCI(Program Control I
nterruption e、プログラム制御割込み]
フラグをオンにすることがある。PCIフラグがオンで
あるときには、1つのり−ドCCWt実行する毎にチャ
ネル2はホストCPUIKPCI割込みをあげる。この
PCI割込みによって、ホストCPUIは、1つのフレ
ームのデータがバッファ領域に格納される毎にそのデー
タを処理し、フレーム間の処理の遅れをなくすことがで
きる。
Generally, one buffer pointed to by the read CCW holds at most one frame (unit of data coming from the line).
It only loads. That is, as shown in FIG. 2, when the final data of the frame is read, the next read CCW is fetched. In this way, the read CCWs are chained in order to improve processing efficiency when a plurality of consecutive frames arrive. Then, when the read CCWs are chained, there is only one read CCW in the channel? It reads the data from terminal 3-1 or 3-3 continuously without sending an interrupt to the host CPU every 5% rows, stores it in the buffer, and then interrupts the host CPU at the last read CCW when the chain is broken. i channel own end (CE)
or device end (DB), etc. The post-processing unit 24 checks whether or not the CCW is chained, and if it is, transfers control to the CCWC Fetch 1, and if it is the last read COW, issues an end interrupt from the interrupt generation unit 25. host) CPU
Give it to I. The CPU (host) processes data at every opportunity. However, if there is a long time between frames and frames, it will take a considerable amount of time to finish executing the last read CCW.
interruption e, program control interrupt]
The flag may be turned on. When the PCI flag is on, channel 2 raises a host CPUIKPCI interrupt every time one CCWt is executed. This PCI interrupt allows the host CPUI to process one frame of data each time it is stored in the buffer area, thereby eliminating processing delays between frames.

このように、チェインされたリードCCWの実行に際し
、ホス)CPUIに対し、最後のリードCCWで終了割
込みをあげるか、1つ1つのリードCCW毎にPCI割
込みをあげるかのいずれかが採られ【いる。PCIフラ
グをオフにする前者の方式は、ホス)CPU1側の負荷
が軽減され、PCIフラグをオンにする後者の方式は、
データを早く処理することができるという夫々の利点が
ある。
In this way, when executing chained read CCWs, either a termination interrupt is raised to the host CPU at the last read CCW, or a PCI interrupt is raised for each read CCW one by one. There is. The former method of turning off the PCI flag reduces the load on the host CPU1 side, while the latter method of turning on the PCI flag reduces the load on the host CPU1 side.
Each has the advantage of being able to process data quickly.

しかし実際には、リードされるデータは、端末において
オペレータが任意に入力するものであるから、フレーム
とフレームとの間隔が一定しないのが普通である。その
ため、まばらにリードされるデータであっても、各フレ
ーム間の遅れをなくし、データを早く処理しようとする
場合には、総てのリードCCWのPCIフラグがオンに
される。
However, in reality, the data to be read is input arbitrarily by an operator at a terminal, so the intervals between frames are usually not constant. Therefore, even if the data is sparsely read, if the delay between each frame is to be eliminated and the data is to be processed quickly, the PCI flags of all read CCWs are turned on.

その結果、ホス)CPUIへの割込み頻度が増大し、ホ
ス)CPUIの負荷が増大する。特に連続して来るデー
タに対しても、PCI割込みによって1つずつ処理する
ことになるので、処理効率も悪くなる。
As a result, the frequency of interruptions to the host) CPUI increases, and the load on the host) CPUI increases. In particular, since data that comes successively is processed one by one using PCI interrupts, processing efficiency also deteriorates.

〔発明の目的〕[Purpose of the invention]

本発明は、上記の考察に基づくものであって、フレーム
の到着頻度に応じて、ホストcPUへの割込み頻度を変
化させ、フレーム間隔がまばらなときは、各フレームの
処理の遅れをなくシ、フレームが連続して到着するとき
は、ホストCPUのオーバーヘッドを減らしたチャネル
の割込み制御方式を提供することを目的とするものであ
る。
The present invention is based on the above considerations, and the present invention changes the frequency of interrupts to the host CPU depending on the frequency of frame arrival, and when the frame intervals are sparse, eliminates the delay in processing each frame. The purpose of this invention is to provide a channel interrupt control method that reduces host CPU overhead when frames arrive successively.

〔発明の構成〕[Structure of the invention]

そのために本発明のチャネルの割込み制御方式は、端末
からのデータ管取り込むとき、ホスト計算機がリード働
チャネル・コマンド語よりなるチャネル會フ”ログラム
を用意し、チャネルに対して上記チャネル・プログラム
の実行を指示し、チャネルがチャネル囃プログラムを実
行して端末から送られてくるデータをバッファ領域に格
納するデータ通信システムにおいて、上記チャネルは、
タイマを具備し、1つのリード・チャネル・コマンド語
を実行する毎に当該リード・チャネル・コマンド語の前
のり−ド・チャネル・コマンド語の実行により起動され
【いるタイマがあるときには当該タイマ全キャンセルす
るとともにプログラム制御割込みフラグがオンであるか
否かを調べ、オンであることを条件にタイマを起動し、
タイマがタイム−アップしたことを条件にホスト計算機
にプログラム制御割込みをあげるように栴成されたこと
を特徴とするものである。
To this end, in the channel interrupt control method of the present invention, when data is imported from a terminal, the host computer prepares a channel program consisting of read operation channel command words, and executes the channel program for the channel. In a data communication system, the channel executes a channel music program and stores data sent from a terminal in a buffer area.
Equipped with a timer, every time one read channel command word is executed, all the timers are canceled if there is a timer that is activated by the execution of the read channel command word before the read channel command word. At the same time, check whether the program control interrupt flag is on or not, and start the timer on the condition that it is on.
This system is characterized in that it is configured to issue a program control interrupt to the host computer on the condition that the timer times up.

〔発明の実施例〕[Embodiments of the invention]

以下、本発明の実施例を図面管参則しつつ説明する。 Embodiments of the present invention will be described below with reference to the drawings.

第3図は本発明の1実施例構成を示す図、第4図はデー
タ処理体様を説明する図、第5図はチャネルにおける処
理の流れの1例を説明する図である。第3図において、
1,2.3−1ないし3−3と21ないし25は第1図
に対応するもの1に示し、26はタイマを示す〇 本発明は、チェインされたリードCCWの総てのPCI
フラグをオンにしておくとともに、1つのリードccw
yc実行する毎にディレィを持ってホス)CPUへ20
1割込み會あげ、そのディレィ期間中に次のり−ドCC
Wt−実行する場合には201割込みをホストCPUへ
あげないように制御するものである。
FIG. 3 is a diagram showing the configuration of one embodiment of the present invention, FIG. 4 is a diagram illustrating a data processing unit, and FIG. 5 is a diagram illustrating an example of the flow of processing in a channel. In Figure 3,
1, 2. 3-1 to 3-3 and 21 to 25 correspond to those shown in FIG.
Keep the flag on and one lead ccw
Each time yc is executed, it is sent to the CPU (host) with a delay of 20
1 interrupt meeting and the next board CC during the delay period.
When executing Wt-, the 201 interrupt is controlled not to be sent to the host CPU.

第3図において、タイマ26が201割込みのディレィ
時間を与えるものであるbチャネル2において、ホス)
CPUIの主記憶(図示せず)からCCWCエフエッチ
1がリードCCWt’フェッチし、それをccwWf析
部22が解析し、CCW実行部23が実行し、後処理部
24でリードCCWがチェインされているか否かを調べ
、チェインされている場合には、再びCCWCエフエッ
チ1に制御を戻し、次のり−ドCCWt−フェッチして
同様の処理全行うが、最後のり−ドCCWである場合に
は、割込み発生部25から、チャネル・エンド(CE 
)、デバイス拳エンドLDE)による終了割込みをホス
)CPUIへあげる。このような処理過程において、従
来、1つのリードCCWを実行才る毎に、割込み発生部
25から直ちに201割込みをホストCPUIへあげる
ようにし曵いたが、本発明では、1つのリードCCWt
−実行する毎にタイマ26′t″起動し、タイマ26が
タイム・アウトした時、はじめて201割込みに@11
込み発生部25からホストCPUIへあげるようにする
。タイマ26がタイム・アウトする前に、次のリードc
cwv実行する場合には、タイマーキャンセルを行う。
In FIG. 3, timer 26 provides a delay time for the 201 interrupt in channel 2 (host).
The CCWC Fetch 1 fetches the read CCWt' from the CPU main memory (not shown), the ccwWf analysis unit 22 analyzes it, the CCW execution unit 23 executes it, and the post-processing unit 24 checks whether the read CCW is chained. If it is chained, control is returned to CCWC Fetch 1, the next load CCWt is fetched, and the same processing is performed, but if it is the last load CCW, an interrupt is sent. From the generator 25, the channel end (CE
), the end interrupt by the device end LDE) is raised to the host) CPUI. In such a processing process, conventionally, every time one read CCW was executed, a 201 interrupt was immediately issued from the interrupt generation unit 25 to the host CPUI, but in the present invention, one read CCWt
- The timer 26't'' is started every time it is executed, and when the timer 26 times out, the 201 interrupt is triggered @11
The error is sent from the error generating unit 25 to the host CPUI. Before timer 26 times out, the next read c
When executing cwv, cancel the timer.

従って、第4回顧に示すように、断続して来るデータに
対しては、その都度、タイマ26のタイム・アウトによ
って201割込みをあげ、ホストePU1によるデータ
処理が行われるが、第4図S)に示すように、連続し【
来るデータに対しては。
Therefore, as shown in the fourth review, when data is received intermittently, a 201 interrupt is generated each time the timer 26 times out, and data processing is performed by the host ePU 1. As shown in [
For incoming data.

タイマが途中ではタイム・アウトすることなくキャンセ
ルされ、データが途切れたときタイム・アウトし、そこ
で初めて201割込みをあげ、ホス)CPtJlによる
データ処理を行う。第4図ら)に示す例では、1回の2
01割込みにより3つのデータがまとめて処理され、ホ
ストC)) U 1にとって、割込み回数が減り、負担
の軽減・を図ることができる。タイマ26は、リードC
CWのPCIフラグヲ詞べ、オンであることを条件に起
動されるものであるから、CCW解析解析部平2CW実
行部23、後処理部24のいずれでPCIフラグを調べ
、その起動を制御してもよいが、その制御管後処理部2
4で行う場合の例を示したのが第5図である。
The timer is canceled without timing out in the middle, and it times out when the data is interrupted, and then a 201 interrupt is raised for the first time, and data processing is performed by the host) CPtJl. In the example shown in Figure 4, etc., one
The three pieces of data are processed together by the 01 interrupt, which reduces the number of interrupts and reduces the burden on the host C)) U1. Timer 26 is read C
Since the CW PCI flag is activated on the condition that it is on, either the CCW analysis unit 2019 CW execution unit 23 or the post-processing unit 24 examines the PCI flag and controls its activation. However, the control pipe post-processing section 2
FIG. 5 shows an example of the case where this is done in step 4.

第5丙において、CCW実行部では、リードCCW金実
行するとともに、そのリードCCWがタイマ設定を要す
るものであるか否かを調べ、タイマ設定を要するもので
ある場合には、タイマ値を設定する。そして後処理部で
は、まず、前のり−、  ドCCWにより起動されてい
てまだタイム・アウトしていない場合には、タイマ・キ
ャンセル処理を行う。次いで、PCIピッ)?fJべ、
オンである場合には、タイマを起動した後、リードCC
Wがチェインされているか否かを調べる。チェインされ
ている場合には、CCWフェッチ部に制御を戻す。しか
し、チェインされていない場合には、タイマ値70クリ
アし、ホストCPUへ終了割込み(CE%DE)kあげ
る。また、タイマがタイム・アップした場合には、ホス
トCPUへ201割込みをあげる。なお、設定されるタ
イマ値は、任意に設定できるようにし、タイマ設定を要
しない場合にはタイマ値を0に設定するように最初のリ
ードccwt−実行するときに、ホストCPUから与え
るようにしてもよい。
In the fifth C, the CCW execution unit executes the read CCW, checks whether or not the read CCW requires timer setting, and if it requires timer setting, sets the timer value. . The post-processing section first performs timer cancellation processing if it has been activated by the previous CCW and has not timed out yet. Then PCI beep)? fJbe,
If it is on, after starting the timer, read CC
Check whether W is chained. If it is chained, control is returned to the CCW fetch unit. However, if it is not chained, the timer value 70 is cleared and an end interrupt (CE%DE) k is sent to the host CPU. Furthermore, when the timer times out, a 201 interrupt is issued to the host CPU. Note that the timer value to be set can be set arbitrarily, and if the timer setting is not required, the timer value should be set to 0. When executing the first read ccwt-, the timer value should be given from the host CPU. Good too.

〔発明の効果〕〔Effect of the invention〕

以上の説明から明らかなように、本発明によれば、ホス
)CPUへの201割込みが減るため、ホス)CPUの
走行ステップ数が減り、iだ、201割込み処理を必要
とする断継データに対し【は、1)CI割込み処理を行
うことができ、データ処理の迅速化を計ることもできる
As is clear from the above explanation, according to the present invention, since the number of 201 interrupts to the host CPU is reduced, the number of running steps of the host CPU is reduced, and the interruption data that requires 201 interrupt processing is reduced. On the other hand, 1) CI interrupt processing can be performed, and data processing can be speeded up.

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

第1図は計算機システムの概要を説明する図、第2図は
チェインされたり−ドCcwの実行を説明する図、第3
図は本発明の1実施例構成を示す図、第4図は、データ
処理の俸禄を説明する図、第5図はチャネルにおける烙
印の流れの1例食説明する図である。 1・・・ホス)CPU、2・・・チャネル、3−1ない
し3−3・・・端末、21・・・ccwフェッチ部、2
2・・・CCW解析部、23・・・ccw実行部、24
・・・後処理部、25・・・割込み発生部、26・・・
タイマ。 特許出願人  富士通株式会社 代理人弁理士  京 谷 四 部 ダ 1 図 5 W z 凹 肯 3 図 )X 4  図
Figure 1 is a diagram explaining the outline of the computer system, Figure 2 is a diagram explaining the execution of chained Ccw, and Figure 3 is a diagram explaining the execution of chained Ccw.
FIG. 4 is a diagram illustrating the configuration of an embodiment of the present invention, FIG. 4 is a diagram illustrating salary for data processing, and FIG. 5 is a diagram illustrating an example of the flow of branding in a channel. 1... host) CPU, 2... channel, 3-1 to 3-3... terminal, 21... ccw fetch unit, 2
2... CCW analysis section, 23... ccw execution section, 24
...Post-processing section, 25... Interrupt generation section, 26...
timer. Patent Applicant: Fujitsu Ltd. Representative Patent Attorney Kyotani Shibeda 1 Figure 5 Wz Kuken 3 Figure) X 4 Figure

Claims (1)

【特許請求の範囲】[Claims] 端末からのデータを取り込むとき、ホスト計算機がリー
ド・チャネル・コマンド語よりなるチャネル・プログラ
ムを用意し、チャネルに対して上記チャネル・プログラ
ムの実行を指示し、チャネルがチャネル・プログラムを
実行して端末から送られてくるデータをバッファ領域に
格納するデータ通信システムにおいて、上記チャネルは
、タイマを具備し、1つのり−ド・チャネル・コマンド
語を実行する毎に当該リードチャネル・コマンド語の前
のり一ド・チャネル・コマンド語の実行により起動され
ているタイマがあるときには当該タイマをキャンセルす
るとともにプログラム制御割込みフラグがオンであるか
否かを調べ、オンであることを条件にタイマを起動し、
タイマがタイム・アップしたことを条件にホスト計算機
にプログラム制御割込みをあげるように構成されたこと
を特徴とするチャネルの割込み制御方式。
When importing data from a terminal, the host computer prepares a channel program consisting of read channel command words, instructs the channel to execute the above channel program, and the channel executes the channel program to read the data from the terminal. In a data communication system in which data sent from a read channel command word is stored in a buffer area, the channel is equipped with a timer, and each time one read channel command word is executed, the data sent from the read channel command word is stored in a buffer area. If there is a timer that has been started by executing a channel command word, cancel that timer, check whether the program control interrupt flag is on, and start the timer on the condition that it is on.
A channel interrupt control method characterized in that the channel interrupt control method is configured to issue a program control interrupt to a host computer on the condition that a timer times up.
JP10546283A 1983-06-13 1983-06-13 Interruption control system of channel Pending JPS59231628A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10546283A JPS59231628A (en) 1983-06-13 1983-06-13 Interruption control system of channel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10546283A JPS59231628A (en) 1983-06-13 1983-06-13 Interruption control system of channel

Publications (1)

Publication Number Publication Date
JPS59231628A true JPS59231628A (en) 1984-12-26

Family

ID=14408244

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10546283A Pending JPS59231628A (en) 1983-06-13 1983-06-13 Interruption control system of channel

Country Status (1)

Country Link
JP (1) JPS59231628A (en)

Similar Documents

Publication Publication Date Title
US4181938A (en) Processor device
JPS59231628A (en) Interruption control system of channel
EP0614148B1 (en) Data processing apparatus
JPH05134960A (en) Local processing system
JPH0573296A (en) Microcomputer
JPH0312768A (en) I/o controller
JPS61166631A (en) Microprogram control processor
JPH01234957A (en) Method and device for controlling dma
JPS63153635A (en) Specification system for data transfer speed
JPS6146532A (en) Microprogram control circuit
JPH0115902B2 (en)
JPS6327942A (en) Message input device
JPH0311848A (en) Communication controller
JPH1165624A (en) Programmable controller
JPH0682348B2 (en) I / O control method
EP0278263A3 (en) Multiple bus dma controller
JPH03246654A (en) Method for controlling data transfer
JPS62126441A (en) Microprogram control system
JPH0431421B2 (en)
JPS61223968A (en) Data controller for multi-microprocessor
JPS63178335A (en) Microprocessor
JPS62190544A (en) Higher link unit for programmable controller
JPH02183844A (en) Control method for decoding signal
JPS61166657A (en) Input and output control system
JPH01193948A (en) System for controlling data transfer