JPH0432952A - Interruption controller - Google Patents

Interruption controller

Info

Publication number
JPH0432952A
JPH0432952A JP13138790A JP13138790A JPH0432952A JP H0432952 A JPH0432952 A JP H0432952A JP 13138790 A JP13138790 A JP 13138790A JP 13138790 A JP13138790 A JP 13138790A JP H0432952 A JPH0432952 A JP H0432952A
Authority
JP
Japan
Prior art keywords
processor
instructions
processing
interrupt
instruction
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
JP13138790A
Other languages
Japanese (ja)
Inventor
Masayoshi Ono
大野 真義
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP13138790A priority Critical patent/JPH0432952A/en
Publication of JPH0432952A publication Critical patent/JPH0432952A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To evade the frequent interruption of the operation of a processor by providing an interruption mask means, and monitoring the number of instruction which are altered every time an interruption signal is accepted and outputting an interruption signal to the processor when the number of instructions reaches a specific number. CONSTITUTION:An process informing means 20 provided to the processor 1 informs a processor 3 of a group of instructions required to complete a process and the number of the instructions in advance. The instruction buffer means 21 of the processor 3 is stored with the group of instructions. The interruption mask means 22 monitors the number of instructions which are subtracted every time, for example, the group of instructions is executed and outputs the interruption signal 104 to the processor 1 only when the number of the instructions becomes, for example, 0. Therefore, no interruption to the processor 1 is initiated until the group of the instructions is all executed. Consequently, the state wherein the processing of the processor 1 is interrupted by frequent interruption is reduced.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、各種の処理を実行する処理装置からプロセッ
サに向けてなされる割込みの制限を行なう割込み制御装
置に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to an interrupt control device that limits interrupts issued to a processor from a processing device that executes various types of processing.

(従来の技術) 情報処理のシステムは、システムの総括的な制御管理を
行なうプロセッサや、キーボード及びデイスプレィ、さ
らには各種の処理装置、即ちディスク装置やプリンタ等
から構成される場合が一般的である。
(Prior Art) Information processing systems generally consist of a processor that performs overall control and management of the system, a keyboard and display, and various processing devices such as disk devices and printers. .

これらの各種処理装置は、プロセッサからの命令を受入
れ、この命令に従った動作を実行することになる。また
、この命令に従った動作が終了した場合には、その旨を
プロセッサに割込みをかけて通知する0通常、命令の転
送及び割込みの発生は、情報伝送路をその都度占有して
実行され、さらに、ある処理が複数の命令の実行により
完結する場合には、命令の転送、割込みといった動作が
何度か繰返されることになる。計算機システムの内、こ
のような割込みの制御に係る構成を、ここでは割込み制
御装置と呼ぶことにする。
These various processing devices accept instructions from the processor and execute operations according to these instructions. Also, when the operation according to this instruction is completed, an interrupt is sent to the processor to notify the processor of this fact.Normally, the transfer of the instruction and the generation of the interrupt are executed by occupying the information transmission path each time. Furthermore, if a certain process is completed by executing a plurality of instructions, operations such as instruction transfer and interrupts will be repeated several times. The configuration of a computer system that controls such interrupts is herein referred to as an interrupt control device.

第2図に、従来の割込み制御装置の説明図を示す。FIG. 2 shows an explanatory diagram of a conventional interrupt control device.

図において、プロセッサ1には、情報伝送路(パスライ
ン)2及び伝送路2a、2bを・介して処理装置3が接
続されている。
In the figure, a processing device 3 is connected to a processor 1 via an information transmission line (pass line) 2 and transmission lines 2a and 2b.

プロセッサ1は、処理装置3の制御管理を行なうもので
ある。情報伝送路2及び伝送路2a。
The processor 1 controls and manages the processing device 3. Information transmission path 2 and transmission path 2a.

2bは、各種制御情報やデータ等を伝送する信号線であ
る。処理装置3は、プロセッサ1の制御により所定の処
理、例えばディスク装置の場合には書込み及び読出しを
実行するものである。
2b is a signal line that transmits various control information, data, and the like. The processing device 3 executes predetermined processing under the control of the processor 1, such as writing and reading in the case of a disk device.

処理装置3には、この処理装置3の動作制御を行なう装
置制御部5と、装置制御部5の制御により各種処理を実
行する処理機構6と、プロセッサ1への割込み発生の制
御を行なう割込マスク手段7が設けられている。割込み
マスク手段7には、フリップフロップ8とアンドゲート
9が設けられている。プロセッサ1と処理装置3は、そ
れぞれ伝送路2a、2bを介して情報伝送路2に接続さ
れている。
The processing device 3 includes a device control section 5 that controls the operation of the processing device 3, a processing mechanism 6 that executes various processes under the control of the device control section 5, and an interrupt control section that controls the generation of interrupts to the processor 1. Mask means 7 are provided. The interrupt masking means 7 is provided with a flip-flop 8 and an AND gate 9. The processor 1 and the processing device 3 are connected to the information transmission path 2 via transmission paths 2a and 2b, respectively.

