JPS6136258B2 - - Google Patents

Info

Publication number
JPS6136258B2
JPS6136258B2 JP53133415A JP13341578A JPS6136258B2 JP S6136258 B2 JPS6136258 B2 JP S6136258B2 JP 53133415 A JP53133415 A JP 53133415A JP 13341578 A JP13341578 A JP 13341578A JP S6136258 B2 JPS6136258 B2 JP S6136258B2
Authority
JP
Japan
Prior art keywords
parity
parity bit
register
bits
calculation
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
Application number
JP53133415A
Other languages
Japanese (ja)
Other versions
JPS5559563A (en
Inventor
Kozo Yamano
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
Nippon Electric Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP13341578A priority Critical patent/JPS5559563A/en
Publication of JPS5559563A publication Critical patent/JPS5559563A/en
Publication of JPS6136258B2 publication Critical patent/JPS6136258B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Detection And Correction Of Errors (AREA)
  • Hardware Redundancy (AREA)

Description

【発明の詳細な説明】 本発明はデータ処理装置における二重化論理回
路の誤り検出装置に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an error detection device for a duplex logic circuit in a data processing device.

従来の二重化論理回路の誤り検出方法において
は、第1図に示すように二重化された加算器3と
加算器4とのうち加算器3の出力は結果のデータ
ビツトとして、加算器4の出力はパリテイ発生回
路9を介して前記データビツトに対するパリテイ
ビツトとしてそれぞれレジスタ6へセツトされ、
該レジスタ6の出力は既知のパリテイチエツク手
段によりチエツクされ、前記二重化論理回路の誤
り検出を行われている。しかし、第1図のブロツ
ク図からにわかるようにパリテイ発生回路9が二
重化論理回路3および4と直列に接続されている
ため、結果を保持するレジスタに到達する遅延時
間がパリテイビツトはデータビツトより遅れるた
めマジンサイクルが遅延される要因となる欠点が
ある。
In the conventional error detection method for a duplexed logic circuit, as shown in FIG. are set in the registers 6 as parity bits for the data bits through the parity generation circuit 9,
The output of the register 6 is checked by known parity checking means to detect errors in the duplex logic circuit. However, as can be seen from the block diagram in Figure 1, since the parity generation circuit 9 is connected in series with the duplex logic circuits 3 and 4, the delay time for the parity bit to reach the register that holds the result is delayed from the data bit. Therefore, there is a drawback that the magic cycle is delayed.

本発明の目的は上述の従来の欠点を除去した誤
り検出装置を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide an error detection device that eliminates the above-mentioned conventional drawbacks.

本発明の装置は、データビツトとパリテイビツ
トとからなる予め定めたビツト数の第1のデータ
のデータビツトおよびデータビツトとパリテイビ
ツトとからなる予め定めたビツト数の第2のデー
タのデータビツトを演算する第1の演算手段およ
び第2の演算手段と、 これら第1の演算手段および第2の演算手段か
らの演算結果を格納する演算結果格納手段と、こ
の演算結果格納手段から出力される前記第1の演
算手段での演算結果に基づいてパリテイビツトを
発生する第1のパリテイビツト発生手段と、前記
演算結果格納手段から出力される前記第2の演算
手段での演算結果に基づいてパリテイビツトを発
生する第2のパリテイビツト発生手段と、 前記第1のパリテイビツト発生手段からのパリ
テイビツトおよび前記第2のパリテイビツト発生
手段からのパリテイビツトが、一致するか否かを
検出する検出手段とを含む。
The device of the present invention calculates a predetermined number of first data data bits consisting of data bits and parity bits and a predetermined number of second data data bits consisting of data bits and parity bits. a first arithmetic means and a second arithmetic means; an arithmetic result storage means for storing the arithmetic results from the first arithmetic means and the second arithmetic means; a first parity bit generation means for generating a parity bit based on the calculation result of the calculation means; and a second parity bit generation means for generating a parity bit based on the calculation result of the second calculation means outputted from the calculation result storage means. parity bit generating means; and detecting means for detecting whether the parity bit from the first parity bit generating means and the parity bit from the second parity bit generating means match.

次に本発明の一実施例について第2図を参照し
て詳細に説明する。第2図に示した本発明の2進
加算を遂行する装置は、パリテイビツトPを付加
したオペランド1およびオペランド2をそれぞれ
格納する第1のレジスタ1および第2のレジスタ
2、第1のレジスタ1と第2のレジスタ2のデー
タビツト出力は母線21および22を介して第1
の加算器3および第2の加算器4へ与えられる。
このとき両加算器3および4へはパリテイビツト
が与えられないのでパリテイチエツク回路5で加
算器3および4への入力データの正当性をチエツ
クする。加算結果は母線25および26を介して
結果保持用レジスタ6およびパリテイ発生用レジ
スタ7に与えられる。パリテイ発生用レジスタ7
はパリテイビツトを格納するフイールドを有しな
いが結果保持用レジスタ6は他の論理回路と接続
関係を有するためにパリテイビツトPを格納する
フイールドを有する。ゆえに母線25を介して与
えられる加算結果がレジスタ6に格納されている
ときは、パリテイビツトを強制的にゼロに設定し
第1の加算器3と第2の加算器4との正当性チエ
ツクを可能にする。
Next, one embodiment of the present invention will be described in detail with reference to FIG. The apparatus for performing binary addition of the present invention shown in FIG. The data bit output of the second register 2 is connected to the first register via buses 21 and 22.
is applied to the adder 3 and the second adder 4.
At this time, since no parity bit is given to both adders 3 and 4, parity check circuit 5 checks the validity of the input data to adders 3 and 4. The addition result is applied to result holding register 6 and parity generation register 7 via buses 25 and 26. Parity generation register 7
does not have a field for storing a parity bit, but the result holding register 6 has a field for storing a parity bit P because it has a connection relationship with other logic circuits. Therefore, when the addition result given via the bus 25 is stored in the register 6, the parity bit is forcibly set to zero, making it possible to check the validity of the first adder 3 and the second adder 4. Make it.

次に格納保持用レジスタ6に格納された加算結
果の誤り検出法について説明する。
Next, a method for detecting errors in the addition result stored in the storage/holding register 6 will be explained.

パリテイビツトをゼロにされた第1の加算器3
の結果を保持する格納保持用レジスタ6出力のデ
ータビツトが母線27を介して、またパリテイビ
ツトが母線28を介してパリテイ発生回路8へ送
られ、該パリテイ発生回路8で作成されたパリテ
イが母線29を介してパリテイ不一致検出回路1
0へ供給される。一方第2の加算器4の結果を保
持するパリテイ発生用レジスタ7の出力が母線3
0を介してパリテイ発生回路9へ送られ、該パリ
テイ発生回路9で作成されたパリテイが母線31
を介して、前記パリテイ不一致検出回路10へ供
給され、前記パリテイ発生回路8で作成されたパ
リテイビツトとの一致がチエツクされ、不一致の
ときエラーであることが母線32を介して報告さ
れる。ただし、前記パリテイ不一致検出回路10
からの不一致信号32が有効となるのは、格納保
持用レジスタ6へのセツト信号35の1クロツク
遅延フリツプフロツプ14がオンのときのみで、
該遅延フリツプフロツプ14の出力が母線36を
介してエラー信号選択回路13に供給され、母線
32からのエラー信号が選択される。前記遅延フ
リツプフロツプ14がオフのとき、すなわち格納
保持用レジスタ6の内容がパリテイビツトを含め
て保証されているときは、パリテイ発生回路8で
チエツクされた結果のエラー信号が母線29を介
してエラー信号選択回路13に供給されて選択さ
れる。従つて、誤り検出のためのパリテイ発生回
路8やパリテイチエツク回路10がマシンサイク
ル(クロツク)を決定するうえで影響のない場所
へ設置することができる。すなわち、主データパ
ス上に存在しないのでマシンサイクル(クロツ
ク)を速くすることが可能となり性能向上に寄与
できる。
First adder 3 with parity bit set to zero
The data bits output from the storage/holding register 6 that holds the results of the above are sent to the parity generation circuit 8 via the bus 27, and the parity bits are sent to the parity generation circuit 8 via the bus 28. Parity mismatch detection circuit 1 through
0. On the other hand, the output of the parity generation register 7 that holds the result of the second adder 4 is
0 to the parity generation circuit 9, and the parity generated by the parity generation circuit 9 is sent to the bus line 31.
The bits are supplied to the parity mismatch detection circuit 10 via the parity generating circuit 8 and checked for coincidence with the parity bits generated by the parity generation circuit 8, and when they do not match, an error is reported via the bus 32. However, the parity mismatch detection circuit 10
The mismatch signal 32 from the register 6 becomes valid only when the flip-flop 14, which delays the set signal 35 to the storage/holding register 6 by one clock, is on.
The output of the delay flip-flop 14 is supplied to the error signal selection circuit 13 via the bus 36, and the error signal from the bus 32 is selected. When the delay flip-flop 14 is off, that is, when the contents of the storage and holding register 6 are guaranteed including the parity bit, the error signal checked by the parity generation circuit 8 is sent to the error signal selection via the bus 29. It is supplied to the circuit 13 and selected. Therefore, the parity generation circuit 8 and parity check circuit 10 for detecting errors can be installed at a location where they will not affect the determination of the machine cycle (clock). That is, since it does not exist on the main data path, it is possible to speed up the machine cycle (clock), contributing to improved performance.

次に格納保持用レジスタ6に設定された加算結
果のパリテイビツトの書替え動作について説明す
る。第1のレジスタ1から格納保持用レジスタ
6、第2のレジスタ2から格納保持用レジスタ6
および第1の加算器3から格納保持用レジスタ6
への3種のセツト信号が母線33,34および3
5を介し、また遅延フリツプフロツプ14からの
出力が母線36を介して格納保持用レジスタパリ
テイ書替制御回路15へ送られ、該格納保持用レ
ジスタパリテイ書替制御回路15で格納保持用レ
ジスタ6のパリテイビツトが無効で、かつ、続い
て格納保持用レジスタ6へのセツト指示がないこ
とを判定したらパリテイ発生回路9の出力母線3
1を入力パリテイ選択回路12で選択し、かつ格
納保持用レジスタ6のパリテイビツトを書替える
ために母線37を介して前記入力パリテイ選択回
路12および格納保持用レジスタ6へ制御信号を
供給し、格納保持用レジスタ6のパリテイビツト
を書替え、有効とする。
Next, the operation of rewriting the parity bit of the addition result set in the storage/holding register 6 will be explained. First register 1 to storage/holding register 6, second register 2 to storage/holding register 6
and the storage holding register 6 from the first adder 3
Three set signals to buses 33, 34 and 3
5, and the output from the delay flip-flop 14 is sent to the storage/holding register parity rewrite control circuit 15 via the bus 36. When it is determined that the parity bit is invalid and that there is no subsequent set instruction to the storage/holding register 6, the output bus 3 of the parity generation circuit 9 is
1 is selected by the input parity selection circuit 12, and a control signal is supplied to the input parity selection circuit 12 and the storage and holding register 6 via the bus 37 in order to rewrite the parity bit of the storage and holding register 6. The parity bit of register 6 is rewritten and made valid.

さらに、格納保持用レジスタ6のデータを他の
論理回路へ供給するためのパリテイビツトの送出
法について説明する。格納保持用レジスタ6のパ
リテイビツトが無効なときはパリテイ発生回路9
から母線31を介して与えられる出力を、有効な
ときは前記格納保持用レジスタ6から母線28を
介して与えられるパリテイビツト出力をそれぞれ
出力パリテイ選択回路11から出力する。選択法
は前記エラー信号選択回路13と同様で遅延フリ
ツプフロツプ14のオン/オフ状態により行な
う。
Furthermore, a method for transmitting parity bits for supplying data in the storage/holding register 6 to other logic circuits will be explained. When the parity bit of the storage/holding register 6 is invalid, the parity generation circuit 9
The output parity selection circuit 11 outputs the output given from the storage/holding register 6 via the bus 31, and when valid, the parity bit output given from the storage/holding register 6 via the bus 28. The selection method is similar to that of the error signal selection circuit 13, and is performed by the on/off state of the delay flip-flop 14.

本発明には、二重化論理回路の一方に直列にパ
リテイ発生回路を設ける必要をなくし、マシンサ
イクルの高速化を計りシステム性能を向上させる
という効果がある。
The present invention has the effect of eliminating the need to provide a parity generation circuit in series with one of the duplex logic circuits, speeding up machine cycles, and improving system performance.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は従来技術における二重化論理回路の誤
り検出ブロツク図および第2図は本発明の一実施
例を示すブロツク図である。 第1図および第2図において、1…第1のレジ
スタ、2…第2のレジスタ、3…第1の加算器、
4…第2の加算器、5…パリテイチエツク回路、
6…格納保持用レジスタ、7…パリテイ発生用レ
ジスタ、8…パリテイ発生回路、9…パリテイ発
生回路、10…パリテイ不一致検出回路、11…
出力パリテイ選択回路、12…入力パリテイ選択
回路、13…エラー信号選択回路、14…遅延フ
リツプフロツプ、15…格納保持用レジスタパリ
テイ書替制御回路。
FIG. 1 is a block diagram of error detection in a duplex logic circuit in the prior art, and FIG. 2 is a block diagram showing an embodiment of the present invention. 1 and 2, 1...first register, 2...second register, 3...first adder,
4... Second adder, 5... Parity check circuit,
6... Register for storage and holding, 7... Register for parity generation, 8... Parity generation circuit, 9... Parity generation circuit, 10... Parity mismatch detection circuit, 11...
Output parity selection circuit, 12... Input parity selection circuit, 13... Error signal selection circuit, 14... Delay flip-flop, 15... Register parity rewrite control circuit for storage and holding.

Claims (1)

【特許請求の範囲】 1 データビツトとパリテイビツトとからなる予
め定めたビツト数の第1のデータのデータビツト
およびデータビツトとパリテイビツトとからなる
予め定めたビツト数の第2のデータのデータビツ
トとを演算する第1の演算手段および第2の演算
手段と、 これら第1の演算手段および第2の演算手段か
らの演算結果を格納する演算結果格納手段と、 この演算結果格納手段から出力される前記第1
の演算手段での演算結果に基づいてパリテイビツ
トを発生する第1のパリテイビツト発生手段と、 前記演算結果格納手段から出力される前記第2
の演算手段での演算結果に基づいてパリテイビツ
トを発生する第2のパリテイビツト発生手段と、 前記第1のパリテイビツト発生手段からのパリ
テイビツトおよび前記第2のパリテイビツト発生
手段からのパリテイビツトが一致するか否かを検
出する検出手段とを含むことを特徴とする誤り検
出装置。
[Scope of Claims] 1. Data bits of first data consisting of a predetermined number of bits consisting of data bits and parity bits, and data bits of second data consisting of a predetermined number of bits consisting of data bits and parity bits. a first calculation means and a second calculation means for calculating; a calculation result storage means for storing the calculation results from the first calculation means and the second calculation means; 1st
a first parity bit generation means for generating a parity bit based on the calculation result of the calculation means; and a second parity bit outputted from the calculation result storage means.
a second parity bit generation means that generates a parity bit based on the calculation result of the calculation means; and a second parity bit generation means that determines whether or not the parity bit from the first parity bit generation means and the parity bit from the second parity bit generation means match. An error detection device comprising: a detection means for detecting an error.
JP13341578A 1978-10-30 1978-10-30 Error detector Granted JPS5559563A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13341578A JPS5559563A (en) 1978-10-30 1978-10-30 Error detector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13341578A JPS5559563A (en) 1978-10-30 1978-10-30 Error detector

Publications (2)

Publication Number Publication Date
JPS5559563A JPS5559563A (en) 1980-05-06
JPS6136258B2 true JPS6136258B2 (en) 1986-08-18

Family

ID=15104228

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13341578A Granted JPS5559563A (en) 1978-10-30 1978-10-30 Error detector

Country Status (1)

Country Link
JP (1) JPS5559563A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5494851A (en) * 1978-01-10 1979-07-26 Nec Corp Data processor
JPS5916303A (en) * 1982-07-19 1984-01-27 松下冷機株式会社 Method of producing semiconductor porcelain material

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5494851A (en) * 1978-01-10 1979-07-26 Nec Corp Data processor
JPS5916303A (en) * 1982-07-19 1984-01-27 松下冷機株式会社 Method of producing semiconductor porcelain material

Also Published As

Publication number Publication date
JPS5559563A (en) 1980-05-06

Similar Documents

Publication Publication Date Title
US5640508A (en) Fault detecting apparatus for a microprocessor system
US5912909A (en) Method and apparatus for efficient implementation of checksum calculations
JPS6136258B2 (en)
JPH08171504A (en) Emulation device
JPS62242258A (en) Storage device
JPH0776915B2 (en) Data processing method and device
JPH0773114A (en) Memory control circuit for space digital computer
US5144628A (en) Microprogram controller in data processing apparatus
JP2000040081A (en) Vector data processor
JPS5916303B2 (en) data processing equipment
JP2908117B2 (en) Vector arithmetic processing unit
SU596949A1 (en) Arrangement for detecting errors in check equipment
JPH0588995A (en) Data communication system
Danese et al. Space and time redundancy in microcomputer bus communication
JP2536781B2 (en) Parity check device
JP2719227B2 (en) Processing equipment
JP3102051B2 (en) Microprocessor device
JP2567986B2 (en) Data processing system
JPH07210471A (en) Information processor
GB2027958A (en) Microprogrammed control unit
JPH05257821A (en) Check sum calculating circuit
JPH01194035A (en) Address parity checking system for information processor
JPS5846421A (en) Data transferring device
JPS63251846A (en) Storage device control system
JPH06290138A (en) Address bus control system