JPH01236327A - Interruption mask control method - Google Patents

Interruption mask control method

Info

Publication number
JPH01236327A
JPH01236327A JP6297488A JP6297488A JPH01236327A JP H01236327 A JPH01236327 A JP H01236327A JP 6297488 A JP6297488 A JP 6297488A JP 6297488 A JP6297488 A JP 6297488A JP H01236327 A JPH01236327 A JP H01236327A
Authority
JP
Japan
Prior art keywords
mask
register
bit
interruption
interrupt
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
JP6297488A
Other languages
Japanese (ja)
Inventor
Masayoshi Shimamura
島村 政義
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 JP6297488A priority Critical patent/JPH01236327A/en
Publication of JPH01236327A publication Critical patent/JPH01236327A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To control an expanded interruption mask by naturally expanding the operation of an already existing instruction. CONSTITUTION:A mask register 10 has eight bits composed of I/O interruption mask 0, I/O interruption mask 1, I/O interruption mask 2, I/O interruption mask 3, external interruption mask, program interruption mask, machine check interruption mask, and address conversion control bit in the described order. In case of further increasing an interruption mask when the mask register 10 is fully used, an additional register 12 is used for housing an expansion mask bit B. Data writing or data updating to the mask register 10 is performed by using already existing machine words. In addition, a register 14 is provided to supplying write/update data to the register 12 for housing the expansion mask bit B.

Description

【発明の詳細な説明】 〔発明の概要〕 中央処理装置(CP U)に対する割込みを制御するマ
スクの制御方法に関し、 既存の命令の動作を自然に拡張することにより、拡張し
た割込みマスクをも制御することを目的とし、 既存のマスクレジスタに割付けし切れない割込み経路拡
張を行なう場合の割込みマスク制御方法において、拡張
マスクビットを収容するレジスタ、該マスクビットに対
するオペランドであるフラグビットを収容するレジスタ
、および命令デコーダが出力する制御信号に従って該フ
ラグビットにより拡張マスクビットを更新する回路を設
けて、既存のマシン語命令の実行で、前記既存のマスク
レジスタと拡張マスクビット収容レジスタの更新を同時
に行なうように構成する。
[Detailed Description of the Invention] [Summary of the Invention] Regarding a method for controlling a mask that controls interrupts to a central processing unit (CPU), the present invention provides a method for controlling an extended interrupt mask by naturally extending the operation of an existing instruction. In an interrupt mask control method for expanding interrupt paths that cannot be allocated to existing mask registers, the method includes: a register accommodating expansion mask bits; a register accommodating flag bits that are operands for the mask bits; and a circuit for updating the extended mask bits with the flag bits according to the control signal output by the instruction decoder, so that the existing mask register and the extended mask bit storage register are simultaneously updated by executing an existing machine language instruction. Configure.

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

本発明は、中央処理装置(CP U)に対する割込みを
制御するマスクの制御方法に関する。
The present invention relates to a mask control method for controlling interrupts to a central processing unit (CPU).

割込みマスクは例えば8ビツトのレジスタで構成され、
このレジスタにデータ00101101を書込んで、3
.5.6.8番の割込みは受付け、それ以外の割込みは
受付けない、という制御をする。レジスタに書込むデー
タを変えて例えば11010010にすれば、上記とは
逆になる。
For example, the interrupt mask consists of an 8-bit register,
Write data 00101101 to this register and
.. 5.6. Control is performed such that interrupt number 8 is accepted and other interrupts are not accepted. If the data written to the register is changed to, for example, 11010010, the above will be reversed.

多数の入出力装置(Ilo)の要求を複数のCPUで分
担して処理するシステムがあるが、か\るシステムでは
割込みマスクは各CPUが受持つIloを決定し、割込
みマスクのデータの変更はその受持つし0の変更になる
、等の制御を行なう。
There are systems in which the requests of a large number of input/output devices (Ilo) are shared and processed by multiple CPUs, but in such systems, the interrupt mask determines the Ilo that each CPU is responsible for, and changing the interrupt mask data is It is in charge of this and performs control such as changing the value to 0.

〔従来の技術〕[Conventional technology]

