JPS6051135B2 - Instruction word verification method by adding parity bits - Google Patents
Instruction word verification method by adding parity bitsInfo
- Publication number
- JPS6051135B2 JPS6051135B2 JP55031625A JP3162580A JPS6051135B2 JP S6051135 B2 JPS6051135 B2 JP S6051135B2 JP 55031625 A JP55031625 A JP 55031625A JP 3162580 A JP3162580 A JP 3162580A JP S6051135 B2 JPS6051135 B2 JP S6051135B2
- Authority
- JP
- Japan
- Prior art keywords
- operand
- instruction
- word
- parity
- parity bits
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/08—Error detection or correction by redundancy in data representation, e.g. by using checking codes
- G06F11/10—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Detection And Correction Of Errors (AREA)
- Executing Machine-Instructions (AREA)
Description
【発明の詳細な説明】
本発明は、パリテイビット付加による命令語の検定方式
に係る。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an instruction word verification method by adding a parity bit.
現在の汎用電子計算機は全部といつてもいいくらい所謂
ストアートプログラム式処理装置によるもので、これは
プログラムを記憶装置にしまつておいて演算処理装置制
御装置により順次プログラムの中で一つ一つの命令を実
行していくもので、命令語は複数語長をもち、各語の順
位により語コードの解釈が異るようになつている。Almost all of today's general-purpose computers are based on so-called stored program processors, in which programs are stored in a storage device and are sequentially executed one by one by an arithmetic processor controller. It executes instructions, and the instruction words have multiple word lengths, and the word code is interpreted differently depending on the order of each word.
しかしてこのように、プログラムを記憶装置に内蔵して
プログラムの中で制御が行われる複数語長の命令語を有
する処理装置では、プログラムカ、 一 、、−、j−
1゛、、、に、、フーユ」・ユ^ 警、 レ いA2l
−ゝ、ヲ五 L 書 つ一右甘4へ41ス(オペレーシ
ョンに使われるデータ或は情報項目である)オペランド
並びに(例えば足したり掛けたりの命令コードによる)
命令の誤認等が生ずると、プログラムが暴走する危険が
ある。However, in a processing device as described above, which has a program stored in a storage device and has instruction words of multiple word lengths in which control is performed within the program, the program number is 1, , -, j-.
1゛,,,,,,fuyu''・Yu^ Police, Le A2l
−ゝ,ヲ5 L 書 し い Gan 4 to 41 The operand (which is the data or information item used in the operation) and the operand (for example, according to the instruction code of addition or multiplication)
If a command is misunderstood, there is a risk that the program will run out of control.
従つて一般に信頼性を高めるためにフエツチしたものが
命令であるかオペランドであるかのチェックができるこ
とが望ましい。このために代表的には2つの方法が考え
られる。第1は、命令とオペランドを区分する情報とし
て1ビット追加し、このビットにより区分する方法であ
り、第2はオペランドをあられすため、1語中の何ビッ
トかを用いてオペランドコードとする方法である。Therefore, in order to improve reliability, it is generally desirable to be able to check whether the fetched item is an instruction or an operand. For this purpose, two methods are typically considered. The first method is to add one bit as information to distinguish between an instruction and an operand, and the second method is to use some bits in one word to create an operand code to identify the operand. It is.
しかし第1の方法では、データバスおよびその、インタ
ーフェースに冗長ビットが必要となる。However, the first method requires redundant bits on the data bus and its interface.
又第2の方法では、命令フエツチ或はオペランドフエツ
チ時にマイクロプログラム或はハードウェア等でチェッ
クを行うと、その処理のための時間がかかり、或はチェ
ック回路が必要となり、更にす)ペランドであることを
指定するビットが必要なためオペランドとしての情報量
が減るほか、命令或はオペランドのコードが決定してい
る汎用マイクロコンピュータ等に対しては実施不可能で
ある等の欠点がともなう。;一方、従来より計算機に用
いる語の信頼性を向上させるために語そのもののコード
にパリテイビットと呼ばれる1ビットを追加し、パリテ
イチェックにより誤りを検出することが行われている。In the second method, if a check is performed using a microprogram or hardware at the time of instruction fetch or operand fetch, it takes time for the processing or requires a check circuit. Since a bit that specifies a certain thing is required, the amount of information as an operand is reduced, and it also has drawbacks such as being impractical for general-purpose microcomputers, etc., where the instruction or operand code is determined. On the other hand, conventionally, in order to improve the reliability of words used in computers, one bit called a parity bit is added to the code of the word itself, and errors are detected by a parity check.
これを利用して、例えば命令に対しては偶数パリテイ,
オベランドに対しては奇数パリテイとすることにより、
命令とオペランドをチェックする方法が考えられている
が、この方法ではオペランドが複数語長から構成される
場合に、プログラムカウンタの異常によるオペランドの
フエツチの順番の誤りを検出することができないという
欠点があつた。本発明ではこれ等の点に鑑みて、複数語
長の命令語をもち、命令語中の語の順位により語コード
の解釈が異なるようなストアードプログラム式処理装置
において命令語の各命令や各オペランドの所定単位ビッ
ト数毎に、夫々の区別を行なう奇偶パリテイを、命令や
各オペランドの順位によりパリテイビットの組合せが異
なるように付力lし、命令或いは各オペランドのフエツ
チ時に夫々のパリテイビットの組合せにより命令および
各オペランドの検定を行なうようにしたものであり、か
くて命令語の命令とオペランドの誤認を防止したもので
、命令、オペランドの決定している既存の汎用マイクロ
コンピュータに対しても命令とオペランドの検定を行う
ことができる。Using this, for example, even parity for instructions,
By setting odd parity for Oberand,
A method of checking instructions and operands has been considered, but this method has the disadvantage of not being able to detect errors in the order of fetching operands due to program counter errors when the operands are composed of multiple words. It was hot. In view of these points, in the present invention, each instruction and each operand of the instruction word are used in a stored program type processing device that has an instruction word with a plurality of word lengths and the word code is interpreted differently depending on the order of the words in the instruction word. For each predetermined number of unit bits, the odd-even parity for distinguishing each is applied so that the combination of parity bits differs depending on the order of the instruction or each operand, and when fetching an instruction or each operand, each parity bit is The instruction and each operand are verified by the combination of You can also test instructions and operands.
次に本発明方式をその1実施例について説明すると、今
1語16ビットの命令語の場合について述べると、まず
、16ビットについて8ビットずつ上バイトと下バイト
に分けてから命令とオペランドの上バイトと下バイトに
対し奇偶パリテイを規定するように夫々パリテイビット
を付加して下記の表のように命令1とオペランド1〜3
の最大4つの組合せをうるようにしたものである。表に
おいて、U.P(UpperParity)は上バイト
に対するパリテイ,L.P(LOwerParity)
は下バイトに対するパリテイを示している。Next, we will explain one embodiment of the method of the present invention.In the case of an instruction word of 16 bits per word, first, the 16 bits are divided into an upper byte and a lower byte of 8 bits each, and then the instruction and operand are separated. Parity bits are added to each byte and lower byte to specify odd-even parity, and instructions 1 and operands 1 to 3 are added as shown in the table below.
A maximum of four combinations are possible. In the table, U. P (UpperParity) is the parity for the upper byte, L. P (Lower Parity)
indicates parity for the lower bite.
表1にもとづく1実施例の場合で、パリテイビットを追
加した命令とオペランドの語の内容を示したものが第1
図である。In the case of one embodiment based on Table 1, the instruction with the parity bit added and the contents of the operand words are shown in the first example.
It is a diagram.
Aが上バイト、Bが下バイトの部分、C,Dは夫々部分
A,Bに付加するパリテイビットである。A is the upper byte, B is the lower byte, and C and D are parity bits added to the parts A and B, respectively.
従つて記憶装置にしまつておいたプログラムの命令語を
命令,オペランド1,命令,命令,オペランド1,オペ
ランド2の順序で実行するとすれば解読開始にともなつ
てモニタ側では始めに偶偶を規定する第1の命令、つい
で偶奇のオペランド1、ついで偶偶の第2の命令、更に
偶偶の第3の命令、偶奇のオペランド1、奇偶のオペラ
ンド2と順次記憶装置から制御装置へとフエツチされて
各命令語ごとに命令とオペランドの検定が行われ正しい
ことを確認し、誤りは修正してから命令の実行へと移る
ものである。Therefore, if the instruction words of a program stored in a storage device are to be executed in the order of instruction, operand 1, instruction, instruction, operand 1, operand 2, the monitor side first specifies even-even when decoding starts. The first instruction, then the even/odd operand 1, then the even/even second instruction, the even/even third instruction, the even/odd operand 1, and the odd/even operand 2 are sequentially fetched from the storage device to the control device. Instructions and operands are checked for each word to confirm that they are correct, and errors are corrected before the instruction is executed.
第2図は、この場合に用いられる命令とオペランドの検
定回路の1実施例ブロック図であり、1語16ビットを
上下8ビットずつに分け、上バイト,下バイトごとにパ
リテイビットを付加して各語のパリテイビット或はその
組合せにより、パリテイ検定回路1a,1bを用いて夫
々偶奇のパリテイを検定して第1のアンド回路2a,2
b,2c,2dに導入して偶偶,偶奇,奇偶,奇奇,の
4通りの組合せによる命令,オペランド1,オペランド
2,オペランド3の奇偶出力がえられる。Figure 2 is a block diagram of one embodiment of the instruction and operand verification circuit used in this case, in which 16 bits per word are divided into upper and lower 8 bits, and a parity bit is added to each upper and lower byte. According to the parity bit of each word or a combination thereof, parity testing circuits 1a and 1b are used to test whether the parity is even or odd, respectively, and the first AND circuits 2a and 2
b, 2c, and 2d to obtain instructions with four combinations of even-even, even-odd, odd-even, and odd-odd, and odd-even outputs of operand 1, operand 2, and operand 3.
一方、命令解釈実行回路3が設けられて命令で始まる命
令語に従つて命令(命令でない)フエツチ信号つまり(
オペランド1)+(オペランド2)十(オペランド3)
、オペランド1(オペランド1でない)フエツチ信号つ
まり(命令)+(オペランド2)+(オペランド3)、
オペランド2(オペランド2でない)フエツチ信号つま
り(命令)+(オペランド1)+(オペランド3)、7
ペランド3(オペランド3でない)つまり(命令)+(
オペランド1)+(オペランド2)の各出力がとりださ
れて、第2のアンド回路4a,4b,4c,4dにて前
述の命令、オペランド1、オペランド2、オペランド3
の奇偶パリテイ出力とつきあわせされて、チェックが行
われ信号をとりだし、これにより誤りは修正されること
になり、以上の検定回路では最大4語長命令までの命令
、オペランドの検定を行うことができ、容易に命令とオ
ペランドの検定を行つてプログラムの誤動作や暴走等を
防止することができる。On the other hand, an instruction interpretation/execution circuit 3 is provided, and a command (non-command) fetch signal, that is, (
operand 1) + (operand 2) ten (operand 3)
, operand 1 (not operand 1) fetch signal, i.e. (instruction) + (operand 2) + (operand 3),
Operand 2 (not operand 2) Fetch signal, that is (instruction) + (operand 1) + (operand 3), 7
operand 3 (not operand 3) i.e. (instruction) + (
The respective outputs of operand 1) + (operand 2) are taken out, and the above-mentioned instructions, operand 1, operand 2, and operand 3 are processed by the second AND circuits 4a, 4b, 4c, and 4d.
A check is performed and a signal is taken out by checking the odd-even parity output of the circuit, and errors are corrected by this.The above verification circuit can verify instructions and operands of up to 4 word length. This makes it possible to easily verify instructions and operands to prevent program malfunctions and runaways.
第1図は命令語の1実施例の内容を示す図、第2図は命
令オペランドの検定回路ブロック図である。
Aは上バイト、Bは下バイト、C,Dは付加パリテイ.
ビット、1a,1bはパリテイ検定回路、2a〜2dは
第1のアンド回路、3は命令解釈実行回路、4a〜4d
は第2のアンド回路。FIG. 1 is a diagram showing the contents of one embodiment of an instruction word, and FIG. 2 is a block diagram of an instruction operand verification circuit. A is the upper byte, B is the lower byte, C and D are additional parity.
Bits 1a and 1b are parity verification circuits, 2a to 2d are first AND circuits, 3 is an instruction interpretation and execution circuit, 4a to 4d
is the second AND circuit.
Claims (1)
り語コードの解釈が異なるストアードプログラム式処理
装置において、命令語の各命令や各オペランドの所定単
位ビット数毎に、夫々の区別を行なう奇偶パリテイを、
命令や各オペランドの順位によりパリテイビットの組合
せが異なるように付加し、命令或いは各オペランドのフ
エツチ時に夫々のパリテイビットの組合せにより命令お
よび各オペランドの検定を行なうことを特徴とするパリ
テイビット付加による命令語の検定方式。1. In a stored program processing device that has an instruction word with a plurality of word lengths, and the word code is interpreted differently depending on the order of the words in the instruction word, the respective distinctions are odd-even parity,
A parity bit characterized in that different combinations of parity bits are added depending on the order of the instruction and each operand, and the instruction and each operand are tested by the combination of respective parity bits when fetching the instruction or each operand. Verification method for imperative words by addition.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP55031625A JPS6051135B2 (en) | 1980-03-14 | 1980-03-14 | Instruction word verification method by adding parity bits |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP55031625A JPS6051135B2 (en) | 1980-03-14 | 1980-03-14 | Instruction word verification method by adding parity bits |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS56129954A JPS56129954A (en) | 1981-10-12 |
| JPS6051135B2 true JPS6051135B2 (en) | 1985-11-12 |
Family
ID=12336390
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP55031625A Expired JPS6051135B2 (en) | 1980-03-14 | 1980-03-14 | Instruction word verification method by adding parity bits |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6051135B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP6221110B2 (en) * | 2013-05-01 | 2017-11-01 | 株式会社エルイーテック | Apparatus and method for determining and resolving errors in a processing apparatus |
-
1980
- 1980-03-14 JP JP55031625A patent/JPS6051135B2/en not_active Expired
Also Published As
| Publication number | Publication date |
|---|---|
| JPS56129954A (en) | 1981-10-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0581935B2 (en) | ||
| CN116382958B (en) | A memory error processing method and computing device | |
| KR840006091A (en) | How to recover from errors in the microprogram controller | |
| JP3338488B2 (en) | Data processing device verification method and device | |
| US3618042A (en) | Error detection and instruction reexecution device in a data-processing apparatus | |
| JPS6051135B2 (en) | Instruction word verification method by adding parity bits | |
| JPH04248629A (en) | Arithmetic processing system | |
| US7549095B1 (en) | Error detection enhancement in a microprocessor through the use of a second dependency matrix | |
| JPS57164347A (en) | Undefined instruction detector for one chip microcomputer | |
| JPS6158041A (en) | Microinstruction execution control method | |
| JPH0147818B2 (en) | ||
| JP2690910B2 (en) | Control storage device | |
| JPS6261974B2 (en) | ||
| JPH0797324B2 (en) | Microprogram error correction circuit | |
| JPH0619726B2 (en) | Information processing equipment | |
| SU1072050A1 (en) | Device for checking error detection/corrrection blocks,operated with hamming code | |
| JPS58199499A (en) | Data processor | |
| JPH0371236A (en) | Error detecting system | |
| JPH0769846B2 (en) | Error processing circuit verification device | |
| JPS58215799A (en) | System for verifying control storage | |
| JPS5936853A (en) | Operation processor | |
| JPS5945565A (en) | System for controlling microprogram | |
| JPH0476733A (en) | Data processor | |
| JPH0436420B2 (en) | ||
| JPS6055445A (en) | Retrying system |