JPH02220141A - Trouble detecting circuit - Google Patents

Trouble detecting circuit

Info

Publication number
JPH02220141A
JPH02220141A JP4228889A JP4228889A JPH02220141A JP H02220141 A JPH02220141 A JP H02220141A JP 4228889 A JP4228889 A JP 4228889A JP 4228889 A JP4228889 A JP 4228889A JP H02220141 A JPH02220141 A JP H02220141A
Authority
JP
Japan
Prior art keywords
modulo
signal
circuit
result
carry
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
Application number
JP4228889A
Other languages
Japanese (ja)
Inventor
Hideo Morisue
森末 秀雄
Yuichi Sato
裕一 佐藤
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
NEC Ibaraki Ltd
Original Assignee
NEC Corp
NEC Ibaraki 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 NEC Corp, NEC Ibaraki Ltd filed Critical NEC Corp
Priority to JP4228889A priority Critical patent/JPH02220141A/en
Publication of JPH02220141A publication Critical patent/JPH02220141A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To detect the trouble of a multiplier only by performing the comparison between the estimating signal for the modulo-3 signal of the final result of multiplication and the correcting signal of the modulo-3 signal obtained by applying the addition of antilogarithm to the carry and the sum, i.e., the outputs of the multiplier. CONSTITUTION:When a carry is produced from the highest ran bit, 2 and 1 are added to a produced modulo-3 signal 38 if the final multiplication result 40 has the even and off bit widths respectively. Then a modulo-3 signal is pro duced again according to the result of correction and outputted as a correction circuit output 39 since >=3 produced modulo-3 signals way sometimes be obtained as the result of correction. Thus a coincidence detecting circuit 56 decides the coincidence or discordance between a pair of produced modulo-3 signals 37 and 39. As a result, the trouble of only a multiplier 50 is detected.

Description

【発明の詳細な説明】 1直圀! 本発明は故障検出回路に関し、特にモジュロ3信号を伴
った2つの符号付データの乗算をなす演算回路の故障検
出回路に関する。
[Detailed description of the invention] 1 Naokuni! The present invention relates to a failure detection circuit, and more particularly to a failure detection circuit for an arithmetic circuit that multiplies two signed data with a modulo 3 signal.

良米弦韮 従来、この種の演算回路においては、モジュロ3信号を
伴った2つの符号付データを入力とし、最終的にこの2
つの符号付データの乗算結果を算出するために、中間乗
算結果として桁上げ及び和を出力する乗算器と、これ等
桁上げ、和を加算する加算器とが設けられている。
Conventionally, in this type of arithmetic circuit, two signed data accompanied by a modulo 3 signal are input, and these two
In order to calculate the multiplication result of two pieces of signed data, a multiplier that outputs a carry and a sum as an intermediate multiplication result, and an adder that adds the carry and sum are provided.

この様な演算回路において故障を検出するための故障検
出回路は次の様な構成とされている。すなわち、符号付
データによって最終的な乗算結果のモジュロ3信号を予
測する予測回路と、最終乗算結果からモジュロ3信号を
生成するモジュロ3信号生成回路と、予測回路の出力と
モジュロ3信号生成回路出力との一致を検出する一致検
出回路とを備えており、この一致検出出力により演算回
路全体の故障の検出をなすようになっている。
A failure detection circuit for detecting a failure in such an arithmetic circuit has the following configuration. That is, a prediction circuit that predicts a modulo 3 signal of the final multiplication result using signed data, a modulo 3 signal generation circuit that generates a modulo 3 signal from the final multiplication result, and an output of the prediction circuit and an output of the modulo 3 signal generation circuit. and a coincidence detection circuit for detecting coincidence with the arithmetic circuit, and a failure of the entire arithmetic circuit is detected based on the coincidence detection output.

かかる従来の故障検出回路では、演算回路全体の故障検
出を行っているために、故障が発生した場合、演算回路
を構成する乗算器の故障であるか、加算器の故障である
かの判別が不可能であるという欠点がある。
In such conventional failure detection circuits, failures are detected in the entire arithmetic circuit, so when a failure occurs, it is difficult to determine whether it is a failure in a multiplier or an adder that constitutes the arithmetic circuit. The drawback is that it is impossible.

1呪ム亘煎 そこで、本発明はこの様な従来のものの欠点を解決すべ
くなされたものであって、その目的とするところは、故
障回路を特定することが可能な故障検出回路を提供する
ことにある。
SUMMARY OF THE INVENTION Therefore, the present invention was made to solve the drawbacks of the conventional ones, and its purpose is to provide a fault detection circuit that can identify a faulty circuit. There is a particular thing.