処理装置3において、装置制御部5からは、処理機構6
に向けて処理制御信号101が、割込みマスク手段7に
向けて割込み制御信号102が出力されている。処理機
構6からは、割込みマスク手段7のフリップフロップ8
のセット(S)端子に向けて割込み信号103が出力さ
れる。また、フリップフロップ8の出力(Q)端子の出
力はアンドゲート9の一方の入力端子に入力され、さら
にアンドゲート9の出力端子から情報伝送路2に向けて
割込み信号104が出力される。なお、この割込み信号
104は、実際には伝送路2bを介して情報伝送路2に
出力される。フリップフロップ8のリセット(R)端子
及びアンドゲート9の他方の入力端子には、それぞれマ
スク制御信号102に基づいた、リセット信号RST及
びマスク信号MSが入力される。装置制御部5と情報伝
送路2の間では制御信号105が伝送される。この制御
信号105は、実際には伝送路2bを介して伝送される
。また、伝送N2bと処理機構6との間は、各種データ
を伝送するデータ線106が設けられている。
In the processing device 3, the device control unit 5 controls the processing mechanism 6.
A processing control signal 101 is outputted to the interrupt masking means 7, and an interrupt control signal 102 is outputted to the interrupt masking means 7. From the processing mechanism 6, the flip-flop 8 of the interrupt masking means 7
An interrupt signal 103 is output to the set (S) terminal of. Further, the output of the output (Q) terminal of the flip-flop 8 is inputted to one input terminal of an AND gate 9, and furthermore, an interrupt signal 104 is outputted from the output terminal of the AND gate 9 toward the information transmission path 2. Note that this interrupt signal 104 is actually output to the information transmission line 2 via the transmission line 2b. A reset signal RST and a mask signal MS based on the mask control signal 102 are input to the reset (R) terminal of the flip-flop 8 and the other input terminal of the AND gate 9, respectively. A control signal 105 is transmitted between the device control section 5 and the information transmission path 2. This control signal 105 is actually transmitted via the transmission line 2b. Further, a data line 106 for transmitting various data is provided between the transmission N2b and the processing mechanism 6.

処理制御信号101は、装置制御部5が処理機構6を制
御するための各種制御情報からなるもので、例えば各種
の命令コードやパラメータ等からなるものである。割込
み制御信号102は、フリップフロップ8をリセットす
るためのリセット信号RSTや、プロセッサ1が割込み
を受付けられない状態にある場合に割込み信号の出力を
制限(マスク)するためのマスク信号MS等からなる信
号である0割込み信号103は、処理機構6が処理制御
信号101に基づいた命令実行を行なった場合、その終
了をプロセッサlに通知す“るための信号である。この
信号は、フリップフロップ8に保持され、さらにアンド
ゲート9に出力される。割込み信号104は、マスク信
号MSが無効(ハイレベル)の場合にアンドゲート9か
ら出力される割込み信号103に対応する信号である。
The processing control signal 101 consists of various control information for the device control section 5 to control the processing mechanism 6, and includes, for example, various instruction codes and parameters. The interrupt control signal 102 includes a reset signal RST for resetting the flip-flop 8, a mask signal MS for limiting (masking) the output of an interrupt signal when the processor 1 is in a state where it cannot accept an interrupt, and the like. The 0 interrupt signal 103, which is a signal, is a signal for notifying the processor l of the completion when the processing mechanism 6 executes an instruction based on the processing control signal 101. The interrupt signal 104 is held at the AND gate 9 and is output to the AND gate 9. The interrupt signal 104 corresponds to the interrupt signal 103 output from the AND gate 9 when the mask signal MS is invalid (high level).

ここで、処理装置3がディスク装置である場合を例に、
第3図を参照しながら各部の動作説明を行なう。
Here, taking the case where the processing device 3 is a disk device as an example,
The operation of each part will be explained with reference to FIG.

第3図は、従来の動作説明図である。FIG. 3 is an explanatory diagram of the conventional operation.

なお、プロセッサ1は割込みを随時受付けられる状態で
あるものとする。従って装置制御部5は、プロセッサ1
の制御により予めマスク信号MSの無効状態のセット及
びリセット信号R3Tによるフリップフロップ8のリセ
ットを行なう割込み制御信号102を出力したものとす
る。
It is assumed that the processor 1 is in a state where it can accept interrupts at any time. Therefore, the device control unit 5
It is assumed that an interrupt control signal 102 for setting the mask signal MS to an invalid state and resetting the flip-flop 8 by the reset signal R3T is outputted in advance under the control of .

