JPS60134940A - Register selecting system of information processing device - Google Patents

Register selecting system of information processing device

Info

Publication number
JPS60134940A
JPS60134940A JP58242026A JP24202683A JPS60134940A JP S60134940 A JPS60134940 A JP S60134940A JP 58242026 A JP58242026 A JP 58242026A JP 24202683 A JP24202683 A JP 24202683A JP S60134940 A JPS60134940 A JP S60134940A
Authority
JP
Japan
Prior art keywords
register
signal line
address
interrupt level
general
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
JP58242026A
Other languages
Japanese (ja)
Other versions
JPH0731608B2 (en
Inventor
Kazunori Nakamura
和則 中村
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.)
Hitachi Microcomputer System Ltd
Hitachi Ltd
Original Assignee
Hitachi Ltd
Hitachi Microcomputer Engineering 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 Hitachi Ltd, Hitachi Microcomputer Engineering Ltd filed Critical Hitachi Ltd
Priority to JP58242026A priority Critical patent/JPH0731608B2/en
Publication of JPS60134940A publication Critical patent/JPS60134940A/en
Publication of JPH0731608B2 publication Critical patent/JPH0731608B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To assign a specific register to every interrupt level without paying any attention to interrupt levels on a program by providing a means which converts contents of a register designating part of an instruction in accordance with the interrupt level. CONSTITUTION:Lower three bits in a part R of an instruction register 2 are outputted as a lower address of a general register 5 to a signal line 6, and upper one bit is inputted to an address converting circuit 4 through a signal line 7. A register 3 inputs contents of the interrupt level to the address converting circuit 4 through a signal line 8. Four kinds of interrupt level, 0-3 are provided, and the address converting circuit 4 performs prescribed conversion in accordance with the state ''1'' or ''0'' of the signal line 7 and the interrupt level of the signal line 8 and the upper address of the general register 5 to a signal line 9. The register 5 is divided to 5 blocks, and addresses in blocks are designated by the lower address of the signal line 6, and addresses of blocks are designated by the upper address of the signal line 9.

Description

【発明の詳細な説明】 〔発明の利用分野J 本発明は情報処理装置に係り、詳しくは、マイクロプロ
セッサなどにおける割込みレベル毎の汎用レジスタの選
択方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Application of the Invention J] The present invention relates to an information processing device, and more particularly to a general-purpose register selection method for each interrupt level in a microprocessor or the like.

し発明の背景」 周知のように、情報処理装置では割り込みが発生すると
、実行中の処理を中断して割込みに係わる処理を実行し
、それが終了すると元の処理に戻る。また、ある割込み
に係わる処理を実行中、それより優先順位の高い割込み
が発生すると、実行中の割込み処理を中断して新しく発
生した割込みに係わる処理を実行し、それが終了すると
、中断していた割込みに係わる処理を再開し、それが終
了すると通常の処理に戻る。
BACKGROUND OF THE INVENTION As is well known, when an interrupt occurs in an information processing device, the process being executed is interrupted, the process related to the interrupt is executed, and when the process is completed, the process returns to the original process. Also, if an interrupt with a higher priority occurs while processing related to a certain interrupt is being executed, the interrupt processing that is currently being executed is interrupted and processing related to the newly generated interrupt is executed. The process related to the interrupted interrupt is restarted, and when it is finished, the process returns to normal processing.

ところで、従来のマイクロプロセッサ等においては1割
込みレベルに無関係にすべての汎用レジスタへのアクセ
スを許していた。このため、割込みが発生する毎に汎用
レジスタ上のデータを主メモリへ退避し、割込みよりの
復帰時に該退避したデータを主メモリより読み出し、汎
用レジスタへ再設定し5ていた。この作業は主にプログ
ラムによって行なわれていたため、プログラムの構成か
複雑になるうえ、場合によっては、そのマイクロプロセ
ッサを用いる装置の性能に影響をケ・えるといっ問題点
があった。
By the way, in conventional microprocessors, etc., access to all general-purpose registers is allowed regardless of the interrupt level. Therefore, every time an interrupt occurs, the data on the general-purpose register is saved to the main memory, and when returning from the interrupt, the saved data is read from the main memory and reset to the general-purpose register. Since this work was mainly performed by a program, the structure of the program was complicated, and in some cases, the performance of the device using the microprocessor could be affected.

