JPH09200041A - Majority processing circuit - Google Patents

Majority processing circuit

Info

Publication number
JPH09200041A
JPH09200041A JP2587896A JP2587896A JPH09200041A JP H09200041 A JPH09200041 A JP H09200041A JP 2587896 A JP2587896 A JP 2587896A JP 2587896 A JP2587896 A JP 2587896A JP H09200041 A JPH09200041 A JP H09200041A
Authority
JP
Japan
Prior art keywords
data block
shift register
data
bit
input
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
JP2587896A
Other languages
Japanese (ja)
Inventor
Yasuhiro Takase
康弘 高瀬
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.)
Toyo Communication Equipment Co Ltd
Original Assignee
Toyo Communication Equipment 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 Toyo Communication Equipment Co Ltd filed Critical Toyo Communication Equipment Co Ltd
Priority to JP2587896A priority Critical patent/JPH09200041A/en
Publication of JPH09200041A publication Critical patent/JPH09200041A/en
Pending legal-status Critical Current

Links

Landscapes

  • Logic Circuits (AREA)
  • Dc Digital Transmission (AREA)

Abstract

(57)【要約】 【課題】 本発明は、多数決論理演算回路などを使用す
ることなく、かつシフトレジスタの数を半減させたま
ま、データブロックの多数決判定処理を可能にし、回路
規模、消費電力、製造コストなどを低減させる。 【解決手段】 第1演算回路2-1と、第2演算回路2-2
とによって、データ入力端子4に入力された1番目のデ
ータブロックないし3番目のデータブロックを順次、取
り込みシフトしながら、多数決演算を行なって、前記1
番目のデータブロックないし3番目のデータブロックを
構成する各ビットが“1”か“0”かを判定し、3番目
のデータブロックの最終ビットを取り込んで判定を行な
った後、第2演算回路2-2に記憶しているデータを多数
決論理判定済みの並列データとして出力する。
Kind Code: A1 Abstract: The present invention enables majority decision processing of a data block without using a majority logic operation circuit and the like, while reducing the number of shift registers by half, circuit scale, and power consumption. , Reduce manufacturing costs. A first arithmetic circuit 2 -1 and a second arithmetic circuit 2 -2
And the first data block or the third data block input to the data input terminal 4 are sequentially taken in and shifted, and the majority operation is performed to shift
After determining whether each bit forming the third data block or the third data block is "1" or "0" and taking the final bit of the third data block to perform the determination, the second arithmetic circuit 2 -The data stored in -2 is output as parallel data that has undergone the majority logic decision.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、デジタル通信で使
用される多数決演算処理回路に関し、殊に複数の同一デ
ータを取り込み、多数決によって正しいデータを再生す
る多数決演算処理回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a majority operation processing circuit used in digital communication, and more particularly to a majority operation processing circuit which takes in a plurality of identical data and reproduces correct data by majority.

【0002】[0002]

【従来の技術】デジタル通信で使用される多数決演算処
理回路として、従来、図7に示す回路が知られている。
この図に示す多数決演算処理回路101は、受信データ
ブロック長の容量を持ち、受信したデータを取り込んで
順次、シフトする第1シフトレジスタ102と、この第
1シフトレジスタ102と同じ容量を持ち、前記第1シ
フトレジスタ102から出力されるデータを取り込んで
順次、シフトする第2シフトレジスタ103と、この第
2シフトレジスタ103と同じ容量を持ち、前記第2シ
フトレジスタ103から出力されるデータを取り込んで
順次、シフトする第3シフトレジスタ104と、この第
3シフトレジスタ104と同じ容量を持ち、前記第3シ
フトレジスタ104から出力されるデータを取り込んで
順次、シフトする第4シフトレジスタ105とを備えて
いる。さらに、この多数決演算処理回路101は、受信
した5番目のデータブロックと前記第1シフトレジスタ
102から出力される4番目のデータブロックないし前
記第4シフトレジスタ105から出力される1番目のデ
ータブロックとに対し、各ビット毎に多数決演算を行な
って前記1番目のデータブロックないし5番目のデータ
ブロックを構成する各ビットが“1”か、“0”かを判
定して、判定結果を出力する多数決論理演算回路106
と、前記第1シフトレジスタ102ないし前記第4シフ
トレジスタ105と同じ容量を持ち、前記多数決論理演
算回路106から出力される判定結果を示すデータブロ
ックを取り込んで順次、シフトした後、これを並列デー
タとして出力するシフトレジスタ107とを備えてい
る。
2. Description of the Related Art As a majority arithmetic processing circuit used in digital communication, the circuit shown in FIG. 7 is conventionally known.
The majority arithmetic processing circuit 101 shown in this figure has a capacity of a received data block length, has a first shift register 102 that takes in received data and sequentially shifts it, and the same capacity as this first shift register 102. The second shift register 103 that fetches the data output from the first shift register 102 and sequentially shifts it, and the data that has the same capacity as this second shift register 103 and fetches the data output from the second shift register 103 A third shift register 104 that sequentially shifts, and a fourth shift register 105 that has the same capacity as that of the third shift register 104 and that captures data output from the third shift register 104 and sequentially shifts the data are provided. There is. Further, the majority arithmetic processing circuit 101 includes a received fifth data block and a fourth data block output from the first shift register 102 to a first data block output from the fourth shift register 105. On the other hand, a majority decision is performed for each bit to decide whether each bit constituting the first data block to the fifth data block is "1" or "0", and output the decision result. Logical operation circuit 106
A block of data having the same capacity as the first shift register 102 to the fourth shift register 105 and showing the determination result output from the majority logic operation circuit 106, and sequentially shifting the data block; And a shift register 107 for outputting as.

【0003】この構成において、同一の内容となってい
る1番目のデータブロックないし5番目のデータブロッ
クを受信して、これら1番目のデータブロックないし5
番目のデータブロックの多数決論理演算を行なう際、1
番目のデータブロックないし4番目のデータブロックを
順次、取り込み、これを第1シフトレジスタ102ない
し第4シフトレジスタ105によって順次、シフトしな
がら、前記1番目のデータブロックないし4番目のデー
タブロックと同一の内容となっている5番目のデータブ
ロックを取り込むとき、多数決論理演算回路106によ
って5番目のデータブロックと、前記第4シフトレジス
タ105から出力される1番目のデータブロックないし
前記第1シフトレジスタ102から出力される4番目の
データブロックとに対し、各ビット毎に多数決演算を行
なって前記1番目のデータブロックないし5番目のデー
タブロックを構成する各ビットが“1”か、“0”かを
判定する。そして、この動作と並行して、シフトレジス
タ107により、前記多数決論理演算回路106から出
力される判定結果を“1”ビット単位で順次、取り込み
ながらシフトして、データブロックの最終ビットを取り
込んだ後、記憶しているデータを前記1番目のデータブ
ロックないし5番目のデータブロックに対する多数決論
理判定済みの並列データとして出力する。しかしなが
ら、図7に示す多数決演算処理回路101においては、
1番目のデータブロックないし4番目のデータブロック
を第1シフトレジスタ102ないし第4シフトレジスタ
105に記憶させた状態で、5番目のデータブロックを
取り込んだとき、多数決論理演算回路106によって前
記1番目のデータブロックないし5番目のデータブロッ
クを構成する各ビットが“1”か、“0”かを判定し
て、判定結果をシフトレジスタ107に順次、格納し
て、並列データにするようにしているので、データブロ
ックの数だけシフトレジスタを必要とするのみならず、
多数決論理演算回路106などを必要とし、その分だ
け、回路規模、消費電力、製造コストなどが増大してし
まうという問題があった。本発明は上記の事情に鑑み、
多数決論理演算回路などを使用することなく、かつシフ
トレジスタの数を半減させたまま、データブロックの多
数決判定処理を可能にして、回路規模、消費電力、製造
コストなどを低減させることができる多数決演算処理回
路を提供することを目的としている。
In this configuration, the first data block to the fifth data block having the same contents are received, and the first data block to the fifth data block are received.
When performing the majority logic operation of the second data block, 1
The first data block to the fourth data block are sequentially fetched, and the first data block to the fourth data block are sequentially shifted by the first shift register 102 to the fourth shift register 105 to obtain the same data as the first data block to the fourth data block. When fetching the fifth data block that is the content, the majority logic operation circuit 106 outputs the fifth data block and the first data block or the first shift register 102 output from the fourth shift register 105. A majority operation is performed for each bit with respect to the output fourth data block to determine whether each bit forming the first data block to the fifth data block is "1" or "0". To do. In parallel with this operation, the shift register 107 sequentially shifts the determination result output from the majority logic operation circuit 106 in units of "1" bits while fetching the final bit of the data block. , The stored data is output as parallel data for which the majority logic determination has been completed for the first data block to the fifth data block. However, in the majority arithmetic processing circuit 101 shown in FIG.
When the fifth data block is taken in with the first data block to the fourth data block stored in the first shift register 102 to the fourth shift register 105, the majority logic operation circuit 106 causes the first data block Since it is determined whether each bit forming the data block or the fifth data block is "1" or "0", the determination result is sequentially stored in the shift register 107 to be parallel data. , Not only need shift register for the number of data blocks,
The majority logic operation circuit 106 and the like are required, and there is a problem that the circuit scale, power consumption, manufacturing cost, etc. increase correspondingly. In view of the above circumstances, the present invention is
A majority decision operation that can perform a majority decision process for a data block without using a majority decision logic operation circuit and reduce the number of shift registers by half, and reduce circuit scale, power consumption, manufacturing cost, etc. It is intended to provide a processing circuit.

【0004】[0004]

【課題を解決する為の手段】上記の目的を達成するため
に本発明による多数決演算処理回路は、請求項1では、
データ入力端子に入力された1ビット以上の同一内容を
持つ(2N−1)個のデータブロック(但し、Nは1を
越える整数)を取込み、これら(2N−1)個のデータ
ブロックを構成する各ビットが“1”か、“0”かを多
数決判定する多数決演算処理回路において、前記データ
ブロックの長さと同じ長さを持つシフトレジスタを有
し、前記データ入力端子に入力されたデータブロックと
自回路内のシフトレジスタに保持されているそれまでの
データブロックとの論理和をとり、論理和結果を自回路
内の前記シフトレジスタに再保持する第1演算回路と、
前記データブロックの長さと同じ長さを持つシフトレジ
スタを有し、前記データ入力端子に入力されたデータブ
ロックと前段の演算回路内にあるシフトレジスタに保持
されているそれまでのデータブロックとの論理積をとっ
た後、この論理積結果と自回路内のシフトレジスタに保
持されているそれまでのデータブロックとの論理和をと
った後、論理和結果を自回路内の前記シフトレジスタに
再保持する第2ないし第N演算回路とを備え、前記第N
演算回路のシフトレジスタに保持されているデータブロ
ックを誤り訂正後のデータブロックとすることを特徴と
している。
In order to achieve the above-mentioned object, a majority arithmetic processing circuit according to the present invention comprises:
(2N-1) data blocks (where N is an integer greater than 1) having the same content of 1 bit or more input to the data input terminal are taken in and these (2N-1) data blocks are constructed. A majority decision processing circuit for making a majority decision on whether each bit is "1" or "0" has a shift register having the same length as the length of the data block, and a data block input to the data input terminal. A first arithmetic circuit for taking a logical sum of the data blocks held up to now in the shift register in its own circuit and holding the result of the logical sum again in the shift register in its own circuit;
A logic having a shift register having the same length as the length of the data block, and the logic of the data block input to the data input terminal and the previous data block held in the shift register in the arithmetic circuit of the previous stage. After taking the product, after taking the logical sum of this logical product result and the previous data block held in the shift register in the own circuit, the result of the logical sum is held again in the shift register in the own circuit The second to Nth operation circuits for
The data block held in the shift register of the arithmetic circuit is a data block after error correction.

【0005】また、請求項2では、請求項1に記載の多
数決演算処理回路において、前記第1ないし第N演算回
路を構成する各シフトレジスタとして、リセット付きの
シフトレジスタを使用し、前記データ入力端子に入力さ
れる誤り訂正対象となる(2N−1)個のデータブロッ
クのうち、最初のデータブロックが入力される前に、前
記各シフトレジスタにリセット信号を供給して、これら
の各シフトレジスタをリセットすることを特徴としてい
る。
According to a second aspect of the present invention, in the majority arithmetic processing circuit according to the first aspect, a shift register with reset is used as each shift register constituting the first to Nth arithmetic circuits, and the data input is performed. Of the (2N-1) data blocks to be error-corrected that are input to the terminals, a reset signal is supplied to each shift register before the first data block is input, and each shift register is supplied. It is characterized by resetting.