さて、プロセッサ1に処理装置3を用いた処理を実行す
る処理要求(例えばディスク装置の読出し処理)が発生
すると、プロセッサ1は処理装置3に向けて一群の命令
を出力することになる。
Now, when a processing request for executing processing using the processing device 3 is issued to the processor 1 (for example, read processing of a disk device), the processor 1 outputs a group of instructions to the processing device 3.

この場合のプロセッサ1は、まず初めに処理装置3に向
けて、読出そうとするファイルが処理装置3内の記憶媒
体上に存在するか否か及び存在した場合その格納位置(
物理領域)を検索する検索命令(シーク命令)を出す。
In this case, the processor 1 first asks the processing device 3 whether or not the file to be read exists on the storage medium in the processing device 3, and if so, its storage location (
Issue a search command (seek command) to search the physical area).

この命令の実行が完了するとプロセッサ1は、このシー
ク命令の結果把握された物理領域を通知させる物理領域
通知命令を出す。次に、この通知された物理領域の続出
を指示する読出し命令を出す。そしてこの読出したファ
イルの内容をプロセッサ1に通知させるファイル内容通
知命令を出す等の処理を順次行なうものとする。
When the execution of this instruction is completed, the processor 1 issues a physical area notification instruction to notify the physical area grasped as a result of this seek instruction. Next, a read command is issued to instruct successive access to the notified physical area. Then, processing such as issuing a file content notification command to notify the processor 1 of the contents of the read file is sequentially performed.

これらの命令は制御信号105として装置制御部5に通
知される(ステップSl)。通知を受けた装置制御部5
は制御信号を解析して得た各種命令を処理制御信号10
1として処理機構6に通知する。処理機構6は、処理制
御信号101の示す各種命令に対応する処理を実行する
(ステップS2)。そして処理機構6は処理が完了する
と割込み信号103を出力する(ステップS3)。この
割込み信号103により出力端子Qの出力がハイレベル
になりアンドゲートに入力する。アンドゲート9では、
マスク信号MSが無効状態、即ちハイレベルのために割
込み信号104が出力されるこの割込み信号104は、
情報伝送路2を介してプロセッサ1に供給される。プロ
セッサlではこの割込みを受付けると(ステップS4)
、割込み理由を解析する等の割込み処理を実行し、この
解析が完了するとフリップフロップ8をリセットするた
めの割込み制御信号102を発生させるため制御信号等
の出力を実行する(ステップS5)。そして一群の命令
の内の次の命令(命令2)の出力を行なう(ステップS
6)。以後同様に、ステップS7からステップSllが
実行され、一群の命令の内の最後の命令(命令n)が処
理されると(ステップ512) ステップS13〜ステ
ツプS15が実行され、プロセッサ1では実行すべき命
令が無くなったことを把握して処理を終了する。
These commands are notified to the device control unit 5 as a control signal 105 (step Sl). Device control unit 5 that received the notification
processes various commands obtained by analyzing the control signal 10
1 and is notified to the processing mechanism 6. The processing mechanism 6 executes processing corresponding to various commands indicated by the processing control signal 101 (step S2). When the processing is completed, the processing mechanism 6 outputs an interrupt signal 103 (step S3). This interrupt signal 103 causes the output of the output terminal Q to go high and is input to the AND gate. In ANDGATE 9,
The interrupt signal 104 is output because the mask signal MS is in an invalid state, that is, at a high level.
The information is supplied to the processor 1 via the information transmission path 2. When processor l accepts this interrupt (step S4)
, executes interrupt processing such as analyzing the reason for the interrupt, and when this analysis is completed, outputs a control signal etc. to generate an interrupt control signal 102 for resetting the flip-flop 8 (step S5). Then, the next instruction (instruction 2) in the group of instructions is output (step S
6). Thereafter, steps S7 to Sll are similarly executed, and when the last instruction (instruction n) of the group of instructions is processed (step 512), steps S13 to S15 are executed, and the processor 1 executes the instructions to be executed. It recognizes that there are no more commands and terminates the process.

(発明が解決しようとする課題) さて、以上の説明のように、従来の処理装置3は、一群
の命令を構成する各命令が実行される度に、割込みを受
付けた後、次に実行すべき命令を通知するといった処理
が繰返されることになる。
(Problem to be Solved by the Invention) As described above, the conventional processing device 3 accepts an interrupt each time each instruction constituting a group of instructions is executed, and then executes the next instruction. The process of notifying the command to be executed will be repeated.

