JPS62254257A - Interruption control system for data transfer device - Google Patents

Interruption control system for data transfer device

Info

Publication number
JPS62254257A
JPS62254257A JP9007886A JP9007886A JPS62254257A JP S62254257 A JPS62254257 A JP S62254257A JP 9007886 A JP9007886 A JP 9007886A JP 9007886 A JP9007886 A JP 9007886A JP S62254257 A JPS62254257 A JP S62254257A
Authority
JP
Japan
Prior art keywords
processing
time
processor
interrupt
host processor
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.)
Granted
Application number
JP9007886A
Other languages
Japanese (ja)
Other versions
JPH0560622B2 (en
Inventor
Hiroyuki Kaneda
裕之 金田
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 JP9007886A priority Critical patent/JPS62254257A/en
Publication of JPS62254257A publication Critical patent/JPS62254257A/en
Publication of JPH0560622B2 publication Critical patent/JPH0560622B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/24Handling requests for interconnection or transfer for access to input/output bus using interrupt

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multi Processors (AREA)
  • Bus Control (AREA)
  • Information Transfer Systems (AREA)

Abstract

PURPOSE:To allow an interruption given by an other processor in a non-time- constrained part by dividing the processor handling into a time-constrained part and a non-time-constrained part in response to the constraint of the processing time. CONSTITUTION:A time-constrained part must finish the processing within fixed period of time on the protocol between a host processor 20 and a data transfer device 10. While a non-time-constrained part performs the processing that has no time limit. When an interruption is received from the processor 20, a processor 11 starts processing by means of an address received from a processing address register 141 and at the same time stores the address which is reset to a register 142 or 143 when the job is through. If an interruption is received from another processor while the non-time-constrained part is working, the processing of said non-time-constrained part is interrupted and the processing of the time-constrained part is carried out. When this processing is over, the interrupted processing of the non-time-constrained part is restarted.

Description

【発明の詳細な説明】 〔概 要〕 複数のホストプロセッサに接続されたデータ転送装置に
おいて、このデータ転送装置はホストプロセッサから依
頼されたプロセスの処理をその処理時間の制約により時
間制約部と時間非制約部とに区分し、この時間非制約部
においては他のプロセッサからの割込みを許容するよう
にして、ホストプロセッサの待ち時間を短縮するように
した。
[Detailed Description of the Invention] [Summary] In a data transfer device connected to a plurality of host processors, this data transfer device performs processing of a process requested by the host processors based on the processing time constraint. In this time-unrestricted part, interrupts from other processors are allowed to reduce the waiting time of the host processor.

〔産業上の利用分野〕[Industrial application field]

二つ以上のプロセッサシステム間で、相互のプロセスを
交換・処理することは、資源の有効利用という立場から
よく行われる。この時、プロセッサ間でのデータの授受
の方法には様々のものがあるが、本発明は互いに独立・
非同期で動作する複数のホストプロセッサのそれぞれの
チャンネル装置間に接続され、ホストプロセッサからの
処理依願の割込みにより起動されてこれらプロセッサ間
のデータ転送を行うようにしたデータ転送装置に関する
Exchanging and processing mutual processes between two or more processor systems is often done from the standpoint of effective resource utilization. At this time, there are various methods for transmitting and receiving data between processors, but the present invention is independent and
The present invention relates to a data transfer device that is connected between respective channel devices of a plurality of host processors that operate asynchronously and is activated by a processing request interrupt from the host processor to transfer data between these processors.

〔従来の技術〕[Conventional technology]

このようなデータ転送装置は2つ以上のホストプロセッ
サに同時に親和性を持っているため、本来独立、非同期
な複数のプロセッサシステム間にあって、互いを邪魔し
てしまう様な動作をすることがある。
Since such a data transfer device has affinity for two or more host processors at the same time, operations between a plurality of originally independent and asynchronous processor systems may interfere with each other.

例えば、2つの情報処理装置に接続されている場合、一
方のプロセッサからの処理依頼を実行中に他方のプロセ
ッサにおいて異常状態が検出されると、異常を検出した
システムは通常、まず白側システムに接続されている全
ての装置に対して、処理の中止、初期化を促すがこれに
よってデータ転送装置も初期化されてしまい、実行中の
一方のプロセッサから依願された処理が中断されたり、
無効になってしまう場合が生ずる。
For example, when connected to two information processing devices, if an abnormal state is detected in the other processor while executing a processing request from one processor, the system that detected the abnormality will normally first contact the white system. This prompts all connected devices to stop processing and initialize, but this also initializes the data transfer device, causing the processing requested by one of the processors to be interrupted.
There may be cases where it becomes invalid.

第2図は、本発明の割込制御方式が適用されるデータ転
送装置100と2つのホストプロセッサ110.120
との接続関係を示すもので、データ転送装置100はホ
ストプロセッサ110および120のワークステーショ
ンチャネル111.121に接続され、さらに、芋蔓式
にイメージリーダ130、制御コンソール131、プリ
ンタ132などの他のワークステーションが接続されて
いてもよい。このデータ転送装置100は、両方のホス
トプロセッサからワークステーションとして見えること
になる。
FIG. 2 shows a data transfer device 100 and two host processors 110 and 120 to which the interrupt control method of the present invention is applied.
The data transfer device 100 is connected to workstation channels 111 and 121 of the host processors 110 and 120, and is also connected to other workstations such as an image reader 130, a control console 131, a printer 132, etc. may be connected. This data transfer device 100 will appear as a workstation to both host processors.

ワークステーションチャネルからのワークステーション
の制御は通常次のように行なわれる。
Controlling a workstation from a workstation channel typically occurs as follows.

ホストプロセッサはワークステーションチャネルを介し
てコマンドと必要であればデータをデータ転送装置など
のワークステーションに与え、これに対しワークステー
ションは、自分の状態を示す情報あるいは要求されたデ
ータを一定のプロトコルに従ってワークステーションチ
ャネルを介してホストプロセッサに返送するが、もし、
このプロトコルが守られない場合にはホストプロセッサ
は何等かの異常が発生したと認識する。
A host processor provides commands and, if necessary, data to a workstation, such as a data transfer device, through a workstation channel, and the workstations transmit information indicating their status or requested data according to a protocol. back to the host processor via the workstation channel, but if
If this protocol is not followed, the host processor recognizes that some kind of abnormality has occurred.

第3図はライトコマンドの起動からシーケンスの終結ま
でを時系列に従って示したものであり、その動作をこの
図に付した符号に対応させて説明すると、 ■ ワークステーションチャネルからライトコマンドが
出される。
FIG. 3 shows the sequence from the start of the write command to the end of the sequence in chronological order, and the operations will be explained in association with the symbols given in this figure: (1) A write command is issued from the workstation channel.

■ このコマンドはワークステーションへ割込を発生す
る。
■ This command generates an interrupt to the workstation.

■ ワークステーションはライトコマンド起動を認識し
、コマンドのアクノレツジを返送する。
■ The workstation recognizes the write command activation and sends back an acknowledgment of the command.

■ ホストプロセッサはワークステーションがデータの
受付準備完了を提示するまでポーリングを繰り返す。
■ The host processor polls until the workstation indicates that it is ready to accept data.

■ ワークステーションは、データの受付準備が完了す
ると、ホストプロセッサからのボーリングに対して準備
完了信号を出す。
■ When the workstation is ready to accept data, it issues a ready signal for boring from the host processor.

■ ホストプロセッサはこの準備完了信号を認識すると
、準備完了認識信号をワークステーションに送出し、こ
の信号はワークステーションへ割込を発生する。
■ When the host processor recognizes this ready signal, it sends a ready recognition signal to the workstation, which generates an interrupt to the workstation.

■ ワークステーションは準備完了認識信号のアクノレ
ツジを返送する。
■ The workstation returns an acknowledgment of the ready recognition signal.

■ データがワークステーションチャネルを経てホスト
プロセッサから転送される。
■ Data is transferred from the host processor through a workstation channel.

■ ホストプロセッサからデータが転送されたことによ
る割込を受けて、ワークステーションはデータのアクノ
レツジと、転送終了の状態をワークステーションチャネ
ルに通知する。
■ In response to an interrupt caused by data transfer from the host processor, the workstation acknowledges the data and notifies the transfer completion status to the workstation channel.

[相] ワークステーションチャネルはデータの転送が
終了したことを認識すると、終了確認信号を送出する。
[Phase] When the workstation channel recognizes that the data transfer has ended, it sends out a completion confirmation signal.

■ 終了確認信号はワークステーションへ割込を発生す
る。
■ The completion confirmation signal generates an interrupt to the workstation.

@ ワークステーションは終了確認信号のアクノレツジ
を返送する。
@ The workstation returns an acknowledgment of the completion confirmation signal.

以上のように、この例ではワークステーションチャネル
からワークステーションに対して■、■、■および0と
合計4回の割込が発生する。
As described above, in this example, a total of four interrupts (■, ■, ■, and 0) occur from the workstation channel to the workstation.

従来、複数のホストプロセッサに接続される情報処理装
置においては、一つのホストプロセッサから依頼された
処理の実行、すなわち上記の第3図に示したような一連
の処理を終了するまでは他のホストプロセッサからの処
理依願を受付けることができなかった。
Conventionally, in an information processing device connected to multiple host processors, until the execution of a process requested by one host processor, that is, the series of processes shown in FIG. A processing request from the processor could not be accepted.

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

本発明の目的は、上記のデータ転送装置のような従来の
情報処理装置においては、一つのホストプロセッサから
依頼された処理を終了するまでは他のホストプロセッサ
がこの情報処理装置に何かの仕事を依頼しようとしても
、この情報処理装置が空くまで待ち合わせる必要があっ
たが、このような割込制御の無駄を省き、また非同期動
作する複数のホストプロセッサシステム間の不整合を未
然に防ぐことができる新規な割込制御方式を提供するこ
とにある。
An object of the present invention is that in a conventional information processing apparatus such as the data transfer apparatus described above, until the processing requested by one host processor is completed, another host processor does not perform any work on this information processing apparatus. However, it is possible to eliminate wasteful interrupt control and prevent inconsistencies between multiple host processor systems that operate asynchronously. The purpose of this invention is to provide a new interrupt control method that can be used.

〔問題点を解決するための手段〕[Means for solving problems]

第1図は本発明の原理的構成を示すブロック図であって
、データ転送装置10はホストプロセッサ20zおよび
202のそれぞれのワークステーションチャンネル21
i、21zに接続されたシリアルインタフェース121
.122を備え、これらのシリアルインタフェース12
からは他のワークステーション221.222などが更
に芋蔓式に接続されていてもよい。
FIG. 1 is a block diagram showing the basic configuration of the present invention, in which a data transfer device 10 is connected to workstation channels 21 of host processors 20z and 202, respectively.
Serial interface 121 connected to i, 21z
.. 122, these serial interfaces 12
From there, other workstations 221, 222, etc. may be further connected in a cascading manner.

上記のデータ転送装置10のマイクロプロセッサ11か
らのバス13には上記シリアルインタフェース121.
122が接続されるとともに、割込ベクタレジスタ14
、スタックポインタ15、プロセス用スタック16およ
びフラグレジスタ17が接続されるが、これらはマイク
ロプロセッサ11内のランダムアクセスメモリの領域を
分割して構成されてもよいことは明らかであろう。
The bus 13 from the microprocessor 11 of the data transfer device 10 has the serial interface 121.
122 is connected, and the interrupt vector register 14
, a stack pointer 15, a process stack 16 and a flag register 17 are connected, but it will be obvious that these may be constructed by dividing the random access memory area within the microprocessor 11.

この割込ベクタレジスタ14は割込みが発生したときの
処理を行うプログラムの先頭アドレスを収容しておくレ
ジスタであり、この割込ベクタレジスタ内の処理アドレ
スレジスタ141はワークステーションチャネルからの
起動によって発生する割込時にベクトルアドレスを与え
るためのレジスタであり、復帰アドレスレジスタA14
2および復帰アドレスレジスタB141はそれぞれホス
トプロセッサ201および202から依頼されたプロセ
スの処理を終了したときに復帰する復帰アドレスをスト
アするものである。
This interrupt vector register 14 is a register that stores the start address of a program that performs processing when an interrupt occurs, and the processing address register 141 in this interrupt vector register is generated by activation from a workstation channel. This is a register for giving a vector address at the time of an interrupt, and is a return address register A14.
2 and return address register B 141 are for storing return addresses to which the host processors 201 and 202 return when processing requests from the host processors 201 and 202, respectively, are completed.

プロセス用スタック16は、プロセスの処理に必要なデ
ータ、プログラムなどの情報資源を退避するレジスタで
あり、ホストプロセッサ201からのプロセスAおよび
ホストプロセッサ202からのプロセスB用として2組
のスタック161と162とを備えており、割込フラグ
レジスタ17はホストプロセッサ201あるいは202
のどちらからの割込みであるかを示すフラグをス゛ドア
する割込フラグレジスタである。
The process stack 16 is a register that saves information resources such as data and programs necessary for process processing, and there are two sets of stacks 161 and 162 for process A from the host processor 201 and process B from the host processor 202. The interrupt flag register 17 is provided with the host processor 201 or 202.
This is an interrupt flag register that stores a flag indicating which interrupt is coming from.

更に、本発明の実施態様として、一方のホストプロセッ
サから依頼されたプロセスの実行中に一時的に他方のホ
ス1プロセツサから依頼されたプロセスの実行を許可す
ることを示す保留フラグをストアする保留フラグレジス
タ18を設けた。
Furthermore, as an embodiment of the present invention, a suspension flag is stored that indicates that execution of a process requested from one host processor is temporarily permitted while a process requested from one host processor is being executed. A register 18 was provided.

なお、ダイレクトメモリーアクセスを行う場合には、各
プロセッサ20s、20zにそれぞれ対応してダイレク
トメモリーアクセスコントローラ191.192を設け
ることができるが、本発明とは直接関連しないのでその
説明は省略する。
Note that when performing direct memory access, direct memory access controllers 191 and 192 can be provided for each of the processors 20s and 20z, but since they are not directly related to the present invention, their explanation will be omitted.

〔作 用〕[For production]

第3図に示したシーケンスにおけるようなワークステー
ションチャネルからの割込みとその割込みに対するワー
クステーションでの処理を一つの処理単位とすると第4
図aに示すように時間制約部と時間非制約部との組み合
わせで表わされ、上記第3図図示の一連のシーケンスは
第4図すのように複数の処理単位を割込によってそれぞ
れ起動していることになる。
If we consider the interrupt from the workstation channel and the workstation processing for that interrupt as one processing unit, as shown in the sequence shown in Figure 3, the fourth
As shown in Figure a, it is represented by a combination of a time constraint part and a time non-constraint part, and the series of sequences shown in Figure 3 above are each started by interrupting a plurality of processing units as shown in Figure 4. This means that

この第4図aに斜線で示した時間制約部とは、ホストプ
ロセッサ20とデータ転送装置10の間のプロトコル上
一定時間以内に終わらせなければならない処理をする部
分であり、例えばワークステーションチャネルからの割
込みに対しては一定の時間内にワークステーションから
アクルフジを返送しなければならず、もしこのアクルソ
ジが返送されなければワークステーションなどに異常が
発生したものと認識されるようなものであり、時間非制
約部とはこのような処理時間の制約のない処理をする部
分である。
The time constraint section indicated by diagonal lines in FIG. In response to an interrupt, the workstation must return the Akurufuji within a certain period of time, and if the Akurufuji is not returned, it will be recognized that an abnormality has occurred in the workstation, etc. The time-unconstrained section is a section that performs processing without such processing time constraints.

初期状態ではプロセス用スタックAl 61にはホスト
プロセッサ201からプロセスAの処理依鎖があったと
きにその処理を実行するための先頭アドレスが、またプ
ロセス用スタックB162にはホストプロセッサ202
からプロセッサBの処理依願があったときにその処理を
するための先頭アドレスがそれぞれストアされる。
In the initial state, the process stack A 61 contains the start address for executing the process when the process A is dependent on the host processor 201, and the process stack B 162 contains the start address of the host processor 202.
When Processor B receives a processing request from Processor B, the start address for the processing is stored.

いずれかのホストプロセッサ20から割込みがあると、
プロセッサ11は処理アドレスレジスタ141からの処
理先頭アドレスにより処理を開始し、その割込みを行っ
たホストプロセッサを識別して、復帰アドレスレジスタ
14のそのホストプロセッサに対応するいずれかのレジ
スタ141あるいは142にこの割込みによる仕事が終
了したときに復帰するアドレスをストアするとともに、
割込フラグレジスタ17の割込んだプロセッサ側にフラ
グをセットし、さらにスタックポインタ15に割込んだ
プロセスをストアすることによってプロセス用スタック
16をポツプアップしてこのプロセスを実行する。
When there is an interrupt from any host processor 20,
The processor 11 starts processing with the processing start address from the processing address register 141, identifies the host processor that caused the interrupt, and stores this in either register 141 or 142 corresponding to that host processor in the return address register 14. In addition to storing the address to return to when the interrupt work is finished,
A flag is set on the side of the interrupting processor in the interrupt flag register 17, and the interrupting process is stored in the stack pointer 15, thereby popping up the process stack 16 and executing this process.

そして、時間制約部の処理が終了すると復帰アドレスレ
ジスタ14がストアしているアドレスによりプロセッサ
11自身が処理を行う制御部の動作に戻り、他のプロセ
ッサからの割込みの有無あるいは異常をチェックし、こ
れらがなければ再び時間非制約部の処理を行うが他のプ
ロセッサからの割込みがあればそのプロセスの時間制約
部の処理を行う。
When the processing of the time constraint section is completed, the processor 11 returns to the operation of the control section that performs its own processing based on the address stored in the return address register 14, checks for the presence or absence of interrupts from other processors, or detects abnormalities. If there is no interrupt, the non-time-constrained part is processed again, but if there is an interrupt from another processor, the time-constrained part of that process is processed.

もし、時間非制約部の処理の実行中に他のプロセッサか
らの割込みがあると、その処理を中断して割込まれたプ
ロセスの時間制約部の処理を行うので、その処理を行う
だめの先頭アドレスを時間非制約部の処理の開始に先立
って処理アドレスレジスタ141にセットしておく。
If there is an interrupt from another processor while processing a non-time-constrained part, that process will be interrupted and the time-constrained part of the interrupted process will be processed. The address is set in the processing address register 141 prior to starting the processing of the time-unconstrained portion.

もしこのような割込みがあった場合には、時間制約部の
処理が終了すると先に中断した時間非制約部の処理を再
開するが、このときにはこの中断されたプロセスの時間
非制約部の先頭アドレスがプロセス用スタックの対応す
るプロセス側にストアされているので、スタックポイン
タをこのプロセス側に切り換えるだけでこの処理を実行
することができる。
If such an interrupt occurs, once the processing of the time-restricted part is completed, the processing of the previously interrupted time-restricted part will be resumed, but at this time, the start address of the time-restricted part of the interrupted process will be restarted. is stored on the corresponding process side of the process stack, so this process can be executed simply by switching the stack pointer to this process side.

本発明の一つの実施態様として、第4図Cに示すように
、時間制約部と時間非制約部とからなる第4図aのシー
ケンスの時間非制約部中のリセット命令、初期化命令な
ど他のプロセッサの処理に影響を及ぼす命令の前に保留
点Pを予め設けておき、この保留点まで処理が進行した
ときにプロセッサ11が中断中のプロセスの有無をチェ
ックして、このようなプロセスがあればその処理を優先
して行うことにより、中断中のプロセスの処理が無効に
されたりすることがないようにすることができるが、こ
の制御を行うためにこの保留点Pにおいて保留レジスタ
18の対応するプロセス側にフラグをセントするように
する。
As one embodiment of the present invention, as shown in FIG. 4C, a reset instruction, an initialization instruction, etc. in the time-unconstrained part of the sequence shown in FIG. A suspension point P is set in advance before an instruction that affects the processing of the processor 11, and when the processing progresses to this suspension point, the processor 11 checks whether or not there is a suspended process. By giving priority to the process if there is one, it is possible to prevent the process of the suspended process from being invalidated. Set the flag to be sent to the corresponding process.

〔実施例〕〔Example〕

第5図は本発明によるデータ転送装置10の実施例の動
作を示すもので、最上段はプロセッサ11自体が処理を
行う制御部であって、斜線で示した部分は後述の初期状
態であり、枠で示した部分は他のホストプロセッサから
の割込みあるいは異常を検出する期間を示すものである
。中段はプロセッサ201から依頼されたプロセスAの
仕事を処理する動作モード、下段はプロセッサ202か
ら依頼されたプロセスBの仕事を処理する動作モードを
例示したものである。
FIG. 5 shows the operation of the embodiment of the data transfer device 10 according to the present invention, in which the top stage is a control unit that is processed by the processor 11 itself, and the shaded part is the initial state, which will be described later. The boxed portion indicates the period during which interrupts or abnormalities from other host processors are detected. The middle row is an example of an operation mode in which the work of process A requested by the processor 201 is processed, and the lower row is an example of an operation mode in which the work of process B is processed as requested by the processor 202.

この第5図に示した動作を第1図に示した構成を引用し
て説明するが、この第5図にIで示したのはプロセッサ
11がプロセッサ201あるいはプロセッサ20zから
の割込みを待つ初期状態、■は他のホストプロセッサか
らの割込みあるいはシステムの異常をプロセッサ11が
チェックする期間、■は上記の時間制約部、■は同じ(
時間非制約部であり、■、■の添字A、BはプロセスA
The operation shown in FIG. 5 will be explained with reference to the configuration shown in FIG. 1. The initial state indicated by I in FIG. , ■ is the period during which the processor 11 checks for interrupts from other host processors or system abnormalities, ■ is the time constraint part described above, and ■ is the same (
It is a time-free part, and the subscripts A and B of ■ and ■ are process A.
.

Bについての処理であることを示す。Indicates that the processing is for B.

また、この第5図aは、プロセッサ20sからのプロセ
スAの時間非制約部の処理中にプロセッサ202のプロ
セスBからの割込みがあった場合の例を、同図すはプロ
セスAの時間制約部の処理中にプロセッサ202のプロ
セスBからの割込みがあった場合の例を示すもので、横
方向の時間軸は適宜の値であるが、後述する同図Cをふ
くめで互いに同一の値として示しである。
Furthermore, FIG. 5a shows an example in which there is an interrupt from process B of the processor 202 during processing of the non-time constrained section of process A from the processor 20s. This figure shows an example where there is an interrupt from process B of the processor 202 during the processing of . It is.

(1)第5図aに示す初期状altでは、ホストプロセ
ッサ201およびホストプロセッサ202からの処理依
頼に対応するプロセスの開始アドレスをそれぞれホスト
プロセッサ201用のスタック161およびホストプロ
セッサ202用のスタック162の開始アドレス格納領
域にセットしておき、上記制御部の処理を行いながらホ
ストプロセッサ20からの割込みを監視する。
(1) In the initial state alt shown in FIG. 5a, the start addresses of processes corresponding to processing requests from host processor 201 and host processor 202 are set to It is set in the start address storage area, and interrupts from the host processor 20 are monitored while the control section is processing.

(2)ホストプロセッサ201から割込みがあると、第
5図aの■1の期間に、どちらのホストプロセッサから
の割込みであるかをプロセッサ11が識別し、ホストプ
ロセッサ201からの割込みであるから割込ベクタレジ
スタ復帰アドレスレジスタA142にこの割込みによる
仕事の処理を終了したときに復帰するアドレスをセット
し、スタックポインタ15はホストプロセッサ201か
らのプロセスAの割込みであることを示すためにA側に
セットし、プロセスA用のスタックA161をポツプア
ップする。
(2) When there is an interrupt from the host processor 201, the processor 11 identifies which host processor the interrupt is from during the period (1) in FIG. Set the address to return to when processing of work due to this interrupt is completed in the interrupt vector register return address register A142, and set the stack pointer 15 to the A side to indicate that the interrupt is for process A from the host processor 201. Then, pop up the stack A161 for process A.

その終了後の■Aの期間にこのプロセスAの処理を行う
がこの処理は時間制約部の処理である。
Process A is processed during the period ①A after the completion of the process, and this process is performed by the time constraint section.

(3)  この時間制約部I[Aの処理中に第5図すに
示すような他のホストプロセッサ202からのプロセス
Bの割込み要求があってもその割込み要求は保留され、
プロセスAについての処理が続行される。
(3) Even if there is an interrupt request for process B from another host processor 202 as shown in FIG.
Process A continues.

(4)そして時間制約部1[[Aの処理を終了すると割
込ベクタレジスタ14の復帰アドレスレジスタA142
がストアしているアドレスに復帰することにより一旦処
理を中断して制御部■2へ戻り、プロセスA用のスタッ
ク161にこの時間制約部mAに後続する時間非制約部
IVAの先頭アドレスをストアする。 この制御部■2
においては他のホストプロセッサからの割込みの有無あ
るいは異常の有無をチェックする。
(4) Then, the time constraint unit 1 [[When the processing of A is finished, the return address register A142 of the interrupt vector register 14
By returning to the stored address, the process is temporarily interrupted and the process returns to control section 2, which stores the start address of the time-free section IVA following this time-constrained section mA in the stack 161 for process A. . This control part ■2
In this step, the presence or absence of an interrupt from another host processor or the presence or absence of an abnormality is checked.

(5)  これらの割込みあるいは異常がなければ第5
図aに示すように、制御部■1と同様に復帰アドレスを
割込ベクタレジスタ14の復帰アドレスレジスタA14
2にセットするとともに、この処理は時間非制約部の処
理であるから他のホストプロセッサからの割込みを許容
し得るので割込ベクタレジスタ14の処理アドレスレジ
スタ141に他のホストプロセッサから割込みが発生し
たときに開始する処理の先頭アドレスをセットした後、
ホストプロセッサ201に対する時間非制約部の処理I
V A sに復帰する。
(5) If there are no interruptions or abnormalities, the fifth
As shown in FIG.
2, and since this processing is a non-time-restricted process, interrupts from other host processors can be tolerated, so an interrupt from another host processor can be set in the processing address register 141 of the interrupt vector register 14. After setting the start address of the process to start when
Processing I of the non-time-constrained part for the host processor 201
Return to V A s.

この復帰は、プロセスA側のスタック161にストアさ
れている時間非制約部IVAの先頭アドレスをスタック
ポインタ15をA側にしてポツプアップすることにより
実行される。
This return is executed by popping up the start address of the time-independent portion IVA stored in the stack 161 on the process A side with the stack pointer 15 on the A side.

(6)  この時間非制約部IVAの処理中にプロセッ
サ202のプロセスBからの割込みが発生するとその処
理を中断して制御部■3に戻り、プロセスBの時間制約
部II[Bの処理を開始する。
(6) If an interrupt from process B of the processor 202 occurs during the processing of this time-unconstrained part IVA, the process is interrupted, returns to control unit 3, and starts processing of time-constrained part II [B of process B. do.

(7)  この時間制約部IBの処理を終了すると制御
部■4に戻り、中断中の仕事の有無、他のプロセッサか
らの割込みの有無あるいは異常の有無をチェックするが
、プロセスAの時間非制約部の処理IVAが中断してい
るのでこの処理NA1を実行する。
(7) When the processing of this time constraint unit IB is finished, the process returns to control unit 4 and checks whether there is any suspended work, whether there is an interrupt from another processor, or whether there is an abnormality. Since the processing IVA of the section is interrupted, this processing NA1 is executed.

(8)  この処理IVA1が終了すると再び制御部■
5に戻り、上記(7)と同様にしてプロセスBの時間非
制約部IVBの処理を行い、それが終了すると制御部■
6に戻り、プロセッサ20からの割込みがなければ、(
1)で述べたような初期状!Ixを維持して次の割込み
に備える。
(8) When this process IVA1 is finished, the control unit
Returning to step 5, process the non-time constrained part IVB of process B in the same way as in (7) above, and when that is completed, the control part
Returning to step 6, if there is no interrupt from the processor 20, (
Initial situation as mentioned in 1)! Maintain Ix to prepare for the next interrupt.

上記した第5図aのHAの処理中あるいは■2の制御部
の処理中にプロセッサ202のプロセスBからの割込み
があった場合のシーケンスを同図すにより説明するが、
上記(1)乃至(4)までの状態は同一であるので説明
を省略し、(5)以降の処理について説明する。
The sequence when there is an interrupt from the process B of the processor 202 during the processing of the HA shown in FIG.
Since the states (1) to (4) above are the same, their explanation will be omitted, and the processing after (5) will be explained.

(5)′上記の時間制約部I[Aの処理中、あるいは上
記時間非制約部IV A tの処理中に他のホストプロ
セッサ202からの割込み要求があったとすると、第5
図すに示すように、処理中のプロセスA側の処理を一時
中断して割込みをかけた側のプロセスBの時間制約部の
処理I[IB’に移行する。この移行には、割込ベクタ
レジスタ14の処理アドレスレジスタ141にストアさ
れているアドレスが使用される。
(5)' Assuming that there is an interrupt request from another host processor 202 during the processing of the above-mentioned time constraint section I[A or during the processing of the above-mentioned time non-constraint section IV A t, the 5th
As shown in the figure, the processing of the process A in progress is temporarily interrupted and the process moves to processing I[IB' of the time constraint section of the process B which has issued the interrupt. For this migration, the address stored in the processing address register 141 of the interrupt vector register 14 is used.

(6)′この新たな割込みの時間制約部の処理IB’が
終了すると、上記(3)と同様な手順で処°理は制御部
■3′に戻り、一時中断していたプロセスA側の時間非
制約部の処理IVA’を再開する。
(6) When 'processing IB' of the time constraint part of this new interrupt is completed, the process returns to control part ■3' in the same procedure as in (3) above, and the temporarily suspended process A side Processing IVA' of the time-free part is restarted.

(7)′このプロセスAの時間非制約部の処理IVA’
が終了すると処理は再び制御部114’に戻り、1[[
B’で時間制約部の処理を終了しているホストプロセッ
サ202からのプロセスBの時間非制約部の処理IVB
’を開始し、この処理が終了すると制御部USに戻り、
両ホストプロセッサから新たな割込みがなければ処理は
一巡して(υで説明したような初期状BI2を保つ。
(7) 'Processing IVA of the time-unconstrained part of this process A'
When 1[[
Processing IVB of the non-time constrained part of process B from the host processor 202 which has finished the processing of the time constraint part in B'
' starts, and when this process is finished, returns to the control unit US,
If there is no new interrupt from both host processors, the process will complete one cycle (maintaining the initial state BI2 as explained in υ).

上記のように複数のホストプロセッサがあるとき、一方
のホストプロセッサから依頬された仕事の処理中に他方
のホストプロセッサからの割込みによって初期化などの
命令が指示されると、上記一方のホストプロセッサから
の依願による処理の途中でプロセッサの初期化が行われ
てしまい、データやプログラムが消滅することになる。
As mentioned above, when there are multiple host processors, if an instruction such as initialization is instructed by an interrupt from the other host processor while processing a task assigned to it by one host processor, one of the host processors The processor will be initialized during the process requested by the computer, and data and programs will be lost.

本発明の一つの実施態様として、このような欠点を除去
するために、第4図Cに示したように、時間非制約部の
例えばリセット命令あるいは初期化命令などの前に保留
を行う保留点Pを予め指定しておき、この保留点におい
ては保留フラグをフラグレジスタ18の対応するプロセ
ス側にセットし、第5図Cについて後に詳細に説明する
ように、他のホストプロセッサからの割込み要求の有無
あるいは他のホストプロセッサからの時間非制約部に未
処理の部分が残っていないかをチェックし、もし割込み
要求あるいは未処理の部分があればこれらの処理を先に
実行するようにして上記の欠点を除去するようにするこ
とができる。
In order to eliminate such drawbacks, one embodiment of the present invention provides a suspension point that suspends a time-unconstrained part, such as a reset instruction or an initialization instruction, as shown in FIG. 4C. P is specified in advance, and at this pending point, a pending flag is set in the corresponding process side of the flag register 18, and interrupt requests from other host processors are handled as described in detail later with respect to FIG. 5C. Check whether there are any unprocessed parts remaining in the non-time-constrained part from other host processors, and if there are any interrupt requests or unprocessed parts, execute these processes first and do the above. Defects can be removed.

第5図Cは、同図すと同様な処理シーケンスにおいて、
プロセスAの時間非制約部IVA’に上記の保留点を設
けた場合の例を示すもので、第3図すの時間非制約部I
VA’に対応する同図Cの時間非制約部IVAI“の処
理中に、この時間非制約部に予め設けられた保留点をプ
ロセッサ11が検出するとプロセッサ11の処理は制御
部■4“に戻り、処理を中断している仕事の有無をチェ
ックするが、この例ではプロセスBの時間非制約部IV
B’の処理が残っているのでその処理を行い、それが終
了すれば制御部■5“に戻り、他に中断中の仕事がない
ことを確認した後にプロセスAの時間非制約部IVA1
 ′の保留点以降の処理IVA2 ″を実行するように
する。
FIG. 5C shows a similar processing sequence to that shown in FIG.
This shows an example in which the above-mentioned suspension point is provided in the time-free part IVA' of process A, and the time-free part I in FIG.
When the processor 11 detects a suspension point set in advance in this time-unrestricted portion during the processing of the time-unrestricted portion IVAI” of C in the figure corresponding to VA′, the processing of the processor 11 returns to the control portion “4”. , checks whether there is any work that is interrupting the process, but in this example, the non-time-constrained part IV of process B
Processing B' remains, so perform that processing, and when it is finished, return to the control unit ■5'', and after confirming that there is no other work being interrupted, return to the non-time-constrained unit IVA1 of process A.
The process IVA2'' after the suspension point of ' is executed.

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

本発明によれば、処理を時間制約部と時間非制約部とに
分割し、時間非制約部においては他のホストプロセッサ
からの割込みを許容することによりホストプロセッサの
待ち合わせの時間を著しく短縮することが少ない資源で
複雑なプロセスの切り換え制御が容易にでき、また資源
が少ないので、切り換えのためのオーバヘッドも小さく
、時間的なロスはほとんどない、という効果がある。
According to the present invention, processing is divided into a time-restricted part and a time-unrestricted part, and the time-unrestricted part allows interrupts from other host processors, thereby significantly shortening the waiting time of host processors. Switching control of complex processes can be easily controlled using few resources, and since there are few resources, the overhead for switching is small and there is almost no time loss.

そして、保留機能により、プロセスAとBの間で相手側
の処理と同期していないと不都合の発生するリセット、
イレーズライトコマンドなどの実行に際しても相手側プ
ロセスの処理を終了させてからこれらの命令を実行する
ので、必要なデータの消滅あるいは誤処理を生ずるのを
防止できるという格別の効果を達成することができる。
Then, the hold function allows processes A and B to reset, which would cause inconvenience if they are not synchronized with the process on the other side.
Even when executing erase write commands, etc., these commands are executed after finishing the processing of the other party's process, so it is possible to achieve the special effect of preventing the loss of necessary data or erroneous processing. .

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

第1図は、本発明の原理的構成を示すブロック図、第2
図は本発明が適用されるプロセッサシステムの例を示す
ブロック図、第3図は本発明が適用されるプロセッサシ
ステムにおける処理のシーケンスを示す図、第4図は本
発明による処理シーケンスを説明する図、第5図は本発
明による処理シーケンスの実施例を示す図である。 10はデータ転送装置、20はホストプロセッサ、11
はプロセッサ、12はシリアルインタフェース、141
は処理アドレスレジスタ、142.143は復帰アドレ
スレジスタ、15はスタックポインタ、16はプロセス
用スタック、17は割込フラグレジスタ、18は保留フ
ラグレジスタである。
FIG. 1 is a block diagram showing the basic configuration of the present invention, and FIG.
FIG. 3 is a block diagram showing an example of a processor system to which the present invention is applied; FIG. 3 is a diagram showing a processing sequence in the processor system to which the invention is applied; FIG. 4 is a diagram explaining the processing sequence according to the invention. , FIG. 5 is a diagram showing an embodiment of a processing sequence according to the present invention. 10 is a data transfer device, 20 is a host processor, 11
is a processor, 12 is a serial interface, 141
142 and 143 are processing address registers, 142 and 143 are return address registers, 15 is a stack pointer, 16 is a process stack, 17 is an interrupt flag register, and 18 is a pending flag register.

Claims (2)

【特許請求の範囲】[Claims] (1)2つ以上のホストプロセッサシステム(20_1
、20_2)に同時に接続され、これら両プロセッサシ
ステムとの間で相互にデータ授受を請け負い、その動作
の起動が上記ホストプロセッサシステムからの処理依頼
割込によって行われるデータ転送装置(10)において
、 上記ホストプロセッサシステムから依頼されたプロセス
の実行に必要な情報資源を退避するプロセス用スタック
(16)と、 上記ホストプロセッサシステムからの割込みによるプロ
セス処理の依頼があったときに、このプロセスを処理す
るための先頭アドレスをストアする処理アドレスレジス
タ(14_1)と、ホストプロセッサから依頼されたプ
ロセスの処理を終了したときに制御部の処理に復帰する
ための先頭アドレスをストアする復帰アドレスレジスタ
(14_2、14_3)と、 割込みを行ったホストプロセッサを区別してストアする
割込フラグレジスタ(15)と、あるプロセスの時間非
制約部の実行中に他のプロセッサからの割込みにより他
のプロセスの処理を依頼されたときに行うべき処理の先
頭アドレスをストアするレジスタ(17)とを備え、前
記プロセッサ(11)は、プロセスの時間制約部の処理
中は他のプロセッサからの割込みがあっても処理中の処
理を続行し、プロセスの時間非制約部の処理中は他のプ
ロセッサから割込まれたプロセスの処理を行うように制
御することを特徴とする割込制御方式。
(1) Two or more host processor systems (20_1
, 20_2) at the same time, undertakes data transfer between these two processor systems, and whose operation is activated by a processing request interrupt from the host processor system. A process stack (16) for saving information resources necessary for executing a process requested by the host processor system, and a process stack (16) for processing the process when the process is requested by an interrupt from the host processor system. A processing address register (14_1) that stores the start address of the process requested by the host processor, and a return address register (14_2, 14_3) that stores the start address for returning to the processing of the control unit when the process requested by the host processor is finished. and an interrupt flag register (15) that stores the host processor that has issued an interrupt, and when a process is requested to process another process due to an interrupt from another processor while executing a non-time-constrained part of the process. and a register (17) for storing the start address of the process to be performed, and the processor (11) continues the process even if there is an interrupt from another processor while processing the time-restricted part of the process. An interrupt control method characterized in that, during processing of a time-unrestricted portion of a process, the processing of a process interrupted by another processor is performed.
(2)プロセスの時間非制約部に予め保留点を設けてお
くとともに、プロセスの処理が進行してこの保留点に到
達したときにフラグレジスタ(18)を当該プロセス側
にセットすることにより、プロセッサ(11)が他のプ
ロセスの時間非制約部に未処理の部分が残っていないか
をチェックし、もし他のプロセスの未処理の部分があれ
ばこれらの処理を先に実行するようにしたことを特徴と
する特許請求の範囲第1項記載の割込制御方式。
(2) By setting a suspension point in advance in the time-unconstrained part of the process, and setting the flag register (18) in the process when the processing of the process progresses and reaches this suspension point, the processor (11) Checks whether there are any unprocessed parts remaining in the time-unconstrained parts of other processes, and if there are unprocessed parts of other processes, these processes are executed first. An interrupt control method according to claim 1, characterized in that:
JP9007886A 1986-04-21 1986-04-21 Interruption control system for data transfer device Granted JPS62254257A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9007886A JPS62254257A (en) 1986-04-21 1986-04-21 Interruption control system for data transfer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9007886A JPS62254257A (en) 1986-04-21 1986-04-21 Interruption control system for data transfer device

Publications (2)

Publication Number Publication Date
JPS62254257A true JPS62254257A (en) 1987-11-06
JPH0560622B2 JPH0560622B2 (en) 1993-09-02

Family

ID=13988486

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9007886A Granted JPS62254257A (en) 1986-04-21 1986-04-21 Interruption control system for data transfer device

Country Status (1)

Country Link
JP (1) JPS62254257A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH022580A (en) * 1988-06-13 1990-01-08 Fuji Xerox Co Ltd Communication system for recorder

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH022580A (en) * 1988-06-13 1990-01-08 Fuji Xerox Co Ltd Communication system for recorder

Also Published As

Publication number Publication date
JPH0560622B2 (en) 1993-09-02

Similar Documents

Publication Publication Date Title
JP2829091B2 (en) Data processing system
US5937200A (en) Using firmware to enhance the functionality of a controller
JPS5841538B2 (en) Multiprocessor system instructions
JPS62184544A (en) Virtual computer system
JPH0277867A (en) Multiprocessor system
JPS62254257A (en) Interruption control system for data transfer device
JPS63158657A (en) Coprocessor control system
US8151028B2 (en) Information processing apparatus and control method thereof
KR20110011528A (en) Dma controller with interrupt control processor
JPH0431421B2 (en)
JPS6239789B2 (en)
JPS6223895B2 (en)
JP2723388B2 (en) Internal bus control method for processor module and information processing device
JP3903688B2 (en) Bank switching system
JPH01142962A (en) Data transfer control system
JPH0424733B2 (en)
JPH01316851A (en) Channel control system
JPH01217535A (en) Method for controlling additional processor unit
JPS5812615B2 (en) Microprocessor controlled workstation adapter
JPS6111867A (en) Processing method of abnormality in interface control
JPS58129525A (en) Data input and output controlling method of data processing system
JPH02190955A (en) Input/output control system
JPH0519174B2 (en)
JPH0690698B2 (en) Channel device control method
JPH01312658A (en) Computer system