【0006】また、請求項3では、請求項1に記載の多
数決演算処理回路において、前記第1ないし第N演算回
路を構成する各シフトレジスタとして、リセット機能を
持たないシフトレジスタを使用するとともに、これらシ
フトレジスタの出力と初期化信号との論理積をとってシ
フトレジスタの入力側に戻すアンドゲートを使用し、前
記データ入力端子に入力される誤り訂正対象となる(2
N−1)個のデータブロックが入力される際、最初のデ
ータブロックが入力されている間に、前記各アンドゲー
トに初期化信号を入力してシフトレジスタの入力側に値
“0”のデータブロックを戻すことを特徴としている。
According to a third aspect of the present invention, in the majority arithmetic processing circuit according to the first aspect, a shift register having no reset function is used as each shift register forming the first to Nth arithmetic circuits. An AND gate that takes the logical product of the output of the shift register and the initialization signal and returns it to the input side of the shift register is used and is the error correction target input to the data input terminal (2).
When N-1) data blocks are input, while the first data block is being input, an initialization signal is input to each of the AND gates to input data of value "0" to the input side of the shift register. Characterized by returning the block.

【0007】[0007]

【発明の実施の形態】以下、本発明を図面に示した実施
例に基づいて詳細に説明する。図1は本発明による多数
決演算処理回路の第1実施例を示すブロック図である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, the present invention will be described in detail based on embodiments shown in the drawings. FIG. 1 is a block diagram showing a first embodiment of a majority arithmetic processing circuit according to the present invention.

【0008】この図に示す多数決演算処理回路1は、第
1演算回路2-1と、第2演算回路2-2とを備えており、
これら第1演算回路2-1と、第2演算回路2-2とによっ
て、データ入力端子4に入力された1番目のデータブロ
ックないし3番目のデータブロックを順次、取り込みシ
フトしながら、多数決演算を行なって、前記1番目のデ
ータブロックないし3番目のデータブロックを構成する
各ビットが“1”か“0”かを判定し、3番目のデータ
ブロックの最終ビットを取り込んで判定を行なった後、
第2演算回路2-2に記憶しているデータを多数決論理判
定済みの並列データとして出力する。第1演算回路2-1
は、処理対象となるデータブロックのブロック長と同じ
長さの容量を持ち、リセット端子5-1r にリセット信号
が入力されたとき、それまで記憶している内容を“0”
に初期化し、クロック信号が入力されているとき、入力
端子5-1i に入力されたデータブロックの各ビットを順
次、取り込みながらシフトして、出力端子5-10 から出
力するシフトレジスタ5-1と、データ入力端子4に入力
されたデータブロックの各ビットと前記シフトレジスタ
-1の出力端子5-10 から出力されるデータブロックの
各ビットとの論理和をとり、前記シフトレジスタ5-1
入力端子5-1i に供給するオアゲート6-1とを備えてい
る。
The majority arithmetic processing circuit 1 shown in this figure comprises a first arithmetic circuit 2 -1 and a second arithmetic circuit 2 -2 ,
The first arithmetic circuit 2 -1 and the second arithmetic circuit 2 -2 sequentially take in the first data block to the third data block input to the data input terminal 4 or the third data block to shift the majority operation. Then, it is determined whether each bit constituting the first data block to the third data block is "1" or "0", and the final bit of the third data block is fetched and determined.
The data stored in the second arithmetic circuit 2 -2 is output as the parallel data which has undergone the majority logic determination. First arithmetic circuit 2 -1
Has a capacity of the same length as the block length of the data block to be processed, and when the reset signal is input to the reset terminal 5 -1r , the content stored up to that point is "0".
To initialize, when the clock signal is inputted, sequentially each bit of the input data blocks to an input terminal 5 -1I, shifted while taking a shift register 5-1 to be output from the output terminal 5 -10 ORs the respective bit data blocks output from the output terminal 5 -10 of the each bit of the input data blocks to the data input terminal 4 shift register 5-1, the shift register 5 -1 It is provided with an OR gate 6 -1 which is supplied to the input terminal 5 -1i .

【0009】そして、クロック信号が入力されていると
き、シフトレジスタ5-1に記憶されているそれまでのデ
ータブロックの各ビットを出力端子5-10 から順次、出
力して前記第2演算回路2-2に供給するとともに、デー
タ入力端子4に入力されたデータブロックの各ビットと
シフトレジスタ5-1に記憶されているそれまでのデータ
ブロックの各ビットとの論理和をとって、これをシフト
レジスタ5-1に順次、記憶させる。第2演算回路2
-2は、処理対象となるデータブロックのブロック長と同
じ長さの容量を持ち、リセット端子5-2r にリセット信
号が入力されたとき、それまで記憶している内容を
“0”に初期化し、クロック信号が入力されていると
き、入力端子5-2i に入力されたデータブロックの各ビ
ットを順次、取り込みながらシフトして、出力端子5
-20 から出力するシフトレジスタ5-2と、前記データ入
力端子4に入力されたデータブロックの各ビットと前記
第1演算回路2-1から出力されるデータブロックの各ビ
ットとの論理積をとるアンドゲート7-2と、このアンド
ゲート7-2から出力されるデータブロックの各ビットと
前記シフトレジスタ5-2の出力端子5-20 から出力され
るデータブロックの各ビットとの論理和をとり、前記シ
フトレジスタ5-2の入力端子5-2i に供給するオアゲー
ト6-2とを備えている。
Then, when the clock signal is input, each bit of the data block stored in the shift register 5 -1 up to that time is sequentially output from the output terminal 5 -10 to output the second arithmetic circuit 2 -2, and at the same time, each bit of the data block input to the data input terminal 4 and each bit of the previous data blocks stored in the shift register 5-1 are ORed and this is shifted. The data is sequentially stored in the register 5-1 . Second arithmetic circuit 2
-2 has a capacity of the same length as the block length of the data block to be processed, and when a reset signal is input to reset terminal 5 -2r , the contents stored up to that point are initialized to "0". , When the clock signal is being input, each bit of the data block input to the input terminal 5 -2i is sequentially fetched and shifted to output the output terminal 5
-20 , the shift register 5 -2, and each bit of the data block input to the data input terminal 4 and each bit of the data block output from the first arithmetic circuit 2 -1 are ANDed. taking an aND gate 7 -2, the logical sum of the respective bits of the data block output from the output terminal 5 -20 of the shift register 5-2 and each bit of the data block output from the aND gate 7 -2 , OR gate 6 -2 supplied to the input terminal 5 -2i of the shift register 5 -2 .

【0010】そして、クロック信号が入力されていると
き、シフトレジスタ5-2に記憶されているそれまでのデ
ータブロックの各ビットを出力端子5-20 から順次、出
力するとともに、前記データ入力端子4に入力されたデ
ータブロックの各ビットと、前記第1演算回路2-1から
出力されるデータブロックの各ビットとの論理積をと
り、さらにこの論理積によって得られる各ビットと、シ
フトレジスタ5-2に記憶されているそれまでのデータブ
ロックの各ビットとの論理和をとって、これをシフトレ
ジスタ5-2に順次、記憶させ、最後のビットを処理した
とき、前記シフトレジスタ5-2に記憶されているデータ
を多数決論理判定済みの並列データとして出力する。
When the clock signal is input, each bit of the data block stored in the shift register 5-2 up to that point is sequentially output from the output terminal 5-20 , and the data input terminal 4 is also connected. and each bit of the data block input to the ANDs the respective bit data blocks output from the first arithmetic circuit 2 -1, and the bits obtained by further logical product, the shift register 5 - The logical sum of each bit of the data block stored up to that point in 2 is stored in the shift register 5 -2 in sequence, and when the last bit is processed, it is stored in the shift register 5 -2 . The stored data is output as parallel data that has undergone the majority logic determination.

【0011】次に、図1に示すブロック図および図2に
示す表を参照しながら、この実施例の動作を説明する。
まず、第1演算回路2-1のシフトレジスタ5-1と、第2
演算回路2-2のシフトレジスタ5-2とにリセット信号が
供給されて、これら各シフトレジスタ5-1、5-2に記憶
されているデータが全て“0”に初期化されて、処理対
象となっているデータブロックの受け入れ準備が行われ
る。この後、データ入力端子4に入力される、同一内容
にされた予め設定されているビット数のデータブロック
のうち、1番目のデータブロック(以下、このデータブ
ロックをデータブロックAと称する)がビット単位で順
次、入力されながら、第1演算回路2-1を構成するシフ
トレジスタ5-2と、第2演算回路2-2のシフトレジスタ
-2とにクロック信号が入力されれば、第1演算回路2
-1のオアゲート6-1によって、第1演算回路2-1のシフ
トレジスタ5-1に記憶されている全てのビットが“0”
となったデータブロックの各ビットと、前記データ入力
端子4に入力されているデータブロックAの各ビットと
の論理和が演算され、この演算結果(全てのビットがデ
ータブロックAのビットと同じになったデータブロッ
ク)が第1演算回路2-1のシフトレジスタ5-1に記憶さ
れる。
Next, the operation of this embodiment will be described with reference to the block diagram shown in FIG. 1 and the table shown in FIG.
First, the shift register 5 -1 of the first arithmetic circuit 2 -1 , and the second
Reset signal to the shift register 5-2 arithmetic circuit 2-2 is the supply, each of these shift registers 5-1, 5-2 are stored in the data is initialized to all "0", the processing target Preparations are made to accept the data blocks that have become. After that, the first data block (hereinafter, this data block is referred to as data block A) of the data blocks having the same number of bits set in advance and inputted to the data input terminal 4 is a bit block. sequentially in units, while being input, the shift register 5-2 which constitutes the first arithmetic circuit 2 -1, if the clock signal to the shift register 5-2 of the second arithmetic circuit 2 -2 inputted, first Arithmetic circuit 2
-1 OR gate 6 -1 , all bits stored in the shift register 5 -1 of the first arithmetic circuit 2 -1 are "0".
Each bit of the data block and the bit of the data block A input to the data input terminal 4 are ORed, and the operation result (all bits are the same as the bits of the data block A). Data block) is stored in the shift register 5 -1 of the first arithmetic circuit 2 -1 .

【0012】また、この動作と並行して、第1演算回路
-1から出力されるデータブロック、すなわち全てのビ
ットが“0”となったデータブロックの各ビットと、前
記データ入力端子4に入力されているデータブロックA
の各ビットとの論理積が演算され、この演算結果(全て
のビットが“0”になったデータブロック)と、第2演
算回路2-2のシフトレジスタ5-2に記憶されている全て
のビットが“0”となったデータブロックとの論理和が
演算され、この演算結果(全てのビットが“0”となっ
たデータブロック)が第2演算回路2-2のシフトレジス
タ5-2に記憶される。これによって、データ入力端子4
にデータブロックAの最終ビットが入力された後では、
図2の表にある“A欄”に示す如く、第1演算回路2-1
のシフトレジスタ5-1にデータブロックAの内容が記憶
され、第2演算回路2-2のシフトレジスタ5-2に全ての
ビットが“0”になったデータブロックが記憶される。
In parallel with this operation, each bit of the data block output from the first arithmetic circuit 2 -1 , that is, the data block in which all the bits are "0", and the data input terminal 4 are connected. Input data block A
AND of each bit of is calculated, and the calculation result (data block in which all bits are “0”) and all of the values stored in the shift register 5 -2 of the second calculation circuit 2 -2 . The logical sum of the data blocks whose bits are "0" is calculated, and the result of this calculation (the data blocks whose all bits are "0") is stored in the shift register 5 -2 of the second arithmetic circuit 2 -2. Remembered. As a result, the data input terminal 4
After the last bit of data block A is input to,
As shown in the “column A” in the table of FIG. 2, the first arithmetic circuit 2 −1
The contents of the data block A are stored in the shift register 5 -1, and the data block in which all the bits are "0" are stored in the shift register 5 -2 of the second arithmetic circuit 2 -2 .

【0013】次に、データ入力端子4に、前記データブ
ロックAと同じ内容にされた2番目のデータブロック
(以下、このデータブロックをデータブロックBと称す
る)がビット単位で順次、入力されれば、第1演算回路
-1のオアゲート6-1によって、第1演算回路2-1のシ
フトレジスタ5-1に記憶されているデータブロックAの
各ビットと、前記データ入力端子4に入力されているデ
ータブロックBの各ビットとの論理和が演算され、この
演算結果(相対するビットの論理和(A+B)を示すデ
ータブロック(A+B))が第1演算回路2-1のシフト
レジスタ5-1に記憶される。また、この動作と並行し
て、第1演算回路2-1から出力されるデータブロックA
の各ビットと、前記データ入力端子4に入力されている
データブロックBの各ビットとの論理積が演算され、こ
の演算結果(相対するビットの論理積(A・B)を示す
データブロック(A・B))の各ビットと、第2演算回
路2-2のシフトレジスタ5-2に記憶されている全てのビ
ットが“0”となったデータブロックの各ビットとの論
理和が演算され、この演算結果(データブロック(A・
B))が第2演算回路2-2のシフトレジスタ5-2に記憶
される。これによって、前記データ入力端子4にデータ
ブロックBの最終ビットが入力された後では、図2の表
にある“B欄”に示す如く、第1演算回路2-1のシフト
レジスタ5-1にデータブロック(A+B)が記憶され、
第2演算回路2-2のシフトレジスタ5-2にデータブロッ
ク(A・B)が記憶される。
Next, if a second data block having the same contents as the data block A (hereinafter, this data block is referred to as a data block B) is sequentially input to the data input terminal 4 bit by bit. , the OR gate 6-1 of the first arithmetic circuit 2 -1, and each bit of the data block a is stored in the shift register 25-1 of the first arithmetic circuit 2 -1, is input to the data input terminal 4 is logical OR operation between each bit of the data block B are, the calculation result (logical sum of opposing bit (a + B) data block indicating the (a + B)) shift of the first arithmetic circuit 2 -1 registers 25-1 Memorized in. Further, in parallel with this operation, the data block A output from the first arithmetic circuit 2 -1
And each bit of the data block B input to the data input terminal 4 are ANDed, and the operation result (data block (A · B) indicating the AND (A · B) of the opposing bits) is calculated. -B)) and each bit of the data block in which all the bits stored in the shift register 5 -2 of the second operation circuit 2 -2 are "0", the logical sum is calculated, This calculation result (data block (A
B)) is stored in the shift register 5 -2 of the second arithmetic circuit 2 -2 . As a result, after the last bit of the data block B has been input to the data input terminal 4, the shift register 5 -1 of the first arithmetic circuit 2 -1 is transferred to the first arithmetic circuit 2 -1 as shown in "B column" in the table of FIG. Data block (A + B) is stored,
The data block (A / B) is stored in the shift register 5 -2 of the second arithmetic circuit 2 -2 .

【0014】次に、前記データ入力端子4に、前記デー
タブロックAおよび前記データブロックBと同じ内容に
された3番目のデータブロック(以下、このデータブロ
ックをデータブロックCと称する)がビット単位で順
次、入力されれば、第1演算回路2-1のオアゲート6-1
によって、第1演算回路2-1のシフトレジスタ5-1に記
憶されているデータブロック(A+B)の各ビットと、
前記データ入力端子4に入力されているデータブロック
Cの各ビットとの論理和が演算され、この演算結果(相
対するビットの論理和(A+B+C)を示すデータブロ
ック(A+B+C))が第1演算回路2-1のシフトレジ
スタ5-1に記憶される。また、この動作と並行して、第
1演算回路2-1から出力されるデータブロック(A+
B)の各ビットと、前記データ入力端子4に入力されて
いるデータブロックCの各ビットとの論理積が演算さ
れ、この演算結果(相対するビットの論理積(A+B)
・Cを示すデータブロック(A+B)・C)の各ビット
と、第2演算回路2-2のシフトレジスタ5-2に記憶され
ているデータブロック(A・B)の各ビットとの論理和
が演算され、この演算結果(相対するビットの論理和
(A・B+B・C+C・A)を示すデータブロック(A
・B+B・C+C・A))が第2演算回路2-2のシフト
レジスタ5-2に記憶される。
Next, at the data input terminal 4, a third data block having the same contents as the data block A and the data block B (hereinafter, this data block is referred to as a data block C) is provided in bit units. sequentially, if the input of the first arithmetic circuit 2 -1 OR gate 6-1
According to each bit of the data block (A + B) stored in the shift register 5 -1 of the first arithmetic circuit 2 -1 ,
The logical sum of each bit of the data block C input to the data input terminal 4 is calculated, and the calculation result (the data block (A + B + C) indicating the logical sum (A + B + C) of the opposite bits) is the first calculation circuit. It is stored in the 2 −1 shift register 5 −1 . In parallel with this operation, the data blocks output from the first arithmetic circuit 2 -1 (A +
The logical product of each bit of B) and each bit of the data block C input to the data input terminal 4 is operated, and the operation result (logical product of opposing bits (A + B)
The logical sum of each bit of the data block (A + B) and C) indicating C and each bit of the data block (A and B) stored in the shift register 5 -2 of the second arithmetic circuit 2 -2 The data block (A that indicates the logical sum (A / B + B / C + C / A) of the calculated bits
B + B * C + C * A)) is stored in the shift register 5 -2 of the second arithmetic circuit 2 -2 .

【0015】これによって、前記データ入力端子4にデ
ータブロックCの最終ビットが入力された後では、図2
の表にある“C欄”に示す如く、第1演算回路2-1のシ
フトレジスタ5-1にデータブロック(A+B+C)の内
容が記憶され、第2演算回路2-2のシフトレジスタ5-2
にデータブロック(A・B+B・C+C・A)が記憶さ
れ、これが前記データブロックA、前記データブロック
B、前記データブロックCに対する多数決論理判定済み
の並列データとして出力される。この場合、前記データ
ブロックAの各ビット、前記データブロックBの各ビッ
ト、前記データブロックCの各ビットのうち、対応する
ビット、例えば1ビット目のビットが全て“1”になっ
ていれば、前記第2演算回路2-2のシフトレジスタ5-2
に記憶されているデータブロック(A・B+B・C+C
・A)の1ビット目の値として、次式に示す値のビット
が出力される。 A・B+B・C+C・A =1・1+1・1+1・1 =1+1+1 =1 また、これら1ビット目のビットのうち、いずれか1つ
ののビット、例えばデータブロックAの1ビット目のビ
ットが“0”になっていれば、前記第2演算回路2-2
シフトレジスタ5-2に記憶されているデータブロック
(A・B+B・C+C・A)の1ビット目の値として、
次式に示す値のビットが出力される。 A・B+B・C+C・A =0・1+1・1+1・0 =0+1+0 =1 また、これら1ビット目のビットのうち、いずれか2つ
ののビット、例えばデータブロックAの1ビット目のビ
ットと、データブロックBの1ビット目のビットとが
“0”になっていれば、前記第2演算回路2-2のシフト
レジスタ5-2に記憶されているデータブロック(A・B
+B・C+C・A)の1ビット目の値として、次式に示
す値のビットが出力される。 A・B+B・C+C・A =0・0+0・1+1・0 =0+0+0 =0 さらに、これら1ビット目のビット、すなわちデータブ
ロックAの1ビット目のビットと、データブロックBの
1ビット目のビットと、データブロックCの1ビット目
のビットとが全て“0”になっていれば、前記第2演算
回路2-2のシフトレジスタ5-2に記憶されているデータ
ブロック(A・B+B・C+C・A)の1ビット目の値
として、次式に示す値のビットが出力される。 A・B+B・C+C・A =0・0+0・0+0・0 =0+0+0 =0 これらの結果から明らかなように、前記データ入力端子
4に入力されたデータブロックA、データブロックB、
データブロックCの各ビットにおいて、少なくとも2つ
のデータブロックのビット情報が共通であれば、これら
各ビットの共通ビットの内容、すなわちデータブロック
A、データブロックB、データブロックCの各ビットに
対し、対応するビット毎に、多数決判定した結果が第2
演算回路2-2のシフトレジスタ5-2に格納され、これが
並列データとして、出力される。
As a result, after the last bit of the data block C has been input to the data input terminal 4, the data block shown in FIG.
Of as shown in "C field" in the table, the contents of the first arithmetic circuit 2 -1 of the shift register 5-1 to the data blocks (A + B + C) is stored, the second arithmetic circuit 2 -2 shift register 5-2
A data block (A.B + B.C + C.A) is stored in the memory, and this is output as parallel data for which majority logic has been determined for the data block A, the data block B, and the data block C. In this case, if all the corresponding bits of the respective bits of the data block A, the respective bits of the data block B, and the respective bits of the data block C, for example, the first bit are “1”, the shift register of the second arithmetic circuit 2-2 5-2
Data block stored in (A ・ B + B ・ C + C
As the value of the first bit of A), the bit having the value shown in the following expression is output. A · B + B · C + C · A = 1 · 1 + 1 · 1 + 1 · 1 = 1 + 1 + 1 = 1 Further, any one of these 1st bit, for example, the 1st bit of the data block A is “0”. ", The value of the first bit of the data block (A · B + B · C + C · A) stored in the shift register 5 -2 of the second arithmetic circuit 2 -2 ,
The bit with the value shown in the following expression is output. A • B + B • C + C • A = 0 • 1 + 1 • 1 + 1 • 0 = 0 + 1 + 0 = 1 Further, any two of these 1-bit bits, for example, the 1-bit bit of the data block A and the data If the 1st bit of the block B is "0", the data block ( AB) stored in the shift register 5 -2 of the second arithmetic circuit 2 -2.
As the value of the first bit of (+ B * C + C * A), the bit having the value shown in the following expression is output. A • B + B • C + C • A = 0 • 0 + 0 • 1 + 1 • 0 = 0 + 0 + 0 = 0 Further, these first bit, that is, the first bit of the data block A and the first bit of the data block B , If the first bit of the data block C is all “0”, the data block (A · B + B · C + C ·) stored in the shift register 5 -2 of the second operation circuit 2 -2. As the value of the first bit in A), the bit having the value shown in the following expression is output. A · B + B · C + C · A = 0 · 0 + 0 · 0 + 0 · 0 = 0 + 0 + 0 = 0 As is clear from these results, the data block A and the data block B input to the data input terminal 4 are
In each bit of the data block C, if the bit information of at least two data blocks is common, the content of the common bit of each of these bits, that is, each bit of the data block A, the data block B, and the data block C, is supported. The result of the majority decision for each bit
It is stored in the shift register 5 -2 of the arithmetic circuit 2 -2 , and this is output as parallel data.

【0016】このようにこの実施例においては、第1演
算回路2-1と、第2演算回路2-2とによって、データ入
力端子4に入力された1番目のデータブロックないし3
番目のデータブロックを順次、取り込みシフトしなが
ら、多数決演算を行なって、前記1番目のデータブロッ
クないし3番目のデータブロックを構成する各ビットが
“1”か“0”かを判定し、3番目のデータブロックの
最終ビットを取り込んで判定を行なった後、第2演算回
路2-2に記憶しているデータを多数決論理判定済みの並
列データとして出力するようにしたので、多数決論理演
算回路などを使用することなく、かつシフトレジスタの
数を半減させたまま、データブロックの多数決判定処理
を可能にして、回路規模、消費電力、製造コストなどを
低減させることができる。
As described above, in this embodiment, the first arithmetic block 2 -1 and the second arithmetic circuit 2 -2 input the first data block to the third data block to the data input terminal 4.
While sequentially taking in and shifting the second data block, a majority operation is performed to determine whether each bit constituting the first data block to the third data block is "1" or "0", and the third data block is determined. After the final bit of the data block of (1) is fetched and the determination is performed, the data stored in the second arithmetic circuit 2 -2 is output as parallel data that has undergone the majority logic determination. It is possible to reduce the circuit scale, power consumption, manufacturing cost, etc. by enabling majority decision processing of the data block without using the shift register and halving the number of shift registers.