1匪立亘羞 本発明によれば、モジュロ3信号をともなった2つの符
号付データを入力とし、中間乗算結果としての桁上げ及
び和を出力する乗算器と、前記桁上げ及び和を入力とし
てこれ等を加算して最終乗算結果を出力する加算器とを
含む演算回路の故障検出回路であって、前記最終乗算結
果のモジュロ3信号を予測するモジュロ3信号予測回路
と、前記最終乗算結果の符号を予測する符号予測回路と
5、前記桁上げ及び和を真数加算した結果のモジュロ3
信号を生成するモジュロ3信号生成回路と、前記符号予
測回路の予測符号及び前記桁上げと和に含まれる符号要
素によって前記モジュロ3信号生成回路出力を補正する
補正回路と、前記モジュロ3信号予測回路の出力と前記
補正回路の出力との一致を検出する一致検出回路とを含
むことを特徴とする故障検出回路が得られる。
According to the present invention, there is provided a multiplier which takes two signed data with modulo 3 signals as input and outputs a carry and a sum as intermediate multiplication results, and a multiplier which takes the carry and sum as input. A failure detection circuit for an arithmetic circuit that includes an adder that adds these and outputs a final multiplication result, a modulo 3 signal prediction circuit that predicts a modulo 3 signal of the final multiplication result, and a modulo 3 signal prediction circuit that predicts a modulo 3 signal of the final multiplication result. a code prediction circuit that predicts the code;
a modulo 3 signal generation circuit that generates a signal; a correction circuit that corrects the output of the modulo 3 signal generation circuit according to the predicted code of the code prediction circuit and code elements included in the carry and sum; and the modulo 3 signal prediction circuit. A failure detection circuit is obtained, comprising a coincidence detection circuit for detecting coincidence between the output of the correction circuit and the output of the correction circuit.

艮姐」 以下に本発□明の実施例を図面を用いて詳細に説明する
Embodiments of the present invention will be described in detail below with reference to the drawings.

第1図は本発明の実施例のブロック図である。FIG. 1 is a block diagram of an embodiment of the invention.

第1図では、符号付データ30.31を入力とし中間乗
算結果として桁上げ34及び和35を出力する乗算器5
0と、桁上げ34及び和35を入力とし加算する加算器
55とによって演算回路が構成されている。
In FIG. 1, a multiplier 5 receives signed data 30.31 and outputs a carry 34 and a sum 35 as intermediate multiplication results.
0, a carry 34, and a sum 35 as inputs and an adder 55 which adds them together, constitutes an arithmetic circuit.

この演算回路内において、最終乗算結果40のモジュロ
3信号を符号付データ30.31にともなうモジュロ3
信号32.33から予測するモジュロ3信号予測回路5
2と、最終乗算結果40の符号を符号付データ30.3
1から予測する符号予測回路51と、乗算器50の出力
である桁上げ34及び和35を真数加算した結果のモジ
ュロ3信号38を桁上げ34及び和35から生成するモ
ジュロ3信号生成回路54と、予測符号36と桁上げ3
4及び和35とに含まれる符号要素によって生成モジュ
ロ3信号38を補正する補正回路53と、補正回路出力
39と予測モジュロ3信号37との一致を検出する一致
検出回路56とを備えている。そして故障検出出力41
によって乗算器50だけの故障を検出し出力している。
In this arithmetic circuit, the modulo 3 signal of the final multiplication result 40 is converted into a modulo 3 signal with signed data 30.31.
Modulo 3 signal prediction circuit 5 predicting from signals 32 and 33
2 and the sign of the final multiplication result 40 as signed data 30.3
a code prediction circuit 51 that predicts from 1; and a modulo 3 signal generation circuit 54 that generates a modulo 3 signal 38, which is the result of adding the carry 34 and sum 35, which are the outputs of the multiplier 50, from the carry 34 and sum 35. , prediction code 36 and carry 3
4 and the sum 35, and a coincidence detection circuit 56 that detects coincidence between the correction circuit output 39 and the predicted modulo 3 signal 37. And failure detection output 41
A failure in only the multiplier 50 is detected and output.

符号予測回路51は符号付データ30.31の符号が同
符号ならば正、異符号ならば負と予測する。但し、符号
付データ30.31のどちらか一方もしくは両方の数値
がゼロならば正と予測する。
The sign prediction circuit 51 predicts that the signs of the signed data 30.31 are positive if they are the same sign, and negative if they are different signs. However, if either or both of the signed data 30 and 31 are zero, it is predicted to be positive.

モジュロ3信号予測回路52は符号付データ30.31
にともなうモジュロ3信号32.33を入力とし、これ
等両データを乗算して予測モジュロ3信号37を出力す
る9乗算は第2図に示す論理に従う、つまり、モジュロ
3信号32が0ならばモジュロ3信号33の値によらず
に0が予測モジュロ3信号37となる。モジュロ3信号
32が1ならばモジュロ3信号33の値がそのまま予測
モジュロ3信号37となる。モジュロ3信号32が2な
らば、モジュロ3信号33の(iiO,1,2に対して
0,2.1が予測モジュロ3信号37となる。これらの
操作結果はモジュロ3信号32゜33が符号付データ3
0.31の符号も考慮したモジュロ3信号であるために
、最終乗算結果の符号を考慮したモジュロ3信号を予測
していることになる。
The modulo 3 signal prediction circuit 52 uses signed data 30.31
The 9 multiplication that inputs the modulo 3 signal 32 and 33 associated with , multiplies both data, and outputs the predicted modulo 3 signal 37 follows the logic shown in FIG. 2, that is, if the modulo 3 signal 32 is 0, the modulo Regardless of the value of the 3 signal 33, 0 becomes the prediction modulo 3 signal 37. If the modulo 3 signal 32 is 1, the value of the modulo 3 signal 33 becomes the predicted modulo 3 signal 37 as is. If the modulo 3 signal 32 is 2, the predicted modulo 3 signal 37 is 0, 2.1 for (iiO, 1, 2) of the modulo 3 signal 33. Attached data 3
Since this is a modulo 3 signal that also takes into account the sign of 0.31, a modulo 3 signal that takes into account the sign of the final multiplication result is predicted.

モジュロ3信号生成回路54では、桁上げ34の最上位
ビットを除いた残りのビットのモジュロ3信号を生成し
、和35全体のモジュロ3信号を生成する。生成された
2つのモジュロ3信号を加算し、結果を生成モジュロ3
信号38に出力する。
The modulo 3 signal generating circuit 54 generates a modulo 3 signal for the remaining bits excluding the most significant bit of the carry 34, thereby generating a modulo 3 signal for the entire sum 35. Adds the two generated modulo 3 signals and produces a result modulo 3
Output to signal 38.

加算は第3図に示す論理に従う、つまり単順な加算を実
行し結果が0.1.2ならばそのまま0゜1.2を生成
モジュロ3信号38に出力し、結果が3.4ならば0.
1として生成モジュロ3信号38に出力する。これらの
操作は最終乗算結果を真数とみなし、かつ桁上げ34と
和35の2進加算過程における最上位ビットからの桁上
がりをも含んだ数値のモジュロ3信号を生成しているこ
とを意味する。
The addition follows the logic shown in FIG. 3, that is, if the simple addition is performed and the result is 0.1.2, 0°1.2 is directly output to the generation modulo 3 signal 38, and if the result is 3.4, it is output as is. 0.
It is output as 1 to the generation modulo 3 signal 38. These operations treat the final multiplication result as an antilog number, and generate a modulo 3 signal of a numerical value that also includes the carry from the most significant bit in the binary addition process of carry 34 and sum 35. do.

補正回路53では、予測符号36と桁上げ34及び和3
5に含まれている符号要素によって生成モジュロ3信号
38を補正する。補正の内容は第4図で示す論理に従う
、まず、予測モジュロ3信号37と生成モジュロ3信号
の違いを明確にすると、2つ点で異なっている。1つは
予測モジュロ3信号37では符号を考慮にいれたもので
あるが、生成モジュロ3信号38では符号を考慮してい
ない、もう1つは生成モジュロ3信号38には桁上げ3
4と和35の2進加算過程における最上位ビットからの
桁上がりがふくまれているが、予測モジュロ3信号37
には含まれていない点である。
In the correction circuit 53, the predicted code 36, carry 34 and sum 3
The generated modulo 3 signal 38 is corrected by the code element included in the code element 5. The content of the correction follows the logic shown in FIG. 4. First, to clarify the difference between the predicted modulo 3 signal 37 and the generated modulo 3 signal, there are two differences. One is that the predicted modulo 3 signal 37 takes the sign into account, but the generated modulo 3 signal 38 does not take the sign into account, and the other is that the generated modulo 3 signal 38 does not take the sign into account.
This includes the carry from the most significant bit in the binary addition process of 4 and sum 35, but the prediction modulo 3 signal 37
This is not included in the

これら2つの違いを補正回路53で吸収すのである。The correction circuit 53 absorbs these two differences.

まず符号による補正を行う、予測符号36が1つまり負
ならば生成モジュロ3信号38に2を加算する。但し、
これは最終乗算結果が偶数ビット幅を持つ場合である。
First, correction is performed using a sign. If the predicted sign 36 is 1, that is, negative, 2 is added to the generated modulo 3 signal 38. however,
This is the case when the final multiplication result has an even bit width.

fiM乗算結果が奇数ビ゛ット幅を持つならば1を加算
する。
If the fiM multiplication result has an odd bit width, add 1.

次に桁上げ34と和35の2進加算過程における最上位
ビットからの桁上がりによる補正を行う・。
Next, correction is performed by carrying from the most significant bit in the binary addition process of carry 34 and sum 35.

最上位ビットからの桁上がりがあれば、最終乗算結果4
0が偶数ビット幅を持つ場合には2を、奇数ビット幅を
持つ場合には1を生成モジュロ3信号38に夫々加算す
る。尚、最上位ビットからの桁上がりがあるかどうかは
、予測符号と桁上げ34及び和35に含まれている符号
要素との関係で判定することができる0以上の補正の結
果、生成モジュロ3信号が3以上になる場合がある為、
補正の結果であらためてモジュロ3信号を生成しなおし
、補正回路出力39として出力する。
If there is a carry from the most significant bit, the final multiplication result is 4.
If 0 has an even bit width, 2 is added to the generated modulo 3 signal 38, and if it has an odd bit width, 1 is added to the generated modulo 3 signal 38. In addition, whether there is a carry from the most significant bit can be determined based on the relationship between the predicted code and the code elements included in the carry 34 and the sum 35. As a result of a correction of 0 or more, the generated modulo 3 Since the signal may be 3 or more,
A modulo 3 signal is generated again as a result of the correction, and is output as a correction circuit output 39.

この様にして生成された2組のモジュロ3信号37.3
9が一致検出回路56により一致しているかどうかの判
定がなされることになり、乗算器50のみにおける故障
検出が可能となるのである。
Two sets of modulo 3 signals 37.3 generated in this way
9 are matched by the match detection circuit 56, and it becomes possible to detect a failure only in the multiplier 50.

尚、加算器55のみの故障は、モジュロ3信号37と加
算器出力40のモジュロ3信号(これは従来の故障検出
回路において生成されている)との比較を行うことによ
り容易であることは明らかである。
It is clear that a failure in only the adder 55 can be easily detected by comparing the modulo 3 signal 37 and the modulo 3 signal of the adder output 40 (which is generated in a conventional failure detection circuit). It is.

1哩五皇1 蒸上の如く、本発明によれば、最終乗算結果のモジュロ
3信号予測信号と乗算器の出力である桁上げ及び和を真
数加算した結果のモジュロ3信号の補正信号とを比較す
ることにより、乗算器のみの故障検出が可能となり、ま
た従来の故障検出回路との併用により、加算器のみの故
障検出も可能となるという効果がある。
1.5 Emperors 1 According to the present invention, the modulo 3 signal prediction signal of the final multiplication result and the correction signal of the modulo 3 signal of the result of adding the carry and the sum which are the outputs of the multiplier, By comparing the above, it is possible to detect a failure in only the multiplier, and when used in combination with a conventional failure detection circuit, it is also possible to detect a failure in only the adder.

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

第1図は本発明の実縄例の回路ブロック図、第2図は2
つのモジュロ3信号とその乗算結果の関係を示す図、第
3図は同じくその加算結果の関係を示す図、第4図は補
正回路内における補正要因と補正内容との関係を示す図
である。 主要部分の符号の説明 50・・・・・・乗算器 51・・・・・・符号予測回路 52・・・・・・モジュロ3信号予測回路53・・・・
・・補正回路 54・・・・・・モジュロ3信号生成回路55・・・・
・・加算器 56・・・・・・−数構出回路 出願人 日本電気株式会社(外1名)
Fig. 1 is a circuit block diagram of an actual rope example of the present invention, and Fig. 2 is a circuit block diagram of an actual rope example of the present invention.
FIG. 3 is a diagram showing the relationship between the two modulo 3 signals and their multiplication results, FIG. 3 is a diagram showing the relationship between the addition results, and FIG. 4 is a diagram showing the relationship between correction factors and correction contents in the correction circuit. Explanation of codes of main parts 50... Multiplier 51... Code prediction circuit 52... Modulo 3 signal prediction circuit 53...
... Correction circuit 54 ... Modulo 3 signal generation circuit 55 ...
... Adder 56 ... - Numerical output circuit Applicant: NEC Corporation (1 other person)

Claims (1)

【特許請求の範囲】[Claims] (1)モジュロ3信号をともなった2つの符号付データ
を入力とし、中間乗算結果としての桁上げ及び和を出力
する乗算器と、前記桁上げ及び和を入力としてこれ等を
加算して最終乗算結果を出力する加算器とを含む演算回
路の故障検出回路であって、前記最終乗算結果のモジュ
ロ3信号を予測するモジュロ3信号予測回路と、前記最
終乗算結果の符号を予測する符号予測回路と、前記桁上
げ及び和を真数加算した結果のモジュロ3信号を生成す
るモジュロ3信号生成回路と、前記符号予測回路の予測
符号及び前記桁上げと和に含まれる符号要素によつて前
記モジュロ3信号生成回路出力を補正する補正回路と、
前記モジュロ3信号予測回路の出力と前記補正回路の出
力との一致を検出する一致検出回路とを含むことを特徴
とする故障検出回路。
(1) A multiplier that takes two signed data with modulo 3 signals as input and outputs a carry and a sum as intermediate multiplication results, and a multiplier that takes the carry and sum as input and adds them for final multiplication. A failure detection circuit for an arithmetic circuit including an adder that outputs a result, a modulo 3 signal prediction circuit that predicts a modulo 3 signal of the final multiplication result, and a sign prediction circuit that predicts the sign of the final multiplication result. , a modulo 3 signal generation circuit that generates a modulo 3 signal as a result of adding the carry and the sum, and a modulo 3 signal using the predicted code of the code prediction circuit and the code element included in the carry and the sum. a correction circuit that corrects the signal generation circuit output;
A failure detection circuit comprising: a coincidence detection circuit that detects coincidence between the output of the modulo 3 signal prediction circuit and the output of the correction circuit.
JP4228889A 1989-02-22 1989-02-22 Trouble detecting circuit Pending JPH02220141A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4228889A JPH02220141A (en) 1989-02-22 1989-02-22 Trouble detecting circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4228889A JPH02220141A (en) 1989-02-22 1989-02-22 Trouble detecting circuit

Publications (1)

Publication Number Publication Date
JPH02220141A true JPH02220141A (en) 1990-09-03

Family

ID=12631856

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4228889A Pending JPH02220141A (en) 1989-02-22 1989-02-22 Trouble detecting circuit

Country Status (1)

Country Link
JP (1) JPH02220141A (en)

Similar Documents

Publication Publication Date Title
US5530663A (en) Floating point unit for calculating a compound instruction A+B×C in two cycles
US6925480B2 (en) Microarchitecture of an arithmetic unit
JPH0544046B2 (en)
US7428567B2 (en) Arithmetic unit for addition or subtraction with preliminary saturation detection
US8205097B2 (en) Microprocessor in a security-sensitive system
US4224680A (en) Parity prediction circuit for adder/counter
US3873820A (en) Apparatus for checking partial products in iterative multiply operations
US6629118B1 (en) Zero result prediction
US20050188000A1 (en) Adder
JPH02220141A (en) Trouble detecting circuit
JPH02220140A (en) Trouble detecting circuit
US6321248B1 (en) Process for determining an overflow to the format of the result of an arithmetic operation carried out on two operands
US10133624B2 (en) Fault localization and error correction method for self-checking binary signed-digit adder and digital logic circuit for the method
US5629945A (en) Electronic arithmetic unit with multiple error detection
US20060277246A1 (en) Multiplication circuitry
US6819971B1 (en) Fast computation of overflow flag in a bit manipulation unit
JPS5916303B2 (en) data processing equipment
JPS62206643A (en) Trouble detecting circuit for adder
Alavi et al. Fault localization and full error correction in Radix2 signed digit-based adders
JP3645830B2 (en) Divider failure detection circuit and divider failure detection method used therefor
JPS6136250B2 (en)
JPH0553767A (en) System for inspecting multiplying equipment
JP2000283750A (en) Method for correcting detected-angle data
JP2000293359A (en) Method and device for comparing largeness/smallness
JPH04180134A (en) Pseudo error generating system