JPS6017127B2 - Parity addition method - Google Patents

Parity addition method

Info

Publication number
JPS6017127B2
JPS6017127B2 JP54126867A JP12686779A JPS6017127B2 JP S6017127 B2 JPS6017127 B2 JP S6017127B2 JP 54126867 A JP54126867 A JP 54126867A JP 12686779 A JP12686779 A JP 12686779A JP S6017127 B2 JPS6017127 B2 JP S6017127B2
Authority
JP
Japan
Prior art keywords
parity
adder
output
bit
addition
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
JP54126867A
Other languages
Japanese (ja)
Other versions
JPS5652443A (en
Inventor
勝 伝田
芳雄 桐生
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP54126867A priority Critical patent/JPS6017127B2/en
Publication of JPS5652443A publication Critical patent/JPS5652443A/en
Publication of JPS6017127B2 publication Critical patent/JPS6017127B2/en
Expired legal-status Critical Current

Links

Description

【発明の詳細な説明】 本発明は、1加算器におけるパリティ付加方式に関する
ものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a parity addition method in a 1 adder.

電子計算機等においては、プラス1ずつ演算して上位桁
への桁上げ信号を含む出力を与える1加算器が広く用い
られるが「 この1加算器の信頼性を高めるために、パ
リティを付加した後パリティ・チェックを行っている。
In electronic computers, 1 adders are widely used that calculate plus 1 and output an output including a carry signal to the higher digits. Performing parity check.

第1図は、従来の1加算器のパリティ付加方式のブロッ
ク図であり、第2図は第1図の動作シーケンス説明図で
ある。初期設定タイミング信号Tcにより、例えばCO
〜C6の7ビットの初期値「0000000」が1加算
器1内にセットされるとともに、初期設定パリティ・タ
イミング信号Tpにより「0000000」の奇数パリ
ティ・ビット値「1」がパリティ・ビット・レジスタ2
にセットされる。
FIG. 1 is a block diagram of a conventional 1-adder parity addition system, and FIG. 2 is an explanatory diagram of the operation sequence of FIG. 1. For example, CO
The initial value "0000000" of 7 bits of C6 is set in the 1 adder 1, and the odd parity bit value "1" of "0000000" is set in the parity bit register 2 by the initial setting parity timing signal Tp.
is set to

次に、パリティ予測タイミング信号TIと1加算器の7
ビット出力CO〜C6とパリティ・ビット・レジス夕2
の出力Cpがパリティ予測回路3に入力すると、パリテ
ィ予測回路3は次の1加算後のCO〜C6を予測し、そ
のときのパリティ予測値Cp′=「0」を出力線6を経
由してパリティ・ビット・レジスタ2に帰還させる。
Next, the parity prediction timing signal TI and the 1 adder 7
Bit output CO~C6 and parity bit register 2
When the output Cp is input to the parity prediction circuit 3, the parity prediction circuit 3 predicts CO to C6 after the next 1 addition, and sends the parity prediction value Cp' = "0" at that time via the output line 6. Feedback to parity bit register 2.

次に、加算タイミング信号TOを1加算器1とパリテイ
・ビット・レジスタ2に加えることにより、1加算器1
はプラス1演算を行い、出力ビット線に「000000
1」の値を与え、パリティ・ビット・レジスタ2は帰還
されたパリティ予測値CP=「0」をセットする。
Next, by applying the addition timing signal TO to 1 adder 1 and parity bit register 2, 1 adder 1
performs a plus-one operation and writes “000000” to the output bit line.
The parity bit register 2 sets the fed-back parity prediction value CP="0".

再び、予測タイミング信号TIにより、パリティ予測回
路3は次の1加算後のCO〜C6に対するパリティ・ビ
ット予測値CP=「0」を出力し、パリティ・ビット・
レジスタ2に帰還する。このようにして、送出される出
力値CO〜C6の値とそれらに対するパリティ・ビット
Cpをパリティ・チェック回路7に入力し、ここでパリ
ティ・チェックを施して正しいことをチェックする。こ
のようにして、第1図の回路では、1加算する前の1加
算器出力ビット群CO〜C6およびパリティ・ビットC
pの状態から1加算後のパリティ・ビットを予測し、パ
リティ・ビット・レジスタ2の反転の要否を決定してい
る。
Again, according to the prediction timing signal TI, the parity prediction circuit 3 outputs the parity bit prediction value CP=“0” for CO to C6 after the next 1 addition, and the parity bit
Return to register 2. In this way, the values of the output values CO to C6 to be sent out and the parity bits Cp for them are input to the parity check circuit 7, where a parity check is performed to check that they are correct. In this way, in the circuit of FIG. 1, the 1 adder output bit group CO to C6 and the parity bit C before 1 addition
The parity bit after addition of 1 is predicted from the state of p, and it is determined whether parity bit register 2 needs to be inverted.

しかし、第1図のパリティ付加方式では、パリティ予測
をしてから1加算を行うため、パリティ・ビットCpの
初期値は全出力ビット群CO〜C6の初期値に対して正
常になるように設定しておく必要がある。
However, in the parity addition method shown in Figure 1, since the addition of 1 is performed after parity prediction, the initial value of the parity bit Cp is set to be normal to the initial values of all output bit groups CO to C6. It is necessary to do so.

もし、1加算器およびパリティ・ビット・レジスタ2へ
のタイミング信号TOが故障していてパリティ予測およ
び1加算がなされない場合でも、初期値は出力ビット群
CO〜C6およびパリティ・ビットCpが正常であるた
め、パリティ・チェック回路7において初期値がそのま
まチェックされ、あたかも正常にパリティ予測および1
加算が実行されたように処理されてしまい、故障の発見
が遅れるという欠点がある。
Even if the timing signal TO to the 1 adder and parity bit register 2 is malfunctioning and parity prediction and 1 addition are not performed, the initial value is that the output bit group CO to C6 and the parity bit Cp are normal. Therefore, the initial value is checked as is in the parity check circuit 7, and the parity prediction and 1
This has the disadvantage that it is processed as if an addition had been executed, which delays the discovery of a fault.

本発明の目的は、このような欠点を除去するため、1加
算器において1加算およびパリティ予測が実行されなか
った場合に、パリティ・チェックにより直ちに異常が検
出できるような高信頼性のパリティ付加方式を提供する
ことにある。
In order to eliminate such drawbacks, it is an object of the present invention to provide a highly reliable parity addition method that allows a parity check to immediately detect an abnormality when 1 addition and parity prediction are not performed in a 1 adder. Our goal is to provide the following.

本発明のパリティ付加方式は、パリティ・ビット・レジ
スタに対する初期値を1加算後に正常になるように設定
する手段と、初期設定直後のパリティ予測回路の予測動
作のみを阻止する手段を具備し、初期設定後、最初に1
加算を行うことを特徴としている。
The parity addition method of the present invention includes means for setting the initial value for the parity bit register so that it becomes normal after adding 1, and means for blocking only the prediction operation of the parity prediction circuit immediately after the initial setting. After setting, first 1
It is characterized by performing addition.

以下、本発明の実施例を、図面により説明する。Embodiments of the present invention will be described below with reference to the drawings.

第3図は、本発明のパリティ付加方式を具備する1加算
器のブロック図であり、第4図は第3図の動作シーケン
スの説明図である。
FIG. 3 is a block diagram of a 1-adder equipped with the parity addition method of the present invention, and FIG. 4 is an explanatory diagram of the operation sequence of FIG. 3.

本発明においては、1加算器1に対する初期設定タイミ
ング信号TcによりCO〜C6の値、「0000000
」が1加算器1内にセットされ、同時にパリティ・ビッ
ト・レジスタ2に対する初期設定タイミング信号Tpに
より、「0000000」の値に対するパリティ・ビッ
トCpが、奇数パリティとしては正しくないように初期
設定される。
In the present invention, the values of CO to C6 are set to "0000000" by the initial setting timing signal Tc for the 1 adder 1.
1 is set in adder 1, and at the same time, the initialization timing signal Tp for parity bit register 2 initializes the parity bit Cp for the value ``0000000'' to be incorrect as odd parity. .

すなわち、パリティ・ビットCpの初期設定値は「0」
にセットされる。また、第3図に示すように、パリティ
予測回路3に加えられる予測タイミング信号TIは、ナ
ンドゲート9を経て入力される。
That is, the initial setting value of parity bit Cp is "0".
is set to Further, as shown in FIG. 3, the predicted timing signal TI applied to the parity prediction circuit 3 is inputted via a NAND gate 9.

ナンドゲート9の他の入力端子には、初期設定タイミン
グ信号Tcを、遅延回路8で予測タイミング信号TIに
出力されるまで遅らせた初期設定遅延信号Tc′が入力
されている。ナンドゲート9は、初期設定遅延信号Tc
′が「0」のときはゲートを開き、初期設定遅延信号T
c′が「1」のときのみゲートを閉じて予測タイミング
信号TIを阻止する。このため、一定周期で入力するパ
リティ予測タイミング信号TIは、初期設定の直後だけ
阻止されて、パリティ予測動作は実行されず、初期設定
されたパリティ・ビット・レジスタ2の値Cp=「OJ
がそのままパリティ予測値Cpr=「0」としてパリテ
ィ・ビット・レジスタ2に帰還されるため、最初の1加
算時のパリティ・ビット・レジスタ2の値は反転される
ことなく、Cp=「0」が保持される。
The other input terminal of the NAND gate 9 receives an initial setting delay signal Tc' which is obtained by delaying the initial setting timing signal Tc until the delay circuit 8 outputs the predicted timing signal TI. The NAND gate 9 receives the initial setting delay signal Tc
' is "0", the gate is opened and the initial setting delay signal T
The gate is closed only when c' is "1" to block the predicted timing signal TI. Therefore, the parity prediction timing signal TI that is input at a constant period is blocked only immediately after the initial setting, and the parity prediction operation is not executed, and the initialized value Cp of parity bit register 2 = "OJ
is fed back to parity bit register 2 as it is as parity predicted value Cpr = "0", so the value of parity bit register 2 at the time of the first addition of 1 is not inverted and Cp = "0". Retained.

このとき、パリティ・ビットCpは正常な値となる。す
なわち、本発明では、初期設定後に1加算されたとき初
めて正常なパリテイ・ビットCpとなる。初期設定後、
1加算器1のタイミング信号TOにより1加算器1がプ
ラス1演算を実行し、出力ビット群CO〜C6の値「0
000001」を出力線4に出力する一方、タィミグ信
号T川こよって、初期設定されたCp=「0」が、その
まま帰還されたパリティ予測値Cp′=「0」をパリテ
ィ・ビット・レジスタ2にセットしてCp=「0」を出
力線5に出力する。
At this time, parity bit Cp becomes a normal value. That is, in the present invention, the parity bit Cp becomes normal only when it is incremented by 1 after initialization. After initial settings,
1 adder 1 executes a plus-1 operation according to the timing signal TO of 1 adder 1, and the value of output bit group CO to C6 is "0".
000001'' to the output line 4, and at the same time, the timing signal T causes the initially set Cp="0" to be fed back as is, the parity prediction value Cp'="0", to the parity bit register 2. Set and output Cp="0" to the output line 5.

パリティ・チェック回路7は、1加算後の出力ビット群
CO〜C6とパリティ・ビットCpについてチェックし
、正常であることを確認する。また、1加算後には、初
期設定遅延信号Tc′は「0」となるため、次のパリテ
ィ予測タイミングTIはナンドゲート9を通過してパリ
ティ予測回路3に入力する。
The parity check circuit 7 checks the output bit group CO to C6 and the parity bit Cp after addition of 1, and confirms that they are normal. Further, after the addition of 1, the initial setting delay signal Tc' becomes "0", so the next parity prediction timing TI passes through the NAND gate 9 and is input to the parity prediction circuit 3.

1加算後の出力ビット群CO〜C6と、パリティ・ビッ
ト・レジスタ2のパリティ出力Cpと、予測タイミング
信号TIとが入力することにより、パリティ予測回路3
は次の1加算に対するパリティ・ビットを予測し、Cb
=「0」を出力線6に送ってパリティ・ビット・レジス
タ2に入力する。
By inputting the output bit group CO to C6 after addition of 1, the parity output Cp of the parity bit register 2, and the prediction timing signal TI, the parity prediction circuit 3
predicts the parity bit for the next 1 addition and Cb
="0" is sent to output line 6 and input into parity bit register 2.

もし、初期設定後に、1加算器1または1加算タイミン
グ信号TOが故障していたため、1加算が正常に実行さ
れなかった場合には、初期設定の値がそのまま出力され
て、パリティ・チェック回路7でパリティ・チェックさ
れるので、そこで異常が検出され、故障時の早期発見が
可能となる。
If the 1-adder 1 or the 1-addition timing signal TO is not properly executed after the initial settings, the initial setting value is output as is and the parity check circuit 7 Since the parity check is performed at , abnormalities are detected there and early detection of failures becomes possible.

つまり、初期設定時の出力ビット群CO〜C6の値「o
oooooo」と初期設定時のパリティ・ビットCpの
値「OJが出力されるので、奇数パリティとして正しく
ないことを検出したパリティ・チェック回路7からエラ
ー出力ERRが与えられる。なお、実施例では、7ビッ
ト奇数パリティの場合で、かつ初期値をオール「0」と
して説明したが、ビット数は任意でよく、また偶数パリ
ティでも差支えない。また、初期値もオール「0」に限
定されることなく、1加算器の初期値と1加算後とで正
しいパリティが異なるような、誤ったパリティを持つ任
意の値にとれる。以上説明したように、本発明によれば
、1加算器およびパリティ・ビット・レジスタの初期値
を1加算後に正常となるようなパターンに設定するので
、1加算動作が行われなかったときには、パリティ・チ
ェック回路で簡単に異常状態を検出でき、信頼性の高い
1加算器を実現することができる。
In other words, the value of the output bit group CO to C6 at the time of initial setting is "o
Since the parity bit Cp value "OJ" at the time of initial setting is outputted as "oooooooo", the error output ERR is given from the parity check circuit 7 which detects that the parity is incorrect as odd parity. Although the description has been made assuming that the bit parity is odd and the initial value is all "0", the number of bits may be arbitrary, and even parity may be used. Furthermore, the initial value is not limited to all "0", but can be any value that has incorrect parity, such as the correct parity being different between the initial value of the 1 adder and the value after 1 addition. As explained above, according to the present invention, the initial values of the 1 adder and the parity bit register are set to a pattern that becomes normal after 1 addition, so when the 1 addition operation is not performed, the parity bit register is - Abnormal conditions can be easily detected with a check circuit, and a highly reliable 1-adder can be realized.

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

第1図は従来のパリティ付加方式を示すブロック図、第
2図は第1図の動作シーケンスを示す説明図、第3図は
本発明の実施例を示すパリティ付加方式のブロック図、
第4図は第3図の動作シーケンスを示す説明図である。 1:1加算器、2:パリティ・ビット・レジスタ、3:
パリティ予測回路、4:1加算器出力線、5:パリティ
・ビット出力線、6:パリティ予測値出力線、7:パリ
ティ・チェック回路、8:遅延回路、9:ナンドゲート
、TO:1加算動作タイミング信号、TI:パリティ予
測動作タイミング信号、Tc:1加算器初期設定タイミ
ング信号、Tp:パリティ・ビット・レジスタ初期設定
タイミング信号、CO〜C6:1加算器出力ビット群、
Cp:パリテイ・ビット、Cb:パリティ予測出力、E
RR:エラー出力。鷲′図 第2図 溝3図 券4図
FIG. 1 is a block diagram showing a conventional parity addition method, FIG. 2 is an explanatory diagram showing the operation sequence of FIG. 1, and FIG. 3 is a block diagram of a parity addition method showing an embodiment of the present invention.
FIG. 4 is an explanatory diagram showing the operation sequence of FIG. 3. 1:1 adder, 2: parity bit register, 3:
Parity prediction circuit, 4:1 adder output line, 5: Parity bit output line, 6: Parity predicted value output line, 7: Parity check circuit, 8: Delay circuit, 9: NAND gate, TO: 1 addition operation timing signal, TI: parity prediction operation timing signal, Tc: 1 adder initial setting timing signal, Tp: parity bit register initial setting timing signal, CO to C6: 1 adder output bit group,
Cp: parity bit, Cb: parity prediction output, E
RR: Error output. Eagle' figure 2 groove 3 figure ticket 4 figure

Claims (1)

【特許請求の範囲】[Claims] 1 1加算器と該1加算器の全出力ビツト群に対するパ
リテイ・ビツトを予測する回路と、該パリテイ予測回路
の出力によりパリテイ・ビツトをセツトするパリテイ・
ビツト・レジスタを有するパリテイ付加方式において、
前記パリテイ・ビツト・レジスタに対する初期値を1加
算後に正常になるように設定する手段と、初期設定直後
のパリテイ予測回路の予備動作のみを阻止する手段を具
備し、初期設定後、最初に1加算を行うことを特徴とす
るパリテイ付加方式。
A 1-1 adder, a circuit that predicts parity bits for all output bit groups of the 1-adder, and a parity bit that sets the parity bits based on the output of the parity prediction circuit.
In the parity addition method with bit registers,
The parity bit register is provided with means for setting the initial value for the parity bit register to become normal after adding 1, and means for blocking only the preliminary operation of the parity prediction circuit immediately after the initial setting. A parity addition method that is characterized by performing the following.
JP54126867A 1979-10-03 1979-10-03 Parity addition method Expired JPS6017127B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP54126867A JPS6017127B2 (en) 1979-10-03 1979-10-03 Parity addition method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP54126867A JPS6017127B2 (en) 1979-10-03 1979-10-03 Parity addition method

Publications (2)

Publication Number Publication Date
JPS5652443A JPS5652443A (en) 1981-05-11
JPS6017127B2 true JPS6017127B2 (en) 1985-05-01

Family

ID=14945790

Family Applications (1)

Application Number Title Priority Date Filing Date
JP54126867A Expired JPS6017127B2 (en) 1979-10-03 1979-10-03 Parity addition method

Country Status (1)

Country Link
JP (1) JPS6017127B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4799222A (en) * 1987-01-07 1989-01-17 Honeywell Bull Inc. Address transform method and apparatus for transferring addresses
US5697710A (en) * 1995-10-20 1997-12-16 Nok Corporation Bearing seals and bearing and seal assemblies

Also Published As

Publication number Publication date
JPS5652443A (en) 1981-05-11

Similar Documents

Publication Publication Date Title
US5909541A (en) Error detection and correction for data stored across multiple byte-wide memory devices
US5031180A (en) Triple redundant fault-tolerant register
US5535402A (en) System for (N•M)-bit correlation using N M-bit correlators
US3925647A (en) Parity predicting and checking logic for carry look-ahead binary adder
JPH0545982B2 (en)
GB940523A (en) Instruction counter with sequential address checking means
US5506800A (en) Self-checking complementary adder unit
JPS6017127B2 (en) Parity addition method
US11342935B2 (en) Cyclic redundancy check (CRC) system for detecting error in data communication
JPS62293441A (en) Data outputting system
US5388253A (en) Processing system having device for testing the correct execution of instructions
JPH0454256B2 (en)
JPH01292415A (en) Clock generation system
JP3081234B2 (en) How to check CPU board
US4698814A (en) Arrangement for checking the parity of parity-bits containing bit groups
US6131176A (en) On-the-fly data integrity transfer system handling mixed block sizes
US5144628A (en) Microprogram controller in data processing apparatus
JP2558152B2 (en) Counter error detector
SU1051533A2 (en) Adder in m-from-n-code
US5689451A (en) Device for calculating parity bits associated with a sum of two numbers
EP0152974B1 (en) Arrangement for checking the parity bit-containing bit groups
EP0971362B1 (en) Data integrity checking apparatus
JPS6029413B2 (en) Arithmetic circuit error checking method
SU1605239A1 (en) Device for checking multiprocessor system
JPH03116390A (en) Control module for preventing erroneous arithmetic for data flow type computer