【0017】図3は本発明による多数決演算処理回路の
第2実施例を示すブロック図である。なお、この図にお
いて、図1に示す各部と同じ部分には、同じ符号が付し
てある。この図に示す多数決演算処理回路1bは、第1
演算回路2-1と、第2演算回路2-2と、第3演算回路2
-3とを備えており、これら第1演算回路2-1ないし第3
演算回路2-3によって、データ入力端子4に入力された
1番目のデータブロックないし5番目のデータブロック
を順次、取り込み、シフトしながら、多数決演算を行な
って、前記1番目のデータブロックないし5番目のデー
タブロックを構成する各ビットが“1”か“0”かを判
定し、5番目のデータブロックの最終ビットを取り込ん
で判定を行なった後、第3演算回路2-3に記憶している
データを多数決論理判定済みの並列データとして出力す
る。第1演算回路2-1は、処理対象となるデータブロッ
クのブロック長と同じ長さの容量を持ち、リセット端子
4にリセット信号が入力されたとき、それまで記憶して
いる内容を“0”に初期化し、クロック信号が入力され
ているとき、入力端子5-1r に入力されたデータブロッ
クの各ビットを順次、取り込みながらシフトして、出力
端子5-10 から出力するシフトレジスタ5-1と、データ
入力端子4に入力されたデータブロックの各ビットと前
記シフトレジスタ5-1の出力端子5-10 から出力される
データブロックの各ビットとの論理和をとり、前記シフ
トレジスタ5-1の入力端子5-1i に供給するオアゲート
-1とを備えている。
FIG. 3 is a block diagram showing a second embodiment of the majority decision processing circuit according to the present invention. In this figure, the same parts as those shown in FIG. 1 are designated by the same reference numerals. The majority decision processing circuit 1b shown in this figure
Arithmetic circuit 2 -1 , second arithmetic circuit 2 -2, and third arithmetic circuit 2
-3 and the first arithmetic circuit 2 -1 through the third arithmetic circuit
The arithmetic circuit 2-3, to the first data block no input to the data input terminal 4 sequentially fifth data block, uptake, while shifting, by performing majority operation, the fifth to the free first data block each bit constituting the data block determines whether "1" or "0", after performing the determination by taking the last bit of the fifth data block, stored in the third arithmetic circuit 2 -3 The data is output as parallel data that has undergone the majority logic determination. The first arithmetic circuit 2 -1 has a capacity of the same length as the block length of the data block to be processed, and when a reset signal is input to the reset terminal 4, the content stored up to that point is set to "0". to initialize, when the clock signal is inputted, sequentially each bit of the input data blocks to an input terminal 5 -1R, shifted while taking a shift register 5-1 to be output from the output terminal 5 -10 ORs the respective bit data blocks output from the output terminal 5 -10 of the each bit of the input data blocks to the data input terminal 4 shift register 5-1, the shift register 5 -1 It is provided with an OR gate 6 -1 which is supplied to the input terminal 5 -1i .

【0018】そして、クロック信号が入力されていると
き、シフトレジスタ5-1に記憶されているそれまでのデ
ータブロックの各ビットを出力端子5-10 から順次、出
力して前記第2演算回路2-2に供給するとともに、デー
タ入力端子4に入力されたデータブロックの各ビットと
シフトレジスタ5-1に記憶されているそれまでのデータ
ブロックの各ビットとの論理和をとって、これをシフト
レジスタ5-1に順次、記憶させる。第2演算回路2
-2は、処理対象となるデータブロックのブロック長と同
じ長さの容量を持ち、リセット端子5-2r にリセット信
号が入力されたとき、それまで記憶している内容を
“0”に初期化し、クロック信号が入力されていると
き、入力端子5-2i に入力されたデータブロックの各ビ
ットを順次、取り込みながらシフトして、出力端子5
-20 から出力するシフトレジスタ5-2と、データ入力端
子4に入力されたデータブロックの各ビットと前記第1
演算回路2-1から出力されるデータブロックの各ビット
との論理積をとるアンドゲート7-2と、このアンドゲー
ト7-2から出力されるデータブロックの各ビットと前記
シフトレジスタ5-2の出力端子5-20 から出力されるデ
ータブロックの各ビットとの論理和をとり、前記シフト
レジスタ5-2の入力端子5-2i に供給するオアゲート6
-2とを備えている。
When the clock signal is input, each bit of the data block stored in the shift register 5 -1 up to that time is sequentially output from the output terminal 5 -10 to output the second arithmetic circuit 2 -2, and at the same time, each bit of the data block input to the data input terminal 4 and each bit of the previous data blocks stored in the shift register 5-1 are ORed and this is shifted. The data is sequentially stored in the register 5-1 . Second arithmetic circuit 2
-2 has a capacity of the same length as the block length of the data block to be processed, and when a reset signal is input to reset terminal 5 -2r , the contents stored up to that point are initialized to "0". , When the clock signal is being input, each bit of the data block input to the input terminal 5 -2i is sequentially fetched and shifted to output the output terminal 5
-20 to output the shift register 5 -2 , each bit of the data block input to the data input terminal 4, and the first
An AND gate 7 -2 that takes the logical product of each bit of the data block output from the arithmetic circuit 2 -1 , and each bit of the data block output from this AND gate 7 -2 and the shift register 5 -2 . An OR gate 6 which takes the logical sum of each bit of the data block output from the output terminal 5 -20 and supplies it to the input terminal 5 -2i of the shift register 5 -2.
-2 and.

【0019】そして、クロック信号が入力されていると
き、シフトレジスタ5-2に記憶されているそれまでのデ
ータブロックの各ビットを出力端子5-20 から順次、出
力して前記第3演算回路2-3に供給するとともに、デー
タ入力端子4に入力されたデータブロックの各ビット
と、前記第1演算回路2-1から出力されるデータブロッ
クの各ビットとの論理積をとり、さらにこの論理積によ
って得られる各ビットと、シフトレジスタ5-2に記憶さ
れているそれまでのデータブロックの各ビットとの論理
和をとって、これをシフトレジスタ5-2に順次、記憶さ
せる。第3演算回路2-3は、処理対象となるデータブロ
ックのブロック長と同じ長さの容量を持ち、リセット端
子5 -3rにリセット信号が入力されたとき、それまで記
憶している内容を“0”に初期化し、クロック信号が入
力されているとき、入力端子5-3i に入力されたデータ
ブロックの各ビットを順次、取り込みながらシフトし
て、出力端子5 -3Oから出力するシフトレジスタ5
-3と、データ入力端子4に入力されたデータブロックの
各ビットと前記第2演算回路2-2から出力されるデータ
ブロックの各ビットとの論理積をとるアンドゲート7-3
と、このアンドゲート7-3から出力されるデータブロッ
クの各ビットと前記シフトレジスタ5-3の出力端子5
-3Oから出力されるデータブロックの各ビットとの論理
和をとり、前記シフトレジスタ5-3の入力端子5-3i
供給するオアゲート6-3とを備えている。
Then, when the clock signal is input, each bit of the data blocks stored in the shift register 5-2 up to that point is sequentially output from the output terminal 5 -20 to output the third arithmetic circuit 2 -3, and performs a logical product of each bit of the data block input to the data input terminal 4 and each bit of the data block output from the first arithmetic circuit 2 -1 , and further calculates the logical product. and each bit obtained by taking the logical sum of the respective bits of it to the data block stored in the shift register 5-2, which sequentially shift register 5-2 to be stored therein. The third arithmetic circuit 2-3 has the capacity of the same length as the block length of the data block to be processed, when the reset signal is input to the reset terminal 5 -3R, the settings stored until then " The shift register 5 which is initialized to 0 "and sequentially shifts while fetching each bit of the data block input to the input terminal 5 -3i when the clock signal is input, and outputs from the output terminal 5 -3O
-3 and the AND gate 7 -3 which takes the logical product of each bit of the data block input to the data input terminal 4 and each bit of the data block output from the second arithmetic circuit 2 -2.
And each bit of the data block output from the AND gate 7 -3 and the output terminal 5 of the shift register 5 -3.
-3O is provided with an OR gate 6 -3, which is ORed with each bit of the data block and supplied to the input terminal 5 -3i of the shift register 5 -3 .

【0020】そして、クロック信号が入力されていると
き、シフトレジスタ5-3に記憶されているそれまでのデ
ータブロックの各ビットを出力端子5 -3Oから順次、出
力するとともに、データ入力端子4に入力されたデータ
ブロックの各ビットと、前記第2演算回路2-2から出力
されるデータブロックの各ビットとの論理積をとり、さ
らにこの論理積によって得られる各ビットと、シフトレ
ジスタ5-3に記憶されているそれまでのデータブロック
の各ビットとの論理和をとって、これをシフトレジスタ
-3に順次、記憶させ、最後のビットを処理したとき、
前記シフトレジスタ5-3に記憶されているデータを多数
決論理判定済みの並列データとして出力する。
Then, when the clock signal is input, each bit of the data block stored in the shift register 5 -3 up to that time is sequentially output from the output terminal 5 -3O, and at the same time, is input to the data input terminal 4. A logical product of each bit of the input data block and each bit of the data block output from the second operation circuit 2 -2 is obtained, and each bit obtained by the logical product is obtained with the shift register 5 -3. When the last bit is processed, the logical sum of each bit of the data blocks stored up to then is stored in the shift register 5 -3 , and the last bit is processed.
The data stored in the shift register 5 -3 is output as parallel data which has undergone the majority logic determination.

【0021】次に、図3に示すブロック図および図4に
示す表を参照しながら、この実施例の動作を説明する。
まず、第1演算回路2-1のシフトレジスタ5-1と、第2
演算回路2-2のシフトレジスタ5-3と、第3演算回路2
-3のシフトレジスタ5-3とにリセット信号が供給され
て、これら各シフトレジスタ5-1、5-2、5-3に記憶さ
れているデータが全て“0”に初期化されて、処理対象
となっているデータブロックの受け入れ準備が行われ
る。この後、データ入力端子4に入力される、同一内容
にされた予め設定されているビット数のデータブロック
のうち、1番目のデータブロック(以下、このデータブ
ロックをデータブロックAと称する)がビット単位で順
次、入力されながら、第1演算回路2-1を構成するシフ
トレジスタ5-1と、第2演算回路2-2のシフトレジスタ
-2と、第3演算回路2-3のシフトレジスタ5-3とにク
ロック信号が入力されれば、図1に示す多数決演算処理
回路1の動作と同様にして、データブロックAの最終ビ
ットが入力された後では、第1演算回路2-1と、第2演
算回路2-2と、第3演算回路2-3とによって前記データ
ブロックAが処理されて、図4の表にある“A欄”に示
す如く、第1演算回路2-1のシフトレジスタ5-1にデー
タブロックAが記憶され、第2演算回路2-2のシフトレ
ジスタ5-2および第3演算回路2-3のシフトレジスタ5
-3に全てのビットが“0”になったデータブロックが記
憶される。
Next, the operation of this embodiment will be described with reference to the block diagram shown in FIG. 3 and the table shown in FIG.
First, the shift register 5 -1 of the first arithmetic circuit 2 -1 , and the second
The shift register 5 -3 of the arithmetic circuit 2 -2 and the third arithmetic circuit 2
-3 is supplied with a reset signal to the shift register 5 -3, and all the data stored in these shift registers 5 -1 , 5 -2 , 5 -3 are initialized to "0", and the processing is performed. The target data block is prepared for acceptance. After that, the first data block (hereinafter, this data block is referred to as data block A) of the data blocks having the same number of bits set in advance and inputted to the data input terminal 4 is a bit block. sequentially in units, while being input, the shift register 5 -1 constituting the first arithmetic circuit 2 -1, a shift register 5-2 of the second arithmetic circuit 2 -2, third arithmetic circuit 2-3 of the shift register If a clock signal is input to 5 -3 , similarly to the operation of the majority arithmetic processing circuit 1 shown in FIG. 1, after the final bit of the data block A is input, the first arithmetic circuit 2 -1 , a second arithmetic circuit 2 -2, 3 the data block a is processed by an arithmetic circuit 2-3, as shown in "a column" in the table of FIG. 4, the first arithmetic circuit 2 -1 data block a stores of the shift register 5 -1 , The shift register 5 of the second arithmetic circuit 2 -2 shift register 5-2 and the third arithmetic circuit 2 -3
The data block in which all the bits are "0" is stored in -3 .

【0022】次いで、データ入力端子4に、前記データ
ブロックAと同じ内容にされた2番目のデータブロック
(以下、このデータブロックをデータブロックBと称す
る)がビット単位で順次、入力されれば、データブロッ
クBの最終ビットが入力された後では、図4の表にある
“B欄”に示す如く、第1演算回路2-1のシフトレジス
タ5-1にデータブロック(A+B)が記憶され、第2演
算回路2-2のシフトレジスタ5-2にデータブロック(A
・B)が記憶され、さらに第3演算回路2-3のシフトレ
ジスタ5-3に全てのビットが“0”になったデータブロ
ックが記憶される。この後、データ入力端子4に、前記
データブロックA、Bと同じ内容にされた3番目のデー
タブロック(以下、このデータブロックをデータブロッ
クCと称する)がビット単位で順次、入力されれば、デ
ータブロックCの最終ビットが入力された後では、図4
の表にある“C欄”に示す如く、第1演算回路2-1のシ
フトレジスタ5-1にデータブロック(A+B+C)が記
憶され、第2演算回路2-2のシフトレジスタ5-2にデー
タブロック(A・B+B・C+C・A)が記憶され、さ
らに第3演算回路2-3のシフトレジスタ5-3にデータブ
ロック(A・B・C)が記憶される。
Next, if a second data block having the same contents as the data block A (hereinafter, this data block is referred to as a data block B) is sequentially input to the data input terminal 4 bit by bit, After the last bit of the data block B is input, the data block (A + B) is stored in the shift register 5 -1 of the first arithmetic circuit 2 -1 , as shown in the "B column" in the table of FIG. The data block (A) is stored in the shift register 5 -2 of the second arithmetic circuit 2 -2.
· B) is stored, additionally all bits in the shift register 5 -3 third arithmetic circuit 2-3 is "0" since the data blocks are stored. Thereafter, if a third data block having the same content as the data blocks A and B (hereinafter, this data block is referred to as a data block C) is sequentially input to the data input terminal 4 in bit units, After the last bit of the data block C has been input, FIG.
As shown in the "C column" in the table, the data block (A + B + C) is stored in the shift register 5 -1 of the first arithmetic circuit 2 -1 , and the data block is stored in the shift register 5 -2 of the second arithmetic circuit 2 -2. The block (A · B + B · C + C · A) is stored, and further, the data block (A · B · C) is stored in the shift register 5 -3 of the third arithmetic circuit 2 -3 .

【0023】次いで、データ入力端子4に、前記データ
ブロックA、B、Cと同じ内容にされた4番目のデータ
ブロック(以下、このデータブロックをデータブロック
Dと称する)がビット単位で順次、入力されれば、デー
タブロックDの最終ビットが入力された後では、図4の
表にある“D欄”に示す如く、第1演算回路2-1のシフ
トレジスタ5-1にデータブロック(A+B+C+D)が
記憶され、第2演算回路2-2のシフトレジスタ5-2にデ
ータブロック{(A・B+A・C+A・D)+(B・C
+B・D)+C・D}が記憶され、さらに第3演算回路
-3のシフトレジスタ5-3にデータブロック{(A・B
・C+A・B・D+A・C・D)+B・C・D}が記憶
される。この後、データ入力端子4に、前記データブロ
ックA、B、C、Dと同じ内容にされた5番目のデータ
ブロック(以下、このデータブロックをデータブロック
Eと称する)がビット単位で順次、入力されれば、デー
タブロックEの最終ビットが入力された後では、図4の
表にある“E欄”に示す如く、第1演算回路2-1のシフ
トレジスタ5-1にデータブロック(A+B+C+D+
E)が記憶され、第2演算回路2-2のシフトレジスタ5
-2にデータブロック{(A・B+A・C+A・D+A・
E)+(B・C+B・D+B・E)+(C・D+C・
E)+D・E}が記憶され、さらに第3演算回路2-3
シフトレジスタ5-3にデータブロック{(A・B・C+
A・B・D+A・B・E+A・C・D+A・C・E+A
・D・E)+(B・C・D+B・C・E+B・D・E)
+C・D・E}が記憶され、この第3演算回路2-3のシ
フトレジスタ5-3に記憶されているデータブロック
{(A・B・C+A・B・D+A・B・E+A・C・D
+A・C・E+A・D・E)+(B・C・D+B・C・
E+B・D・E)+C・D・E}が前記データブロック
A、前記データブロックB、前記データブロックC、前
記データブロックD、前記データブロックEに対する多
数決論理判定済みの並列データとして出力される。
Next, a fourth data block having the same contents as the data blocks A, B, and C (hereinafter, this data block is referred to as data block D) is sequentially input to the data input terminal 4 bit by bit. If so, after the last bit of the data block D is input, the data block (A + B + C + D) is stored in the shift register 5 -1 of the first arithmetic circuit 2 -1 as shown in "D column" in the table of FIG. Is stored, and the data block {(A · B + A · C + A · D) + (B · C is stored in the shift register 5 −2 of the second arithmetic circuit 2 −2.
+ B · D) + C · D} is stored, further third arithmetic circuit 2-3 shift register 5-3 to the data block of {(A · B
C + A / B / D + A / C / D) + B / C / D} is stored. After that, a fifth data block (hereinafter, this data block is referred to as a data block E) having the same contents as the data blocks A, B, C and D is sequentially input to the data input terminal 4 bit by bit. Then, after the last bit of the data block E is input, the data block (A + B + C + D +) is added to the shift register 5 -1 of the first arithmetic circuit 2 -1 as shown in the "E column" in the table of FIG.
E) is stored in the shift register 5 of the second arithmetic circuit 2 -2.
-2 in the data block {(A ・ B + A ・ C + A ・ D + A ・
E) + (B ・ C + B ・ D + B ・ E) + (C ・ D + C ・
E) + D · E} is stored, further third arithmetic circuit 2-3 shift register 5-3 to the data block of {(A · B · C +
A ・ B ・ D + A ・ B ・ E + A ・ C ・ D + A ・ C ・ E + A
・ D ・ E) + (B ・ C ・ D + B ・ C ・ E + B ・ D ・ E)
+ C · D · E} is stored, the third arithmetic circuit 2-3 of the shift register 5-3 to the data block stored {(A · B · C + A · B · D + A · B · E + A · C · D
+ A ・ C ・ E + A ・ D ・ E) + (B ・ C ・ D + B ・ C ・
E + B • D • E) + C • D • E} is output as parallel data for which majority decision has been made for the data block A, the data block B, the data block C, the data block D, and the data block E.