このため、プロセッサ1は、処理装置3以外の他の処理
を実行していた場合には、その処理が頻繁に中断される
ことになり、プロセッサ1の稼動効率の低下を招いてい
た。また、処理装置3においても1つの命令を実行する
たびにプロセッサ1への割込みを行なって割込み理由の
解析を実行させるため、速やかに新たな命令の実行がで
き無いといった問題が生じていた。
Therefore, when the processor 1 is executing a process other than the processing device 3, the process is frequently interrupted, resulting in a decrease in the operating efficiency of the processor 1. Further, the processing device 3 also interrupts the processor 1 every time it executes one instruction and causes the processor 1 to analyze the reason for the interrupt, which causes the problem that a new instruction cannot be executed promptly.

本発明は以上の点に着目してなされたもので、プロセッ
サの動作が頻繁に中断するといった事態を回避し、さら
には処理装置が速やかに一群の命令の実行を完了するこ
とのできる割込み制御装置を提供することを目的とする
ものである。
The present invention has been made with attention to the above points, and is an interrupt control device that avoids situations where the operation of a processor is frequently interrupted, and further allows a processing device to quickly complete execution of a group of instructions. The purpose is to provide the following.

(課題を解決するための手段) 本発明の割込み制御装置は、プロセッサと、前記プロセ
ッサに情報伝送路を介して接続され、前記プロセッサの
制御により所定の処理を実行する処理装置とを備えたも
のにおいて、前記プロセッサは、前記処理装置に対して
前記所定の処理を実行するための一群の命令と命令数を
通知する処理通知手段を備え、前記処理装置には、前記
プロセッサから通知された前記一群の命令を蓄積する命
令バッファ手段と、前記命令を前E命令バッファ手段か
ら読出して実行する処理機構と、前記処理機構が1つの
命令を実行する度に出力する割込み信号を受入れる割込
みマスク手段が設けられ、前記割込みマスク手段は、前
記割込み信号を受入れる度に変更される前記命令数を監
視して、当該命令数が所定数になったとき前記割込み信
号を前記プロセッサに出力するものである。
(Means for Solving the Problems) An interrupt control device of the present invention includes a processor and a processing device that is connected to the processor via an information transmission path and executes predetermined processing under the control of the processor. In the processor, the processor includes processing notification means for notifying the processing device of a group of instructions and the number of instructions for executing the predetermined processing, and the processing device is configured to receive the group of instructions notified from the processor. instruction buffer means for accumulating instructions, a processing mechanism for reading and executing the instructions from the previous E-instruction buffer means, and interrupt masking means for accepting an interrupt signal outputted each time the processing mechanism executes one instruction. The interrupt masking means monitors the number of instructions, which is changed every time the interrupt signal is accepted, and outputs the interrupt signal to the processor when the number of instructions reaches a predetermined number.

(作用) この装置は、プロセッサに設けられた処理通知手段によ
り、処理を完結させるために必要な一群の命令と命令数
を予め処理装置に通知する。処理装置の命令バッファ手
段21は、一群の命令の格納を行ない。一方、割込みマ
スク手段は、例えば一群の命令の実行の度に減算される
命令数を監視し、この命令数が例えばOになった場合の
み割込み信号をプロセッサに出力する。これにより、一
群の命令の各命令が完了する度に処理機構から出力され
る割込み信号をプロセッサに出力する事態を減少させる
(Operation) This device notifies the processing device in advance of a group of commands and the number of commands required to complete the processing by means of a processing notification means provided in the processor. The instruction buffer means 21 of the processing device stores a group of instructions. On the other hand, the interrupt masking means monitors the number of instructions subtracted each time a group of instructions is executed, and outputs an interrupt signal to the processor only when the number of instructions becomes O, for example. This reduces the situation where an interrupt signal is output from the processing mechanism to the processor each time each instruction of a group of instructions is completed.

(実施例) 第1図に、本発明の割込み制御装置の説明図を示す。(Example) FIG. 1 shows an explanatory diagram of an interrupt control device of the present invention.

図において、プロセッサ1には、情報伝送路(パスライ
ン)2及び伝送路2a、2bを介して処理装置3が接続
されている。
In the figure, a processor 1 is connected to a processing device 3 via an information transmission line (path line) 2 and transmission lines 2a and 2b.

プロセッサ1は、処理装置3の制御管理を行なうもので
ある。情報伝送路2は、各種制御情報やデータ等を伝送
する信号線である。処理装置3は、プロセッサ1の制御
により所定の処理、例えばディスク装置の場合には書込
み及び読出しを実行するものである。
The processor 1 controls and manages the processing device 3. The information transmission path 2 is a signal line that transmits various control information, data, and the like. The processing device 3 executes predetermined processing under the control of the processor 1, such as writing and reading in the case of a disk device.

