JPH0243633A - Parity checking device - Google Patents
Parity checking deviceInfo
- Publication number
- JPH0243633A JPH0243633A JP63195511A JP19551188A JPH0243633A JP H0243633 A JPH0243633 A JP H0243633A JP 63195511 A JP63195511 A JP 63195511A JP 19551188 A JP19551188 A JP 19551188A JP H0243633 A JPH0243633 A JP H0243633A
- Authority
- JP
- Japan
- Prior art keywords
- data
- address
- parity
- control information
- parity check
- 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
Landscapes
- Detection And Correction Of Errors (AREA)
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野]
本発明は、情報処理装置の診断、回復を行なう障害処理
装置に関し、特に情報処理装置の診断時に行なわれるパ
リティチェック方式に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a failure handling device for diagnosing and recovering an information processing device, and particularly to a parity check method performed when diagnosing an information processing device.
〔従来の技術]
従来、情報処理装置の診断時に行なわれるパリティチェ
ック方式では、パリティチェックをソフトウェアにより
行ない、このため、パリティチェックすべきデータとそ
れに付随するパリティを抽出し、この抽出されたデータ
を構成する全ビットの排他的論理和を取り、このパリテ
ィチェックすべきデータの正当性を調べていた。[Prior Art] Conventionally, in the parity check method performed when diagnosing information processing equipment, the parity check is performed by software. Therefore, the data to be parity checked and the parity accompanying it are extracted, and the extracted data is The validity of the data to be parity checked was checked by taking the exclusive OR of all the constituent bits.
[発明が解決しようとする課題)
上述した従来の情報処理装置の診断時に行なわれるパリ
ティチェック方式では、情報処理装置のデータのパリテ
ィチェックをソフトウェアにより行なっているため、パ
リティチェックにかなりの処理時間が必要であり、この
処理時間が障害処理に要する時間のうち多くの部分を占
めるという欠点がある。[Problems to be Solved by the Invention] In the above-described conventional parity check method performed during diagnosis of an information processing device, the parity check of the data of the information processing device is performed by software, so the parity check requires a considerable amount of processing time. There is a disadvantage that this processing time occupies a large portion of the time required for troubleshooting.
本発明のパリティチェック装置は、
パリティチェックすべきデータを含むワードデータと、
各ワードに含まれるデータの開始位置とデータの幅と偶
数/奇数パリティチェック指示とからなる複数の制御情
報を記憶しているメモリを有する情報処理装置において
、
前記メモリに記憶されているワードの先頭データのアド
レスを保持する複数のデータアドレス保持手段と、
前記メモリに記憶され、各ワードに含まれるデータの制
御情報のアドレスを保持する制御情報アドレス保持手段
と、
パリティチェックすべきデータが含まれるワードが指定
されたとき、このデータの制御情報のアドレスを制御情
報アドレス保持手段から読出して、前記メモリからこの
アドレスの制御情報を読出し、このデータを含むワード
の先頭データのアドレスをデータアドレス保持手段から
読出し、この先頭データのアドレスと読出された制御情
報のうちデータの開始位置とにより、パリティチェック
すべきデータのアドレスを求めて、このアドレスとこの
制御情報のうちデータの幅によりこのデータを前記メモ
リから読出すデータ選択部と、データ選択部で選び出さ
れたパリティチェックすべきデータに対して、データ選
択部が読出した偶数/奇数パリティチェック指示により
パリティチェックを行なうパリティチェック部と、パリ
ティチェック部のパリティチェックの結果を保持してソ
フトウェアに見せることができる特殊レジスタと、
パリティチェックすべきデータの、データアドレス保持
手段と制御情報アドレス保持手段を指定するパリティチ
ェック命令を入力して、データ選択部に対し、パリティ
チェックすべきデータのワードを指定する制御部とを有
する。The parity check device of the present invention comprises: word data including data to be parity checked;
In an information processing device having a memory storing a plurality of control information including a start position of data included in each word, a data width, and an even/odd parity check instruction, the beginning of the word stored in the memory a plurality of data address holding means for holding addresses of data; a control information address holding means for holding addresses of control information of data stored in the memory and included in each word; and a word containing data to be parity checked. is specified, the address of the control information of this data is read from the control information address holding means, the control information of this address is read from the memory, and the address of the first data of the word containing this data is read from the data address holding means. The address of the data to be parity checked is determined based on the address of this first data and the start position of the data among the read control information, and this data is stored in the memory according to this address and the width of the data among this control information. a parity check section that performs a parity check on the data to be parity checked selected by the data selection section according to an even/odd parity check instruction read by the data selection section; A special register that can hold the parity check result and show it to software, and a parity check instruction that specifies the data address holding means and control information address holding means of the data to be parity checked are input to the data selection section. and a control unit that specifies the word of data to be parity checked.
[作 用〕
ハードウェアによりパリティチェックを行なうことによ
り、ソフトウェアでパリティチェックを行なうよりも処
理時間が短縮される。[Operation] Performing a parity check using hardware reduces processing time compared to performing a parity check using software.
[実施例]
次に、本発明の実施例について図面を参照して説明する
。[Example] Next, an example of the present invention will be described with reference to the drawings.
第1図は本発明のパリティチェック装置の一実施例を示
すブロック図、第2図(1)は情報処理装置のメモリ1
に格納されているデータのフォーマットを示す図、第2
図(2)、(3)はデータ選択部4で選び出されるデー
タのフォーマットを示す図である。FIG. 1 is a block diagram showing an embodiment of the parity check device of the present invention, and FIG. 2 (1) is a memory 1 of the information processing device.
Figure 2 shows the format of data stored in
FIGS. (2) and (3) are diagrams showing the format of data selected by the data selection section 4.
本実施例のパリティチェック装置2は、汎用レジスタ群
3,4と、データ選択部5と、パリティチェック部6と
、特殊レジスタ7と、制御部8とからなる。メモリ1は
パリティチェックすべきデータを含む各ワードのデータ
と、この各ワードのデータに対応して、この各ワードに
含まれるデータの開始位置とビット幅と偶数/奇数パリ
ティチェック指示とからなる複数の制御情報を記憶して
いる。汎用レジスタ群3は複数の汎用レジスタからなり
、メモリ1に記憶されている各ワードの先頭データのア
ドレスを保持する。汎用しジスタ群4は複数の汎用レジ
スタからなり、各ワードに含まれるデータの制御情報の
アドレスを各ワードの先頭データのアドレスに対応して
保持する。データ選択部5は、パリティチェックすべき
データが含まれるワードが指定されたとき、該データの
制御情報のアドレスを汎用レジスタ群4から読出して、
メモリlからこのアドレスの制御情報を読出し、該ワー
ドの先頭データのアドレスを汎用レジスタ群3から読出
し、この先頭データのアドレスと読出された制御情報の
うちデータの開始位置とにより、パリティチェックすべ
きデータのアドレスを求めて、このアドレスとこの制御
情報のうちデータの幅により該データをメモリ1から読
出す、パリティチェック部6は、データ選択部5で選び
出されたパリティチェックすべきデータに対して、偶数
/奇数パリティチェック指示によりパリティチェックを
行なう、特殊レジスタ7は、パリティチェック部6のパ
リティチェックの結果を保持してソフトウェアに見せる
ことができる。制御部8は、汎用レジスタ群3,4中の
汎用レジスタを指定するパリティチェック命令を入力し
て、データ選択部5に対し、パリティチェックすべきデ
ータのワードを指定する。パリティチェック命令のフォ
ーマットは、ropcA、、BJであり、パリティチェ
ック命令であることを示すroPCJと、オペランドA
、Bとからなる。オペランドA、Bにより、汎用レジス
タ群3.4のそれぞれ汎用レジスタを指定する。The parity check device 2 of this embodiment includes general-purpose register groups 3 and 4, a data selection section 5, a parity check section 6, a special register 7, and a control section 8. The memory 1 stores data of each word containing data to be parity checked, and corresponding to the data of each word, a plurality of data including the start position and bit width of the data included in each word and even/odd parity check instructions. control information is stored. The general-purpose register group 3 is composed of a plurality of general-purpose registers, and holds the address of the first data of each word stored in the memory 1. The general-purpose register group 4 is composed of a plurality of general-purpose registers, and holds the address of control information of data included in each word in correspondence with the address of the first data of each word. When a word containing data to be parity checked is specified, the data selection unit 5 reads the address of the control information of the data from the general-purpose register group 4,
The control information of this address is read from the memory l, the address of the first data of the word is read from the general-purpose register group 3, and the parity should be checked based on the address of this first data and the start position of the data among the read control information. The parity check section 6 obtains the address of the data and reads the data from the memory 1 based on this address and the width of the data among the control information. The special register 7, which performs a parity check based on an even/odd parity check instruction, can hold the result of the parity check by the parity check section 6 and show it to software. The control unit 8 inputs a parity check instruction specifying a general-purpose register in the general-purpose register groups 3 and 4, and specifies, to the data selection unit 5, a word of data to be parity-checked. The format of the parity check instruction is ropcA,,BJ, with roPCJ indicating that it is a parity check instruction, and operand A.
, B. Operands A and B specify each general-purpose register in general-purpose register group 3.4.
次に、本実施例の動作について説明する。Next, the operation of this embodiment will be explained.
今、情報処理装置の障害時の、パリティチェックすべき
データa、b、c (CiとC2からなる)、dが第2
図(1)に示すようにメモリ1内に記憶されており、デ
ータa、b、C1からなる1ワードのデータのメモリl
内のアドレスが汎用レジスタ群3の汎用レジスタGRI
に、データa。Now, when the information processing device fails, the data a, b, c (consisting of Ci and C2), and d to be parity checked are the second
As shown in Figure (1), one word of data is stored in memory 1, consisting of data a, b and C1.
The address within is general register GRI of general register group 3.
, data a.
b、c、それぞれの制御情報のメモリ1内のアドレスが
汎用レジスタ群4の汎用レジスタGR2に記憶されてい
るとする。制御部8にパリティチェック命令rOPc
GRI、GR2Jが入力されると、データ選択部5に
より、データa。It is assumed that the addresses in the memory 1 of control information b and c are stored in the general-purpose register GR2 of the general-purpose register group 4. A parity check command rOPc is sent to the control unit 8.
When GRI and GR2J are input, the data selection unit 5 selects data a.
b、C1からなるlワードのデータ(第2図(1))の
アドレスが汎用レジスタGRIから読出され、データa
、b、clそれぞれの制御情報のアドレスが汎用レジス
タGR2から読出される。The address of l word data (FIG. 2 (1)) consisting of data b, C1 is read from general register GRI, and data a
, b, and cl are read from the general-purpose register GR2.
そしてデータ選択部5により、データa、b。Then, the data selection unit 5 selects data a and b.
clそれぞれの制御情報がメモリ1から読出され、デー
タaのこのワード内での開始位置とビット幅により、こ
の1ワードのデータのうちからデータaがメモリlから
読出される(第2図(2) ) 、このデータaに対し
て、データaとともにデータ選択部5から送られた偶数
/奇数パリティチェック指示により、パリティチェック
部6でパリティチェックが行なわれ、パリティチェック
結果が特殊レジスタ7に保持される。このようにして、
データaについてのパリティチェックは完了する。The control information for each word cl is read from memory 1, and data a is read from memory l from among this one word of data, depending on the start position and bit width of data a within this word (see Figure 2 (2). ) ), a parity check is performed on this data a by a parity check unit 6 according to an even/odd parity check instruction sent from a data selection unit 5 together with data a, and the parity check result is held in a special register 7. Ru. In this way,
The parity check for data a is completed.
次に、データbについて、データ選択部5により、デー
タa、b、C1のうちデータbが選び出され、上述した
データaと同様の動作を繰返してパリティチェックが行
なわれる。Next, for data b, data b is selected from data a, b, and C1 by the data selection section 5, and a parity check is performed by repeating the same operation as for data a described above.
次に、2つのワードにまたがって記憶されているパリテ
ィチェックすべきデータC(第2図(1))については
、データ選択部5により最初に読出されたデータC1と
次に読出されたデータC2とにより、データCが第2図
(3)に示すように生成され、その後、上述したデータ
aの場合と同様にバリテ、イチェツクが行なわれる。Next, regarding the data C to be parity-checked (FIG. 2 (1)) stored across two words, the data C1 read out first by the data selection section 5 and the data C2 read out next. As a result, data C is generated as shown in FIG. 2 (3), and thereafter, validation and checking are performed in the same manner as in the case of data a described above.
次に、データdのパリティチェックがデータaの場合と
同様に行なわれる。Next, the parity check for data d is performed in the same way as for data a.
以上説明したように本発明は、ハードウェアによりパリ
ティチェックを行なうことにより、パリティチェックを
行なう処理時間が短縮される効果がある。As described above, the present invention has the effect of shortening the processing time for parity checking by performing parity check using hardware.
第1図は本発明のパリティチェック装置の一実施例を示
すブロック図、第2図(1)は情報処理装置のメモリ1
に格納されているデータのフォーマットを示す図、第2
図(2)、(3)はデータ選択部5で選び出されるデー
タのフォーマットを示す図である。
1・・・・・・・・・・・・メモリ、
2・・・・・・・・・・・・パリティチェック装置、3
4・・・・・・汎用レジスタ群、
5・・・・・・・・・・・・データ選択部、6・・・・
・・・・・・・・パリティチェック部、7・・・・・・
・・・・・・特殊レジスタ、8・・・・・・・・・・・
・制御部。FIG. 1 is a block diagram showing an embodiment of the parity check device of the present invention, and FIG. 2 (1) is a memory 1 of the information processing device.
Figure 2 shows the format of data stored in
FIGS. (2) and (3) are diagrams showing the format of data selected by the data selection section 5. 1...Memory, 2...Parity check device, 3
4... General-purpose register group, 5... Data selection section, 6...
・・・・・・Parity check section, 7・・・・・・
・・・・・・Special register, 8・・・・・・・・・・・・
・Control unit.
Claims (1)
と、各ワードに含まれるデータの開始位置とデータの幅
と偶数/奇数パリティチェック指示とからなる複数の制
御情報を記憶しているメモリを有する情報処理装置にお
いて、 前記メモリに記憶されているワードの先頭データのアド
レスを保持する複数のデータアドレス保持手段と、 前記メモリに記憶され、各ワードに含まれるデータの制
御情報のアドレスを保持する制御情報アドレス保持手段
と、 パリティチェックすべきデータが含まれるワードが指定
されたとき、該データの制御情報のアドレスを制御情報
アドレス保持手段から読出して、前記メモリから該アド
レスの制御情報を読出し、該データを含むワードの先頭
データのアドレスをデータアドレス保持手段から読出し
、該先頭データのアドレスと読出された制御情報のうち
データの開始位置とにより、パリティチェックすべきデ
ータのアドレスを求めて、該アドレスと該制御情報のう
ちデータの幅により該データを前記メモリから読出すデ
ータ選択部と、 データ選択部で選び出されたパリティチェックすべきデ
ータに対して、データ選択部が読出した偶数/奇数パリ
ティチェック指示によりパリティチェックを行なうパリ
ティチェック部と、 パリティチェック部のパリティチェックの結果を保持し
てソフトウェアに見せることができる特殊レジスタと、 パリティチェックすべきデータの、データアドレス保持
手段と制御情報アドレス保持手段を指定するパリティチ
ェック命令を入力して、データ選択部に対し、パリティ
チェックすべきデータのワードを指定する制御部とを有
するパリティチェック装置。[Claims] 1. Storing a plurality of control information consisting of word data including data to be parity checked, the start position of data included in each word, data width, and even/odd parity check instructions. an information processing device having a memory, comprising: a plurality of data address holding means for holding addresses of leading data of words stored in the memory; and addresses of control information of data stored in the memory and included in each word. control information address holding means for holding a parity check; and when a word containing data to be parity checked is specified, an address of control information of the data is read from the control information address holding means, and control information of the address is read from the memory. read out the address of the first data of the word containing the data from the data address holding means, and find the address of the data to be parity checked based on the address of the first data and the start position of the data in the read control information. a data selection section that reads the data from the memory according to the data width of the address and the control information; and a data selection section that reads out the data to be parity checked selected by the data selection section. A parity check section that performs a parity check based on an even/odd parity check instruction, a special register that can hold the parity check result of the parity check section and show it to software, and a data address holding means for data to be parity checked. A parity check device comprising: a control section that inputs a parity check command specifying a control information address holding means and specifies a word of data to be parity-checked to a data selection section.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63195511A JPH0243633A (en) | 1988-08-04 | 1988-08-04 | Parity checking device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63195511A JPH0243633A (en) | 1988-08-04 | 1988-08-04 | Parity checking device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0243633A true JPH0243633A (en) | 1990-02-14 |
Family
ID=16342297
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63195511A Pending JPH0243633A (en) | 1988-08-04 | 1988-08-04 | Parity checking device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0243633A (en) |
-
1988
- 1988-08-04 JP JP63195511A patent/JPH0243633A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3237858B2 (en) | Arithmetic unit | |
| JPH0237431A (en) | Parity check device | |
| JPS6218057B2 (en) | ||
| US3618042A (en) | Error detection and instruction reexecution device in a data-processing apparatus | |
| JPH0243633A (en) | Parity checking device | |
| JP2731047B2 (en) | Program operand check method | |
| JPH04181331A (en) | Instruction retry system | |
| JP3341061B2 (en) | Programmable controller | |
| JPS60110043A (en) | Information processor | |
| JPS5936853A (en) | Operation processor | |
| JPH0218732B2 (en) | ||
| JPH05298144A (en) | Data trace system | |
| JPH05224987A (en) | Program debugger for pipeline processing system computer | |
| JPH0283739A (en) | Interrupt processing method for information processing equipment | |
| JPH05233379A (en) | Execution history storage device | |
| JPH07175648A (en) | Microprogram controller | |
| JPH03111935A (en) | Microprogram control device | |
| JPH02162458A (en) | Parallel processor | |
| JPS6269332A (en) | Storing system for history information | |
| JPS60134935A (en) | Microprogram control system | |
| JPS58149571A (en) | Processing system of vector operation in information processing device | |
| JPH0520089A (en) | Assembly system | |
| JPS58159150A (en) | Diagnosing device for control storage device | |
| JPH0469737A (en) | Microaddress circuit | |
| JPS6288040A (en) | Microprogram controller |