JPH0244432A - Electronic computer control system - Google Patents
Electronic computer control systemInfo
- Publication number
- JPH0244432A JPH0244432A JP63196331A JP19633188A JPH0244432A JP H0244432 A JPH0244432 A JP H0244432A JP 63196331 A JP63196331 A JP 63196331A JP 19633188 A JP19633188 A JP 19633188A JP H0244432 A JPH0244432 A JP H0244432A
- Authority
- JP
- Japan
- Prior art keywords
- redundant information
- parity
- data
- checking
- generation
- 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 9
- 238000000034 method Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 2
- 238000005086 pumping Methods 0.000 description 2
- 125000004122 cyclic group Chemical group 0.000 description 1
- 230000006870 function Effects 0.000 description 1
Landscapes
- Detection And Correction Of Errors (AREA)
- Executing Machine-Instructions (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は電子計算機制御方式に関し、特にサブルーチン
のコール/リターンとデータやレジスタ等のプッシュ/
ポツプとに同じスタックが使用されこのスタックにエラ
ー検出用の冗長情報が付随している電子計算機における
電子計算機制御方式〔従来の技術〕
従来、1本のスタックを使用してサブルーチンのコール
/リターン(すなわち、戻り番地のプッシュ/ポツプ)
とデータやレジスタ等(戻り番地を除く。以下同様)の
プッシュ/ポツプとを行う電子計算機では、スタックに
おいて戻り番地とデータやレジスタ等との区別は行われ
ておらず、スタックに入った後は内容から戻り番地であ
るかデータやレジスタ等であるかは判定することができ
なかった。[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to an electronic computer control method, and in particular subroutine call/return and push/return of data, registers, etc.
A computer control method for an electronic computer in which the same stack is used for the pop-up and redundant information for error detection is attached to this stack [Prior art] Conventionally, one stack is used to call/return subroutines ( i.e. push/pop of return address)
In electronic computers that push/pop data, registers, etc. (excluding return addresses; the same applies hereinafter), there is no distinction between return addresses and data, registers, etc. in the stack, and after entering the stack, It was not possible to determine from the contents whether it was a return address, data, register, etc.
上述した従来の電子計算機制御方式では、プッシュされ
たデータを戻り番地としてポツプしたり、プッシュされ
た戻り番地を誤ってレジスタにポンプしたりする等の戻
り番地とデータやレジスタ等との取違えによるプログラ
ムミスを検出することができず、プログラムのデバッグ
が困難であるという欠点がある。In the above-mentioned conventional computer control method, errors may occur due to confusion between return addresses and data or registers, such as popping pushed data as a return address or accidentally pumping a pushed return address into a register. The drawback is that programming errors cannot be detected and debugging the program is difficult.
また、スタックの内容からプログラムが走行してきた経
路を解析する際に戻り番地とデータやレジスタ等との区
別がつかず、経路解析等が困難であるという欠点がある
。Another drawback is that when analyzing the route taken by the program based on the contents of the stack, it is difficult to distinguish between return addresses and data, registers, etc., making route analysis difficult.
本発明の目的は、上述の点に鑑み、サブルーチンのコー
ル/リターンの場合とデータやレジスタ等のプッシュ/
ポツプの場合とでエラー検出用の冗長情報の生成/チェ
ックモードを変化させることにより、プログラムミス等
による戻り番地とデータやレジスタ等との取違えを容易
に検出できるようにした電子計算機制御方式を提供する
ことにある。In view of the above-mentioned points, an object of the present invention is to perform subroutine calls/returns and pushes/returns of data, registers, etc.
By changing the generation/checking mode of redundant information for error detection depending on the pop-up case, we have developed an electronic computer control method that can easily detect mistakes in return addresses and data, registers, etc. due to programming errors. It is about providing.
本発明の電子計算機制御方式は、サブルーチンのコール
/リターンとデータやレジスタ等のプッシュ/ポンプと
に同じスタックが使用されこのスタ・7りにエラー検出
用の冗長情報が付随している電子計算機において、2種
類の冗長情報生成/チェックモードを備える冗長情報生
成/チェック手段と、サブルーチンのコール/リターン
の際には一方の冗長情報生成/チェックモードで冗長情
報の生成/チェックを行いデータやレジスタ等のプッシ
ュ/ポツプの際には他方の冗長情報生成/チェックモー
ドで冗長情報の生成/チェックを行うように前記冗長情
報生成/チェック手段を制御する冗長情報生成/チェッ
クモード制御手段とを有する。The computer control method of the present invention is applicable to an electronic computer in which the same stack is used for calling/returning subroutines and pushing/pumping data, registers, etc., and redundant information for error detection is attached to this stack. , a redundant information generating/checking means with two types of redundant information generating/checking modes, and when calling/returning a subroutine, redundant information is generated/checked in one of the redundant information generating/checking modes, and data, registers, etc. redundant information generating/checking mode control means for controlling the redundant information generating/checking means so that redundant information is generated/checked in the other redundant information generating/checking mode when the redundant information generating/checking mode is pushed/popped.
(作用〕
本発明の電子計算機制御方式では、冗長情報生成/チェ
ック手段が2種類の冗長情報生成/チエ、/クモードを
備え、冗長情報生成/チェックモード制御手段がサブル
ーチンのコール/リターンの際には一方の冗長情報生成
/チェックモードで冗長情報の生成/チェックを行いデ
ータやレジスタ等のプッシュ/ポツプの際には他方の冗
長情報生成/チェックモードで冗長情報の生成/チエ・
7りを行うように冗長情報生成/チェック手段を制御す
る。(Function) In the computer control system of the present invention, the redundant information generation/checking means has two types of redundant information generation/checking modes, and the redundant information generating/checking mode control means is configured to control the redundant information generation/checking mode at the time of subroutine call/return. generates/checks redundant information in redundant information generation/check mode on one side, and generates/checks redundant information on the other side in case of push/pop of data or registers, etc.
The redundant information generating/checking means is controlled so as to perform the following steps.
次に、本発明について図面を参照して詳細に説明する。 Next, the present invention will be explained in detail with reference to the drawings.
第1図は、本発明の一実施例の電子計算機制御方式が適
用された電子計算機の構成を示す回路ブロック図である
。この電子計算機は、処理装置lと、メモリ (主記憶
)2と、処理装置l内に含まれる命令デコーダ10と、
パリティ生成回路11と、パリティチェック回路12と
、メモリ2内に設けられるスタック13とから、その主
要部が構成されている。FIG. 1 is a circuit block diagram showing the configuration of a computer to which a computer control method according to an embodiment of the present invention is applied. This electronic computer includes a processing device 1, a memory (main memory) 2, an instruction decoder 10 included in the processing device 1,
Its main parts are composed of a parity generation circuit 11, a parity check circuit 12, and a stack 13 provided in the memory 2.
処理装置lは、メモリ2に対してアドレス20および書
込みデータ21を送灯、続出しデータ24を受信する。The processing device 1 sends an address 20 and write data 21 to the memory 2, and receives continuous write data 24.
また、処理装置1は、パリティチエ7り回路12からエ
ラー検出用の割込み信号25を受信するや
命令デコーダlOは、サブルーチンのコール/リターン
を行う命令のデコード時にパリティ制御信号23として
“l”を出力し、データやレジスタ等のプッシュ/ポツ
プを行う命令のデコード時にパリティ制御信号23とし
て“0”を出力する。Furthermore, when the processing device 1 receives an interrupt signal 25 for error detection from the parity checker circuit 12, the instruction decoder IO outputs "l" as the parity control signal 23 when decoding an instruction for calling/returning a subroutine. However, it outputs "0" as the parity control signal 23 when decoding an instruction to push/pop data, registers, etc.
パリティ生成回路11は、書込みデータ21に対して例
えば偶パリティを生成する第1のパリティ生成モードと
、例えば奇パリティを生成する第2のパリティ生成モー
ドとを備える。The parity generation circuit 11 has a first parity generation mode in which, for example, even parity is generated for the write data 21, and a second parity generation mode in which, for example, odd parity is generated.
パリティチェック回路12は、読出しデータ24に対し
て例えば偶パリティをチェックする第1のパリティチェ
ックモードと、例えば奇パリティをチェックする第2の
パリティチェックモードとを備える。また、パリティチ
ェック回路12は、パリティエラー検出時に“1°の割
込み信号25を発生ずる。The parity check circuit 12 has a first parity check mode in which the read data 24 is checked for, for example, even parity, and a second parity check mode in which, for example, it is checked for odd parity. Furthermore, the parity check circuit 12 generates a "1°" interrupt signal 25 when a parity error is detected.
スタック13内には、戻り番地またはデータやレジスタ
等でなる書込みデータ21と対応させて、冗長情報とし
てパリティ22が格納されるようになっている。In the stack 13, parity 22 is stored as redundant information in association with write data 21 consisting of return addresses, data, registers, etc.
なお、パリティ生成回路11およびパリティチェック回
路12が2種類の冗長情報生成/チェックモ−ドを備え
る冗長情報生成/チェック手段に対応し、パリティ制御
信号23を出力する命令デコーダIOがサブルーチンの
コール/リターンの際には一方の冗長情報生成/チェッ
クモードで冗長情報の生成/チェックを行いデータやレ
ジスタ等のプッシュ/ポツプの際には他方の冗長情報生
成/チェックモードで冗長情報の生成/チェックを行う
ように冗長情報生成/チェック手段を制御する冗長情報
生成/チェックモード制御手段に対応している。Note that the parity generation circuit 11 and the parity check circuit 12 correspond to redundant information generation/check means having two types of redundant information generation/check modes, and the instruction decoder IO that outputs the parity control signal 23 is used for calling/checking subroutines. When returning, redundant information is generated/checked in redundant information generation/check mode on one side, and when data or registers are pushed/popped, redundant information is generated/checked in redundant information generation/check mode on the other side. This corresponds to a redundant information generation/check mode control means that controls the redundant information generation/check means to perform the redundant information generation/check mode.
次に、このように構成された本実施例の電子計算機制御
方式の動作について説明する。Next, the operation of the computer control method of this embodiment configured as described above will be explained.
処理装置1においてサブルーチンのコール/リターンを
行う命令が実行されると、命令デコーダ10からパリテ
ィ制御信号23として“l”が出力され、パリティ生成
回路11は第1のパリティ生成モードとなってパリティ
22として偶パリティを生成し、パリティチェック回路
12は第1のパリティチェックモードとなってスタック
13からの読出しデータ24に含まれるパリティ22が
偶パリティであることをチェックする。このパリティチ
ェックによりパリティ22が偶パリティでなければ、パ
リティチェック回路12は割込み信号25を“l”にし
てパリティエラー検出を処理装置1に通知する。When an instruction to call/return a subroutine is executed in the processing device 1, the instruction decoder 10 outputs "l" as the parity control signal 23, and the parity generation circuit 11 enters the first parity generation mode and outputs the parity 22. The parity check circuit 12 enters the first parity check mode and checks whether the parity 22 included in the read data 24 from the stack 13 is even parity. As a result of this parity check, if the parity 22 is not even parity, the parity check circuit 12 sets the interrupt signal 25 to "1" and notifies the processing device 1 of the detection of a parity error.
他方、処理装置lにおいてデータやレジスタ等のプッシ
ュ/ポツプを行う命令が実行されると、命令デコーダI
Oからパリティ制御信号23として“0”が出力され、
パリティ生成回路11は第2のパリティ生成モードとな
ってパリティ22として奇パリティを生成し、パリティ
チェック回路12は第2のパリティチェックモードとな
ってスタック13がらの読出しデータ24に含まれるパ
リティ22が奇パリティであることをチェックする。こ
のパリティチェックによりパリティ22が奇パリティで
なければ、パリティチェック回路12は割込み信号25
を“1”にしてパリティエラー検出を処理装置1に通知
する。On the other hand, when an instruction to push/pop data or registers is executed in the processing unit I, the instruction decoder I
“0” is output from O as the parity control signal 23,
The parity generation circuit 11 enters the second parity generation mode and generates odd parity as the parity 22, and the parity check circuit 12 enters the second parity check mode so that the parity 22 included in the read data 24 from the stack 13 is Check for odd parity. As a result of this parity check, if the parity 22 is not odd parity, the parity check circuit 12 sends an interrupt signal 25
is set to "1" to notify the processing device 1 of the detection of a parity error.
なお、上記実施例では、冗長情報をパリティとした例に
ついて説明したが、冗長情報はパリティに限定されるも
のではなく、巡回冗長検査符号等のその他の冗長情報を
用いてもよいことはいうまでもない。In the above embodiment, an example in which parity is used as redundant information has been described, but redundant information is not limited to parity, and it goes without saying that other redundant information such as a cyclic redundancy check code may be used. Nor.
以上説明したように本発明は、サブルーチンのコール/
リターンの場合とデータやレジスタ等のプッシュ/ポツ
プの場合とでエラー検出用の冗長情報の生成/チェック
モードを変化させることにより、プログラムミス等によ
る戻り番地とデータやレジスタ等との取違えが検出でき
るようになるという効果がある。As explained above, the present invention provides subroutine calls/
By changing the generation/checking mode of redundant information for error detection in the case of a return and in the case of push/pop of data, registers, etc., it is possible to detect mix-ups between return addresses and data, registers, etc. due to programming errors, etc. It has the effect of making it possible.
また、スタックの内容を解析する際に冗長情報も一緒に
取り出すことにより、戻り番地とデータやレジスタ等と
の区別をつけることができ、プログラムの経路解析等を
容易に行うことができるという効果がある。Additionally, by extracting redundant information when analyzing the contents of the stack, it is possible to distinguish return addresses from data, registers, etc., making it easier to analyze program paths. be.
第1図は本発明の一実施例の電子計算機制御方式が適用
された電子計算機の構成を示す回路ブロック図である。
図において、
処理装置、
メモリ、
命令デコーダ、
パリティ生成回路、
パリティチェック回路、
スタック、
アドレス、
書込みデータ、
パリティ、
パリティ制御信号、
読出しデータ、
割込み信号である。FIG. 1 is a circuit block diagram showing the configuration of a computer to which a computer control method according to an embodiment of the present invention is applied. In the figure, these are a processing unit, memory, instruction decoder, parity generation circuit, parity check circuit, stack, address, write data, parity, parity control signal, read data, and interrupt signal.
Claims (1)
のプッシュ/ポップとに同じスタックが使用されこのス
タックにエラー検出用の冗長情報が付随している電子計
算機において、 2種類の冗長情報生成/チェックモードを備える冗長情
報生成/チェック手段と、 サブルーチンのコール/リターンの際には一方の冗長情
報生成/チェックモードで冗長情報の生成/チェックを
行いデータやレジスタ等のプッシュ/ポップの際には他
方の冗長情報生成/チェックモードで冗長情報の生成/
チェックを行うように前記冗長情報生成/チェック手段
を制御する冗長情報生成/チェックモード制御手段と を有することを特徴とする電子計算機制御方式。[Claims] In an electronic computer in which the same stack is used for calling/returning a subroutine and pushing/popping data, registers, etc., and redundant information for error detection is attached to this stack, two types of redundant information are provided. A redundant information generating/checking means having a generating/checking mode, and one redundant information generating/checking mode generates/checks redundant information when calling/returning a subroutine, and when pushing/popping data or registers, etc. Generate redundant information on the other side / Generate redundant information in check mode /
1. A computer control system comprising redundant information generation/check mode control means for controlling said redundant information generation/check means to perform a check.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63196331A JPH0244432A (en) | 1988-08-05 | 1988-08-05 | Electronic computer control system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63196331A JPH0244432A (en) | 1988-08-05 | 1988-08-05 | Electronic computer control system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0244432A true JPH0244432A (en) | 1990-02-14 |
Family
ID=16356049
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63196331A Pending JPH0244432A (en) | 1988-08-05 | 1988-08-05 | Electronic computer control system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0244432A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006277532A (en) * | 2005-03-30 | 2006-10-12 | Nec Corp | Register saving and restoring circuit fault detection device, method and program |
-
1988
- 1988-08-05 JP JP63196331A patent/JPH0244432A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006277532A (en) * | 2005-03-30 | 2006-10-12 | Nec Corp | Register saving and restoring circuit fault detection device, method and program |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6643769B1 (en) | System and method for enabling selective execution of computer code | |
| JPH0244432A (en) | Electronic computer control system | |
| JPS60179847A (en) | Matching check system between real array and virtual array | |
| KR940001558B1 (en) | Status tracker for boards with processes | |
| JPS5937882Y2 (en) | error display device | |
| JPH064331A (en) | Decimal check circuit | |
| JPS59216255A (en) | Error detecting system of interruption stack area | |
| JPH0314148A (en) | Program destruction detection device | |
| JP2609768B2 (en) | Error detection method for control information read data | |
| JPS59133654A (en) | Program debugging device | |
| JPS5922147A (en) | Checking system of retrial processing | |
| JPS61195432A (en) | Parity check retry system for general purpose microprocessor | |
| JPH03233732A (en) | Electronic computer | |
| JPH04364552A (en) | Memory circuit with parity monitor circuit | |
| JPS6270947A (en) | Control system for debug interruption | |
| JPH05158808A (en) | Microprogram controller | |
| JPH01201762A (en) | Micro computer | |
| JPS5880751A (en) | Data processor | |
| JPH0452742A (en) | Abnormality detecting circuit for storage | |
| JPH0371236A (en) | Error detecting system | |
| JPH02133843A (en) | Memory error detecting system | |
| JPS60169947A (en) | Program abnormality detector | |
| JPH05324389A (en) | System for evaluating pseudo fault | |
| JPH0520205A (en) | Detecting circuit for memory error address | |
| JPS6234238A (en) | Microprocessor |