JPH02239349A - Circuit for detecting exception of virtual computer - Google Patents
Circuit for detecting exception of virtual computerInfo
- Publication number
- JPH02239349A JPH02239349A JP1061168A JP6116889A JPH02239349A JP H02239349 A JPH02239349 A JP H02239349A JP 1061168 A JP1061168 A JP 1061168A JP 6116889 A JP6116889 A JP 6116889A JP H02239349 A JPH02239349 A JP H02239349A
- Authority
- JP
- Japan
- Prior art keywords
- address
- register
- virtual computer
- value
- real
- 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
- 238000001514 detection method Methods 0.000 claims abstract description 10
- 238000010586 diagram Methods 0.000 description 3
- 238000000034 method Methods 0.000 description 1
Landscapes
- Memory System Of A Hierarchy Structure (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は仮想計算機の例外検出回路、特に仮想計算機上
のアドレスを実主記憶に連続常駐で割付ける仮想計算機
の例外検出回路に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an exception detection circuit for a virtual machine, and particularly to an exception detection circuit for a virtual machine that allocates addresses on the virtual machine in real main memory in a continuous resident manner.
従来、この種の仮想計算機の例外検出回路は、第2図に
ブロック区を示すように、仮想計算機上のアドレスを実
主記憶上のアドレスに変換する際に、第2レジスタ2の
仮想計算機上のアドレスに第1レジスタ1のこの仮想計
算機のベースとなるアドレスを加算器4により加算し、
その結果算出された第4レジスタ4の実アドレスと第6
レジスタ8に予めセットされている仮想計算機の実記憶
上のアドレスの上限値とを、比較器7により比較し、第
4レジスタ4の実アドレスの方が大きい場合には第5レ
ジスタ5に例外情報をセットして、報告するようになっ
ている。Conventionally, this type of exception detection circuit for a virtual machine has been configured to store the second register 2 on the virtual machine when converting an address on the virtual machine to an address on the real main memory, as shown in block sections in FIG. The adder 4 adds the base address of this virtual machine in the first register 1 to the address of
The real address of the 4th register 4 calculated as a result and the 6th register
The comparator 7 compares the upper limit of the address on the real memory of the virtual machine, which is preset in the register 8, and if the real address in the fourth register 4 is larger, exception information is stored in the fifth register 5. is set and reported.
上述した従来の仮想計算機の例外検出回路は、先ず第1
ステップとして仮想計算機上のアドレスとベースアドレ
スとを加算することで実主記憶上のアドレスを算出し、
次に第2ステップとして第1ステップで算出されたアド
レスと予め用意されている仮想計算機の上限アドレスと
を比較することで、例外が発生したかを検出しているの
で、例外を検出するまでに2ステップを要し、処理性能
を低下させる欠点を有している。The conventional exception detection circuit of the virtual machine described above first
As a step, calculate the address on the real main memory by adding the address on the virtual machine and the base address,
Next, as a second step, we detect whether an exception has occurred by comparing the address calculated in the first step with the upper limit address of the virtual machine prepared in advance. This method requires two steps and has the drawback of reducing processing performance.
本発明の仮想計算機の例外検出回路は、仮想計算機上の
アドレスを実主記憶に連続常駐で割付ける計算機におい
て、実主記憶上における仮想計算機の上限アドレスの値
からベースアドレスの値を減算した値を保持するレジス
タと、仮想計算機でアクセスされた値が実アドレスに変
換されるときに、このアクセスされた値が前記レジスタ
に保持された値より大きいかを比較し、大きいときに例
外情報を出力する比較器とを有することにより構成され
る。The exception detection circuit for a virtual machine according to the present invention provides a value obtained by subtracting a base address value from the upper limit address value of the virtual machine on the real main memory in a computer that allocates addresses on the virtual machine in real main memory in a continuous resident manner. When the value accessed by the virtual machine is converted to a real address, the value accessed by the virtual machine is compared with the register that holds the register to see if it is larger than the value held in the register, and if it is larger, outputs exception information. It is constructed by having a comparator for
次に、本発明の実施例について図面を参照して説明する
。Next, embodiments of the present invention will be described with reference to the drawings.
第1図は本発明の一実施例のブロック図で、第1レジス
タ1は予め仮想計算のベースアドレスをセットしておく
レジスタ、第2レジスタ2は仮想?算機上のアドレスが
入力されるレジスタ、第3レジスタ3は仮想計算機の実
アドレス上での上限アドレスからベースアドレスを減算
した値をセットしておくレジスタで、第1レジスタ1の
値と第2レジスタ2の値とは加算器6に入力されて、加
算結果が第4レジスタ4に出力されるようになっている
。一方第2レジスタ2の値と第3レジスタ3の値とは比
較器7に入力されて、第2レジスタの値が大きいときに
第5レジスタ5に例外情報をセットして報告するように
構成されている。FIG. 1 is a block diagram of an embodiment of the present invention, in which the first register 1 is a register in which the base address of virtual calculation is set in advance, and the second register 2 is a register for setting the virtual calculation base address in advance. The third register 3, which is a register into which the address on the computer is input, is a register that sets the value obtained by subtracting the base address from the upper limit address on the virtual machine's real address, and the value of the first register 1 and the second The value of register 2 is input to adder 6, and the addition result is output to fourth register 4. On the other hand, the value of the second register 2 and the value of the third register 3 are input to a comparator 7, and when the value of the second register is large, exception information is set in the fifth register 5 and reported. ing.
以上の構成で、仮想計算機上のアドレスが第2レジスタ
2に入力されると、加算器6によりベースアドレスとの
加算が行なわれ、第4レジスタ4に実記憶上でのアドレ
スが出力される。一方、同時に第2レジスタ2の値と第
3レジスタ3の値とが比較器7で比較され、第2レジス
タ2の仮想計算機上のアドレスが大きいときには第5レ
ジスタ5から例外情報がシク■テムに報告される。With the above configuration, when an address on the virtual machine is input to the second register 2, the adder 6 performs addition with the base address, and the address on the real memory is output to the fourth register 4. On the other hand, at the same time, the value of the second register 2 and the value of the third register 3 are compared by the comparator 7, and when the address on the virtual machine of the second register 2 is large, the exception information is transmitted from the fifth register 5 to the system. Reported.
以上説明したように本発明は、予め仮想計算機の実アド
レス上での上限アドレスからベースアドレスを減算した
値を保持しておき、仮想計算機上のアドレスを実計算機
上のアドレスに変換する前に、仮想計算機上のアドレス
と上記の保持している減算値とを比較して1ステップに
より例外を検出するので、処理性態を低下させることが
ないという効果がある。As explained above, in the present invention, the value obtained by subtracting the base address from the upper limit address on the real address of the virtual machine is held in advance, and before converting the address on the virtual machine to the address on the real computer, Since an exception is detected in one step by comparing the address on the virtual machine with the above-described subtracted value held, there is an effect that processing performance is not degraded.
第1図は本発明の一実施例のブロック図、第2図は従来
の仮想計算機の例外検出回路のブロック図である。
1・・・第1レジスタ、2・・・第2レジスタ、3・・
・第3レジスタ、4・・・第4レジスタ、5・・・第5
レジスタ、6・・・加算器、7・・・比較器、8・・・
第6レジスタ。
男 IQFIG. 1 is a block diagram of an embodiment of the present invention, and FIG. 2 is a block diagram of a conventional exception detection circuit for a virtual computer. 1...First register, 2...Second register, 3...
・3rd register, 4...4th register, 5...5th register
Register, 6... Adder, 7... Comparator, 8...
6th register. male IQ
Claims (1)
る計算機において、実主記憶上における仮想計算機の上
限アドレスの値からベースアドレスの値を減算した値を
保持するレジスタと、仮想計算機でアクセスされた値が
実アドレスに変換されるときに、このアクセスされた値
が前記レジスタに保持された値より大きいかを比較し、
大きいときに例外情報を出力する比較器とを有すること
を特徴とする仮想計算機の例外検出回路。In a computer that allocates addresses on a virtual machine to real main memory in a continuous resident manner, there is a register that holds the value obtained by subtracting the base address value from the upper limit address value of the virtual machine on the real main memory, and a register that is accessed by the virtual machine. when the accessed value is converted to a real address, compare whether this accessed value is greater than the value held in the register;
1. An exception detection circuit for a virtual computer, comprising: a comparator that outputs exception information when the exception is larger.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1061168A JPH02239349A (en) | 1989-03-13 | 1989-03-13 | Circuit for detecting exception of virtual computer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1061168A JPH02239349A (en) | 1989-03-13 | 1989-03-13 | Circuit for detecting exception of virtual computer |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH02239349A true JPH02239349A (en) | 1990-09-21 |
Family
ID=13163346
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP1061168A Pending JPH02239349A (en) | 1989-03-13 | 1989-03-13 | Circuit for detecting exception of virtual computer |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH02239349A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06250919A (en) * | 1993-02-08 | 1994-09-09 | Internatl Business Mach Corp <Ibm> | Computer memory system |
KR101015456B1 (en) * | 2002-11-18 | 2011-02-22 | 에이알엠 리미티드 | Access control to memory by device |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS6126152A (en) * | 1984-07-16 | 1986-02-05 | Fujitsu Ltd | Address check method |
-
1989
- 1989-03-13 JP JP1061168A patent/JPH02239349A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS6126152A (en) * | 1984-07-16 | 1986-02-05 | Fujitsu Ltd | Address check method |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06250919A (en) * | 1993-02-08 | 1994-09-09 | Internatl Business Mach Corp <Ibm> | Computer memory system |
US5652853A (en) * | 1993-02-08 | 1997-07-29 | International Business Machines Corporation | Multi-zone relocation facility computer memory system |
KR101015456B1 (en) * | 2002-11-18 | 2011-02-22 | 에이알엠 리미티드 | Access control to memory by device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0945790A3 (en) | Method and apparatus for implementing fast subclass and subtype checks | |
CN109815789A (en) | Real-time multi-scale face detection method and system and related equipment on CPU | |
JPH02239349A (en) | Circuit for detecting exception of virtual computer | |
US5386521A (en) | Instruction prefetching circuit with a next physical address precalculating circuit | |
JPS6216691Y2 (en) | ||
JP2780895B2 (en) | Data processing device | |
JP2556904B2 (en) | High-speed adder / subtractor | |
JPS6382530A (en) | Semiconductor storage device | |
JP3530418B2 (en) | Multiplier | |
US5301140A (en) | Microcomputer that detects whether the output of an analog to digital convertor is increasing or decreasing overtime | |
US6055648A (en) | Method and apparatus for recovering the computing error, and a computer-readable recording medium for storing the program for executing the method | |
JP2894106B2 (en) | Delay analysis method | |
JPH04107731A (en) | Multiplication circuit | |
JPS63147229A (en) | Microprogram controller | |
JPS60254255A (en) | Memory scan system | |
JPH01271876A (en) | Comparison arithmetic processor | |
JPH0250220A (en) | Summarized arithmetic processing machine | |
JPS60110039A (en) | Arithmetic system | |
JPS60254258A (en) | Detecting method for breakdown of rom memory data | |
JPH03142546A (en) | address translation device | |
JPH03131926A (en) | Data processing circuit | |
JPS59211152A (en) | Branching origin memory system of digital computer | |
JPS63118847A (en) | Method for storing memory information in execution time | |
JPS63156233A (en) | System for generating load instruction of integer type data | |
JPS6385822A (en) | Engineering work station |