JP3121062B2 - Information processing device - Google Patents
Information processing deviceInfo
- Publication number
- JP3121062B2 JP3121062B2 JP03258879A JP25887991A JP3121062B2 JP 3121062 B2 JP3121062 B2 JP 3121062B2 JP 03258879 A JP03258879 A JP 03258879A JP 25887991 A JP25887991 A JP 25887991A JP 3121062 B2 JP3121062 B2 JP 3121062B2
- Authority
- JP
- Japan
- Prior art keywords
- instruction
- area
- software
- hardware
- exception information
- 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.)
- Expired - Fee Related
Links
Landscapes
- Advance Control (AREA)
- Executing Machine-Instructions (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は、主記憶をハードウェア
領域とソフトウェア領域に分割し、ハードウェア領域に
命令実行手順を格納し、ソフトウェア領域の複合命令ま
たは特定の事象を検出した時に、ハードウェア領域の命
令実行手順の実行が可能とされる情報処理装置に適用し
て有効な技術に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention divides a main memory into a hardware area and a software area, stores an instruction execution procedure in the hardware area, and detects a compound instruction or a specific event in the software area. The present invention relates to a technique effective when applied to an information processing apparatus capable of executing an instruction execution procedure in a wear area.
【0002】[0002]
【従来の技術】従来、この種の情報処理装置では、たと
えば特公昭59−9937号公報に記載されるように、
ハードウェア領域内の一連の命令実行手順は、ソフトウ
ェア領域内で実行される命令の組合せにより構成されて
いる。2. Description of the Related Art Conventionally, in this type of information processing apparatus, for example, as described in Japanese Patent Publication No. 59-9937,
A series of instruction execution procedures in the hardware area is configured by a combination of instructions executed in the software area.
【0003】[0003]
【発明が解決しようとする課題】ところが、前記のよう
な従来技術においては、ソフトウェア領域およびハード
ウェア領域のそれぞれにおけるメモリ・アクセス制御に
関しては言及しているが、ソフトウェア領域およびハー
ドウェア領域のそれぞれにおける命令例外情報検出制御
に関する配慮がなされておらず、ハードウェア領域内の
命令実行手順の中に、この情報処理装置の処理モードに
従い、その実行の有無が制御される命令(たとえば、
(株)日立製Mシリーズ処理装置において、BASR命
令はMモード時に命令例外となる)が存在する場合、上
記ハードウェア領域内の命令実行手順の実行が制約され
るという問題がある。However, in the above-mentioned prior art, the memory access control in each of the software area and the hardware area is described, but the memory access control in each of the software area and the hardware area is described. No consideration is given to instruction exception information detection control, and an instruction whose execution is controlled according to the processing mode of the information processing apparatus is included in the instruction execution procedure in the hardware area (for example,
In the case of the M-series processor manufactured by Hitachi, Ltd., there is a problem that execution of an instruction execution procedure in the hardware area is restricted when a BASR instruction causes an instruction exception in the M mode.
【0004】そこで、本発明の目的は、ソフトウェア領
域内で実行される命令と、ハードウェア領域内で実行さ
れる命令の命令例外情報の検出をそれぞれ独立に制御す
ることにより、この情報処理装置のモードによらず、ハ
ードウェア領域内の命令実行手順を実行することができ
る情報処理装置を提供することにある。It is an object of the present invention to control the detection of instruction exception information of an instruction executed in a software area and of an instruction executed in a hardware area independently of each other. An object of the present invention is to provide an information processing apparatus capable of executing an instruction execution procedure in a hardware area regardless of a mode.
【0005】本発明の前記ならびにその他の目的と新規
な特徴は、本明細書の記述および添付図面から明らかに
なるであろう。[0005] The above and other objects and novel features of the present invention will become apparent from the description of the present specification and the accompanying drawings.
【0006】[0006]
【課題を解決するための手段】本願において開示される
発明のうち、代表的なものの概要を簡単に説明すれば、
下記のとおりである。SUMMARY OF THE INVENTION Among the inventions disclosed in the present application, the outline of a representative one will be briefly described.
It is as follows.
【0007】すなわち、本発明の情報処理装置は、主記
憶をソフトウェア領域とハードウェア領域に分割し、ソ
フトウェア領域には通常のソフトウェアを格納し、かつ
ハードウェア領域にはソフトウェア領域の特定命令また
は特定事象に対する命令実行手順を格納し、特定命令が
発行または特定事象が発生すると、それに対応したハー
ドウェア領域内の命令実行手順を実行する情報処理装置
であって、ハードウェア領域の命令実行手順を実行中で
あることを示す第1の論理回路と、ハードウェア領域で
実行される命令の命令例外情報を専用に検出する第2の
論理回路とを設けるものである。That is, the information processing apparatus of the present invention divides the main memory into a software area and a hardware area, stores normal software in the software area, and stores a specific instruction or a specific instruction of the software area in the hardware area. An information processing apparatus that stores an instruction execution procedure for an event, and executes an instruction execution procedure in a hardware area corresponding to the issuance of a specific instruction or the occurrence of a specific event when the specific instruction is issued. The first logic circuit indicates that the instruction is in the middle, and the second logic circuit exclusively detects the instruction exception information of the instruction executed in the hardware area.
【0008】[0008]
【作用】前記した情報処理装置によれば、第1の論理回
路と第2の論理回路とを設けることにより、命令列がハ
ードウェア領域内で実行される場合とソフトウェア領域
内で実行される場合とで、それぞれ独立に命令例外情報
を検出することができる。According to the information processing apparatus described above, by providing the first logic circuit and the second logic circuit, when the instruction sequence is executed in the hardware area and when it is executed in the software area, Thus, the instruction exception information can be independently detected.
【0009】すなわち、実行される命令がソフトウェア
領域の命令実行手順の一部である場合は、従来通りに命
令例外情報が検出され、一方ハードウェア領域の命令実
行手順の一部である場合には、ハードウェア領域専用に
設けた第2の論理回路によりソフトウェア領域とは独立
に、この情報処理装置のモードに依存せずに命令例外情
報を検出することができる。That is, if the instruction to be executed is part of the instruction execution procedure in the software area, the instruction exception information is detected as before, while if it is part of the instruction execution procedure in the hardware area, In addition, the second logic circuit provided exclusively for the hardware area can detect the instruction exception information independently of the software area and independently of the mode of the information processing apparatus.
【0010】これにより、ハードウェア領域内の命令実
行手順の作成において使用可能な命令が拡張され、同時
にこの命令実行手順で実行される情報処理装置のモード
を意識することが不要となる。Thus, the instructions that can be used in creating the instruction execution procedure in the hardware area are expanded, and it is not necessary to be aware of the mode of the information processing apparatus executed in the instruction execution procedure.
【0011】[0011]
【実施例】図1は本発明の一実施例である情報処理装置
の要部を示す概略構成図、図2は本実施例の情報処理装
置における主記憶の分割状態を示す説明図、図3は本実
施例における命令実行手順の実行の様子を示す説明図で
ある。FIG. 1 is a schematic configuration diagram showing a main part of an information processing apparatus according to an embodiment of the present invention. FIG. 2 is an explanatory view showing a divided state of a main memory in the information processing apparatus according to the present embodiment. FIG. 6 is an explanatory diagram showing a state of execution of an instruction execution procedure in the embodiment.
【0012】まず、図1により本実施例の情報処理装置
の要部構成を説明する。First, the main configuration of the information processing apparatus according to the present embodiment will be described with reference to FIG.
【0013】本実施例の情報処理装置は、たとえば主記
憶がソフトウェア領域とハードウェア領域に分割された
情報処理装置とされ、命令データ情報を格納する命令レ
ジスタ1と、ソフトウェア領域命令例外情報を生成する
ソフトウェア領域命令例外情報検出回路2と、ハードウ
ェア領域命令例外情報を生成するハードウェア領域命令
例外情報検出回路(第2の論理回路)3と、モードを示
すマクロモードフリップフロップ(第1の論理回路)4
と、モードに対応してソフトウェア領域命令例外情報ま
たはハードウェア領域命令例外情報を選択するセレクタ
5とから構成されている。The information processing apparatus of this embodiment is, for example, an information processing apparatus in which a main memory is divided into a software area and a hardware area, and generates an instruction register 1 for storing instruction data information and software area instruction exception information. Software area instruction exception information detection circuit 2 to generate hardware area instruction exception information detection circuit (second logic circuit) 3 for generating hardware area instruction exception information, and macro mode flip-flop (first logic Circuit) 4
And a selector 5 for selecting software area instruction exception information or hardware area instruction exception information according to the mode.
【0014】主記憶は、たとえば図2に示すようにソフ
トウェア領域6とハードウェア領域7の2つに分割さ
れ、ソフトウェア領域6には、従来の主記憶と同様にオ
ペレーティング・システムが格納され、一方ハードウェ
ア領域7には、ソフトウェア領域6に格納されている複
合命令または特定の事象を検出した時に実行すべき命令
実行手順が格納される。The main memory is divided into, for example, a software area 6 and a hardware area 7 as shown in FIG. 2, and an operating system is stored in the software area 6 in the same manner as a conventional main memory. The hardware area 7 stores a compound instruction stored in the software area 6 or an instruction execution procedure to be executed when a specific event is detected.
【0015】次に、本実施例の作用について説明する。Next, the operation of this embodiment will be described.
【0016】始めに、情報処理装置の論理動作を図1に
より説明する。First, the logical operation of the information processing apparatus will be described with reference to FIG.
【0017】まず、命令レジスタ1に格納された命令デ
ータ情報8は、それぞれソフトウェア領域命令例外情報
検出回路2およびハードウェア領域命令例外情報検出回
路3に送出される。First, the instruction data information 8 stored in the instruction register 1 is sent to the software area instruction exception information detection circuit 2 and the hardware area instruction exception information detection circuit 3, respectively.
【0018】そして、ソフトウェア領域命令例外情報検
出回路2では、命令データ情報8と命令例外情報検出用
各種モード情報9よりソフトウェア領域命令例外情報1
0を生成する。一方、本発明の特徴であるハードウェア
領域命令例外情報検出回路3では、命令データ情報8よ
りハードウェア領域命令例外情報11を生成する。The software area instruction exception information detecting circuit 2 derives the software area instruction exception information 1 from the instruction data information 8 and the various kinds of mode information 9 for detecting instruction exception information.
Generate 0. On the other hand, the hardware area instruction exception information detection circuit 3 which is a feature of the present invention generates hardware area instruction exception information 11 from the instruction data information 8.
【0019】さらに、ソフトウェア領域命令例外情報1
0およびハードウェア領域命令例外情報11はセレクタ
5の入力となり、マクロモードフリップフロップ4のモ
ード情報12が“0”(ノーマルモード:ソフトウェア
領域6の命令実行手順を実行するモード)ならばソフト
ウェア領域命令例外情報10が、またモード情報12が
“1”(マクロモード:ハードウェア領域7の実行手順
を実行するモード)ならばハードウェア領域命令例外情
報11がそれぞれ選択され、命令例外情報13が生成さ
れる。Further, software area instruction exception information 1
0 and the hardware area instruction exception information 11 are input to the selector 5, and if the mode information 12 of the macro mode flip-flop 4 is "0" (normal mode: a mode for executing the instruction execution procedure of the software area 6), the software area instruction If the exception information 10 and the mode information 12 are “1” (macro mode: a mode for executing the execution procedure of the hardware area 7), the hardware area instruction exception information 11 is selected, and the instruction exception information 13 is generated. You.
【0020】続いて、命令実行手順の実行の様子を、図
3に基づいて具体的に説明する。Next, the manner of execution of the instruction execution procedure will be specifically described with reference to FIG.
【0021】たとえば、ソフトウェア領域6に格納され
ている命令実行手順、SR(減算)命令、AR(加算)
命令などを実行時に、複合命令(本実施例では仮にIN
ST−X命令)を検出すると、ハードウェア領域7の実
行手順を実行するモード、すなわちマクロモードに切り
換わり、INST−X命令の所定の処理を記述した命令
実行手順を実行し始める。For example, an instruction execution procedure stored in the software area 6, an SR (subtraction) instruction, and an AR (addition)
When an instruction or the like is executed, a compound instruction (in this embodiment, temporarily
When the (ST-X instruction) is detected, the mode is switched to a mode in which the execution procedure of the hardware area 7 is executed, that is, a macro mode, and an instruction execution procedure describing a predetermined process of the INST-X instruction is started.
【0022】そして、このハードウェア命令実行手順の
最後のEMD(マクロモード終了)命令が実行される
と、再び、ソフトウェア領域6の命令実行手順を実行す
るモード、すなわちノーマルモードに切り換わり、この
複合命令の次の命令に戻り、実行を続行する。When the last EMD (macro mode end) instruction of the hardware instruction execution procedure is executed, the mode is switched again to the mode for executing the instruction execution procedure of the software area 6, that is, the normal mode. Return to the instruction following the instruction and continue execution.
【0023】すなわち、上記のシステムでは、複合命令
(INST−X)はハードウェア領域7内の複数の命令
(STM命令、BASR命令など)で実行することにな
る。That is, in the above system, the compound instruction (INST-X) is executed by a plurality of instructions (STM instruction, BASR instruction, etc.) in the hardware area 7.
【0024】ここで、STM命令はこの情報処理装置の
処理モード((株)日立製Mシリーズ処理装置における
M、M/EA、M/EXモードなど)に関わらず実行可
能な命令である。Here, the STM instruction is an instruction that can be executed regardless of the processing mode of this information processing apparatus (M, M / EA, M / EX mode in an M series processing apparatus manufactured by Hitachi, Ltd.).
【0025】しかし、従来はこの情報処理装置が(株)
日立製Mシリーズ処理装置Mモードの場合、BASR命
令は存在しないため、命令例外によるプログラム割り込
みが発生することになる。つまり、BASR命令を含む
ハードウェア領域7内の実行手順は、この情報処理装置
のモードによりその実行が制約されることになるため、
本発明のような特別の手当てが必要となる。However, conventionally, this information processing apparatus has been
In the case of the Hitachi M series processing apparatus M mode, since there is no BASR instruction, a program interrupt due to an instruction exception occurs. In other words, the execution procedure of the hardware area 7 including the BASR instruction is restricted by the mode of the information processing apparatus.
Special care such as the present invention is required.
【0026】従って、本実施例の情報処理装置によれ
ば、ハードウェア領域命令例外情報11を生成するハー
ドウェア領域命令例外情報検出回路3、ノーマルモード
またはマクロモードを示すマクロモードフリップフロッ
プ4を備えることにより、命令列がソフトウェア領域6
の命令実行手順の一部である場合は、従来通りにソフト
ウェア領域命令例外情報10が検出され、一方ハードウ
ェア領域7の命令実行手順の一部である場合には、ソフ
トウェア領域6とは独立にハードウェア領域命令例外情
報11を検出することができる。Therefore, according to the information processing apparatus of this embodiment, the hardware area instruction exception information detecting circuit 3 for generating the hardware area instruction exception information 11 and the macro mode flip-flop 4 indicating normal mode or macro mode are provided. As a result, the instruction sequence is
If it is part of the instruction execution procedure, the software area instruction exception information 10 is detected as before, while if it is part of the instruction execution procedure of the hardware area 7, it is independent of the software area 6. The hardware area instruction exception information 11 can be detected.
【0027】以上、本発明者によってなされた発明を実
施例に基づき具体的に説明したが、本発明は前記実施例
に限定されるものではなく、その要旨を逸脱しない範囲
で種々変更可能であることはいうまでもない。As described above, the invention made by the inventor has been specifically described based on the embodiments. However, the present invention is not limited to the above embodiments, and can be variously modified without departing from the gist thereof. Needless to say.
【0028】たとえば、本実施例の情報処理装置につい
ては、複合命令が検出された場合について説明したが、
本発明は前記実施例に限定されるものではなく、特定事
象の発生時にも適用可能とされ、この場合には複合命令
の発生と同様に対応するハードウェア領域7内の命令実
行手順が実行される。For example, in the information processing apparatus of this embodiment, the case where a compound instruction is detected has been described.
The present invention is not limited to the above embodiment, and can be applied to the occurrence of a specific event. In this case, the instruction execution procedure in the corresponding hardware area 7 is executed in the same manner as the generation of the composite instruction. You.
【0029】[0029]
【発明の効果】本願において開示される発明のうち、代
表的なものによって得られる効果を簡単に説明すれば、
下記のとおりである。Advantageous effects obtained by typical ones of the inventions disclosed in the present application will be briefly described.
It is as follows.
【0030】すなわち、ハードウェア領域の命令実行手
順を実行中であることを示す第1の論理回路と、ハード
ウェア領域で実行される命令の命令例外情報を専用に検
出する第2の論理回路とを設けることにより、ソフトウ
ェア領域およびハードウェア領域で実行される命令の命
令例外情報をそれぞれ独立に検出制御することができる
ので、ハードウェア領域内の命令実行手順の作成におい
て使用可能な命令が拡張されると共に、この命令実行手
順の実行される情報処理装置のモードを意識する必要性
が不要となる。That is, a first logic circuit indicating that the instruction execution procedure in the hardware area is being executed, and a second logic circuit exclusively detecting the instruction exception information of the instruction executed in the hardware area. Is provided, it is possible to independently detect and control the instruction exception information of the instructions executed in the software area and the hardware area. Therefore, the instructions usable in creating the instruction execution procedure in the hardware area are extended. In addition, there is no need to be aware of the mode of the information processing apparatus in which the instruction execution procedure is executed.
【0031】この結果、ハードウェア領域内の命令実行
手順の生産性の向上が可能とされる情報処理装置を得る
ことができる。As a result, it is possible to obtain an information processing apparatus capable of improving the productivity of the instruction execution procedure in the hardware area.
【図1】本発明の一実施例である情報処理装置の要部を
示す概略構成図である。FIG. 1 is a schematic configuration diagram illustrating a main part of an information processing apparatus according to an embodiment of the present invention.
【図2】本実施例の情報処理装置における主記憶の分割
状態を示す説明図である。FIG. 2 is an explanatory diagram illustrating a divided state of a main memory in the information processing apparatus according to the present embodiment.
【図3】本実施例における命令実行手順の実行の様子を
示す説明図である。FIG. 3 is an explanatory diagram showing a state of execution of an instruction execution procedure in the embodiment.
1 命令レジスタ 2 ソフトウェア領域命令例外情報検出回路 3 ハードウェア領域命令例外情報検出回路(第2の論
理回路) 4 マクロモードフリップフロップ(第1の論理回路) 5 セレクタ 6 ソフトウェア領域 7 ハードウェア領域 8 命令データ情報 9 命令例外情報検出用各種モード情報 10 ソフトウェア領域命令例外情報 11 ハードウェア領域命令例外情報 12 モード情報 13 命令例外情報1 instruction register 2 software area instruction exception information detection circuit 3 hardware area instruction exception information detection circuit (second logic circuit) 4 macro mode flip-flop (first logic circuit) 5 selector 6 software area 7 hardware area 8 instruction Data information 9 Various mode information for detecting instruction exception information 10 Software area instruction exception information 11 Hardware area instruction exception information 12 Mode information 13 Instruction exception information
フロントページの続き (72)発明者 中村 幸二 神奈川県秦野市堀山下1番地 株式会社 日立製作所 神奈川工場内 (56)参考文献 特開 平2−83739(JP,A) 特開 平1−310441(JP,A) 特開 昭63−120336(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06F 9/22 - 9/38 Continuing from the front page (72) Koji Nakamura, Inventor: 1 Horiyamashita, Hadano City, Kanagawa Prefecture, Kanagawa Plant, Hitachi, Ltd. (56) References JP-A-2-83739 (JP, A) JP-A-1-310441 (JP) , A) JP-A-63-120336 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) G06F 9/22-9/38
Claims (1)
領域に分割し、前記ソフトウェア領域には通常のソフト
ウェアを格納し、かつ前記ハードウェア領域には該ソフ
トウェア領域の特定命令または特定事象に対する命令実
行手順を格納し、該特定命令が発行または特定事象が発
生すると、それに対応した前記ハードウェア領域内の命
令実行手順を実行する情報処理装置であって、前記ハー
ドウェア領域の命令実行手順を実行中であることを示す
第1の論理回路と、前記ハードウェア領域で実行される
命令の命令例外情報を専用に検出する第2の論理回路
と、前記ソフトウェア領域で実行される命令の命令例外
情報を検出する第3の論理回路と、前記第1の論理回路
の出力により前記ハードウェア領域命令例外情報と前記
ソフトウェア領域命令例外情報の一方を選択するセレク
タを設け、命令列が前記ハードウェア領域内で実行され
る場合と前記ソフトウェア領域内で実行される場合と
で、それぞれ独立に命令例外情報を検出することを特徴
とする情報処理装置。1. A main memory is divided into a software area and a hardware area, normal software is stored in the software area, and an instruction execution procedure for a specific instruction or a specific event of the software area is stored in the hardware area. An information processing apparatus that executes an instruction execution procedure in the hardware area corresponding to the issuance of the specific instruction or the occurrence of a specific event when the specific instruction is issued or a specific event occurs. A first logic circuit indicating the presence of the instruction, a second logic circuit exclusively detecting instruction exception information of an instruction executed in the hardware area, and an instruction exception information of an instruction executed in the software area. A third logic circuit that outputs the hardware area instruction exception information and the software area command based on an output of the first logic circuit. A selector for selecting one of the exception information is provided, and the instruction exception information is detected independently when the instruction sequence is executed in the hardware area and when the instruction string is executed in the software area. Information processing device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP03258879A JP3121062B2 (en) | 1991-10-07 | 1991-10-07 | Information processing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP03258879A JP3121062B2 (en) | 1991-10-07 | 1991-10-07 | Information processing device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH05158685A JPH05158685A (en) | 1993-06-25 |
| JP3121062B2 true JP3121062B2 (en) | 2000-12-25 |
Family
ID=17326303
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP03258879A Expired - Fee Related JP3121062B2 (en) | 1991-10-07 | 1991-10-07 | Information processing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3121062B2 (en) |
-
1991
- 1991-10-07 JP JP03258879A patent/JP3121062B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH05158685A (en) | 1993-06-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR970011207B1 (en) | Method and apparatus for a register providing atomic access to set and clear individual bits of a shared register without a software interlock | |
| KR930022198A (en) | Data processing unit | |
| JP3797570B2 (en) | Apparatus and method using semaphore buffer for semaphore instructions | |
| JP3121062B2 (en) | Information processing device | |
| JP3157242B2 (en) | Error handling method in micro program control | |
| JPH0954769A (en) | Vector processor | |
| JPS6238738B2 (en) | ||
| JPS63271553A (en) | Information processor | |
| JPH01134627A (en) | Instruction extending system for microprocessor | |
| JPH01201751A (en) | Memory protecting device | |
| JP2708647B2 (en) | How coprocessors support auxiliary functions | |
| JPS61100836A (en) | System for processing comparison and instruction of moving instruction logic | |
| JP3481301B2 (en) | Processor control unit | |
| JPH0683640A (en) | Interrupt response processing method | |
| JP2528394B2 (en) | Arithmetic control device | |
| JPS58142447A (en) | data processing equipment | |
| JPS595356A (en) | General-purpose register controlling system | |
| JPH03266023A (en) | Dynamic coupling system for variable | |
| JPH04113425A (en) | Program debugging method | |
| JPS6121555A (en) | Input and output managing method | |
| JPH05143365A (en) | Interruption table expansion/protection system | |
| JPH01316826A (en) | Register file address circuit | |
| JPH05108384A (en) | Microprocessor | |
| JPH04260131A (en) | Microprogram control system | |
| JPS62233844A (en) | Interruption control system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |