JPS5829054A - Logical operation parity forecasting circuit - Google Patents

Logical operation parity forecasting circuit

Info

Publication number
JPS5829054A
JPS5829054A JP56126674A JP12667481A JPS5829054A JP S5829054 A JPS5829054 A JP S5829054A JP 56126674 A JP56126674 A JP 56126674A JP 12667481 A JP12667481 A JP 12667481A JP S5829054 A JPS5829054 A JP S5829054A
Authority
JP
Japan
Prior art keywords
circuit
parity
logical
exclusive
output
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
JP56126674A
Other languages
Japanese (ja)
Inventor
Fujio Yokoyama
横山 不二夫
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 JP56126674A priority Critical patent/JPS5829054A/en
Publication of JPS5829054A publication Critical patent/JPS5829054A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding 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)

Abstract

PURPOSE:To eliminate the need for double check for logical product and sum circuits, by forming the parity of logical product and sum from the result of logical product and sum and the parity of exclusive logical sum. CONSTITUTION:Input data a0-a7 and b0-b7 are inputted to a logical operation circuit in parallel, then logical operation is made respectively in a logical product circuit 1, a logical sum circuit 2 and an exclusive logical sum circuit 3 and the desired result of operation is selected at a selection circuit 4 for output. On the other hand, parities ap and bp for the data a0-a7 and b0-b7 are logically operated at an exclusive logical sum circuit 7 and inverted 10 to be a parity 15 of exclusive logical sum. Further, the exclusive OR of the parity 15 and the output of the circuits 1 and 2 is formed at circuits 11 and 12 to be a parity 13 of logical sum and a parity 14 of logical product. The parity of logical operation corresponding to the output of the circuit 4 is selected at a selection circuit 16 out of the parities 13-15 for output. The output of the circuit 16 is checked at a parity check circuit 17.

Description

【発明の詳細な説明】 本発明は、論理演算パリティ予測回路に関し、詳しく社
、入力データとそのパリティから論理演算のパリティを
予測する回路に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a logical operation parity prediction circuit, and more particularly to a circuit that predicts the parity of a logical operation from input data and its parity.

従来、論理積や論理和等の論理演算回路のチェックを行
う場合、同一の論理演算回路を2個設けて、2重化によ
る比較チェックを行っており、棗。
Conventionally, when checking logic operation circuits such as AND and OR, two identical logic operation circuits are provided and comparison checks are performed by duplication.

た演算結果のパリティを作成する場合、論理演算結果を
用いて生成している。このため、2重化された論理演算
回路、これらの回路出力の比較回路セよび比較回路のチ
ェックを行う回路等が必要となり、ゲート数はパリティ
を生成、チェックしない演算回路に比較して相当数多く
なっている。
When creating parity for the result of a logical operation, it is generated using the result of a logical operation. Therefore, duplicate logic operation circuits, comparison circuits for the outputs of these circuits, and circuits for checking the comparison circuits are required, and the number of gates is considerably larger than in an operation circuit that does not generate or check parity. It has become.

第1図は、従来の論理演算のパリティ生成回路とチェッ
ク回路のブロック図である。
FIG. 1 is a block diagram of a conventional logic operation parity generation circuit and check circuit.

1バイトを構成するビット列a ・・・a、とb00.
・b7  が並列に論理演算回路5と6′に入力すると
、それぞれ論理積回路1.&理和回路2、排他的論理和
回路3で対応ビットどうしの論理演算が施され、選択回
路ヰで所望の論理演算結果が選択されて出力される。
Bit string a constituting one byte...a, and b00.
・When b7 is input in parallel to the logic operation circuits 5 and 6', the respective logic product circuits 1. The logical sum circuit 2 and exclusive OR circuit 3 perform logical operations on corresponding bits, and the selection circuit 2 selects and outputs a desired logical operation result.

論理演算回路すと6′は2重化されており、両者の内部
回路は全く同一である。また、論理演算回路5の出力は
3つに分離され、その1つはパリティ生成回路8に入力
して論理演算パリティが生成される。出力の他の1つは
、そのttabm演算結果として与えられ、残る1つは
比較回路7に入力される。比較回路7は、論理演算回路
6,6′の比較チェックを行うためのもので、一方の入
力には選択回路6の出力が与えられる。選択回路6け、
診断モードと通常モードにより、論理演算回路δ′の結
果データと他の入力データの一方1−&択して出力させ
るものである。すなわち、選択回路6は、診断モード信
号が論理″′0゛′のとき、論理演算回路b′の出力を
そのit比出力、また診断モード信号が論理”1”のと
きには、論理演算回@5′の出方以外の他の入力〜デー
タを選択して出方する。つまり・・、診断モード信号が
論理”1″のときには、論理演算回路6′の正しい出力
値とは興なる他の入力データを比較回路7に入力するこ
とにより、比較回路7が比較結果不一致信号を論理”1
”にするか否かをチェックする。
The logic operation circuit 6' is duplicated, and the internal circuits of both are exactly the same. Further, the output of the logic operation circuit 5 is separated into three parts, one of which is input to the parity generation circuit 8 to generate logic operation parity. The other output is given as the result of the ttabm operation, and the remaining one is input to the comparison circuit 7. The comparator circuit 7 is used to perform a comparison check between the logic operation circuits 6 and 6', and one input thereof receives the output of the selection circuit 6. 6 selection circuits,
Depending on the diagnostic mode or the normal mode, one of the result data of the logical operation circuit δ' and other input data is selected and output. That is, when the diagnostic mode signal is logic ``0'', the selection circuit 6 converts the output of logic operation circuit b' into its IT ratio output, and when the diagnosis mode signal is logic ``1'', it selects the logic operation circuit @5. Select and output other input data other than the output of '.In other words, when the diagnostic mode signal is logic "1", the correct output value of the logic operation circuit 6' is determined by other inputs. By inputting data to the comparison circuit 7, the comparison circuit 7 converts the comparison result mismatch signal to logic "1".
” Check whether or not.

第1図においては、論理演算パリティを、論理演算結果
からパリティ生成回路8によって作成し。
In FIG. 1, logical operation parity is created by a parity generation circuit 8 from the logical operation results.

ている。ま友、第1図に示す回路を両極性出力の3人力
アンド/オア・ゲートで構成した組合には、約210ケ
ートが必要となる。
ing. Friend, the combination of the circuit shown in Figure 1 with three-man AND/OR gates with bipolar outputs requires approximately 210 gates.

本発明の目的は、このような従来の欠点を除去するため
、少ないゲート数と段数で論理演算のパリティ生成およ
び論理演算回路のチェックを実行できる論理演算パリテ
ィ予測回路を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a logic operation parity prediction circuit that can generate logic operation parity and check a logic operation circuit with a small number of gates and stages, in order to eliminate such conventional drawbacks.

本発明の論理演算パリティ予測回路は、2人力データの
排他的論理和の結果のパリティが2個の入力のパリティ
の排他的論理和の否定として簡単に作成できることに着
目し、この2人力のパリティの排他的論理和の否定出力
と、論理積の結果の排他的論理和によ抄騙同和の結果の
パリティを作成し、2人力のパリティの排他的論理和の
否定出力ζ論理和の結果との排他的論理和により論理積
の結果のパリティを作成することを特徴としている。
The logical operation parity prediction circuit of the present invention focuses on the fact that the parity of the result of the exclusive OR of two manually-powered data can be easily created as the negation of the exclusive-OR of the parities of two inputs. Create the parity of the result of the arithmetic doubling by the negative output of the exclusive OR of The feature is that the parity of the result of the logical product is created by the exclusive logical sum of the logical product.

以下、本発明の実施例を、第2図により説明する〇第2
図に示す論理演算パリティ予測回路では、従来の場合と
同じように、1バイトを構成するビツシ列1 ・・・a
マとす。・・・b、が並列に論理演算回路に入力するこ
とにより、論理積回路11−同和回路2、排他的論理和
回路3でそれぞれ対応ビットどうしの論理演算が行われ
、選択回路ヰで所望の論理演算結果が選択されて出力さ
れる。論理演算回路は2重化されておらず、それぞれ1
組ずつ設けられる。
Hereinafter, embodiments of the present invention will be explained with reference to Fig. 2.
In the logical operation parity prediction circuit shown in the figure, as in the conventional case, the bit string 1 . . . a constituting one byte is
Mato. By inputting . Logical operation results are selected and output. The logic operation circuits are not duplicated, and each has one
Each group is provided.

第2図では、1組の論理演算回路1,2.3の他に、入
力データのパリティap * b pの排他的論理和の
否定を作成する回路9.lO1論理積回路lの出力と回
路10の出力との排他的論理和をとる@路11.論理和
回路2の出力と回路10の出力との排他的論理和をとる
回路12、パリティ選・折回路16、およびパリティ・
チェック回路17から構成される。
In FIG. 2, in addition to a set of logic operation circuits 1 and 2.3, there is also a circuit 9.3 that creates the exclusive OR negation of the parity ap*bp of input data. lO1 Exclusive OR of the output of AND circuit l and the output of circuit 10 @Route 11. A circuit 12 that takes the exclusive OR of the output of the OR circuit 2 and the output of the circuit 10, a parity selection/folding circuit 16, and a parity selection/folding circuit 16.
It consists of a check circuit 17.

入力データ1 ・・・aマ、bo・・・b、の各パリテ
ィap、b、は、排他的W#1理和同和回路入力されて
論理演算された後、インバーターOで反転されて。
The respective parities ap and b of input data 1 .

排他的論理和のパリティ−5となる。また、このパリテ
ィ−5と論NM!111回路1の出力の排他的論理和が
回路11により作成され、この回路11の出力が論理和
のパリティ−3となる。さらに、パリティ16と論理和
回路2の出力の排他的論理和が1゜回路12により作成
され、この回路12の出方が論理積のパリティ−4とな
る。
The parity of the exclusive OR becomes -5. Also, this parity-5 and theory NM! An exclusive OR of the outputs of the 111 circuit 1 is created by the circuit 11, and the output of this circuit 11 becomes parity -3 of the OR. Furthermore, an exclusive OR of the parity 16 and the output of the OR circuit 2 is created by the 1 DEG circuit 12, and the output of this circuit 12 becomes the AND parity -4.

選択回路4と選択回路16には、共通の選択制御信号が
入力しているため、選択回路牛の出方に対応しな論理演
算のパリディがパリティ−3〜15の中から選択回路1
6により選択されてwカされる。
Since a common selection control signal is input to the selection circuit 4 and the selection circuit 16, the parity of the logic operation corresponding to the appearance of the selection circuit cow is selected from the selection circuit 1 from parity -3 to 15.
6 and is selected by w.

選択回路16の出方は、パリティ・チェック回路17に
よりパリティ・チェックされる。このチェックけ、入力
データのパリティa、b  のいず    p れか一方ヲ談パリティとすることにより行うことができ
る。
The output of the selection circuit 16 is parity checked by a parity check circuit 17. This check can be performed by setting either parity a or b of the input data to be parity.

このように、第2図に示す回路では、論理演算回路の2
重化による比較チェックは不要となり、両極性出力の3
人力アンド/オア・ゲートにより構成する場合、約14
0ゲートの少ないゲート数で実現できる。
In this way, in the circuit shown in FIG.
There is no need to check the comparison by overlapping, and the 3rd generation of bipolar output
Approximately 14 when configured by manual AND/OR gate
This can be achieved with a small number of 0 gates.

次に、第2図における各回路の論理動性1式て説明する
Next, the logical behavior of each circuit in FIG. 2 will be explained.

先ず、入力データa ・・・’t+ bo・・・b、の
パリテイをap 1 bpとし、論理積、論理和、およ
び排他的論理和のパリティをそれぞれn p e Op
 +・。
First, the parity of the input data a...'t+bo...b is set to ap 1 bp, and the parity of the AND, OR, and EXCLUSIVE OR is n p e Op, respectively.
+・.

とすると、これらは次式で表わされる。Then, these are expressed by the following equation.

−ILp691)、            ・・・O
)なお、・、十、eはそれぞれ論理積、論理和、排他的
論理和を示す記号であり、1はaの否定を示す記号であ
る。
-ILp691), ...O
), ., 10, and e are symbols indicating logical product, logical sum, and exclusive disjunct, respectively, and 1 is a symbol indicating negation of a.

ここで、上記α)式を変形して、・pを2回だけ排他的
論理和しても値は不変であるから、次式を作成してみる
Here, by transforming the above equation α), the value remains unchanged even if p is exclusively ORed twice, so let's create the following equation.

5−(り1奮「二]I7丁すei3 @peeP・・・
←)。
5-(ri1 Iku ``2'' I7 chosuei3 @peeP...
←).

上記(イ)式の1個の・、に前記C)式を代入すると、
次のようにに形される。
Substituting the above equation C) into one of the equations (A) above, we get
It is shaped like this:

−((a、 ・bo)e (ao e bo) ) (
9・・・・・・69 ((at  ・by)e(ay 
ebい)e8p−0e)ここで、次の式が一般に成立す
る。
−((a, ・bo)e (ao ebo) ) (
9...69 ((at ・by)e(ay
eb)e8p-0e) Here, the following equation generally holds true.

(a−b)69(aeb) −a・b−a−b + a
番b−h−b++ (a  −b)  N a−b+ 
  (a−b)  −a  ・ b−a +b・・・ 
(6) なぜならば、〜上記(6)式中において(a−b) −
h−b−。
(a-b) 69 (aeb) -a・b-a-b + a
Number b-h-b++ (a-b) N a-b+
(a-b) -a ・ b-a +b...
(6) Because, in the above formula (6), (a-b) −
h-b-.

(a−b) ・a−b−a −b であるため、次のとおり上記(6)式が成立する。(a-b)・a-b-a-b Therefore, the above equation (6) holds true as follows.

(&−b)■(&69b)−a−b+a−b+a−b−
a −b+aT (b+b) −a −b+m= (a
+a) −(b+a) −a+bしたがって、上記(6
)式は次のように変換される。
(&-b)■(&69b)-a-b+a-b+a-b-
a −b+aT (b+b) −a −b+m= (a
+a) -(b+a) -a+b Therefore, the above (6
) expression is converted as follows.

np−(NO+ bo)e ・・・e(ay +by)
eap、 、、 7)上記(7)式は、第2図における
排他的論理和回路12の演算式であって、論理積のパリ
ティn は論理和の結果と入力データの排他的論理和の
パリティ(ap69bp−e11’)との排他的論理和
によって算出されることが数学的にも証明された。
np-(NO+bo)e...e(ay+by)
eap, ,, 7) Equation (7) above is the arithmetic expression of the exclusive OR circuit 12 in FIG. It has also been mathematically proven that it is calculated by exclusive OR with (ap69bp-e11').

次に、全く同じようにして、前記3)式の論理和のパリ
ティop も、下記一般式を利用して変形できる。
Next, in exactly the same way, the parity op of the logical sum in equation 3) can also be transformed using the following general equation.

(a十b) e(a(9b) = Ca+b) ・h−b十(a+b) ・a−b+(
a十b)−a−b+(a−)−b) −a −b−a−
b     ”・e)−C(al) 十b o)e(a
o■bo))e・−・α(&? 十すい■(ay eb
、) ) 69 @、。
(a + b) e (a (9b) = Ca + b) ・h − b (a + b) ・ a − b + (
a ten b) -a-b+(a-)-b) -a -b-a-
b ”・e)-C(al) 10b o)e(a
o■bo))e・-・α(&? ten sui■(ay eb
, ) ) 69 @,.

−C(ao−bo)の・・・e(a、・17))eep
・・・0) 上記e)式は、第2図における排他的論理和回路11の
演算式であって、論理和のパリティ0 は論理積の結果
と入力データの排他的論理和のパリティ(a、、 鮎−
@、)との排他的論理和によって算出されることが数学
的に証明された。
-C(ao-bo)...e(a,・17))eep
...0) Equation e) above is an arithmetic expression of the exclusive OR circuit 11 in FIG. ,, Ayu-
It has been mathematically proven that it is calculated by exclusive OR with @, ).

第2図に示すパリティ・チェック回路17け、選択回路
ヰと16により対応する論理結果出力、(o’o  ・
・・・0.)と予測パリティ (Op)が選択1 されて出力されると、これらを取り込み、fO0e01
■・・・eC,)(EIOp  の演算を行うことによ
沙、予測パリティOpが論理演算結果のパリティと等し
いか否かをチェックする。
The parity check circuit 17 shown in FIG.
...0. ) and predicted parity (Op) are selected and output, these are taken in and fO0e01
(2)...eC, ) (EIOp) By performing the operation, it is checked whether the predicted parity Op is equal to the parity of the logical operation result.

以上説明したようCで1本発明によれば、論理積、論理
和のパリティを排他的論理和のパリティと論理和あるい
船ま論理積の結果から作成するので、論理積、論理和回
路の2市化千ゴツクが不要であり、また人力データとそ
のパリティとから論理演算のパリティを予測するのでバ
リテーイ・チェツタ回路のチェックは大力データ倉操作
するのみで簡単に行うことがでもろ。さらに、二重化チ
ェックに比べて少ないゲート数で論理全構成できろ。
As explained above, according to the present invention, the parity of logical product and logical sum is created from the parity of exclusive logical sum and the result of logical sum and logical product. Since there is no need for 2-city processing, and the parity of logical operations is predicted from human data and its parity, checking of the Validity/Chetsuta circuit can be easily performed by simply manipulating the data storage. Furthermore, the entire logic can be configured with a smaller number of gates compared to the duplex check.

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

第1図は従来の論理演算結果とそのチェック回路のブロ
ック図、嬉2114は本発明の実施例を示すthil堀
演算パリティ予−回路のブロック図である。 1:論理積回路、2!論理和回路、3.11.12:排
他的論理和回路、ヰ、6.IQ !選択回路、6゜6′
:論理演算回路、7!比較回路、8!パリティ生成回路
、9:入力データ・パリティの排他的論理和回路、10
!インバータ、13!論理和パリテイ、14:論理積パ
リティ、15:排他的論理和パリティ、17:パリティ
・チェック回路。 第 1 図
FIG. 1 is a block diagram of a conventional logic operation result and its check circuit, and 2114 is a block diagram of a thil-hori operation parity pre-circuit showing an embodiment of the present invention. 1: AND circuit, 2! OR circuit, 3.11.12: Exclusive OR circuit, 6. IQ! Selection circuit, 6°6'
:Logic operation circuit, 7! Comparison circuit, 8! Parity generation circuit, 9: Input data parity exclusive OR circuit, 10
! Inverter, 13! OR parity; 14: AND parity; 15: Exclusive OR parity; 17: Parity check circuit. Figure 1

Claims (1)

【特許請求の範囲】[Claims] 論理積および論理和等の論理演算回路において、該論理
演算回路への2人力のパリティの排他的論理和の否定出
力と上記論理積の結果出力との排他的論理和を演算して
、論理和の結果のパリティを得る手段と、上記2人力の
パリティの排他的論理和の否定出力と上記論理和の結果
出力との排他的・論理和を演算して、論理積の結果のパ
リティを得る手段を有すること全特徴とする論理演算パ
リティ予測回路。
In a logic operation circuit such as AND and OR, calculate the exclusive OR of the negative output of the exclusive OR of the parity of two people to the logic operation circuit and the result output of the above AND, and then means for obtaining the parity of the result of the logical product, and means for calculating the exclusive logical sum of the negative output of the exclusive logical sum of the parities of the two operators and the resultant output of the logical sum, and obtaining the parity of the result of the logical product. A logical operation parity prediction circuit having the following characteristics.
JP56126674A 1981-08-14 1981-08-14 Logical operation parity forecasting circuit Pending JPS5829054A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56126674A JPS5829054A (en) 1981-08-14 1981-08-14 Logical operation parity forecasting circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56126674A JPS5829054A (en) 1981-08-14 1981-08-14 Logical operation parity forecasting circuit

Publications (1)

Publication Number Publication Date
JPS5829054A true JPS5829054A (en) 1983-02-21

Family

ID=14941047

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56126674A Pending JPS5829054A (en) 1981-08-14 1981-08-14 Logical operation parity forecasting circuit

Country Status (1)

Country Link
JP (1) JPS5829054A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01280839A (en) * 1987-12-04 1989-11-13 Hitachi Ltd Semiconductor integrated circuit device
JPH04218829A (en) * 1989-12-07 1992-08-10 Bull Sa Barrel shifter having parity-bit generator
US7962829B2 (en) 2005-03-31 2011-06-14 Fujitsu Limited Parity prediction circuit and logic operation circuit using same

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01280839A (en) * 1987-12-04 1989-11-13 Hitachi Ltd Semiconductor integrated circuit device
JPH04218829A (en) * 1989-12-07 1992-08-10 Bull Sa Barrel shifter having parity-bit generator
US7962829B2 (en) 2005-03-31 2011-06-14 Fujitsu Limited Parity prediction circuit and logic operation circuit using same

Similar Documents

Publication Publication Date Title
JP3512216B2 (en) Apparatus and method for adding and subtracting thermometer coded data
Budur et al. Cohomology jump loci of differential graded Lie algebras
JPS5829054A (en) Logical operation parity forecasting circuit
JP2970231B2 (en) Parallel multiplication circuit
US4224680A (en) Parity prediction circuit for adder/counter
JPH0464091B2 (en)
JPH01267728A (en) Multiplier
JPH0385923A (en) CRC calculation method
JP4202701B2 (en) Polynomial residue arithmetic unit, method and program
JPH056263A (en) Adder and absolute value calculation circuit using the adder
JP2681968B2 (en) Arithmetic processing unit
JPS5966240A (en) Crcc production checking circuit
JPS63121987A (en) Neuron type calculator
JPS6049933B2 (en) computing device
JP2907276B2 (en) Arithmetic processing unit
JPS6077244A (en) Crc circuit
JP2767625B2 (en) Fuzzy inference apparatus and operation method thereof
JPS642974B2 (en)
SU407308A1 (en) DEVICE FOR COMPLEX - CLEANING
Sadooghi-Alvandi Simultaneous prediction intervals for regression models with an intercept
JPH02116934A (en) Arithmetic system
JPH1115641A (en) Multiplier using redundant binary adder
WO2006106576A1 (en) Parity prediction circuit and logic operation circuit using the same
JPH03257630A (en) Priority detecting circuit
JPS6129018B2 (en)