CPUに対する割込み経路を拡張する場合、例えば上記
の8経路を9経路にする場合、その9経路の割込みを制
御するために、新たな割込みマスクを設けなくてはなら
ない。だが、割込みマスクのあるレジスタ(以後、レジ
スタAと呼ぶ)に新たなマスクビットを設ける空ビット
がない場合、新たなマスクは別のレジスタ(以後、レジ
スタBと呼ぶ)に設けることになる。レジスタBは、本
例では9ビツト以上のビット数を持つ1個のレジスタと
され、或いは今までの8ビツトレジスタと他のレジスタ
との2個とされたりする。
When extending the interrupt paths to the CPU, for example, when changing the above 8 paths to 9 paths, a new interrupt mask must be provided to control the interrupts on the 9 paths. However, if a register with an interrupt mask (hereinafter referred to as register A) does not have an empty bit in which to place a new mask bit, the new mask will be provided in another register (hereinafter referred to as register B). In this example, register B may be one register having a bit number of 9 bits or more, or it may be two registers, the conventional 8-bit register and another register.

いずれにしてもレジスタAを制御するために用意された
既存のマシン語命令のオペランドはレジスタAにしか対
応していないため、このマシン語命令ではレジスタBを
制御するために必要なオペランドを得ることができない
。このため他の方法でレジスタBに対するオペランドを
得る必要がある。
In any case, the operand of the existing machine language instruction prepared to control register A only corresponds to register A, so this machine language instruction cannot obtain the operand necessary to control register B. I can't. Therefore, it is necessary to obtain the operand for register B by another method.

この問題に対して従来は、レジスタAを制御するための
既存のマシン語命令と、レジスタA及びレジスタBの両
方を制御できる新たなマシン語命令を併用することによ
って対処していた。つまり、レジスタAのみを制御する
際には既存のマシン語命令を用いて、必要なオペランド
はこれまで通り該既存のマシン語命令によって得るよう
にし、これに対して拡張した割込みマスクのあるレジス
タBをも同時に制御したい場合には新たなマシン語命令
を用い、これによってオペランドを得ていた。
Conventionally, this problem has been dealt with by using an existing machine language instruction for controlling register A together with a new machine language instruction that can control both register A and register B. In other words, when controlling only register A, an existing machine language instruction is used, and the necessary operands are obtained by the existing machine language instruction as before, whereas register B with an extended interrupt mask is used. If you wanted to control both at the same time, you used new machine language instructions to obtain operands.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

このように2つのマシン語命令を用いる方式では、マシ
ン語命令を作る作業が増大する、新たに作ったマシン語
命令の速度が従来からの命令に比較して遅くなりがちで
ある、マシン語の命令体系が複雑になる、デバッグが困
難になる、等の問題を生じる。
With this method of using two machine language instructions, the work involved in creating machine language instructions increases, the speed of newly created machine language instructions tends to be slower than conventional instructions, and the machine language This causes problems such as the instruction system becoming complicated and debugging becoming difficult.

本発明は、既存の命令の動作を自然に拡張することによ
り、拡張した割込みマスクをも制御することを目的とす
る。
The present invention aims to also control extended interrupt masks by naturally extending the operation of existing instructions.