又、マイクロプロセッサのアーキテクチャによっては、
汎用レジスタを用いないで、ブツシュ・ポツプ方式のス
タックを用いる方法もあるが、ランダムアクセス可能な
汎用レジスタを用いる方式に比べて自由度か少ない上、
スタックのオーバフロー等の管理が必要である。
Also, depending on the microprocessor architecture,
There is also a method that uses a bush-and-pop stack without using general-purpose registers, but it has less flexibility than a method that uses randomly accessible general-purpose registers, and
It is necessary to manage stack overflow, etc.

[9!明の口約) 本発明の目的は、マイクロプロセッサなどにおいて、プ
ロクラム−Eは割込みレベルを意識することなく、割込
みレベル毎に固有のレジスタを割り当てることを可能と
するレジスタ選択方式を提供することにある。
[9! An object of the present invention is to provide a register selection method that allows Program-E to allocate a unique register for each interrupt level in a microprocessor or the like without being aware of the interrupt level. be.

〔発明の概要j 本発明の特徴は、命令中のレジスタ指定部の内容を割込
みレベルに対応して変換する手段を設け、命令コード上
は同一のレジスタを指定しても、物理的には別のレジス
タを選択できるようにしたものである。
[Summary of the Invention j A feature of the present invention is that a means is provided for converting the contents of the register specification section in an instruction in accordance with the interrupt level, so that even if the same register is specified in the instruction code, it is physically different. This allows you to select registers.

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

第1図は本発明の一実施例の構成図である。第1図にお
いて、1はマイクロプロセッサであり、本発明に関係す
る構成として命令レジスタ21割込みレベル保持レジス
タ3.アドレス変換回路4、汎用レジスタ5などを有し
ている。命令レジスタ2のR部が汎用レジスタ5のアド
レスを指定する部分で、ここでは4ピッI−より構成さ
れるとする。
FIG. 1 is a block diagram of an embodiment of the present invention. In FIG. 1, reference numeral 1 denotes a microprocessor, and its components related to the present invention include an instruction register 21, an interrupt level holding register 3. It has an address conversion circuit 4, a general-purpose register 5, and the like. It is assumed that the R part of the instruction register 2 specifies the address of the general-purpose register 5, and is composed of 4 pins I-.

該命令レジスタ2のR部の下位3ビツトは汎用レジスタ
5の下位アドレスとして信号線6に出力され、上位1L
”ットは信号線7を経てアドレス変換回路4に入力され
る。レジスタ3は割込みレベルを保持するレジスタで、
その内容は信号線8を経て同じくアドレス変換回路4に
入力される。ここで、割込みレベルは0〜3の4レベル
を有するとする。アドレス変換回路4は信号線7のl 
]、 IZ” Q 11の状態と信号線8の割込みレベ
ルとにより第2図に示す変換を行い、汎用レジスタ5の
上位アドレスを信号線9に出力する。汎用レジスタ5は
5つのブロックに分けられており、1ブロツクは8ワー
ド(レジスタ)の構成となっている。汎用レジスタ5に
おけるブロック内の71〜レスは信号線6の下位アドレ
スによって示され、ブロックのアドレスは信号線9の上
位アドレスによって示される。
The lower 3 bits of the R part of the instruction register 2 are output to the signal line 6 as the lower address of the general-purpose register 5, and the upper 1L
” is input to the address conversion circuit 4 via the signal line 7.Register 3 is a register that holds the interrupt level.
The contents are also input to the address conversion circuit 4 via the signal line 8. Here, it is assumed that the interrupt level has four levels, 0 to 3. The address conversion circuit 4 is connected to the l of the signal line 7.
], IZ" Q The conversion shown in FIG. 2 is performed according to the state of 11 and the interrupt level of signal line 8, and the upper address of general-purpose register 5 is output to signal line 9. General-purpose register 5 is divided into five blocks. One block consists of eight words (registers). 71 to 71 in the block in the general-purpose register 5 are indicated by the lower address of the signal line 6, and the address of the block is indicated by the upper address of the signal line 9. shown.