プロセッサ1には、処理装置3がある処理を完結するの
に必要な一群の命令と、命令数を通知する処理通知手段
20が設けられている。
The processor 1 is provided with a process notification means 20 that notifies the processing device 3 of a group of instructions and the number of instructions necessary for completing a certain process.

処理装置3には、この処理装置3の動作制御を行なう装
置制御部5と、装置制御部5の制御により各種処理を実
行する処理機構6と、プロセッサ1から通知される一群
の命令を蓄積し、順次処理機構6へ出力する命令バッフ
ァ手段21と、プロセッサ1への割込み発生の制御を行
なう割込みマスク手段22が設けられている。
The processing device 3 stores a device control section 5 that controls the operation of the processing device 3, a processing mechanism 6 that executes various processes under the control of the device control section 5, and a group of instructions notified from the processor 1. , an instruction buffer means 21 for outputting to the sequential processing mechanism 6, and an interrupt masking means 22 for controlling the generation of interrupts to the processor 1.

命令バッファ手段21にはバッファメモリ31とバッフ
ァ制御部32が設けられている。バッファメモリ31は
、プロセッサlから通知される一群の命令を個別に格納
するFIFO形式のRAM等からなるものである。バッ
ファ制御部32は、メモリ制御線MCを介してバッファ
メモリ31の書込み及び読出しの制御を行なうものであ
る。
The instruction buffer means 21 is provided with a buffer memory 31 and a buffer control section 32. The buffer memory 31 is composed of a FIFO-format RAM or the like that individually stores a group of instructions notified from the processor 1. The buffer control unit 32 controls writing and reading of the buffer memory 31 via the memory control line MC.

割込みマスク手段22には、フリップフロップ8とアン
ドゲート9,35、そして命令数カウンタ36が設けら
れている。命令数カウンタ36は、プロセッサ1から通
知された命令数を格納する記憶装置からなるものである
The interrupt masking means 22 is provided with a flip-flop 8, AND gates 9 and 35, and an instruction number counter 36. The instruction number counter 36 is made up of a storage device that stores the number of instructions notified from the processor 1.

処理装置3において、装置制御部5からは、命令バッフ
ァ手段21のバッファ制御部32に向けて処理制御信号
101が、割込みマスク手段22に向けて割込み制御信
号102が出力されている。
In the processing device 3, the device control section 5 outputs a processing control signal 101 to the buffer control section 32 of the instruction buffer means 21, and an interrupt control signal 102 to the interrupt masking means 22.

バッファ制御部32と処理機構6との間には、処理制御
信号101aが伝送されている。またバッファメモリ3
1から処理機構6に向けて、命令信号200が伝送され
ている。処理機構6からバッファ制御部32、命令カウ
ンタ36、そしてアンドゲートの一方の入力に向けて、
割込み信号103が出力されている。命令カウンタ36
からアンドゲート35の他方の入力及びバッファ制御部
32にはカウント信号O8が出力されている。アンドゲ
ート35の出力信号はフリップフロップ8のS端子に入
力されいる。フリップフロップ8のQ端子の出力信号は
アンドゲート9の一方の入力端子に入力されいる。アン
ドゲート9の出力端子からは割込み信号104が出力さ
れている。フリップフロップ8のR端子及びアンドゲー
ト9の他方の入力端子には、それぞれマスク制御信号1
02に基づいた、リセット信号RST及びマスク信号M
Sが入力される。
A processing control signal 101a is transmitted between the buffer control unit 32 and the processing mechanism 6. Also, buffer memory 3
A command signal 200 is transmitted from the processor 1 to the processing mechanism 6. From the processing mechanism 6 to the buffer control unit 32, the instruction counter 36, and one input of the AND gate,
An interrupt signal 103 is being output. instruction counter 36
A count signal O8 is outputted from the gate to the other input of the AND gate 35 and the buffer control section 32. The output signal of the AND gate 35 is input to the S terminal of the flip-flop 8. The output signal of the Q terminal of the flip-flop 8 is input to one input terminal of the AND gate 9. An interrupt signal 104 is output from the output terminal of the AND gate 9. The R terminal of the flip-flop 8 and the other input terminal of the AND gate 9 each receive a mask control signal 1.
Reset signal RST and mask signal M based on 02
S is input.

処理制御信号101aは、バッファ制御部32が処理制
御信号101に基づいて処理機構6を制御する信号であ
る。命令信号200は、バッファメモリ31から読出さ
れる命令コードからなるものである。カウント信号O8
は、命令カウンタ36の内容がOになった場合に有効状
態(ハイレベル)になる信号である。また、伝送路2b
とバッファメモリ31、命令カウンタ36との間は、各
種データを伝送するデータ線201が設けられている。
The processing control signal 101a is a signal by which the buffer control unit 32 controls the processing mechanism 6 based on the processing control signal 101. Command signal 200 consists of a command code read from buffer memory 31. Count signal O8
is a signal that becomes valid (high level) when the content of the instruction counter 36 becomes O. In addition, transmission line 2b
A data line 201 for transmitting various data is provided between the buffer memory 31 and the instruction counter 36.

以上の構成の割込み制御装置の動作を、第4図を参照し
ながら説明する。
The operation of the interrupt control device having the above configuration will be explained with reference to FIG.

第4図は、本発明に係る動作説明図である。FIG. 4 is an explanatory diagram of the operation according to the present invention.

なお、プロセッサ1は割込みを随時受付けられる状態で
あるものとする。従って装置制御部5は、プロセッサ1
の制御により予めマスク信号MSの無効状態のセット及
びリセット信号RSTによるフリップフロップ8のリセ
ットを行なう割込み制御信号102を出力したものとす
る。また、バッファメモリ31及び命令カウンタ36も
初期化がなされているものとする。
It is assumed that the processor 1 is in a state where it can accept interrupts at any time. Therefore, the device control unit 5
It is assumed that an interrupt control signal 102 for setting the invalid state of the mask signal MS and resetting the flip-flop 8 by the reset signal RST is outputted in advance under the control of . It is also assumed that the buffer memory 31 and the instruction counter 36 have also been initialized.

さて、プロセッサ1に処理装置3を用いた処理を実行す
る処理要求(例えばディスク装置の読出し処理)が発生
すると、プロセッサ1は処理装置3に向けて一群の命令
を出力することになる。
Now, when a processing request for executing processing using the processing device 3 is issued to the processor 1 (for example, read processing of a disk device), the processor 1 outputs a group of instructions to the processing device 3.

この場合のプロセッサlの処理通知手段20は、装置制
御部5に向けて一群の命令と命令数を通知する旨の制御
信号105を出力する。これにより、データ線201を
介して、命令カウンタ36に命令数が格納され(ステッ
プS1)、バッファメモリ31には一群の命令(n個の
命令)が格納される(ステップ83〜S8)。
In this case, the processing notification means 20 of the processor 1 outputs a control signal 105 to notify the device control unit 5 of a group of instructions and the number of instructions. As a result, the number of instructions is stored in the instruction counter 36 via the data line 201 (step S1), and a group of instructions (n instructions) is stored in the buffer memory 31 (steps 83 to S8).

一方、装置制御部5は、プロセッサ1から通知を受ける
と、処理制御信号101をバッファ制御部32に向けて
出力する。バッファ制御部32は、処理機構6に向けて
処理制御信号101aを出力して処理機構6を起動し、
バッファメモリ31の読出しを行なわせる。この場合、
まず初めに命令1が読出され、処理1が実行される(ス
テップS9)。なおバッファ制御部32は、バッファメ
モリ31の内容が読出されると、バッファメモリ31の
内容をシフトさせる。即ち今迄命令lが格納されていた
領域に命令2を格納し、命令2が格納されていた領域に
命令3を格納する。処理機構6はこの処理1が完了する
と、割込み信号103を出力することになる(ステップ
510)。この割込み信号を受入れた命令カウンタ36
は、命令数の変更(この場合減算)を行ない、その内容
が所定数(この場合“0”)であるか否かを判断し、0
でなければカウント信号O8を無効にして出力する(ス
テップ511)。また、バッファ制御部32は、割込み
信号103が入力した場合、カウント信号O8の状態を
把握し、無効状態の場合には処理制御信号101aを再
び出力しくステップ512)、処理機構6に命令2(処
理2)を実行させる(ステップ513)。
On the other hand, upon receiving the notification from the processor 1, the device control section 5 outputs a processing control signal 101 to the buffer control section 32. The buffer control unit 32 outputs a processing control signal 101a to the processing mechanism 6 to start the processing mechanism 6,
The buffer memory 31 is read out. in this case,
First, instruction 1 is read and process 1 is executed (step S9). Note that the buffer control unit 32 shifts the contents of the buffer memory 31 when the contents of the buffer memory 31 are read. That is, instruction 2 is stored in the area where instruction 1 has been stored up to now, and instruction 3 is stored in the area where instruction 2 has been stored. When processing 1 is completed, processing mechanism 6 outputs interrupt signal 103 (step 510). The instruction counter 36 that accepted this interrupt signal
changes the number of instructions (subtraction in this case), determines whether the content is a predetermined number (“0” in this case), and returns 0.
If not, the count signal O8 is invalidated and output (step 511). Further, when the interrupt signal 103 is input, the buffer control unit 32 grasps the state of the count signal O8, and if it is in an invalid state, outputs the processing control signal 101a again (Step 512), and gives the processing mechanism 6 the command 2 ( Process 2) is executed (step 513).