(課題を解決するための手段〕 第1図にマスクレジスタを示す。このマスクレジスタl
Oは8ビツトを持ち、各ビットは順に、110割込みマ
スク0.110割込みマスク1、i10割込みマスク2
、I/1割込みマスク3、外部割込みマスク、プログラ
ム割込みマスク、マシンチエツク割込みマスク、アドレ
ス変換制御ビ・ノドである。このようにマスクレジスタ
が一杯に使用されているとき、更に割込みマスクを増加
するには、別のレジスタを使用するが、12はその付加
レジスタであり、これに拡張マスクビットBを収容する
(Means for solving the problem) Figure 1 shows a mask register.
O has 8 bits, each bit in turn: 110 interrupt mask 0.110 interrupt mask 1, i10 interrupt mask 2
, I/1 interrupt mask 3, external interrupt mask, program interrupt mask, machine check interrupt mask, and address conversion control bit. In this way, when the mask register is fully used, another register is used to further increase the interrupt mask, and 12 is an additional register for accommodating the extended mask bit B.

マスクレジスタ10へのデータ書込みまたはデータ更新
はマシン語命令で行なうが、本発明ではこのマシン語命
令は既存のもの(マスクレジスタ10に対するもの)を
使用する。
Writing or updating data to the mask register 10 is performed using machine language instructions, and in the present invention, existing machine language instructions (for the mask register 10) are used.

また本発明では拡張マスクビットBを収容するレジスタ
12へ書込み/更新データ(フラグピッ1−F)を供給
するレジスタ14を設ける。
Further, in the present invention, a register 14 is provided for supplying write/update data (flag pins 1-F) to the register 12 that accommodates the extended mask bit B.

第2図に拡張マスクビットBに対する追加回路を示し、
第3図にマスクレジスタ10に対する書込み/更新回路
を示す。この第2図の回路は第3図の回路に併設する。
FIG. 2 shows an additional circuit for extended mask bit B.
FIG. 3 shows a write/update circuit for mask register 10. The circuit shown in FIG. 2 is installed alongside the circuit shown in FIG. 3.

〔作用〕[Effect]

上記構成によれば、修正されたマシン語命令を実行する
ことで、レジスタ10と12を同時に更新することがで
き、こうして拡張した場合も割込みマスクの各ビットの
同時更新が可能になる。但し、レジスタ12に対する更
新データはマシン語命令のオペランドでは与えられない
ので、これは予めレジスタ14にデータ(フラグビット
F)を書込んでおいてこれより供給する。従って動作と
しては2段型であるが、マスクレジスタの更新は1度に
行なわれる。
According to the above configuration, registers 10 and 12 can be updated simultaneously by executing the modified machine language instruction, and even when expanded in this way, each bit of the interrupt mask can be updated simultaneously. However, since the update data to the register 12 is not given by the operand of the machine language instruction, the data (flag bit F) is written in the register 14 in advance and then supplied. Therefore, although the operation is two-stage, the mask register is updated at one time.

〔実施例〕〔Example〕

第2図、第3図を参照してマスクデータの書込み/更新
を詳細に説明する。
Writing/updating of mask data will be explained in detail with reference to FIGS. 2 and 3.

第3図は既存の部分であり、20はシステムバスインタ
フェースであり、これにはメモリ22、命令コードレジ
スタ24、およびリードオペランドレジスタ28が接続
する。26は命令デコーダであり、レジスタ24に取込
んだ命令コードを解読し、制御信号Sなどを出力する。
FIG. 3 shows the existing part, 20 is a system bus interface, to which a memory 22, an instruction code register 24, and a read operand register 28 are connected. An instruction decoder 26 decodes the instruction code taken into the register 24 and outputs a control signal S and the like.

30は演算器で、レジスタ28とレジスタ10の内容を
演算してその結果を再びレジスタ10に格納する等の処
理を行なう。
30 is an arithmetic unit that performs processing such as calculating the contents of the register 28 and the register 10 and storing the result in the register 10 again.

第2図は本発明で追加した部分で、セレクタ32、アン
ドゲートG1、オアゲートG2、レジスタ12,14を
備える。レジスタ12.14従ってビットB、Fはこ−
では1ビツトを想定しているが、勿論複数ビットであっ
てもよく、複数ビットの場合は第2図回路を複数個設け
る。
FIG. 2 shows a part added in the present invention, which includes a selector 32, an AND gate G1, an OR gate G2, and registers 12 and 14. Register 12.14 therefore bits B, F are
Although one bit is assumed here, it is of course possible to use a plurality of bits, and in the case of a plurality of bits, a plurality of circuits shown in FIG. 2 are provided.

マスクレジスタ10は第1図の8ビツトを持ち、これに
lビットを追加して全体で9ピントのマスクレジスタに
する、とする。またマスクレジスタの更新は次の3種の
命令で行なうとする。
It is assumed that the mask register 10 has 8 bits as shown in FIG. 1, and 1 bit is added to this to make the mask register 9 pins in total. It is also assumed that the mask register is updated using the following three types of instructions.

■And Mask命令:オペランドの値とマスクレジ
スタの値の論理積を求め、この値をマスクレジスタにセ
ントする。
-And Mask instruction: calculates the logical product of the operand value and the mask register value, and stores this value in the mask register.

■Or Mask命令:オペランドの値とマスクレジス
タの値の論理和を求め、この値をマスクレジスタにセン
トする。
■Or Mask instruction: Calculates the logical sum of the operand value and the mask register value, and stores this value in the mask register.

■Load Mask命令:オペランドの値をマスクレ
ジスタに読込む。
■Load Mask instruction: Loads the value of the operand into the mask register.

追加した1ビツトのマスクビットBに対し、1ビツトの
フラグビットFを設ける。このフラグビットFはCPU
内のコントロールレジスタ(レジスタ14)に割り付け
、既存のLoad Control命令によって更新す
る。拡張したマスクビットに対し、第2図の回路を設け
る。
A 1-bit flag bit F is provided for the added 1-bit mask bit B. This flag bit F is
It is allocated to the control register (register 14) in the control register (register 14) and updated by the existing Load Control instruction. The circuit shown in FIG. 2 is provided for the expanded mask bits.

システムバスインタフェース20を通シて送られた命令
をレジスタ24が取込み、デコーダ26が解読した結果
これはAnd、 Or、 Load各Mask命令であ
る又はこれらのいずれでもないことが分ると該デコーダ
はその旨を示す制御信号Sを出力する。
The register 24 takes in the command sent through the system bus interface 20, and the decoder 26 decodes it. If it is found that this is an And, Or, or Load Mask command, or none of these, the decoder A control signal S indicating this is output.

これにより第2図では次の制御が行なわれる。As a result, the following control is performed in FIG.

(a)And Masklor  Mask/Load
  Mask命令以外の場合:第2図の■の経路が選択
され、レジスタ12の内容が再びレジスタ12に書込ま
れるだけで、拡張したマスクビットBの値は変化しない
(a) And Masklor Mask/Load
In the case of instructions other than Mask: the path (■) in FIG. 2 is selected, the contents of register 12 are simply written to register 12 again, and the value of expanded mask bit B remains unchanged.

(blAnd Mask命令の場合二〇の経路が選択さ
れ、拡張したマスクビットBとフラグビットFの論理積
が、レジスタ12に格納され、これが新しい拡張マスク
ビットBになる。
(In the case of the blAnd Mask instruction, 20 paths are selected, and the AND of the extended mask bit B and flag bit F is stored in the register 12, which becomes the new extended mask bit B.

(clor  Mask命令の場合:■の経路が選択さ
れ、拡張したマスクビットBとフラグビットFの論理和
が、新しい拡張したマスクビットBになる。
(In the case of the crawl Mask instruction: the path (■) is selected, and the logical sum of the expanded mask bit B and the flag bit F becomes the new expanded mask bit B.

(di Load  Mask命令の場合:■の経路が
選択され、レジスタ14の内容がレジスタ12へ送られ
て、フラグビットFがそのまま拡張マスクビットBにな
る。
(In the case of the di Load Mask instruction: the route (■) is selected, the contents of the register 14 are sent to the register 12, and the flag bit F becomes the extended mask bit B as is.

レジスタ14のフラグビットFは上記制御の前に、別の
命令によりセットしておく。こうして、フラグビットを
あらかじめ設定することにより、既存のAnd Mas
klor  Mask/Load  Mask命令によ
って、拡張したマスクビットを自然に更新することがで
きる。
The flag bit F of the register 14 is set by another instruction before the above control. Thus, by presetting the flag bit, the existing And Mas
The extended mask bits can be updated naturally by the klor Mask/Load Mask instruction.

制御信号Sは第3図の演算器30及びレジスタ10へも
与えられ、また前記システムバスインタフェース20を
通して送られた命令のオペランドはレジスタ28に取込
まれ、マスクレジスタ10の内容と、制御信号Sにより
指定される演算(AndOr、 Load、スルー)が
行なわれ、結果がマスクレジスタ10に格納される。こ
の第3図の処理と第2図の処理は制御信号Sにより同時
に行なわれ、こうして拡張割込みマスクの各ビットの同
時更新が可能になる。
The control signal S is also given to the arithmetic unit 30 and the register 10 in FIG. The operation (AndOr, Load, Through) specified by is performed and the result is stored in the mask register 10. The processing in FIG. 3 and the processing in FIG. 2 are performed simultaneously by the control signal S, thus making it possible to update each bit of the extended interrupt mask simultaneously.

割込みマスクの各ビットは同時更新が要求される。逐次
更新であると、更新中に同時に2つの割込みが入ったと
き、更新済みの経路のものは更新後の、更新未了の経路
のものは更新前の割込み処理になり、予期しない動作に
なる。
Each bit of the interrupt mask requires simultaneous updating. With sequential updates, if two interrupts occur at the same time during an update, the interrupt for the updated route will be processed after the update, and the interrupt for the unupdated route will be processed before the update, resulting in unexpected behavior. .

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

以上説明した様に、本発明によれば、新たなマシン語命
令をつくることなしに拡張した割込みマスクを制御する
ことができる。変更する部分は、第2図の回路を付加し
て、命令デコーダ26が出力する制御信号Sをこの第2
図の回路へも加えるだけである。この方法によって拡張
した割込みマスクの制御を行えば、既存のマシン語命令
の実行速度も変らない上、マシン語の命令体系を変える
必要がなくなり、デバッグが困難になることもない。こ
のためプログラミング効率の向上に寄与するところが大
きい。
As described above, according to the present invention, an extended interrupt mask can be controlled without creating new machine language instructions. The part to be changed is to add the circuit shown in FIG.
Just add it to the circuit shown. If the extended interrupt mask is controlled using this method, the execution speed of existing machine language instructions will not change, there will be no need to change the machine language instruction system, and debugging will not become difficult. Therefore, it greatly contributes to improving programming efficiency.

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

第1図は本発明のマスクレジスタの説明図、第2図は本
発明で追加する部分を示す回路図、第3図は既存部分の
構成を示すブロック図である。 第1図〜第3図で、10は既存のマスクレジスタ、12
は追加マスクレジスタ、14はフラグビットを収容する
レジスタ、Gl、G2はゲート回路、32はセレクタ、
26は命令デコーダである。
FIG. 1 is an explanatory diagram of the mask register of the present invention, FIG. 2 is a circuit diagram showing a portion added by the present invention, and FIG. 3 is a block diagram showing the configuration of the existing portion. In Figures 1 to 3, 10 is an existing mask register, 12
is an additional mask register, 14 is a register that accommodates flag bits, Gl and G2 are gate circuits, 32 is a selector,
26 is an instruction decoder.

Claims (1)

【特許請求の範囲】 1、既存のマスクレジスタ(10)に割付けし切れない
割込み経路拡張を行なう場合の割込みマスク制御方法に
おいて、 拡張マスクビット(B)を収容するレジスタ(12)、
該マスクビットに対するオペランドであるフラグビット
(F)を収容するレジスタ(14)、および命令デコー
ダ(26)が出力する制御信号(S)に従って該フラグ
ビットにより拡張マスクビットを更新する回路(G_1
、G_2、32)を設けて、既存のマシン語命令の実行
で、前記既存のマスクレジスタと拡張マスクビット収容
レジスタの更新を同時に行なうことを特徴とする割込み
マスク制御方法。
[Claims] 1. An interrupt mask control method when extending an interrupt path that cannot be allocated to an existing mask register (10), comprising: a register (12) that accommodates an extension mask bit (B);
A register (14) that accommodates a flag bit (F) that is an operand for the mask bit, and a circuit (G_1) that updates the extended mask bit with the flag bit in accordance with the control signal (S) output from the instruction decoder (26).
, G_2, 32), and the existing mask register and the extended mask bit storage register are simultaneously updated by executing an existing machine language instruction.
JP6297488A 1988-03-16 1988-03-16 Interruption mask control method Pending JPH01236327A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6297488A JPH01236327A (en) 1988-03-16 1988-03-16 Interruption mask control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6297488A JPH01236327A (en) 1988-03-16 1988-03-16 Interruption mask control method

Publications (1)

Publication Number Publication Date
JPH01236327A true JPH01236327A (en) 1989-09-21

Family

ID=13215834

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6297488A Pending JPH01236327A (en) 1988-03-16 1988-03-16 Interruption mask control method

Country Status (1)

Country Link
JP (1) JPH01236327A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5432943A (en) * 1992-04-30 1995-07-11 Hitachi, Ltd. Data processing apparatus having interruption control unit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5432943A (en) * 1992-04-30 1995-07-11 Hitachi, Ltd. Data processing apparatus having interruption control unit

Similar Documents

Publication Publication Date Title
US6460135B1 (en) Data type conversion based on comparison of type information of registers and execution result
JPH09212371A (en) Register saving and restoring system
US5757685A (en) Data processing system capable of processing long word data
US5680632A (en) Method for providing an extensible register in the first and second data processing systems
JPH10207717A (en) Microcomputer
JPH01161442A (en) Register save and recovery system
JPH10161871A (en) Processor
JPH034936B2 (en)
JP2003058381A (en) Processor realizing exception processing setting by program
JPH01236327A (en) Interruption mask control method
JPS63214804A (en) Processor for plc and plc
US20050216708A1 (en) Processor for performing context switching, a method for performing context switching, a computer program for perform context switching
JPS63111535A (en) Data processor
JP3601758B2 (en) Information processing apparatus and processing method thereof
JP2918570B2 (en) Central processing unit
JPH0535472A (en) Microcomputer
JPS5839347A (en) Processor
JPH0233173B2 (en)
JP3588368B2 (en) Timer update assist method and timer device
JPH0683618A (en) Flag control circuit
JPH01114940A (en) Signal processor
JPS61141077A (en) Vector arithmetic device
JPS62194545A (en) Program rewriting device for data flow type computer
JPS61253503A (en) Sequence controller
JPH03105527A (en) Constituting system for program counter in pipeline computer