【0024】この場合、前記データブロックAの各ビッ
ト、前記データブロックBの各ビット、前記データブロ
ックCの各ビット、前記データブロックDの各ビット、
前記データブロックEの各ビットのうち、対応するビッ
ト、例えば1ビット目のビットが全て“1”になってい
れば、前記第3演算回路2-3のシフトレジスタ5-3に記
憶されているデータブロック{(A・B・C+A・B・
D+A・B・E+A・C・D+A・C・E+A・D・
E)+(B・C・D+B・C・E+B・D・E)+C・
D・E}の1ビット目の値として、次式に示す値のビッ
トが出力される。 {(A・B・C+A・B・D+A・B・E+A・C・D+A・C・E +A・D・E)+(B・C・D+B・C・E+B・D・E) +C・D・E} ={(1・1・1+1・1・1+1・1・1+1・1・1+1・1・1 +1・1・1)+(1・1・1+1・1・1+1・1・1) +1・1・1 ={(1+1+1+1+1+1)+(1+1+1)+1} ={(1)+(1)+1} =1 また、これら1ビット目のビットのうち、例えばデータ
ブロックAの1ビット目のビットが“0”になっていれ
ば、前記第3演算回路2-3のシフトレジスタ5-3に記憶
されているデータブロック{(A・B・C+A・B・D
+A・B・E+A・C・D+A・C・E+A・D・E)
+(B・C・D+B・C・E+B・D・E)+C・D・
E}の1ビット目の値として、次式に示す値のビットが
出力される。 {(A・B・C+A・B・D+A・B・E+A・C・D+A・C・E +A・D・E)+(B・C・D+B・C・E+B・D・E) +C・D・E} ={(0・1・1+0・1・1+0・1・1+0・1・1+0・1・1 +0・1・1)+(1・1・1+1・1・1+1・1・1) +1・1・1} ={(0+0+0+0+0+0)+(1+1+1)+1} ={(0)+(1)+1} =1 また、これら1ビット目のビットのうち、例えばデータ
ブロックAの1ビット目のビットおよびデータブロック
Bの1ビット目のビットが“0”になっていれば、前記
第3演算回路2-3のシフトレジスタ5-3に記憶されてい
るデータブロック{(A・B・C+A・B・D+A・B
・E+A・C・D+A・C・E+A・D・E)+(B・
C・D+B・C・E+B・D・E)+C・D・E}の1
ビット目の値として、次式に示す値のビットが出力され
る。 {(A・B・C+A・B・D+A・B・E+A・C・D+A・C・E +A・D・E)+(B・C・D+B・C・E+B・D・E) +C・D・E} ={(0・0・1+0・0・1+0・0・1+0・1・1+0・1・1 +0・1・1)+(0・1・1+0・1・1+0・1・1) +1・1・1} ={(0+0+0+0+0+0)+(0+0+0)+1} ={(0)+(0)+1} =1 また、これら1ビット目のビットのうち、例えばデータ
ブロックAの1ビット目のビット、データブロックBの
1ビット目のビットおよびデータブロックCの1ビット
目のビットが“0”になっていれば、前記第3演算回路
-3のシフトレジスタ5-3に記憶されているデータブロ
ック{(A・B・C+A・B・D+A・B・E+A・C
・D+A・C・E+A・D・E)+(B・C・D+B・
C・E+B・D・E)+C・D・E}の1ビット目の値
として、次式に示す値のビットが出力される。 {(A・B・C+A・B・D+A・B・E+A・C・D+A・C・E +A・D・E)+(B・C・D+B・C・E+B・D・E) +C・D・E} ={(0・0・0+0・0・1+0・0・1+0・0・1+0・0・1 +0・1・1)+(0・0・1+0・0・1+0・1・1) +0・1・1} ={(0+0+0+0+0+0)+(0+0+0)+0} ={(0)+(0)+0} =0 また、これら1ビット目のビットのうち、例えばデータ
ブロックAの1ビット目のビット、データブロックBの
1ビット目のビット、データブロックCの1ビット目の
ビットおよびデータブロックDの1ビット目のビットが
“0”になっていれば、前記第3演算回路2-3のシフト
レジスタ5-3に記憶されているデータブロック{(A・
B・C+A・B・D+A・B・E+A・C・D+A・C
・E+A・D・E)+(B・C・D+B・C・E+B・
D・E)+C・D・E}の1ビット目の値として、次式
に示す値のビットが出力される。 {(A・B・C+A・B・D+A・B・E+A・C・D+A・C・E +A・D・E)+(B・C・D+B・C・E+B・D・E) +C・D・E} ={(0・0・0+0・0・0+0・0・1+0・0・0+0・0・1 +0・0・1)+(0・0・0+0・0・1+0・0・1) +0・0・1} ={(0+0+0+0+0+0)+(0+0+0)+0} ={(0)+(0)+0} =0 また、これら1ビット目のビットのうち、例えばデータ
ブロックAの1ビット目のビット、データブロックBの
1ビット目のビット、データブロックCの1ビット目の
ビット、データブロックDの1ビット目のビットおよび
データブロックEの1ビット目のビットが全て“0”に
なっていれば、前記第3演算回路2-3のシフトレジスタ
-3に記憶されているデータブロック{(A・B・C+
A・B・D+A・B・E+A・C・D+A・C・E+A
・D・E)+(B・C・D+B・C・E+B・D・E)
+C・D・E}の1ビット目の値として、次式に示す値
のビットが出力される。 {(A・B・C+A・B・D+A・B・E+A・C・D+A・C・E +A・D・E)+(B・C・D+B・C・E+B・D・E) +C・D・E} ={(0・0・0+0・0・0+0・0・0+0・0・0+0・0・0 +0・0・0)+(0・0・0+0・0・0+0・0・0) +0・0・0} ={(0+0+0+0+0+0)+(0+0+0)+0} ={(0)+(0)+0} =0 これらの結果から明らかなように、データ入力端子4に
入力されたデータブロックA、データブロックB、デー
タブロックC、データブロックD、データブロックEの
各ビットにおいて、少なくとも3つのデータブロックの
ビット情報が共通であれば、これら各ビットの共通ビッ
トの内容、すなわちデータブロックA、データブロック
B、データブロックC、データブロックD、データブロ
ックEの各ビットに対し、対応するビット毎に、多数決
判定した結果が第3演算回路2-3のシフトレジスタ5-3
に格納され、これが並列データとして、出力される。こ
のようにこの実施例においては、第1演算回路2-1ない
し第3演算回路2-3とによって、データ入力端子4に入
力された1番目のデータブロックないし5番目のデータ
ブロックを順次、取り込み、シフトしながら、多数決演
算を行なって、前記1番目のデータブロックないし5番
目のデータブロックを構成する各ビットが“1”か
“0”かを判定し、5番目のデータブロックの最終ビッ
トを取り込んで判定を行なった後、第3演算回路2-3
記憶しているデータを多数決論理判定済みの並列データ
として出力するようにしたので、多数決論理演算回路な
どを使用することなく、かつシフトレジスタの数を半減
させたまま、データブロックの多数決判定処理を可能に
して、回路規模、消費電力、製造コストなどを低減させ
ることができる。
In this case, each bit of the data block A, each bit of the data block B, each bit of the data block C, each bit of the data block D,
Wherein among the bits of the data block E, if so the corresponding bit, for example, the first bit of the bits are all "1", stored in the shift register 5 -3 of the third arithmetic circuit 2 -3 Data block {(A ・ B ・ C + A ・ B ・
D + A ・ B ・ E + A ・ C ・ D + A ・ C ・ E + A ・ D ・
E) + (B ・ C ・ D + B ・ C ・ E + B ・ D ・ E) + C ・
As the value of the first bit of D · E}, the bit having the value shown in the following expression is output. {(A ・ B ・ C + A ・ B ・ D + A ・ B ・ E + A ・ C ・ D + A ・ C ・ E + A ・ D ・ E) + (B ・ C ・ D + B ・ C ・ E + B ・ D ・ E) + C ・ D ・ E } = {(1 ・ 1 ・ 1 + 1 ・ 1 ・ 1 + 1 ・ 1 ・ 1 + 1 ・ 1 ・ 1 + 1 ・ 1 ・ 1 +1 ・ 1 ・ 1) + (1 ・ 1 ・ 1 + 1 ・ 1 ・ 1 + 1 ・ 1 ・ 1) +1 ・ 1 1 = {(1 + 1 + 1 + 1 + 1 + 1) + (1 + 1 + 1) +1} = {(1) + (1) +1} = 1 Further, of these 1-bit bits, for example, the 1-bit bit of the data block A is "0". , The data block stored in the shift register 5 -3 of the third arithmetic circuit 2 -3 {(A ・ B ・ C + A ・ B ・ D
+ A ・ B ・ E + A ・ C ・ D + A ・ C ・ E + A ・ D ・ E)
+ (B ・ C ・ D + B ・ C ・ E + B ・ D ・ E) + C ・ D ・
As the value of the first bit of E}, the bit having the value shown in the following expression is output. {(A ・ B ・ C + A ・ B ・ D + A ・ B ・ E + A ・ C ・ D + A ・ C ・ E + A ・ D ・ E) + (B ・ C ・ D + B ・ C ・ E + B ・ D ・ E) + C ・ D ・ E } = {(0 ・ 1 ・ 1 + 0 ・ 1 ・ 1 + 0 ・ 1 ・ 1 + 0 ・ 1 ・ 1 + 0 ・ 1 ・ 1 +0 ・ 1 ・ 1) + (1 ・ 1 ・ 1 + 1 ・ 1 ・ 1 + 1 ・ 1 ・ 1) +1 ・ 1 1} = {(0 + 0 + 0 + 0 + 0 + 0) + (1 + 1 + 1) +1} = {(0) + (1) +1} = 1 Further, of these 1st bit, for example, the 1st bit and data of the data block A If the first bit of the block B is "0", the data block {(A ・ B ・ C + A ・ B ・ D + A) stored in the shift register 5 -3 of the third arithmetic circuit 2 -3.・ B
・ E + A ・ C ・ D + A ・ C ・ E + A ・ D ・ E) + (B ・
C ・ D + B ・ C ・ E + B ・ D ・ E) + C ・ D ・ E} 1
As the bit value, the bit having the value shown in the following expression is output. {(A ・ B ・ C + A ・ B ・ D + A ・ B ・ E + A ・ C ・ D + A ・ C ・ E + A ・ D ・ E) + (B ・ C ・ D + B ・ C ・ E + B ・ D ・ E) + C ・ D ・ E } = {(0 · 0 · 1 + 0 · 0 · 1 + 0 · 0 · 1 + 0 · 1 · 1 + 0 · 1 · 1 + 0 · 1 · 1) + (0 · 1 · 1 + 0 · 1 · 1 + 0 · 1 · 1) +1.1 1} = {(0 + 0 + 0 + 0 + 0 + 0) + (0 + 0 + 0) +1} = {(0) + (0) +1} = 1 Further, of these 1-bit bits, for example, the 1-bit bit of the data block A, the data If the first bit of the block B and the first bit of the data block C are "0", the data block stored in the shift register 5 -3 of the third arithmetic circuit 2 -3 { (A ・ B ・ C + A ・ B ・ D + A ・ B ・ E + A ・ C
・ D + A ・ C ・ E + A ・ D ・ E) + (B ・ C ・ D + B ・
As the value of the first bit of (C • E + B • D • E) + C • D • E}, the bit having the value shown in the following expression is output. {(A ・ B ・ C + A ・ B ・ D + A ・ B ・ E + A ・ C ・ D + A ・ C ・ E + A ・ D ・ E) + (B ・ C ・ D + B ・ C ・ E + B ・ D ・ E) + C ・ D ・ E } = {(0,0,0 + 0,0,1 + 0,0,1 + 0,0,1 + 0,0,1 +0,1,1) + (0,0,1 + 0,0,1 + 0,1,1) +0.1 1} = {(0 + 0 + 0 + 0 + 0 + 0) + (0 + 0 + 0) +0} = {(0) + (0) +0} = 0 Among these 1-bit bits, for example, the 1-bit bit of the data block A, the data 1 bit of bits of the block B, if set to 1 bit of the bits of the bit and the data block D of the first bit of the data block C is "0", the shift register 5 of the third arithmetic circuit 2 -3 -3 stored in the data block {(A ·
B / C + A / B / D + A / B / E + A / C / D + A / C
・ E + A ・ D ・ E) + (B ・ C ・ D + B ・ C ・ E + B ・
As the value of the first bit of (D · E) + C · D · E}, the bit having the value shown in the following expression is output. {(A ・ B ・ C + A ・ B ・ D + A ・ B ・ E + A ・ C ・ D + A ・ C ・ E + A ・ D ・ E) + (B ・ C ・ D + B ・ C ・ E + B ・ D ・ E) + C ・ D ・ E } = {(0,0,0 + 0,0,0 + 0,0,1 + 0,0,0 + 0,0,1 +0,0,1) + (0,0,0 + 0,0,1 + 0,0,1) +0,0 1} = {(0 + 0 + 0 + 0 + 0 + 0) + (0 + 0 + 0) +0} = {(0) + (0) +0} = 0 Among these 1-bit bits, for example, the 1-bit bit of the data block A, the data If the first bit of the block B, the first bit of the data block C, the first bit of the data block D, and the first bit of the data block E are all “0”, the third is stored in the shift register 5 -3 arithmetic circuit 2 -3 Data blocks {(A · B · C +
A ・ B ・ D + A ・ B ・ E + A ・ C ・ D + A ・ C ・ E + A
・ D ・ E) + (B ・ C ・ D + B ・ C ・ E + B ・ D ・ E)
As the value of the first bit of + C · D · E}, the bit having the value shown in the following expression is output. {(A ・ B ・ C + A ・ B ・ D + A ・ B ・ E + A ・ C ・ D + A ・ C ・ E + A ・ D ・ E) + (B ・ C ・ D + B ・ C ・ E + B ・ D ・ E) + C ・ D ・ E } = {(0,0,0 + 0,0,0 + 0,0,0 + 0,0,0 + 0,0,0 +0,0,0) + (0,0,0 + 0,0,0 + 0,0,0) +0,0 0} = {(0 + 0 + 0 + 0 + 0 + 0) + (0 + 0 + 0) +0} = {(0) + (0) +0} = 0 As is clear from these results, the data block A and the data block input to the data input terminal 4 In each bit of B, data block C, data block D, and data block E, if the bit information of at least three data blocks is common, the content of the common bit of each bit, that is, data block A, data block B, Data block , Data block D, the data for each bit of the block E, for each corresponding bit, majority judgment result third arithmetic circuit 2-3 of the shift register 5 -3
Is stored in, and this is output as parallel data. As described above, in this embodiment, the first arithmetic circuit 2 -1 to the third arithmetic circuit 2 -3 sequentially take in the first data block to the fifth data block input to the data input terminal 4. While shifting, a majority operation is performed to determine whether each bit constituting the first data block to the fifth data block is "1" or "0", and the final bit of the fifth data block is determined. after performing the judgment is taken, since the output the data stored in the third arithmetic circuit 2-3 as a majority logic decision already parallel data, without the use of such majority logic operation circuit, and a shift It is possible to reduce the circuit scale, power consumption, and manufacturing cost by enabling majority decision processing of data blocks while reducing the number of registers by half.

【0025】図5は本発明による多数決演算処理回路の
第3実施例を示すブロック図である。なお、この図にお
いて、図1および図3に示す各部と同じ部分には、同じ
符号が付してある。この図に示す多数決演算処理回路1
cは、第1演算回路2-1、…、第N演算回路2-Nを備え
ており、これら第1演算回路2-1ないし第N演算回路2
-Nによって、データ入力端子4に入力された1番目のデ
ータブロックないし(2N−1)番目のデータブロック
を順次、取り込み、シフトしながら、多数決演算を行な
って、前記1番目のデータブロックないし(2N−1)
番目のデータブロックを構成する各ビットが“1”か
“0”かを判定し、(2N−1)番目のデータブロック
の最終ビットを取り込んで判定を行なった後、第N演算
回路2-Nに記憶しているデータを多数決論理判定済みの
並列データとして出力する。
FIG. 5 is a block diagram showing a third embodiment of the majority arithmetic processing circuit according to the present invention. In this figure, the same parts as those shown in FIGS. 1 and 3 are designated by the same reference numerals. Majority processing circuit 1 shown in this figure
c includes a first arithmetic circuit 2 -1 , ..., An Nth arithmetic circuit 2 -N , and these first arithmetic circuit 2 -1 through Nth arithmetic circuit 2
By -N , the first data block or the (2N-1) th data block input to the data input terminal 4 is sequentially fetched and shifted, and a majority operation is performed while shifting to obtain the first data block or the (2N-1) th data block. 2N-1)
After determining whether each bit constituting the th data block is "1" or "0" and fetching the final bit of the (2N-1) th data block to make a decision, the Nth operation circuit 2 -N The data stored in is output as parallel data that has been subjected to majority logic determination.

【0026】第1演算回路2-1は、処理対象となるデー
タブロックのブロック長と同じ長さの容量を持ち、リセ
ット端子2 -1rにリセット信号が入力されたとき、それ
まで記憶している内容を“0”に初期化し、クロック信
号が入力されているとき、入力端子5-1i に入力された
データブロックの各ビットを順次、取り込みながらシフ
トして、出力端子5-1O から出力するシフトレジスタ5
-1と、データ入力端子4に入力されたデータブロックの
各ビットと前記シフトレジスタ5-1の出力端子5-1O
ら出力されるデータブロックの各ビットとの論理和をと
り、前記シフトレジスタ5-1の入力端子5-1i に供給す
るオアゲート6-1とを備えている。そして、クロック信
号が入力されているとき、シフトレジスタ5-1に記憶さ
れているそれまでのデータブロックの各ビットを出力端
子5-1O から順次、出力して第2演算回路2-2に供給す
るとともに、データ入力端子4に入力されたデータブロ
ックの各ビットとシフトレジスタに記憶されているそれ
までのデータブロックの各ビットとの論理和をとって、
これをシフトレジスタ5-1に順次、記憶させる。
The first arithmetic circuit 2 -1 has a capacity of the same length as the block length of the data block to be processed, and when the reset signal is input to the reset terminal 2 -1r , the data is stored until then. When the contents are initialized to "0" and the clock signal is input, the bits of the data block input to the input terminal 5 -1i are sequentially fetched and shifted, and output from the output terminal 5 -1O. Register 5
-1 and each bit of the data block input to the data input terminal 4 and each bit of the data block output from the output terminal 5 -1O of the shift register 5 -1 are ORed to obtain the shift register 5 -1 input terminal 5 -1i or OR gate 6 -1 . Then, when the clock signal is input, each bit of the data block stored in the shift register 5 -1 up to that time is sequentially output from the output terminal 5 -1O and supplied to the second arithmetic circuit 2 -2 . At the same time, each bit of the data block input to the data input terminal 4 is logically ORed with each bit of the data blocks stored in the shift register until then,
This is sequentially stored in the shift register 5-1 .

【0027】第2演算回路2-2ないし第(N−1)演算
回路2-(N-1)は各々、処理対象となるデータブロックの
ブロック長と同じ長さの容量を持ち、リセット端子5
-1r、…、5-(N-1)r にリセット信号が入力されたと
き、それまで記憶している内容を“0”に初期化し、ク
ロック信号が入力されているとき、入力端子5-1i
…、5-(N-1)i に入力されたデータブロックの各ビット
を順次、取り込みながらシフトして、出力端子5-1O
…、5-(N-1)o から出力するシフトレジスタ5-1、…、
-(N-1)と、データ入力端子4に入力されたデータブロ
ックの各ビットと前段の演算回路から出力されるデータ
ブロックの各ビットとの論理積をとるアンドゲート
-1、…、7-(N-1)と、これらのアンドゲート7-1
…、7-(N-1)から出力されるデータブロックの各ビット
と前記シフトレジスタ5-1、…、5-(N-1)の出力端子5
-1O 、…、5-(N-1)o から出力されるデータブロックの
各ビットとの論理和をとり、前記シフトレジスタ5-1
…、5-(N-1)の入力端子5-1i 、…、5-(N-1)i に供給
するオアゲート6-1、…、6-(N-1)とを備えている。
Each of the second arithmetic circuit 2 -2 to the (N-1) th arithmetic circuit 2- (N-1) has a capacity equal to the block length of the data block to be processed, and has a reset terminal 5
-1r, ..., 5 - (N -1) when a reset signal is input to r, so far it is initialized to "0" the contents stored therein when the clock signal is input, the input terminal 5 - 1i ,
..., each bit of the data block input to 5- (N-1) i is sequentially fetched and shifted, and output terminal 5 -1O ,
... 5- (N-1) o output shift register 5 -1 , ...
AND gate 7 -1 , ..., which takes the logical product of 5- (N-1) and each bit of the data block input to the data input terminal 4 and each bit of the data block output from the arithmetic circuit at the previous stage 7- (N-1) and these AND gates 7 -1 ,
..., 7 - the (N-1) each bit of the data blocks output from the shift register 5-1, ..., 5 - output terminal 5 of the (N-1)
−1O , ..., 5 − (N−1) o is output to the respective bits of the data block, and the shift register 5 −1 ,
, 5- (N-1) input terminals 5 -1i , ..., 5- (N-1) i or OR gates 6 -1 , ..., 6- (N-1) .

【0028】そして、クロック信号が入力されていると
き、シフトレジスタ5-1、…、5-(N-1)に記憶されてい
るそれまでのデータブロックの各ビットを出力端子5
-1O 、…、5-(N-1)o から順次、出力して後段の演算回
路に供給するとともに、データ入力端子4に入力された
データブロックの各ビットと、前段の演算回路から出力
されるデータブロックの各ビットとの論理積をとり、さ
らにこの論理積によって得られる各ビットと、シフトレ
ジスタ5-1、…、5-(N-1)に記憶されているそれまでの
データブロックの各ビットとの論理和をとって、これを
各シフトレジスタ5-1、…、5-(N-1)に順次、記憶させ
る。第N演算回路2-Nは、処理対象となるデータブロッ
クのブロック長と同じ長さの容量を持ち、リセット端子
-Nr にリセット信号が入力されたとき、それまで記憶
している内容を“0”に初期化し、クロック信号が入力
されているとき、入力端子5-Ni に入力されたデータブ
ロックの各ビットを順次、取り込みながらシフトして、
出力端子5-No から出力するシフトレジスタ5-Nと、デ
ータ入力端子4に入力されたデータブロックの各ビット
と第(N−1)演算回路2-(N-1)から出力されるデータ
ブロックの各ビットとの論理積をとるアンドゲート7-N
と、このアンドゲート7-Nから出力されるデータブロッ
クの各ビットと前記シフトレジスタ5-Nの出力端子5
-No から出力されるデータブロックの各ビットとの論理
和をとり、前記シフトレジスタ5-Nの入力端子5-Ni
供給するオアゲート6-Nとを備えている。
When the clock signal is input, each bit of the data blocks stored in the shift register 5 -1 , ..., 5- (N-1) up to that point is output to the output terminal 5.
-1O , ..., 5- (N-1) o are sequentially output and supplied to the arithmetic circuit in the subsequent stage, and each bit of the data block input to the data input terminal 4 and the arithmetic circuit in the preceding stage are output. The logical product of each bit of the data block is calculated, and each bit obtained by this logical product and the data block of the previous data block stored in the shift register 5 -1 , ..., 5- (N-1) The logical sum of each bit is taken and stored in each shift register 5 -1 , ..., 5- (N-1) in sequence. The Nth arithmetic circuit 2 -N has a capacity of the same length as the block length of the data block to be processed, and when the reset signal is input to the reset terminal 5 -N r, the contents stored until then are stored. Initialized to “0” and when a clock signal is input, shifts while sequentially fetching each bit of the data block input to the input terminal 5- Ni ,
The shift register 5 -N output from the output terminal 5 -No , each bit of the data block input to the data input terminal 4, and the data block output from the (N-1) th arithmetic circuit 2- (N-1) AND gate 7 -N taking the logical product with each bit of
And each bit of the data block output from the AND gate 7 -N and the output terminal 5 of the shift register 5 -N
-OR gate 6- N which is logically ORed with each bit of the data block output from No and is supplied to the input terminal 5- Ni of the shift register 5- N .

【0029】そして、クロック信号が入力されていると
き、シフトレジスタ5-Nに記憶されているそれまでのデ
ータブロックの各ビットを出力端子5-No から順次、出
力するとともに、データ入力端子4に入力されたデータ
ブロックの各ビットと、前記第(N−1)演算回路2
-(N-1)から出力されるデータブロックの各ビットとの論
理積をとり、さらにこの論理積によって得られる各ビッ
トと、シフトレジスタ5-Nに記憶されているそれまでの
データブロックの各ビットとの論理和をとって、これを
シフトレジスタ5-Nに順次、記憶させ、最後のビットを
処理したとき、前記シフトレジスタ5-Nに記憶されてい
るデータを多数決論理判定済みの並列データとして出力
する。
Then, when the clock signal is input, each bit of the data block stored in the shift register 5- N up to that time is sequentially output from the output terminal 5- No , and at the same time, to the data input terminal 4. Each bit of the input data block and the (N-1) th arithmetic circuit 2
-The logical product of each bit of the data block output from (N-1) is calculated, and each bit obtained by this logical product and each of the data blocks stored in the shift register 5 -N The logical sum of the bits is stored in the shift register 5 -N sequentially, and when the last bit is processed, the data stored in the shift register 5 -N is converted into parallel data which has been subjected to majority decision. Output as.

【0030】この場合、データ入力端子4に、(2N−
1)個のデータブロックがビット単位で順次、入力され
れば、第1演算回路2-1ないし第N演算回路2-Nによっ
て、上述した第1、第2実施例と同様な手順により、こ
れら第1演算回路2-1のシフトレジスタ5-1ないし第N
演算回路2-Nのシフトレジスタ5-Nに多数決判定動作の
途中結果が記憶され、最後のデータブロックの最終ビッ
トが入力された後に、上述した第1、第2実施例と同様
な理由により、第N演算回路2-Nを構成しているシフト
レジスタ5-N内に、(2N−1)個のデータブロックに
対する多数決論理判定済みのデータブロックが格納さ
れ、これが並列データとして出力される。このように、
この実施例においては、第1演算回路2-1ないし第N演
算回路2-Nによって、データ入力端子4に入力された1
番目のデータブロックないし(2N−1)番目のデータ
ブロックを順次、取り込み、シフトしながら、多数決演
算を行なって、前記1番目のデータブロックないし(2
N−1)番目のデータブロックを構成する各ビットが
“1”か“0”かを判定し、(2N−1)番目のデータ
ブロックの最終ビットを取り込んで判定を行なった後、
第N演算回路2-Nに記憶しているデータを多数決論理判
定済みの並列データとして出力するようにしているの
で、上述した各実施例と同様に、多数決論理演算回路な
どを使用することなく、かつシフトレジスタの数を半減
させたまま、データブロックの多数決判定処理を可能に
して、回路規模、消費電力、製造コストなどを低減させ
ることができる。
In this case, (2N-
1) If the data blocks are sequentially input bit by bit, the first arithmetic circuit 2 -1 to the Nth arithmetic circuit 2 -N are operated in the same procedure as in the first and second embodiments. The shift register 5 -1 to the N th of the first arithmetic circuit 2 -1
After the intermediate result of the majority decision operation is stored in the shift register 5 -N of the arithmetic circuit 2 -N and the last bit of the last data block is input, for the same reason as in the first and second embodiments described above, In the shift register 5 -N forming the Nth arithmetic circuit 2 -N , the data blocks for which the majority logic decision has been made for the (2N-1) data blocks are stored and output as parallel data. in this way,
In this embodiment, 1 input to the data input terminal 4 by the first arithmetic circuit 2 -1 to the Nth arithmetic circuit 2 -N
The second data block to the (2N-1) th data block are sequentially taken in and shifted, and a majority operation is performed to shift the first data block to the (2N-1) th data block.
After determining whether each bit forming the (N-1) th data block is "1" or "0", and taking the final bit of the (2N-1) th data block to perform determination,
Since the data stored in the Nth operation circuit 2 -N is output as parallel data which has been subjected to majority logic determination, the majority logic operation circuit and the like are not used as in the above-described embodiments. In addition, it is possible to reduce the number of shift registers by half and enable majority decision processing of data blocks to reduce the circuit scale, power consumption, manufacturing cost, and the like.

【0031】図6は本発明による多数決演算処理回路の
第4実施例を示すブロック図である。なお、この図にお
いて、図1に示す各部と同じ部分には、同じ符号が付し
てある。この図に示す多数決演算処理回路1dが図1に
示す多数決演算処理回路1と異なる点は、第1演算回路
-1のシフトレジスタ、第2演算回路2-2のシフトレジ
スタを構成しているリセット機能付きのシフトレジスタ
-1、5-2に代えて、通常のシフトレジスタ8-1、8-2
を使用するとともに、アンドゲート9-1、9-2によって
これら各シフトレジスタ8-1、8-2の出力端子8-1O
-2o から出力されるデータブロックの各ビットと初期
化信号との論理積をとって対応するシフトレジスタ
-1、8-2の入力側に戻すようにしたことである。この
ようにすることにより、データ入力端子4に最初のデー
タブロックが入力される間だけ、第1演算回路2-1のシ
フトレジスタ8-1、第2演算回路2-2のシフトレジスタ
-2に初期化信号を供給しながら、クロック信号を供給
するだけで、これら第1演算回路2-1のシフトレジスタ
-1、第2演算回路2-2のシフトレジスタ8-2の初期値
が不定であっても、シフトレジスタ8-1、8-2の入力側
に値が“0”になったビットを戻すことができ、これに
よってこれら第1演算回路2-1、第2演算回路2-2を上
述した第1実施例と同様に動作させて、データ入力端子
4に入力された1番目のデータブロックないし3番目の
データブロックを順次、取り込み、シフトしながら、多
数決演算を行なって、前記1番目のデータブロックない
し3番目のデータブロックを構成する各ビットが“1”
か“0”かを判定し、3番目のデータブロックの最終ビ
ットを取り込んで判定を行なった後、第2演算回路2-2
に記憶しているデータを多数決論理判定済みの並列デー
タとして出力することができる。
FIG. 6 is a block diagram showing a fourth embodiment of the majority decision processing circuit according to the present invention. In this figure, the same parts as those shown in FIG. 1 are designated by the same reference numerals. The majority operation processing circuit 1d shown in this figure differs from the majority operation processing circuit 1 shown in FIG. 1 in that it constitutes a shift register of the first operation circuit 2 -1 and a shift register of the second operation circuit 2 -2 . Instead of the shift registers 5 -1 , 5 -2 with reset function, ordinary shift registers 8 -1 , 8 -2
And the output terminals 8 -1O of the shift registers 8 -1 , 8 -2 by AND gates 9 -1 , 9 -2 ,
This is to take the logical product of each bit of the data block output from 8 -2 o and the initialization signal and return it to the input side of the corresponding shift register 8 -1 , 8 -2 . By doing so, the data input terminal 4 only when the first data block is input, the shift register 28-1 of the first arithmetic circuit 2 -1, the second arithmetic circuit 2 -2 shift register 8-2 The initial value of the shift register 8 -1 of the first arithmetic circuit 2 -1 and the initial value of the shift register 8 -2 of the second arithmetic circuit 2 -2 are undefined only by supplying the clock signal while supplying the initialization signal to However, the bit whose value becomes “0” can be returned to the input side of the shift registers 8 −1 and 8 −2 , whereby the first arithmetic circuit 2 −1 and the second arithmetic circuit 2 − 2 is operated in the same manner as in the above-described first embodiment to sequentially fetch and shift the first data block to the third data block input to the data input terminal 4 and perform a majority operation while shifting. The first data block or the third Each bit forming the data block is "1"
Or "0" is determined, the final bit of the third data block is fetched and the determination is performed, and then the second operation circuit 2 -2
The data stored in can be output as parallel data that has undergone the majority logic determination.

【0032】これによって、上述した第1、第2、第3
実施例と同様に、多数決論理演算回路などを使用するこ
となく、かつシフトレジスタの数を半減させたまま、デ
ータブロックの多数決判定処理を可能にして、回路規
模、消費電力、製造コストなどを低減させることができ
る。また、この第4実施例で使用しているアンドゲート
付きのシフトレジスタ8-1、8-2を第1実施例で示した
多数決演算処理回路1以外の多数決演算処理回路、すな
わち第2実施例、第3実施例で示した多数決演算処理回
路1b、1cに適用するようにしても良い。このように
しても、上述した第4実施例で示す多数決演算処理回路
1dと同様な手順によって、これら第2実施例、第3実
施例で示した多数決演算処理回路1b、1cを動作させ
ることにより、同等な効果を得ることができる。
As a result, the above-mentioned first, second and third
Similar to the embodiment, the majority decision processing of the data block is enabled without using the majority logic operation circuit and the number of shift registers is halved, and the circuit scale, power consumption, manufacturing cost, etc. are reduced. Can be made. Further, the shift registers 8 -1 , 8 -2 with AND gates used in the fourth embodiment are the majority operation processing circuits other than the majority operation processing circuit 1 shown in the first embodiment, that is, the second embodiment. It may be applied to the majority arithmetic processing circuits 1b and 1c shown in the third embodiment. Even in this case, the majority voting operation processing circuits 1b and 1c shown in the second and third embodiments are operated by a procedure similar to that of the majority voting operation processing circuit 1d shown in the fourth embodiment. , The same effect can be obtained.

【0033】[0033]

【発明の効果】以上説明したように本発明によれば、多
数決論理演算回路などを使用することなく、かつシフト
レジスタの数を半減させたまま、データブロックの多数
決判定処理を可能にして、回路規模、消費電力、製造コ
ストなどを低減させることができる。
As described above, according to the present invention, the majority decision processing of a data block is enabled without using a majority decision logical operation circuit or the like, and the number of shift registers is reduced by half. The scale, power consumption, manufacturing cost, etc. can be reduced.

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

【図1】本発明による多数決演算処理回路の第1実施例
を示すブロック図である。
FIG. 1 is a block diagram showing a first embodiment of a majority arithmetic processing circuit according to the present invention.

【図2】図1に示す多数決演算処理回路の動作例を示す
表である。
FIG. 2 is a table showing an operation example of the majority arithmetic processing circuit shown in FIG.

【図3】本発明による多数決演算処理回路の第2実施例
を示すブロック図である。
FIG. 3 is a block diagram showing a second embodiment of a majority arithmetic processing circuit according to the present invention.

【図4】図3に示す多数決演算処理回路の動作例を示す
表である。
FIG. 4 is a table showing an operation example of the majority decision processing circuit shown in FIG.

【図5】本発明による多数決演算処理回路の第3実施例
を示すブロック図である。
FIG. 5 is a block diagram showing a third embodiment of a majority arithmetic processing circuit according to the present invention.

【図6】本発明による多数決演算処理回路の第4実施例
を示すブロック図である。
FIG. 6 is a block diagram showing a fourth embodiment of a majority decision processing circuit according to the present invention.

【図7】従来から知られている多数決演算処理回路の一
例を示すブロック図である。
FIG. 7 is a block diagram showing an example of a conventionally-known majority arithmetic processing circuit.

【符号の説明】[Explanation of symbols]

1、1b、1c、1d 多数決演算処理回路 2-1、…、2-N 第1演算回路、…、第N演算回路 4 データ入力端子 5-1、…、5-N シフトレジスタ 5-1i 、…、5-Ni 入力端子 5 -1r、…、5-Nr リセット端子 5-1O 、…、5-No 出力端子 6-1、…、6-N オアゲート 7-2、…、7-N アンドゲート 8-1、8-2 シフトレジスタ 8-1O 、8-2o 出力端子 9-1、9-2 アンドゲート1, 1b, 1c, 1d Majority arithmetic processing circuit 2 -1 , ..., 2- N first arithmetic circuit, ..., Nth arithmetic circuit 4 Data input terminal 5 -1 , ..., 5- N shift register 5 -1i , ..., 5 -Ni input terminal 5 -1r, ..., 5 -N r reset terminal 5 -1O, ..., 5 -No output terminal 6 -1, ..., 6 -N gate 7 -2, ..., 7 -N and Gate 8 -1 , 8 -2 shift register 8 -1O , 8 -2 o Output terminal 9 -1 , 9 -2 AND gate

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 データ入力端子に入力された1ビット以
上の同一内容を持つ(2N−1)個のデータブロック
(但し、Nは1を越える整数)を取込み、これら(2N
−1)個のデータブロックを構成する各ビットが“1”
か、“0”かを多数決判定する多数決演算処理回路にお
いて、 前記データブロックの長さと同じ長さを持つシフトレジ
スタを有し、前記データ入力端子に入力されたデータブ
ロックと自回路内のシフトレジスタに保持されているそ
れまでのデータブロックとの論理和をとり、論理和結果
を自回路内の前記シフトレジスタに再保持する第1演算
回路と、 前記データブロックの長さと同じ長さを持つシフトレジ
スタを有し、前記データ入力端子に入力されたデータブ
ロックと前段の演算回路内にあるシフトレジスタに保持
されているそれまでのデータブロックとの論理積をとっ
た後、この論理積結果と自回路内のシフトレジスタに保
持されているそれまでのデータブロックとの論理和をと
った後、論理和結果を自回路内の前記シフトレジスタに
再保持する第2ないし第N演算回路と、を備え、 前記第N演算回路のシフトレジスタに保持されているデ
ータブロックを誤り訂正後のデータブロックとすること
を特徴とする多数決演算処理回路。
1. A (2N-1) number of data blocks (where N is an integer greater than 1) having the same content of 1 bit or more input to a data input terminal are taken and these (2N
-1) Each bit forming one data block is "1"
Or a "0" majority decision processing circuit, which has a shift register having the same length as the length of the data block, the data block input to the data input terminal and the shift register in its own circuit. A first arithmetic circuit for taking a logical sum of the data blocks held up to then and holding the logical sum result again in the shift register in its own circuit; and a shift having the same length as the length of the data block. It has a register, and after taking the logical product of the data block input to the data input terminal and the data block held up to then in the shift register in the arithmetic circuit of the previous stage, this logical product result and After taking the logical sum with the previous data blocks held in the shift register in the circuit, the logical sum result is stored in the shift register in the own circuit. Includes a second through N arithmetic circuit for holding, the said first N majority arithmetic processing circuit, characterized in that the data block after the error correction data block held in the shift register arithmetic circuit.
【請求項2】 請求項1に記載の多数決演算処理回路に
おいて、 前記第1ないし第N演算回路を構成する各シフトレジス
タとして、リセット付きのシフトレジスタを使用し、前
記データ入力端子に入力される誤り訂正対象となる(2
N−1)個のデータブロックのうち、最初のデータブロ
ックが入力される前に、前記各シフトレジスタにリセッ
ト信号を供給して、これらの各シフトレジスタをリセッ
トすることを特徴とする多数決演算処理回路。
2. The majority arithmetic processing circuit according to claim 1, wherein a shift register with reset is used as each shift register forming the first to Nth arithmetic circuits, and the shift register is input to the data input terminal. Error correction target (2
N-1) A majority operation process characterized by supplying a reset signal to each shift register to reset each shift register before the first data block is input from the N-1) data blocks. circuit.
【請求項3】 請求項1に記載の多数決演算処理回路に
おいて、 前記第1ないし第N演算回路を構成する各シフトレジス
タとして、リセット機能を持たないシフトレジスタを使
用するとともに、これらシフトレジスタの出力と初期化
信号との論理積をとってシフトレジスタの入力側に戻す
アンドゲートを使用し、前記データ入力端子に入力され
る誤り訂正対象となる(2N−1)個のデータブロック
が入力される際、最初のデータブロックが入力されてい
る間に、前記各アンドゲートに初期化信号を入力してシ
フトレジスタの入力側に値“0”のデータブロックを戻
すことを特徴とする多数決演算処理回路。
3. The majority arithmetic processing circuit according to claim 1, wherein a shift register having no reset function is used as each shift register forming the first to Nth arithmetic circuits, and outputs of these shift registers. And an initialization signal are ANDed and returned to the input side of the shift register, and (2N-1) data blocks to be error-corrected which are input to the data input terminal are input. At that time, while the first data block is being input, an initialization signal is input to each of the AND gates to return the data block having the value "0" to the input side of the shift register. .
JP2587896A 1996-01-19 1996-01-19 Majority processing circuit Pending JPH09200041A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2587896A JPH09200041A (en) 1996-01-19 1996-01-19 Majority processing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2587896A JPH09200041A (en) 1996-01-19 1996-01-19 Majority processing circuit

Publications (1)

Publication Number Publication Date
JPH09200041A true JPH09200041A (en) 1997-07-31

Family

ID=12178050

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2587896A Pending JPH09200041A (en) 1996-01-19 1996-01-19 Majority processing circuit

Country Status (1)

Country Link
JP (1) JPH09200041A (en)

Similar Documents

Publication Publication Date Title
KR100354285B1 (en) Fast hadamard transform device
US4984189A (en) Digital data processing circuit equipped with full bit string reverse control circuit and shifter to perform full or partial bit string reverse operation and data shift operation
JP2002051072A (en) Packet processing device
US6725415B2 (en) Arithmetic unit performing cyclic redundancy check at high speed
JPH09200041A (en) Majority processing circuit
JP2766133B2 (en) Parallel-serial data conversion circuit
CN115705674A (en) An Optimal Method for Preprocessing the Mean Value of Grayscale Images
US20030056080A1 (en) Register read circuit using the remainders of modulo of a register number by the number of register sub-banks
JP2524035Y2 (en) Multiplier for convolution arithmetic circuit
US5253194A (en) Digital multiplier
US5615141A (en) Multiplying apparatus
US20050283581A1 (en) Data reading structure
JPH10187585A (en) Electronic circuit configuration for address word discrimination
JPH11163736A (en) Processor
JP3851024B2 (en) Multiplier
JP2643576B2 (en) Address generation circuit for fast Fourier transform
JPH03188522A (en) Serial arithmetic circuit
JPH01259415A (en) data correction circuit
CN120821503A (en) RISC-V vector convergence instruction implementation system and method
JP2003337694A (en) Shift circuit
JP3521558B2 (en) Transmission equipment
JP3412368B2 (en) Bit serial squaring circuit
JPS63163927A (en) Multiplication circuit
WO2000034853A1 (en) A serial-parallel binary multiplier
JPH0628205A (en) Majority decision making circuit