以後同様に、ステップS14からステップS18までが
実行される。
Thereafter, steps S14 to S18 are similarly executed.

さて、n個の一群の命令が完了して、ステップS18に
おいて終了割込みが発生すると、命令カウンタ36の内
容がOになる。従って、命令カウンタ36はカウント信
号C8を有効に設定して出力する。これにより、アンド
ゲート35の出力端子がハイレベルになり、フリップフ
ロップ8のQ端子がハイレベルになる。従ってアンドゲ
ート9の出力端子からは、割込み信号104が出力され
プロセッサ1に通知される。プロセッサ1は、割込み信
号を受付けると(ステップ520)、処理装置3をアク
セスして実行すべき命令が無くなったこと、即ち一群の
命令が完結したことを把握して処理を終了する。
Now, when a group of n instructions is completed and an end interrupt occurs in step S18, the content of the instruction counter 36 becomes O. Therefore, the instruction counter 36 sets the count signal C8 to valid and outputs it. As a result, the output terminal of the AND gate 35 becomes high level, and the Q terminal of the flip-flop 8 becomes high level. Therefore, an interrupt signal 104 is output from the output terminal of the AND gate 9 and is notified to the processor 1. When the processor 1 receives the interrupt signal (step 520), the processor 1 accesses the processing device 3, recognizes that there are no more instructions to be executed, that is, the group of instructions has been completed, and ends the process.

以上のように、処理機構6からは一群の命令の内、個々
の命令の実行が完了するたび割込み信号103が出力さ
れるが、実行すべき一群の命令が残っている場合には割
込みマスク手段22、即ち命令カウンタ36の出力する
カウント信号C8により割込み信号103をマスクし、
割込み信号104がプロセッサ1に出力されないように
する。
As described above, the processing mechanism 6 outputs the interrupt signal 103 each time the execution of an individual instruction among a group of instructions is completed, but if a group of instructions remains to be executed, the interrupt masking means 22, that is, the interrupt signal 103 is masked by the count signal C8 output from the instruction counter 36,
The interrupt signal 104 is prevented from being output to the processor 1.

本発明は以上の実施例に限定されない。The present invention is not limited to the above embodiments.

実施例では処理装置3をディスク装置を例に、また読出
し処理の場合を例に説明を行なったが、特にディスク装
置の読出し処理に限定されるものでなく、例えばプリン
タの印字処理等の場合にも同様の処理を行なうことがで
きる。また、命令カウンタ36は必ずしも割込みマスク
手段22に設けられる必要はなく、例えばバッファメモ
リ31の所定の領域を命令数の格納に利用し、割込み信
号103の出力されるタイミングでこの命令数を変更さ
せてもよい。
In the embodiment, the processing device 3 has been described using a disk device as an example, and the case of read processing as an example. However, the processing device 3 is not limited to the read processing of a disk device, and may be used, for example, in the case of printing processing of a printer, etc. can perform similar processing. Further, the instruction counter 36 does not necessarily need to be provided in the interrupt masking means 22; for example, a predetermined area of the buffer memory 31 can be used to store the number of instructions, and this number of instructions can be changed at the timing when the interrupt signal 103 is output. It's okay.

(発明の効果) 以上説明の割込み制御装置は、一群の命令と命令数を処
理装置を処理装置が受取り、これら一群の命令の全てを
実行するまでプロセッサへの割込みが発生しないため、
プロセッサは、頻繁に割込みを受は処理が中断するとい
った事態を減少させることができる。このためプロセッ
サの稼動効率が下がる事態を回避することができる。
(Effects of the Invention) The interrupt control device described above receives a group of instructions and the number of instructions from the processing device, and an interrupt to the processor does not occur until all of the instructions in the group are executed.
The processor can reduce the occurrence of interruptions in processing due to frequent interruptions. Therefore, it is possible to avoid a situation where the operating efficiency of the processor decreases.

また、処理装置は1つの命令を実行する度にプロセッサ
から新たな命令の通知を受ける必要が無いため速やかに
一群の命令を完了させることができる。
Furthermore, since the processing device does not need to receive notification of a new instruction from the processor each time it executes one instruction, it can quickly complete a group of instructions.

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

