JPH0266666A - Inter-cpu interruption processing method - Google Patents
Inter-cpu interruption processing methodInfo
- Publication number
- JPH0266666A JPH0266666A JP21738788A JP21738788A JPH0266666A JP H0266666 A JPH0266666 A JP H0266666A JP 21738788 A JP21738788 A JP 21738788A JP 21738788 A JP21738788 A JP 21738788A JP H0266666 A JPH0266666 A JP H0266666A
- Authority
- JP
- Japan
- Prior art keywords
- cpu
- interrupt
- interruption
- address
- request
- 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
Links
- 238000003672 processing method Methods 0.000 title claims description 5
- 239000013598 vector Substances 0.000 claims abstract description 24
- 238000000034 method Methods 0.000 claims abstract description 16
- 230000005540 biological transmission Effects 0.000 abstract 1
- 239000013256 coordination polymer Substances 0.000 description 9
- 238000010586 diagram Methods 0.000 description 3
- 238000007796 conventional method Methods 0.000 description 2
- 238000005520 cutting process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000007790 scraping Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Landscapes
- Multi Processors (AREA)
Abstract
Description
【発明の詳細な説明】
(産業上の利用分野)
本発明はCP tJから他のCPUに対して行うCP
LJ間の割り込み処理方法に関する。DETAILED DESCRIPTION OF THE INVENTION (Industrial Application Field) The present invention relates to
This invention relates to an interrupt processing method between LJs.
(従来の技術)
コンピュータにおいて、CPLIが入出力ボートを介し
て外l!lll!A器とデータをやり取りする場合、外
部入出力機器の動作はCPUに比べて遅いので、その都
度CPUが漫然とデータの到来を持っていたのでは時間
的にロスが大きく無駄である。そこで入出力l!!1器
にデータ転送を指示した後は、GPUは別の仕事を行っ
ていて、データが送られて来た時点でそれを処理すれば
非常に効率の良いシステムになる。このような考えに3
3づいて編み出されたのが割り込みである。(Prior Art) In a computer, the CPLI is connected via an input/output port. llll! When exchanging data with the A-device, the operation of external input/output equipment is slower than that of the CPU, so if the CPU were to randomly receive data each time, it would be a big waste of time. So input/output l! ! After instructing one device to transfer data, the GPU performs another task, and if it processes the data as soon as it is sent, it becomes a very efficient system. 3 for this kind of thinking
Interrupts were subsequently invented.
次に図面を参照してCP LJから他のCPUに割り込
みを要請する場合の例を説明する。第2図は従来の割り
込みの手順を説明する図である。図において、1は演算
を行っている途中に削り込み演算を行うCPLJ、2は
CPUIに割り込みを要請して割り込み演算を行わせる
C P jJである。この従来の割り込み処理の手順は
次のように行われる。Next, an example of requesting an interrupt from the CP LJ to another CPU will be explained with reference to the drawings. FIG. 2 is a diagram illustrating a conventional interrupt procedure. In the figure, 1 is a CPLJ that performs a cutting operation while an operation is being performed, and 2 is a C P jJ that requests an interrupt to the CPUI and causes the interrupt operation to be performed. This conventional interrupt processing procedure is performed as follows.
■CPU2がcpuiに割り込み要求信号IRQを送出
する。(2) CPU2 sends an interrupt request signal IRQ to cpui.
■CP tJ 1はこれを受【プ取ると、CP tJ
2に割り込み認識信91ACKを返して、CP (J
2の要求を受は取った旨を知らせる、
■CP tJ 2は割り込み認識信号IACKを受は取
ると、その割り込みの種類に応じて、CPU1に割り込
みベクタ番号(削り込み処理プログラムのアドレス)(
VPを送る。■CP tJ 1 receives this and CP tJ
2, returns the interrupt recognition signal 91ACK to CP (J
■CP tJ When 2 receives the interrupt recognition signal IACK, it sends an interrupt vector number (address of the scraping processing program) to CPU 1 depending on the type of the interrupt.
Send VP.
■CPU1は割り込みベクタ番号IVPを受は取ると割
り込みへフタファイル(以下rVFという)3の中の割
り込みベクタ1号IVPで指定された番地の内容rvを
読み込む。(2) When the CPU 1 receives the interrupt vector number IVP, the CPU 1 reads the contents rv of the address specified by the interrupt vector number 1 IVP in the lid file (hereinafter referred to as rVF) 3 to the interrupt.
(つ続いてCPU1は1vの番地ヘジャンプし、割り込
み処理を実行づる。(CPU 1 then jumps to address 1v and executes interrupt processing.
(発明が解決しようとするrIIffl>以上の処理を
づる従来の装置では割り込みの数が多い場合、l VP
3に多くの番地の内容のIVを格納して置かねばならず
、メモリが多く必要となる。又割り込みの内容はIVF
3に1き込まれた割り込みベクタによるものであり、随
時に変更処理することは困難である。更に割り込み要求
IRQを受けて割り込み認識信号rAcKを送り、にj
り込みベクタ番号1vPを受けたら、割り込み・ベクタ
ファイルIMFを児に行く必要があって、CP U 1
の割り込み処理には2スデツブ必要であるという問題が
あった、
本発明は上記の点に鑑みてなされたもので、その目的は
、割り込み処理手順を簡略にし、又、割り込み処理数理
ち割り込みベクタ数を無限にとることができるCPU間
の割り込み処理方法を実現することにある。(rIIffl to be solved by the invention) In a conventional device that performs the above processing, if the number of interrupts is large, l VP
3, the contents of many addresses must be stored in IVs, which requires a large amount of memory. Also, the contents of the interrupt are IVF
This is due to the interrupt vector written in 1 in 3, and it is difficult to change the process at any time. Furthermore, upon receiving the interrupt request IRQ, the interrupt recognition signal rAcK is sent to j
When receiving the interrupt vector number 1vP, it is necessary to send the interrupt vector file IMF to the CPU 1.
The present invention was made in view of the above-mentioned problem, and its purpose is to simplify the interrupt processing procedure, and to reduce the number of interrupt vectors from the mathematics of interrupt processing. The object of the present invention is to realize a method for processing interrupts between CPUs that can handle an infinite number of interrupts.
(課題を解決するための手段)
前記の課題を解決する本発明は、CP tJから他のC
PUに対して行うCPU間の割り込み処理方法において
、割り込み要求側CPUとの間に読み出しと書き込みを
可能にし、割り込み処理側CPUに対し読み出しを可能
にするように接続された割り込みベクタレジスタを具備
し、割り込み要求の都度前記割り込みベクタレジスタに
割り込み処理ルーチンの番地を1き込み、前記割り込み
処理側CP tJは前記割り込みベクタレジスタをフェ
ッチしてコマンドを実行することを特徴とするものであ
る。(Means for Solving the Problems) The present invention for solving the above-mentioned problems is a method for converting CP tJ to other C
In an inter-CPU interrupt processing method for a PU, an interrupt vector register is provided that is connected to the CPU on the interrupt requesting side to enable reading and writing, and to the CPU on the interrupt processing side so as to enable reading. , the address of the interrupt processing routine is written into the interrupt vector register each time an interrupt request is made, and the interrupt processing side CP tJ fetches the interrupt vector register and executes a command.
(作用)
割り込み要求側CP (Jは割り込み要求の都度割り込
みベクタレジスタに割り込み処理ルーチンの番地を閏き
込み、割り込み処理側CPLJは割り込み要求に基づき
割り込みベクタレジスタをフェッチして処理を実行する
。(Function) The interrupt requesting side CP (J inserts the address of the interrupt processing routine into the interrupt vector register each time an interrupt request is made, and the interrupt processing side CPLJ fetches the interrupt vector register based on the interrupt request and executes processing.
(実施例) 以下、図面を参照して本発明の詳細な説明する。(Example) Hereinafter, the present invention will be described in detail with reference to the drawings.
第1図は本発明の一実施例の割り込み処理方法を行うた
めの回路図である。図において、第2図と同等の部分に
は同一の符号を付しである。メモリ6はCPLJlのプ
ログラムを格納していて、GPtJlとは1−タバス7
を介して接続されている。メモリ8はCP U 2のプ
ログラムを格納していて、CPU2とはデータバス9を
介して接続されている、10はデータバス7を介してc
pu iと読み出しが可能なように、CPU2とはデー
タバス9を介してCPU2と読み出し及び司き込みが可
能なようにそれぞれ接続されていて、CPU2からの割
り込み処理ルーチンへのジャンプ命令が喝き込まれ、C
PU1にジャンプ命令を与える割り込みベクタレジスタ
(以下TVRという)である。FIG. 1 is a circuit diagram for carrying out an interrupt processing method according to an embodiment of the present invention. In the figure, parts equivalent to those in FIG. 2 are given the same reference numerals. Memory 6 stores the program of CPLJl, and GPtJl is 1-Tabus 7.
connected via. A memory 8 stores programs for the CPU 2 and is connected to the CPU 2 via a data bus 9.
The CPU 2 is connected to the CPU 2 via a data bus 9 so as to be readable from the CPU 2, and the CPU 2 is connected to the CPU 2 via a data bus 9 so that the CPU 2 can be read from and processed by the CPU 2. Incorporated, C
This is an interrupt vector register (hereinafter referred to as TVR) that provides a jump instruction to PU1.
次に実施例の回路の動作を説明する。、CPU2からc
pu iへ割り込みを掛ける場合法のようになる。Next, the operation of the circuit of the embodiment will be explained. , CPU2 to c
The case where an interrupt is applied to pu i is as follows.
■CPU2は割り込み要求を出す前に、IVRloに割
り込み処理ルーチンへのジャンプ命令を曙ぎ込む。(2) Before issuing an interrupt request, the CPU 2 inserts a jump instruction to the interrupt processing routine into IVRlo.
■CPLI2はCPU1に割り込み要求信号IRQを送
出する。(2) CPLI2 sends an interrupt request signal IRQ to CPU1.
■CPU 1は割り込み要求信号IRQを受は取ると、
割り込み認識信号rAcKをCP U 2に送出し、メ
モリ6の番地からIVRIOの番地にジャンプする。C
PU2は割り込み認識信号IACKを受けると割り込み
要求信号IRQをクリアするつ
■CPU1は続けてIVRIOのジャンプ命令を実行し
、割り込み処理に入る。■When CPU 1 receives the interrupt request signal IRQ,
It sends an interrupt recognition signal rAcK to the CPU 2 and jumps from the address of the memory 6 to the address of IVRIO. C
When the PU2 receives the interrupt recognition signal IACK, it clears the interrupt request signal IRQ, and the CPU1 subsequently executes the IVRIO jump instruction and enters interrupt processing.
■CPLJ2は、更に、別の割り込みを掛ける場合はメ
モリ8のプログラムに基づいてIVRloの内容を書き
替えて、割り込み要求信号IRQを送出する
以上説明したように本実施例によれば次のような効果が
期待できる。■If the CPLJ2 wants to issue another interrupt, it rewrites the contents of IVRlo based on the program in the memory 8 and sends out the interrupt request signal IRQ.As explained above, according to this embodiment, the following occurs. You can expect good results.
(D CP U 1は従来の回路では割り込み要求信号
IRQを受は取った後、割り込みベクタ番号IVPを受
は取り、vlり込みへフタファイル3から割り込みベク
タ■vを取り出す必要があったが、本実施例の方法の回
路では割り込み要求IRQを受けとったら割り込み認識
信号rAcKを返してIVRloのアドレスにジャンプ
するだけでよい。(In the conventional circuit, D CPU 1 had to receive the interrupt request signal IRQ, then receive the interrupt vector number IVP, and then take out the interrupt vector ■v from the cover file 3 to the vl interrupt. In the circuit according to the method of this embodiment, upon receiving the interrupt request IRQ, it is sufficient to simply return the interrupt recognition signal rAcK and jump to the address of IVRlo.
■従来の方法では、割り込みベクタ数はIVFloの容
噂に制限されたが、本実施例によれば、rVRloのレ
ジスタ1gAで無数の割り込みベクタを設定できる。(2) In the conventional method, the number of interrupt vectors was limited to the size of IVFlo, but according to this embodiment, an infinite number of interrupt vectors can be set with register 1gA of rVRlo.
■次のようにすると、プライオリティエンコーダなしに
割り込みに優先度がつけられるゆCP(J2はrVRl
oをlみ、“0”であればIVRloを書き替え、”’
o ” t’なければ今から処理させるベクタと比較し
てそれより優先度が^ければIVRloが110 I+
となるまで持ち、ぞうでなければrVRloの値を内き
替えて割り込み要求信号IRQを送出する。CPLll
は割り込み処理が終了したら+ v r< i oの値
をクリアする。■By doing the following, you can prioritize interrupts without using a priority encoder.CP (J2 is rVRl
o, and if it is "0", rewrite IVRlo, "'
o ” If there is no t', IVRlo is 110 I+ if it has a higher priority compared to the vector to be processed now.
If not, the value of rVRlo is replaced and an interrupt request signal IRQ is sent. CPLll
clears the value + v r < io when the interrupt processing is completed.
■TVR10にリセット処理ルーチンへのジャンプ命令
を古き込むとリセット信qと共用することもできる。(2) If a jump command to the reset processing routine is installed in the TVR 10, it can also be used in common with the reset signal q.
(発明の効果)
以ト詳細に説明したように、割り込み処理手順を簡略化
し、又割り込みへフタ数を無限に取ることができるよう
になり、実用トの効果は大きい、。(Effects of the Invention) As explained in detail above, the interrupt processing procedure is simplified, and an unlimited number of interrupts can be handled, which has a great practical effect.
第1図は本発明の方法を実r!Mる回路図、第2図は従
来の方法の回路図である。FIG. 1 shows the method of the present invention in practice! FIG. 2 is a circuit diagram of a conventional method.
Claims (1)
処理方法において、割り込み要求側CPUとの間に読み
出しと書き込みを可能にし、割り込み処理側CPUに対
し読み出しを可能にするように接続された割り込みベク
タレジスタを具備し、割り込み要求の都度前記割り込み
ベクタレジスタに割り込み処理ルーチンの番地を書き込
み、前記割り込み処理側CPUは前記割り込みベクタレ
ジスタをフェッチしてコマンドを実行することを特徴と
するCPU間の割り込み処理方法。In an inter-CPU interrupt processing method performed from a CPU to another CPU, an interrupt vector is connected so as to enable reading and writing to the interrupt requesting CPU, and to enable reading from the interrupt servicing CPU. Interrupt processing between CPUs, comprising a register, writing an address of an interrupt processing routine in the interrupt vector register each time an interrupt request is made, and the CPU on the interrupt processing side fetches the interrupt vector register and executes a command. Method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP21738788A JPH0266666A (en) | 1988-08-31 | 1988-08-31 | Inter-cpu interruption processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP21738788A JPH0266666A (en) | 1988-08-31 | 1988-08-31 | Inter-cpu interruption processing method |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0266666A true JPH0266666A (en) | 1990-03-06 |
Family
ID=16703381
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP21738788A Pending JPH0266666A (en) | 1988-08-31 | 1988-08-31 | Inter-cpu interruption processing method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0266666A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007270239A (en) * | 2006-03-31 | 2007-10-18 | Jfe Steel Kk | Hot dip metal coating apparatus for steel sheet |
JP2011118508A (en) * | 2009-12-01 | 2011-06-16 | Renesas Electronics Corp | Multiprocessor system and multiprocessor control method |
-
1988
- 1988-08-31 JP JP21738788A patent/JPH0266666A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007270239A (en) * | 2006-03-31 | 2007-10-18 | Jfe Steel Kk | Hot dip metal coating apparatus for steel sheet |
JP2011118508A (en) * | 2009-12-01 | 2011-06-16 | Renesas Electronics Corp | Multiprocessor system and multiprocessor control method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR0160193B1 (en) | Dma control apparatus | |
US4318174A (en) | Multi-processor system employing job-swapping between different priority processors | |
JPS5841538B2 (en) | Multiprocessor system instructions | |
KR950009455A (en) | Digital signal processor | |
KR920010951B1 (en) | Data controller and its system | |
JPH0530112A (en) | Control method for digital signal processing system | |
JPH0266666A (en) | Inter-cpu interruption processing method | |
WO1993012486A1 (en) | Direct memory access interface for buses of different width | |
EP0507954B1 (en) | Device for controlling bus | |
WO2001025941A1 (en) | Multiprocessor computer systems with command fifo buffer at each target device | |
GB2138182A (en) | Digital processor | |
KR930005843B1 (en) | Method for controlling subprocessor in multiprocessor system | |
KR100194263B1 (en) | High speed data processing system | |
JPS61136159A (en) | Single chip microcomputer | |
JP2002278753A (en) | Data processing system | |
JPH056333A (en) | Multi-processor system | |
JP3943302B2 (en) | Programmable controller | |
KR960018958A (en) | Main Memory Access Device Using Data Buffer When Performing Atomic Instruction in Multiprocessor System | |
JP2785855B2 (en) | Information processing device | |
JPS5840216B2 (en) | Test and set method | |
JPH0375959A (en) | Data transfer device for multiprocessor | |
JPH04266152A (en) | High speed parallel processor | |
JPH03233780A (en) | Bus access system | |
GB2225882A (en) | Computer bus structure for multiple processors | |
JPH0228862A (en) | Data transfer system in parallel logic type language |