例えば、命令レジスタ2のR部の上位1ビツトが″0 
I+の場合、割込みレベルに関係なくアドレス変換回路
4の出力線9はrOJどなり、命令によってアクセスさ
れる汎用レジスタ5の領域は常にブロックOとなる。一
方、命令レジスタ2のR部のに位jビットが′ビの場合
は1割込みレベルが0〜3に対応してアドレス変換回路
4の出力線9は「1」から[4」となり、命令上は同一
の汎用レジスタアドレスを指定しても、汎用レジスタ5
の領域はブロック1〜5の別領域がアクセスされる。し
・たがって、各割込みレベル0〜3に固有なデータをそ
れぞれブロック1〜4に割り当てることにより、プログ
ラム上は割込みレベルを意識することなく、各割込みレ
ベル毎に汎用レジスタ5内の固有のブロックのみがアク
セスを許可されるため1割込みが発生する毎に汎用レジ
スタ5のデータを主メモリ(図示せず)に退避する必要
がなることにより、該ブロック0を介して各割込みレベ
ル間で共通に用いるデータを授受の行うこともできる。
For example, the upper 1 bit of the R part of instruction register 2 is "0".
In the case of I+, the output line 9 of the address conversion circuit 4 becomes rOJ regardless of the interrupt level, and the area of the general-purpose register 5 accessed by the instruction always becomes block O. On the other hand, if the j-th bit of the R section of the instruction register 2 is 'bi', the output line 9 of the address conversion circuit 4 will be from ``1'' to ``4'' corresponding to the 1 interrupt level 0 to 3, and the instruction Even if you specify the same general-purpose register address, general-purpose register 5
As for the area, different areas of blocks 1 to 5 are accessed. - Therefore, by assigning data specific to each interrupt level 0 to 3 to blocks 1 to 4, the program can create a unique block in the general-purpose register 5 for each interrupt level without being aware of the interrupt level. Since the data in the general-purpose register 5 must be saved to the main memory (not shown) each time an interrupt occurs, the data in the general-purpose register 5 must be saved in the main memory (not shown). Data to be used can also be exchanged.

第3図は本発明の他の実施例の構成図で、第1図と同一
部分には同一符号を用いて示している。
FIG. 3 is a block diagram of another embodiment of the present invention, in which the same parts as in FIG. 1 are designated by the same reference numerals.

第1図との相違は、命令レジスタ2のR部が5ビツト幅
で、その上位2ビツトが信号線7を経てアドレス変換回
路4に入リアトレス変換をうけることと、アドレス変換
回路4がレジスタファイル構成をとり、その内容が命命
によって書き替え可能となっていることである。レジス
タファイル構成をとるアドレス変換回路4へのデータ設
定は、命令レジスタ2のコマンドコードCがレジスタフ
ァイルへの設定コマンドの時、デコーダ10のデコード
出力線12が′1″となってアドレス変換回路4への書
き込み信号が与えられ、命令レジスタ2のオペランドエ
のデータがデータ線11を通して書き込ま九ることで行
わ九る。アドレス変換回路4は信号線8の割込みレベル
を上位アドレス、信号線7の2ビツトデータを下位アド
レスとして。
The difference from FIG. 1 is that the R part of the instruction register 2 is 5 bits wide, and the upper 2 bits enter the address conversion circuit 4 via the signal line 7 and undergo rear address conversion, and the address conversion circuit 4 is connected to the register file. It has a structure, and its contents can be rewritten at will. When the command code C of the instruction register 2 is a register file setting command, the decode output line 12 of the decoder 10 becomes '1'' and the data is set to the address conversion circuit 4 which has a register file configuration. The data of the operand of the instruction register 2 is written through the data line 11.The address conversion circuit 4 converts the interrupt level of the signal line 8 into the upper address and the data of the operand of the Bit data as lower address.

該レジスタファイル内の対応するアドレスのデータを信
号線9へ出力し、汎用レジスタ5の上位71−レス(ブ
ロックアドレス)とする。汎用レジスタ5の下位アトI
ノス(ブロック内アドレス)は信号線6を通し、命令レ
ジスタ2のR部の下位3ビツトによって示さJする。
The data at the corresponding address in the register file is output to the signal line 9, and is set as the upper 71-res (block address) of the general-purpose register 5. Lower ato I of general-purpose register 5
The address (intra-block address) is indicated by the lower three bits of the R section of the instruction register 2 through the signal line 6.

いま、プログラムによってアドレス変換回路4に設定さ
れたデータが第4図に示すものであったとする。この場
合1割込みレベル毎に割り当てられた汎用レジスタ5の
ブロックは第2図と実質的に同じになる。即ち、この場
合は、命令レジスタ2にお番ブるR部の最上位1ビツト
はII OIIのときしか意味をもたない。一方、複数
レベルの割込みを用いない用途に本マイクロプロセッサ
1を用いる時には第5図の表に示すデータをアドレス変
換回路4に設定する。この場合、マイクロプロセッサ1
が常に割込みレベル0の状態にあるとすれば。
Assume now that the data set in the address conversion circuit 4 by the program is as shown in FIG. In this case, the blocks of general-purpose registers 5 allocated to each interrupt level are substantially the same as in FIG. 2. That is, in this case, the most significant bit of the R part numbered in the instruction register 2 has meaning only when it is II OII. On the other hand, when the present microprocessor 1 is used for applications that do not use interrupts of multiple levels, the data shown in the table of FIG. 5 is set in the address conversion circuit 4. In this case, microprocessor 1
Suppose that is always at interrupt level 0.

命令レジスタ2のR部で示す32ワードのアドレスを全
て命令で用いることが出来る。この時1割込みレベル0
に対して汎用レジスタ5はブロック0〜3が使われる。
All 32 word addresses shown in the R section of the instruction register 2 can be used for instructions. At this time, 1 interrupt level is 0
For general purpose register 5, blocks 0 to 3 are used.

第1図及び第3図の実施例では、1をマイクロプロセッ
サとしたが、マイクロプロセッサ以外にも適用可能であ
ることは云うまでもない。
In the embodiments shown in FIGS. 1 and 3, the microprocessor 1 is used, but it goes without saying that the present invention can be applied to systems other than microprocessors.

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

以上の説明から明らかな如く、本発明にあっては、次の
如き効果を得ることが出来る。
As is clear from the above description, the following effects can be obtained with the present invention.

(1)命令コート上、同一のアドレスを用いて1割込み
レベル毎に個有の汎用レジスタを用いることが出来る。
(1) Due to the instruction code, a unique general-purpose register can be used for each interrupt level using the same address.

(2)用途に応じて、割込みレベル毎に用いる汎用レジ
スタの領域の大きさ、アドレスを変えることが出来る。
(2) Depending on the purpose, the size and address of the general-purpose register area used for each interrupt level can be changed.

(3) (1)の理由により1割込みが発生する毎に汎
用レジスタのデータを退避させる必要がなくなり、プロ
グラムの構成が簡単になる。
(3) Due to the reason in (1), it is no longer necessary to save data in a general-purpose register every time one interrupt occurs, which simplifies the structure of the program.

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

第1図は本発明の一実施例の構成図、第2図は第1図に
おける71−レス変換回路の論理動作を示す図、第3図
は本発明の他の実施例の構成図、第4図及び第5図は第
3図におけるアドレス変換回路に設定するデータの一例
を示す図である。 l・・・マイクロプロセッサ、2・・・命令レジスタ。 3・・・割込みレベル保持レジスタ54・・・アドレス
変換回路、5・・・汎用レジスタ。 第1図 第2図 第3図 第4図 第5図
FIG. 1 is a block diagram of one embodiment of the present invention, FIG. 2 is a diagram showing the logical operation of the 71-less conversion circuit in FIG. 1, and FIG. 3 is a block diagram of another embodiment of the present invention. 4 and 5 are diagrams showing examples of data set in the address conversion circuit in FIG. 3. l...Microprocessor, 2...Instruction register. 3... Interrupt level holding register 54... Address conversion circuit, 5... General purpose register. Figure 1 Figure 2 Figure 3 Figure 4 Figure 5

Claims (1)

【特許請求の範囲】[Claims] (1)複数のレジスタを具備し、命令中のレジスタ指定
部の内容により所望のレジスタを選択する情報処理装置
において、前記命令中のレジスタ指定部の内容と割込み
レベールを示す信号とを六ヵして、前記割込みレベルに
対応して前記レジスタ指定部の内容を変換する変換手段
を設け、前記選換手段の変換出力によってレジスタを選
択することを特徴とするレジスタ選択方式。 −(2)前記変換手段の変換テーブルを命令によって任
意に変更することを特徴とする特許請求の範囲第1項記
載のレジスタ選択方式。
(1) In an information processing device that is equipped with a plurality of registers and selects a desired register based on the contents of a register specification section in an instruction, the contents of the register specification section in the instruction and a signal indicating an interrupt level are selected in six ways. A register selection method characterized in that a conversion means is provided for converting the contents of the register specifying section in accordance with the interrupt level, and a register is selected based on the conversion output of the selection means. (2) The register selection method according to claim 1, wherein the conversion table of the conversion means is arbitrarily changed by a command.
JP58242026A 1983-12-23 1983-12-23 Information processing equipment Expired - Lifetime JPH0731608B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58242026A JPH0731608B2 (en) 1983-12-23 1983-12-23 Information processing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58242026A JPH0731608B2 (en) 1983-12-23 1983-12-23 Information processing equipment

Publications (2)

Publication Number Publication Date
JPS60134940A true JPS60134940A (en) 1985-07-18
JPH0731608B2 JPH0731608B2 (en) 1995-04-10

Family

ID=17083160

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58242026A Expired - Lifetime JPH0731608B2 (en) 1983-12-23 1983-12-23 Information processing equipment

Country Status (1)

Country Link
JP (1) JPH0731608B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03209530A (en) * 1990-01-12 1991-09-12 Matsushita Electric Ind Co Ltd Time division multi-task executing device
JPH0528030A (en) * 1991-07-19 1993-02-05 Fujitsu Ltd Address conversion system
JP2010128392A (en) * 2008-11-28 2010-06-10 Canon Inc Hash processing apparatus and hash processing method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS513746A (en) * 1974-06-28 1976-01-13 Yokogawa Electric Works Ltd
JPS5487130A (en) * 1977-12-23 1979-07-11 Fujitsu Ltd Conventional register access system
JPS58129658A (en) * 1982-01-29 1983-08-02 Nec Corp Controller for microprogram

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS513746A (en) * 1974-06-28 1976-01-13 Yokogawa Electric Works Ltd
JPS5487130A (en) * 1977-12-23 1979-07-11 Fujitsu Ltd Conventional register access system
JPS58129658A (en) * 1982-01-29 1983-08-02 Nec Corp Controller for microprogram

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03209530A (en) * 1990-01-12 1991-09-12 Matsushita Electric Ind Co Ltd Time division multi-task executing device
JPH0528030A (en) * 1991-07-19 1993-02-05 Fujitsu Ltd Address conversion system
JP2010128392A (en) * 2008-11-28 2010-06-10 Canon Inc Hash processing apparatus and hash processing method
US8571207B2 (en) 2008-11-28 2013-10-29 Canon Kabushiki Kaisha Hash value calculation apparatus and method thereof

Also Published As

Publication number Publication date
JPH0731608B2 (en) 1995-04-10

Similar Documents

Publication Publication Date Title
US3778776A (en) Electronic computer comprising a plurality of general purpose registers and having a dynamic relocation capability
JPH0131214B2 (en)
EP0159699A2 (en) A data processor executing microprograms according to a plurality of system architectures
JPS5911921B2 (en) numerical control device
JPS60134940A (en) Register selecting system of information processing device
JPS5844263B2 (en) memory control circuit
US3913073A (en) Multi-memory computer system
JPS6346855B2 (en)
JPS60205644A (en) Memory address extension system
JPS6223891B2 (en)
JPS6330658B2 (en)
JPS62151955A (en) Memory addressing system
JPS6031646A (en) Data processor
JPH0128965B2 (en)
JPH02136921A (en) Register access system
JPS5919287A (en) Input and output processing system by memory access instruction
JPS6218937B2 (en)
JPH0784963A (en) Semiconductor integrated circuit with cpu
JPH0424852A (en) Multi-port access system
JPS592938B2 (en) Memory workspace
JPS63261446A (en) Extended virtual memory control system
JPH04195895A (en) Ic memory
JPS59132480A (en) Storage device
JPS60243760A (en) Setting method of system parameter
JPH01108652A (en) Address conversion system