第1図は本発明に係る割込み制御装置の説明図、第2図
は従来の割込み制御装置の説明図、第3図は従来の動作
説明図、第4図は本発明に係る動作説明図である。 l・・・プロセッサ、3・・・処理装置、6・・・処理
機構、20・・・処理通知手段、21・・・命令バ・ソ
ファ手段、22・・・割込みマスク手段。 プロセンサ側 プロセンサ側 4全カランl バシファメモリ 又理機構
FIG. 1 is an explanatory diagram of the interrupt control device according to the present invention, FIG. 2 is an explanatory diagram of the conventional interrupt control device, FIG. 3 is an explanatory diagram of the conventional operation, and FIG. 4 is an explanatory diagram of the operation according to the present invention. be. 1... Processor, 3... Processing device, 6... Processing mechanism, 20... Processing notification means, 21... Instruction bar sofa means, 22... Interrupt masking means. Prosensor side Prosensor side 4 all karan l Bacifer memory and mechanical mechanism

Claims (1)

【特許請求の範囲】 プロセッサと、 前記プロセッサに情報伝送路を介して接続され、前記プ
ロセッサの制御により所定の処理を実行する処理装置と
を備えたものにおいて、 前記プロセッサは、 前記処理装置に対して前記所定の処理を実行するための
一群の命令と命令数を通知する処理通知手段を備え、 前記処理装置には、 前記プロセッサから通知された前記一群の命令を蓄積す
る命令バッファ手段と、 前記命令を前記命令バッファ手段から読出して実行する
処理機構と、 前記処理機構が1つの命令を実行する度に出力する割込
み信号を受入れる割込みマスク手段が設けられ、 前記割込みマスク手段は、 前記割込み信号を受入れる度に変更される前記命令数を
監視して、当該命令数が所定数になったとき前記割込み
信号を前記プロセッサに出力することを特徴とする割込
み制御装置。
[Scope of Claims] A device comprising: a processor; and a processing device that is connected to the processor via an information transmission path and executes a predetermined process under the control of the processor, wherein the processor has the following functions for the processing device: processing notification means for notifying a group of instructions and the number of instructions for executing the predetermined process, the processing device comprising: an instruction buffer means for accumulating the group of instructions notified from the processor; A processing mechanism for reading and executing an instruction from the instruction buffer means; and an interrupt masking means for accepting an interrupt signal outputted each time the processing mechanism executes one instruction; An interrupt control device that monitors the number of instructions, which is changed each time the instruction is accepted, and outputs the interrupt signal to the processor when the number of instructions reaches a predetermined number.
JP13138790A 1990-05-23 1990-05-23 Interruption controller Pending JPH0432952A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13138790A JPH0432952A (en) 1990-05-23 1990-05-23 Interruption controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13138790A JPH0432952A (en) 1990-05-23 1990-05-23 Interruption controller

Publications (1)

Publication Number Publication Date
JPH0432952A true JPH0432952A (en) 1992-02-04

Family

ID=15056771

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13138790A Pending JPH0432952A (en) 1990-05-23 1990-05-23 Interruption controller

Country Status (1)

Country Link
JP (1) JPH0432952A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007037712A (en) * 2005-08-02 2007-02-15 Key Tranding Co Ltd Container

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007037712A (en) * 2005-08-02 2007-02-15 Key Tranding Co Ltd Container

Similar Documents

Publication Publication Date Title
US5388219A (en) Efficient channel and control unit for host computer
US4901232A (en) I/O controller for controlling the sequencing of execution of I/O commands and for permitting modification of I/O controller operation by a host processor
EP0446077B1 (en) A control system for multi-processor system
EP0013740B1 (en) Data processing apparatus having a system reset capability
JPH0432952A (en) Interruption controller
JPH04232559A (en) Method of conversation between processors of system, system for conducting this method and use for dispatching
JPH06324861A (en) System and method for controlling cpu
JPS6148741B2 (en)
JPH03144705A (en) Operation state monitor for programmable controller
JPS63132362A (en) Command operation control system
JPH09218859A (en) Multiprocessor control system
JP2002278753A (en) Data processing system
JPH0418658A (en) Function distributed computer system
JPH0535507A (en) Central processing unit
JPS6111867A (en) Processing method of abnormality in interface control
EP0375900A2 (en) Computer system
JPH0628127A (en) Printer device
JPS63153635A (en) Specification system for data transfer speed
JPH02730B2 (en)
JPH0424733B2 (en)
JPS62229350A (en) Command transmission and control system
JPS62196755A (en) Data processing method
JPH0488456A (en) Channel controller
JPS6160161A (en) Multi-processor system
JPS62212756A (en) Channel control system