Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0797743B2 - Majority logic circuit - Google Patents
[go: Go Back, main page]

JPH0797743B2 - Majority logic circuit - Google Patents

Majority logic circuit

Info

Publication number
JPH0797743B2
JPH0797743B2 JP23026687A JP23026687A JPH0797743B2 JP H0797743 B2 JPH0797743 B2 JP H0797743B2 JP 23026687 A JP23026687 A JP 23026687A JP 23026687 A JP23026687 A JP 23026687A JP H0797743 B2 JPH0797743 B2 JP H0797743B2
Authority
JP
Japan
Prior art keywords
bit
shift register
data
addition
serial data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP23026687A
Other languages
Japanese (ja)
Other versions
JPS6473820A (en
Inventor
保明 高原
茂幸 須藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP23026687A priority Critical patent/JPH0797743B2/en
Publication of JPS6473820A publication Critical patent/JPS6473820A/en
Publication of JPH0797743B2 publication Critical patent/JPH0797743B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Logic Circuits (AREA)
  • Error Detection And Correction (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、同一内容が連送されてくるデータの多数決を
求めることにより、伝送誤りの訂正を行なう多数決論理
回路に関する。
Description: TECHNICAL FIELD The present invention relates to a majority logic circuit that corrects a transmission error by determining a majority of data in which the same contents are continuously transmitted.

[従来の技術] 自動車電話のように無線を利用してデータを伝送するシ
ステムでは、フェージングや空電現象により連続的にビ
ット誤りを起こす。このビット誤りを訂正する方法の一
つとして、同一内容のデータを奇数回連送し、受信側で
送られて来たデータの多数決を求めることにより受信デ
ータを再生する方法がある。このエラー訂正方法を実現
するためには受信機に多数決を求める手段が必要とな
る。この手段は、従来ソフトウエアで行なわれることが
一般的であった。
[Prior Art] In a system for transmitting data using radio such as a car telephone, bit errors occur continuously due to fading and static electricity phenomena. As one of the methods of correcting this bit error, there is a method of continuously transmitting the data of the same content an odd number of times and reproducing the received data by obtaining a majority decision of the data transmitted on the receiving side. In order to realize this error correction method, a means for requesting a majority decision from the receiver is required. Generally, this means is conventionally performed by software.

このソフトウエア処理では送られて来たデータを一旦メ
モリに記憶し、全てのデータを受信した後、対応したビ
ットを調べ“0"と“1"のいずれが多いかを判断するため
に多数決処理を行なっていた。データは連続的に送られ
てくるため、この多数決処理は常に実行していなければ
ならずCPUの負担が増大するという問題があった。
In this software processing, the sent data is temporarily stored in the memory, after all the data is received, the majority decision processing is performed to check the corresponding bit and judge which of "0" and "1" is more. Was being done. Since data is sent continuously, there is a problem in that this majority processing must be executed at all times and the load on the CPU increases.

この多数決手段を回路化すれば上記の問題は解消され
る。この多数決論理回路はよく知られている。しかし、
連送されてくるデータの多数決をとる場合は多数決をと
るべきデータを全て記憶しておく必要があり記憶回路が
増大するという問題がある。
If the majority decision means is made into a circuit, the above problem can be solved. This majority logic circuit is well known. But,
When a majority decision is made on the data sent continuously, it is necessary to store all the data for which a majority decision should be taken, which causes a problem of an increase in the memory circuit.

上記問題を解決する従来技術として特開昭61−66409号
が開示されている。これは、ANDゲートとORゲートとm
段のシフトレジスタとの組合わせ回路をn組使用すると
いう回路構成で2n−1回連送までの連送データの多数決
を求めるものである。
Japanese Unexamined Patent Publication No. 61-66409 is disclosed as a conventional technique for solving the above problem. This is AND gate, OR gate and m
This is a circuit configuration in which n sets of combination circuits with shift registers in stages are used to obtain a majority decision of continuous transmission data up to 2n-1 times continuous transmission.

[発明が解決しようとする問題点] これまで述べてきたように、ソフトウエア処理による多
数決処理は処理時間が長く、CPUの負担が多大であると
いう問題点がある。また、回路化する上ではシフトレジ
スタの数が多く、回路規模が増大するという問題があ
る。上記従来技術においても2n−1連送のデータに対し
n組のシフトレジスタを必要とした。
[Problems to be Solved by the Invention] As described above, the majority processing by software processing has a problem that the processing time is long and the load on the CPU is large. In addition, there is a problem in that the number of shift registers is large and the circuit scale is increased in making the circuit. Also in the above-mentioned conventional technique, n sets of shift registers are required for 2n-1 continuous data.

本発明は、上記問題点を解決するためになされたもので
あり、その目的は、必要とするシフトレジスタの数を低
減し、IC化が容易な多数決論理回路を提供することにあ
る。
The present invention has been made to solve the above problems, and an object of the present invention is to provide a majority logic circuit in which the number of shift registers required is reduced and which can be easily integrated into an IC.

[問題点を解決するための手段] 本発明は、上記目的を達成するために、第1A図に示すよ
うに、(2n−1)回(n≧2)連送されてくるmビット
のシリアルデータの多数決をとる多数決論理回路におい
て、 kビット構成でm段のシフトレジスタと、 該シフトレジスタのkビット出力データに、前記シリア
ルデータに対応した1ビットデータを順次加算し、該加
算結果を上記シフトレジスタに入力する加算手段と、 上記シフトレジスタのkビット出力データが予め定めら
れた値sと一致したことを検出する検出手段と、 該一致検出手段の一致検出信号に従って前記加算手段の
加算動作を禁止する禁止手段と、 前記シフトレジスタのm個のkビットデータをすべて
(s−n)に初期化する初期化手段とを備え、 前記kは、2k−1≧nを満たすようにしたものである。
[Means for Solving the Problems] In order to achieve the above-mentioned object, the present invention, as shown in FIG. 1A, provides an m-bit serial data transmitted continuously (2n−1) times (n ≧ 2). In a majority logic circuit for taking a majority decision of data, a shift register of m stages having a k-bit configuration, 1-bit data corresponding to the serial data is sequentially added to k-bit output data of the shift register, and the addition result is An adding means for inputting to the shift register, a detecting means for detecting that the k-bit output data of the shift register coincides with a predetermined value s, and an adding operation of the adding means according to a coincidence detection signal of the coincidence detecting means. comprising a prohibiting means for prohibiting, and initialization means for initializing all (s-n) of m k-bit data of the shift register, wherein k satisfies 2 k -1 ≧ n Those were Unishi.

前記加算手段が前記シフトレジスタのkビット出力デー
タに加算する1ビットデータは前記シリアルデータその
ものであっても、あるいはその反転データであってもよ
い。
The 1-bit data that the adding means adds to the k-bit output data of the shift register may be the serial data itself or its inverted data.

前記加算手段は、例えば、設定要求信号に応じて入力値
を設定し該設定値を計数クロックにより増分するプリセ
ットカウンタと、前記シリアルデータに対応した1ビッ
トデータの値により前記カウンタの増分動作を許可また
は禁止する制御手段と、前記1ビットデータの伝送タイ
ミングに同期して前記設定要求信号および前記計数クロ
ックを出力するタイミング発生手段とから構成すること
ができる。
The adding means permits, for example, a preset counter that sets an input value according to a setting request signal and increments the set value by a counting clock, and an increment operation of the counter by a value of 1-bit data corresponding to the serial data. Alternatively, it may be constituted by a control means for prohibiting and a timing generating means for outputting the setting request signal and the counting clock in synchronization with the transmission timing of the 1-bit data.

前記初期化は、例えば、前記初期データが0であるとき
は前記シフトレジスタをリセットすることにより容易に
行なえる。前記初期データが0でない場合には、その初
期データを前記シフトレジスタに強制的にシフト入力す
ることにより行なえる。
The initialization can be easily performed by resetting the shift register when the initial data is 0, for example. When the initial data is not 0, the initial data can be forcibly shifted and input to the shift register.

なお、本明細書において、「加算」なる語は広義に解
し、減算も含むものとする。
In the present specification, the term “addition” is understood in a broad sense and includes subtraction.

[作用] 上記のような構成において、加算手段は、送られてくる
連送データの同位のビットごとに“1"あるいは“0"の数
を数える作用をする。各回までの計数結果はm段のシフ
トレジスタに、前回までの計数結果に代わって記憶され
る。この計数結果はさらにシフトレジスタでm段シフト
されて再び加算手段の初期値として設定されるように構
成しているため、mビットごとに到来するビットデータ
について各々累積計数することができる。データ伝送開
始時点でシフトレジスタは初期化手段によりs−nに初
期化される。さらに、検出手段と禁止手段の働きにより
計数値がsに達すると加算すなわち計数動作が禁止され
るので、2n−1連送されるデータの“1"あるいは“0"の
数がn個以上ある場合には計数値がsのまま保持される
ことになる。従って、全データを受信し、シフトレジス
タに記憶された値がsか否かを調べることにより多数決
論理を得ることができる。
[Operation] In the above-mentioned configuration, the adding means functions to count the number of "1" or "0" for each of the same-order bits of the transmitted continuous transmission data. The counting result up to each time is stored in the m-stage shift register instead of the counting result up to the previous time. Since this counting result is further shifted by m stages in the shift register and set again as the initial value of the adding means, it is possible to cumulatively count bit data that arrives every m bits. At the start of data transmission, the shift register is initialized to sn by the initialization means. Further, when the count value reaches s by the function of the detecting means and the prohibiting means, the addition, that is, the counting operation is prohibited, so that the number of "1" or "0" of 2n-1 consecutively transmitted data is n or more. In this case, the count value is kept as s. Therefore, majority logic can be obtained by receiving all the data and checking whether the value stored in the shift register is s.

このように、多数決論理がシフトレジスタに記憶された
計数値により得られるので、kビットのm段シフトレジ
スタを用いて2×(2k−1)−1=2k+1−3連送までの
データの多数決論理を得ることができる。
Thus, since the majority logic is obtained from the count value stored in the shift register, up to 2 × (2 k −1) −1 = 2 k + 1 −3 continuous transmission using the k-bit m stage shift register. You can get the majority logic of the data.

[実施例] 以下、本発明の一実施例を第1B図により説明する。[Embodiment] An embodiment of the present invention will be described below with reference to FIG. 1B.

〈第1実施例〉 第1B図に示した実施例は5連送される40ビットのデータ
の多数決論理を得るものである。
<First Embodiment> The first embodiment shown in FIG. 1B is for obtaining a majority logic of 40-bit data which is continuously transmitted five times.

第1図において、データ信号a、クロック信号bは、第
1図には記載していないデータ復調回路からの信号であ
る。このデータ復調回路は受信した信号からNRZデータ
信号aとクロック信号bを再生する回路である。ここで
はクロック信号bの立下がりでデータ信号aが変化する
ものとする。リセット信号rはデータaの連送開始タイ
ミングに同期して与えられるものであり、これもデータ
復調回路から出力されるものである。回路1は2ビット
用の40段シフトレジスタであり、クロック信号bの立上
がりでシフト動作を行なうようにしている。このシフト
レジスタ1のリセット端子にはリセット信号rが入力さ
れており、データaの伝送開始時にこの信号rによりシ
フトレジスタ1の内容はすべて“0"に初期化される。回
路2は加算手段に相当する加算回路であり、信号g1,g2
に信号cを加算してその加算結果である信号e1、e2をシ
フトレジスタ1に出力する。信号e1,e2およびg1,g2は2
進数の数値であり0〜3(10進数)の値をとる。回路3
は検出手段に相当するANDゲートであり、シフトレジス
タ1の出力値が3である場合、検出信号hを出力する。
回路4は禁止手段に相当するANDゲートであり、検出信
号hが“1"となった場合、加算回路2への信号bを強制
的に“0"とし加算回路2の加算動作を禁止するものであ
る。回路5はインバータである。
In FIG. 1, a data signal a and a clock signal b are signals from a data demodulation circuit not shown in FIG. This data demodulation circuit is a circuit for reproducing the NRZ data signal a and the clock signal b from the received signal. Here, it is assumed that the data signal a changes at the fall of the clock signal b. The reset signal r is given in synchronization with the continuous transmission start timing of the data a, which is also output from the data demodulation circuit. The circuit 1 is a 40-bit shift register for 2 bits, and the shift operation is performed at the rising edge of the clock signal b. A reset signal r is input to the reset terminal of the shift register 1, and the contents of the shift register 1 are all initialized to "0" by the signal r at the start of transmission of the data a. The circuit 2 is an addition circuit corresponding to the addition means, and the signals g1 and g2
And the signal c is added to the shift register 1, and the resulting signals e1 and e2 are output to the shift register 1. The signals e1, e2 and g1, g2 are 2
It is a decimal number and takes values from 0 to 3 (decimal). Circuit 3
Is an AND gate corresponding to the detecting means, and outputs a detection signal h when the output value of the shift register 1 is 3.
The circuit 4 is an AND gate corresponding to a prohibition means, and forcibly sets the signal b to the adder circuit 2 to "0" to prohibit the addition operation of the adder circuit 2 when the detection signal h becomes "1". Is. The circuit 5 is an inverter.

以下、本実施例の動作を第2図を併用して詳細に説明す
る。第2図は本実施例の動作の一例を示す動作タイミン
グ図である。データaはデータクロックbの立下がりに
同期して変化し、信号g1、g2はシフトレジスタ1がデー
タクロックbの立上がりで動作するため同様にデータク
ロックbの立上がりに同期して変化する。さらに、これ
と同期して信号e1、e2がシフトレジスタ1に記憶される
ことになる。第2図に示すように信号g1、g2の値が0〜
2である場合は、データaがそのままデータcとなるか
ら、信号e1、e2の値は加算回路2の働きにより信号g1、
g2とデータaとの加算値となる。信号g1、g2の値が3と
なった場合では、検出手段であるANDゲート3の出力信
号hが“1"となる。これを受け禁止手段であるANDゲー
ト4により信号cが強制的に“0"となる。このため、信
号g1、g2の値が3の場合には、データaの値に無関係に
加算回路の出力信号e1、e2の値は3となり、すなわち、
加算回路2の加算動作が禁止されたことと同じになる。
Hereinafter, the operation of this embodiment will be described in detail with reference to FIG. FIG. 2 is an operation timing chart showing an example of the operation of this embodiment. The data a changes in synchronization with the falling edge of the data clock b, and the signals g1 and g2 also change in synchronization with the rising edge of the data clock b because the shift register 1 operates at the rising edge of the data clock b. Further, in synchronization with this, the signals e1 and e2 are stored in the shift register 1. As shown in FIG. 2, the values of the signals g1 and g2 are 0 to
In the case of 2, the data a becomes the data c as it is, so that the values of the signals e1 and e2 are
It is the added value of g2 and the data a. When the values of the signals g1 and g2 become 3, the output signal h of the AND gate 3 which is the detecting means becomes "1". In response to this, the signal c is forcibly set to "0" by the AND gate 4 which is a prohibition means. Therefore, when the values of the signals g1 and g2 are 3, the values of the output signals e1 and e2 of the adder circuit are 3 regardless of the value of the data a, that is,
This is the same as the prohibition of the adding operation of the adding circuit 2.

第1表は、加算回路2の入力データと出力データの関係
を示した表である。この表から分るように、加算回路2
はシフトレジスタ1から出力されるそれまでの加算結果
(入力)にデータaを加算していくが、加算結果を3と
なると加算動作を停止し、その値をシフトレジスタ1に
保持する。つまり、第1B図に示した実施例では、転送さ
れて来るデータの“1"の数を対応ビットごとにカウント
し、“1"が3個以上ある場合はシフトレジスタ1に3が
記憶されることになる。以上、本実施例の基本的な動作
の説明を行なった。
Table 1 is a table showing the relationship between the input data and the output data of the adder circuit 2. As you can see from this table, adder circuit 2
Adds the data a to the addition result (input) output from the shift register 1 up to that point. When the addition result becomes 3, the addition operation is stopped and the value is held in the shift register 1. That is, in the embodiment shown in FIG. 1B, the number of “1” s of the transferred data is counted for each corresponding bit, and when there are three or more “1” s, 3 is stored in the shift register 1. It will be. The basic operation of this embodiment has been described above.

次に、本実施例によって多数決論理が得られることを示
す。
Next, it will be shown that the majority logic is obtained by this embodiment.

まず、データ伝送に先立ちリセット信号rが入力されシ
フトレジスタ1の内容が全て“0"に初期化されていると
する。データの伝送が開始されるとデータaとクロック
信号bが共にデータ復調回路から出力される。シフトレ
ジスタ1の内容が“0"であるため、最初の40ビットのデ
ータつまり連送の最初の1回目のデータは加算回路2で
“0"と足されることになる。この加算結果はクロック信
号と同期してシフトレジスタ1に送られ、この結果、1
回目のデータはそのままの値でシフトレジスタ1に記憶
されることになる。2回目の連送データ、つまり41ビッ
ト目からは、シフトレジスタ1の長さが40段であるた
め、連送1回目の加算結果に加算される。以下、同様に
5回目の連送データ終了まで40ビットごとのデータが加
算され、その結果かシフトレジスタ1に記憶される。シ
フトレジスタ1に記憶された加算結果が3となった場
合、加算動作が禁止されるのでデータaの値に無関係に
加算結果が3となる。従って、5連送データを全て入力
した後、シフトレジスタ1の内容を調べ、その値が3で
あれば“1"が3回以上出現したことになるから受信デー
タは“1"、それ以外ならば“0"と判断でき、多数決論理
が得られることになる。本実施例では、ANDゲート3の
出力信号hを多数決出力としており、全連送データを受
信後シフトレジスタ1にクロック信号を入力することに
より、信号hから多数決論理を得ることができる。
First, it is assumed that the reset signal r is input prior to data transmission and the contents of the shift register 1 are all initialized to "0". When the data transmission is started, both the data a and the clock signal b are output from the data demodulation circuit. Since the content of the shift register 1 is "0", the first 40-bit data, that is, the first data of the first continuous transmission is added to "0" by the adder circuit 2. This addition result is sent to the shift register 1 in synchronization with the clock signal, and as a result, 1
The data of the second time is stored as it is in the shift register 1. From the second consecutive transmission data, that is, from the 41st bit, since the length of the shift register 1 is 40 stages, it is added to the addition result of the first consecutive transmission. Thereafter, similarly, data of every 40 bits is added until the end of the fifth continuous transmission data, and the result is stored in the shift register 1. When the addition result stored in the shift register 1 becomes 3, the addition operation is prohibited, so that the addition result becomes 3 regardless of the value of the data a. Therefore, after inputting all 5 consecutive transmission data, check the contents of the shift register 1, and if the value is 3, "1" has appeared three or more times, so the received data is "1", otherwise If so, it can be judged as "0", and the majority logic will be obtained. In the present embodiment, the output signal h of the AND gate 3 is the majority output, and by inputting the clock signal to the shift register 1 after receiving all the continuous transmission data, the majority logic can be obtained from the signal h.

以上述べたように本実施例によれば、加算結果を2進数
で0から3まで記憶すればよいので2ビット分(2組)
の40段シフトレジスタを使用して5連送データの多数決
論理を得ることができ、従来よりシフトレジスタ1組
(40段)を削減できるという効果がある。
As described above, according to the present embodiment, since the addition result may be stored in binary numbers from 0 to 3, two bits worth (two sets) are stored.
It is possible to obtain the majority decision logic of 5 consecutively transmitted data by using the 40-stage shift register, and it is possible to reduce one shift register set (40 stages) as compared with the conventional case.

上記実施例ではシフトレジスタの初期化にシフトレジス
タのリセット機能を利用したが、シフトレジスタの初期
化を行なう期間、加算回路の入力を固定することによっ
ても初期化を行なうことができる。
In the above embodiment, the reset function of the shift register was used for the initialization of the shift register, but the initialization can be performed by fixing the input of the adder circuit during the initialization of the shift register.

〈第2実施例〉 以下、このような初期化手法を採用した本発明の第2の
実施例を第3図を用いて説明する。第3図において、第
1B図と同一回路には同一符号を付している。第3図の実
施例と第1B図の実施例との相違点は、シフトレジスタ1
の初期化方法にある。第3図において、回路6、7、8
および9は、シフトレジスタ1を初期化する初期化手段
に相当する回路であり、回路6はNANDゲート、回路7、
8はANDゲート、回路9は、データの伝送開始信号iと
クロック信号bを元にして第1回目のデータ伝送期間の
み“0"となる信号jを出力する初期化信号発生回路であ
る。
<Second Embodiment> A second embodiment of the present invention employing such an initialization method will be described below with reference to FIG. In FIG. 3,
The same circuits as those in FIG. 1B are designated by the same reference numerals. The difference between the embodiment of FIG. 3 and the embodiment of FIG. 1B is that the shift register 1
It is in the initialization method of. In FIG. 3, circuits 6, 7, and 8 are shown.
Reference numerals 9 and 9 are circuits corresponding to initialization means for initializing the shift register 1. Circuit 6 is a NAND gate, circuit 7,
Reference numeral 8 is an AND gate, and circuit 9 is an initialization signal generation circuit that outputs a signal j that becomes "0" only during the first data transmission period based on the data transmission start signal i and the clock signal b.

以下、第3図に示した第2の実施例の動作例を第4図と
第5図を併用して説明する。第4図は、送られてくる連
送データの一般的なデータ形式を示したものである。連
送データは、先頭ビット同期を確立するためのビット同
期データ(以下BS信号と略す)、次にデータワード同期
を確立するためのワード同期データ(以下WS信号と略
す)、続いて同一内容の伝送データが5回送られてく
る。このデータ形式を1単位として連続的にデータが送
られてくるものとして、以下、動作の説明を行なう。第
5図は、第3図に示した第2の実施例の動作タイミング
例を示した図である。図中の添字nおよびn+1はデー
タの伝送順序を示し、例えば、D4nはn番目の伝送デー
タで4回目の連送データであることを示している。
Hereinafter, an operation example of the second embodiment shown in FIG. 3 will be described with reference to FIGS. 4 and 5. FIG. 4 shows a general data format of transmitted continuous transmission data. The continuous transmission data is the bit synchronization data (hereinafter abbreviated as BS signal) for establishing the leading bit synchronization, the word synchronization data (hereinafter abbreviated as WS signal) for establishing the data word synchronization, and then the same content. Transmission data is sent 5 times. The operation will be described below on the assumption that data is continuously transmitted with this data format as one unit. FIG. 5 is a diagram showing an example of operation timing of the second embodiment shown in FIG. The subscripts n and n + 1 in the figure indicate the data transmission order. For example, D4n indicates the nth transmission data and the fourth consecutive transmission data.

第5図において、BS信号、WS信号を受信するとデータ復
調回路からワード同期信号iが出力される。この信号i
をデータの連送開始タイミング信号として受けると、初
期化信号回路9は初期化信号jを第1回目のデータ伝送
期間のみ“0"とする。これにより、ANDゲート7、8の
出力も“0"となる。この状態では、データ信号aがAND
ゲート4を通って加算回路で0と加算されることになる
ので、加算回路2の出力はデータaの値となる。第1実
施例ではシフトレジスタ1の内容を0にすることで初期
化を行なったが本実施例では上述のように加算回路2の
入力を0に固定することで初期化を行なうものである。
1回目の連送データが終了すると初期化信号jは“1"と
なる。これにより、2回目の連送データ以降においては
第1B図に示した第1実施例と同じ動作となり連送データ
終了後、出力信号hから多数決論理が得られる。
In FIG. 5, when the BS signal and the WS signal are received, the data demodulation circuit outputs the word synchronization signal i. This signal i
Is received as a data transmission start timing signal, the initialization signal circuit 9 sets the initialization signal j to "0" only during the first data transmission period. As a result, the outputs of the AND gates 7 and 8 also become "0". In this state, the data signal a is AND
Since it is added with 0 through the gate 4 in the adder circuit, the output of the adder circuit 2 becomes the value of the data a. In the first embodiment, the initialization is performed by setting the contents of the shift register 1 to 0, but in the present embodiment, the initialization is performed by fixing the input of the adder circuit 2 to 0 as described above.
When the first continuous transmission data is completed, the initialization signal j becomes "1". As a result, after the second consecutive transmission data, the same operation as in the first embodiment shown in FIG. 1B is performed, and after the termination of the consecutive transmission data, the majority logic is obtained from the output signal h.

以上述べたように本実施例においても第1実施例と同様
に加算結果を2進数で0から3までを記憶すればよいの
で2ビット分(2組)の40段シフトレジスタを使用して
5連送データの多数決論理を得ることができ、従来より
シフトレジスタ1組(40段)を削減できるという効果が
ある。
As described above, also in the present embodiment, as in the case of the first embodiment, since it is sufficient to store the addition result from 0 to 3 in binary number, it is necessary to use a 40-stage shift register of 2 bits (2 sets) to obtain 5 bits. It is possible to obtain the majority logic of the continuous transmission data, and it is possible to reduce one shift register set (40 stages) from the conventional one.

〈第3実施例〉 これまで述べた実施例では、多数決論理出力をANDゲー
ト3より得ていたが加算回路2の出力をデコードするこ
とによっても多数決論理出力を得ることができる。
<Third Embodiment> In the embodiments described so far, the majority logic output is obtained from the AND gate 3, but the majority logic output can be obtained by decoding the output of the adder circuit 2.

第6図は本発明の第3の実施例である。第6図におい
て、第4図と同一回路には同一符号を付している。回路
10は加算回路2の出力値が3であるか否かをデコードし
て多数決論理を出力するANDゲートである。
FIG. 6 shows a third embodiment of the present invention. 6, the same circuits as those in FIG. 4 are designated by the same reference numerals. circuit
An AND gate 10 decodes whether the output value of the adder circuit 2 is 3 and outputs a majority logic.

以下、この第3の実施例の動作を第6図および第7図を
併用して説明する。第7図は動作の一例を示すタイミン
グ図である。連送データの開始を示すBS信号、WS信号を
受信するとデータ復調回路から同期信号iが送られてく
る。これを受け初期化信号発生回路9は初期化信号jを
1回目の連送データの期間出力する。これにより、AND
ゲート7、8および9の出力が“0"となり、シフトレジ
スタ1の初期化が行なわれる。これは、第4図に示した
第2の実施例と同じ動作である。2回目の連送データ以
降は、初期化信号jが“1"となるため第1および第2の
実施例と同様にデータ値の加算が行なわれる。本実施例
がこれまでの実施例と異なるのは、5回目の連送データ
が入力される時である。4回目の連送データが終了した
時点で、それまでの加算結果がシフトレジスタ1に記憶
されている。5回目の連送データが入力されると5連送
データの加算結果が加算回路2の出力に得られる。この
出力値をANDゲート13でデコードすることにより、5回
目の連送データを入力すると同時に多数決論理出力を出
力信号qに得ることができる。
The operation of the third embodiment will be described below with reference to FIGS. 6 and 7. FIG. 7 is a timing chart showing an example of the operation. When the BS signal and the WS signal indicating the start of the continuous transmission data are received, the synchronization signal i is transmitted from the data demodulation circuit. In response to this, the initialization signal generation circuit 9 outputs the initialization signal j during the period of the first continuous transmission data. This makes AND
The outputs of the gates 7, 8 and 9 become "0", and the shift register 1 is initialized. This is the same operation as the second embodiment shown in FIG. Since the initialization signal j becomes "1" after the second continuous transmission data, addition of the data values is performed as in the first and second embodiments. The present embodiment is different from the previous embodiments when the fifth consecutive transmission data is input. At the time when the fourth continuous transmission data is completed, the addition result up to that point is stored in the shift register 1. When the fifth consecutive transmission data is input, the addition result of the fifth consecutive transmission data is obtained at the output of the adding circuit 2. By decoding this output value with the AND gate 13, the majority logic output can be obtained as the output signal q at the same time as the fifth consecutive transmission data is input.

このように本実施例によれば多数決論理出力を最終連送
データの受信と同時に得ることができるという効果があ
る。もちろんこれまでの実施例と同様にシフトレジスタ
の数を削減できるという効果もあるのは、言うまでもな
い。
As described above, according to this embodiment, there is an effect that the majority logic output can be obtained at the same time when the final continuous transmission data is received. Needless to say, there is an effect that the number of shift registers can be reduced as in the above-described embodiments.

〈第4実施例〉 上記第3の実施例では、加算回路2の直前にANDゲート
7、8を挿入しシフトレジスタ1の初期化を行なった
が、この初期化は値0と信号aとの加算動作が得られれ
ばよいのでANDゲート7、8をシフトレジスタ1の出力
直後に挿入してもよい。第8図に、このような初期化構
成を採用した本発明の第4の実施例を示す。本実施例で
は、信号jが“0"の期間、加算回路2の入力信号f1、f2
の値が0となり、第6図に示した実施例と同様にシフト
レジスタ1の初期化が行なわれる。この時、NANDゲート
3aの入力も“0"となるのでデータaがANDゲート4で禁
止されることはない。このため、本実施例では第6図に
示した実施例に比べ、ANDゲート6を削減できるという
効果もある。
<Fourth Embodiment> In the third embodiment, the AND gates 7 and 8 are inserted immediately before the adder circuit 2 to initialize the shift register 1. This initialization is performed with a value 0 and a signal a. The AND gates 7 and 8 may be inserted immediately after the output of the shift register 1 as long as the addition operation can be obtained. FIG. 8 shows a fourth embodiment of the present invention which employs such an initialization structure. In this embodiment, while the signal j is "0", the input signals f1 and f2 of the adding circuit 2 are
Becomes 0, and the shift register 1 is initialized as in the embodiment shown in FIG. At this time, NAND gate
Since the input of 3a also becomes "0", the data a is not prohibited by the AND gate 4. Therefore, the present embodiment has an effect that the AND gate 6 can be reduced as compared with the embodiment shown in FIG.

〈第5実施例〉 以上述べた実施例では、シフトレジスタの初期化方法と
しシフトレジスタ1のリセット機能の利用、あるいは、
加算回路2の入力値つまりシフトレジスタ1の出力値を
ANDゲートにより0とすることで等価的に行なってき
た。これらの初期化は、シフトレジスタ1の内容を0と
するものであったが、多数決論理は“1"あるいは“0"の
個数が連送回数の過半数を越えたかどうかを判断するこ
とによって得られることから、シフトレジスタの内容を
0以外に設定しても本発明も適用することができる。
<Fifth Embodiment> In the embodiments described above, the reset function of the shift register 1 is used as the shift register initialization method, or
The input value of the adder circuit 2, that is, the output value of the shift register 1
This is equivalently done by setting it to 0 by the AND gate. These initializations were performed by setting the contents of the shift register 1 to 0, but the majority logic can be obtained by determining whether the number of "1" s or "0" s exceeds the majority of the number of continuous transmissions. Therefore, even if the contents of the shift register are set to other than 0, the present invention can be applied.

以下、このような初期化手法を採用した本発明の第5実
施例を第9図により説明する。第9図に示した実施例
は、3連送から29連送データの多数決論理が得られる多
数決論理回路である。第9図において、回路1aは4ビッ
ト構成のシフトレジスタである。この段数は連送データ
の長さに一致するものであり、ここではこれまでの実施
例と同様に40段とする。回路2aは4ビットのデータに1
ビットのを加算する加算回路であり加算手段に相当する
ものである。回路3bはシフトレジスタ1aの出力値が15で
あることを検出する検出手段に相当するANDゲートであ
る。回路4は禁止手段に相当するANDゲート、回路10aは
加算回路2aの出力値が15であるか否かを判断し多数決論
理を出力するANDゲートである。回路11は4ビットのデ
ータを記憶するラッチ回路、回路12は初期化信号jに従
って加算回路2aの入力を切換える切換回路であり、初期
化信号jが“0"の場合ラッチ12の出力が加算回路2aに入
力されるように構成している。回路9は初期化信号発生
回路であり、第4図に示したものと同一回路である。
The fifth embodiment of the present invention employing such an initialization method will be described below with reference to FIG. The embodiment shown in FIG. 9 is a majority logic circuit which can obtain the majority logic of 29 consecutive transmission data from 3 consecutive transmissions. In FIG. 9, the circuit 1a is a 4-bit shift register. This number of stages corresponds to the length of the continuous transmission data, and here it is set to 40 as in the previous embodiments. Circuit 2a is 1 for 4-bit data
It is an adder circuit for adding bits and corresponds to an adding means. The circuit 3b is an AND gate corresponding to a detecting means for detecting that the output value of the shift register 1a is 15. The circuit 4 is an AND gate corresponding to prohibiting means, and the circuit 10a is an AND gate that determines whether the output value of the adder circuit 2a is 15 and outputs a majority logic. The circuit 11 is a latch circuit for storing 4-bit data, and the circuit 12 is a switching circuit for switching the input of the adder circuit 2a according to the initialization signal j. When the initialization signal j is "0", the output of the latch 12 is the addition circuit. It is configured to be input to 2a. The circuit 9 is an initialization signal generating circuit, which is the same circuit as that shown in FIG.

以下、第5実施例の動作を説明する。連送データaのデ
ータ値を加算回路2aで加算していくのはこれまでの実施
例と同じである。本実施例ではシフトレジスタ1aの初期
値sをラッチ14にあらかじめ設定しておく。連送データ
が開始されるとワード同期信号iが入力される。これに
従って初期化信号発生回路9は初期化信号jを1回目の
連送データの期間に“0"とする。これにより、切換回路
12が切換わりラッチ11の出力が加算回路2aに入力され
る。さらに、初期化信号jはNANDゲート3bにも入力され
ており信号hが“1"に固定される。この結果、初期化信
号jが“0"の期間では、加算回路2aの出力はラッチ11の
設定値sとデータaの値を加算した値となる。2回目の
連送データ以降は初期化信号jが“1"となるため、シフ
トレジスタ1aの出力値とデータaの値を加算した結果が
加算回路2aの出力となる。シフトレジスタ1aの出力値が
15に達するとNANDゲート3bがこれを検出し信号gを“0"
にする。これにより、ANDゲート4の出力信号cが“0"
となり、加算動作が禁止され加算回路2aの出力値も15と
なる。このように本実施例では、連送データの“1"の個
数を初期値となるラッチ11に設定された値sから数え始
め15で計数動作を停止することになる。例えば、ラッチ
11に0を設定すると、0から15まで計数動作を行なうの
でデータaの“1"の数を15個まで計数することができ
る。従って、15が過半数となる29連送データの多数決論
理を求めることができる。
The operation of the fifth embodiment will be described below. The addition of the data value of the continuous transmission data a by the addition circuit 2a is the same as in the previous embodiments. In this embodiment, the initial value s of the shift register 1a is set in the latch 14 in advance. When the continuous transmission data is started, the word synchronization signal i is input. Accordingly, the initialization signal generation circuit 9 sets the initialization signal j to "0" during the first continuous transmission data period. This allows the switching circuit
12 is switched and the output of the latch 11 is input to the adding circuit 2a. Further, the initialization signal j is also input to the NAND gate 3b, and the signal h is fixed at "1". As a result, while the initialization signal j is "0", the output of the adder circuit 2a becomes a value obtained by adding the set value s of the latch 11 and the value of the data a. Since the initialization signal j becomes "1" after the second continuous transmission data, the result of adding the output value of the shift register 1a and the value of the data a becomes the output of the adding circuit 2a. The output value of the shift register 1a is
When it reaches 15, the NAND gate 3b detects this and outputs the signal g as "0".
To As a result, the output signal c of the AND gate 4 is "0".
The addition operation is prohibited and the output value of the addition circuit 2a becomes 15. As described above, in the present embodiment, the counting operation is stopped at 15 when the number of "1" s in the continuous transmission data starts counting from the value s set in the latch 11 as an initial value. For example, the latch
When 0 is set in 11, the counting operation is performed from 0 to 15, so that the number of "1" s of the data a can be counted up to 15. Therefore, it is possible to obtain the majority decision logic of the 29 consecutive transmission data in which 15 is the majority.

第2表はラッチ11に設定する値と多数決論理が得られる
連送数の関係を示したものである。設定値を0から13ま
で変えることにより、3連送から29連送までのデータの
多数決論理を求めることができることを示している。例
えば、ラッチ11の設定値を12とするデータaの“1"の数
を13、14、15と3個まで計数するのでこれまでの実施例
と同様に5連送データの多数決論理を得ることができ
る。
Table 2 shows the relationship between the value set in the latch 11 and the number of continuous transmissions for which the majority logic is obtained. It is shown that by changing the set value from 0 to 13, it is possible to obtain the majority logic of the data from 3 consecutive transmissions to 29 consecutive transmissions. For example, since the number of "1" s of the data a having the set value of the latch 11 as 12 is counted up to 13, 14, 15 and 3, the majority logic of 5 consecutively transmitted data can be obtained as in the previous embodiments. You can

以上述べたように本実施例によれば、4ビット構成の40
段シフトレジスタを用いて29連送データの多数決論理を
得ることができ、シフトレジスタの回路規模を大幅に削
減できるという効果がある。また、本実施例では、ラッ
チ回路11に設定する値を変えるのみで3連送から29連送
データの多数決論理が得られるという効果もある。
As described above, according to the present embodiment, 40 bits having a 4-bit structure are used.
The majority shift logic of 29 consecutive transmission data can be obtained by using the stage shift register, and the circuit scale of the shift register can be significantly reduced. Further, the present embodiment has an effect that the majority logic of 29 consecutive transmission data from 3 consecutive transmission can be obtained only by changing the value set in the latch circuit 11.

第9図に示した第5実施例では、シフトレジスタ2aの初
期値を変えて多数決論理を求める連送数を設定したが、
計数する個数が変更できればよいので、検出手段の検出
値を設定できるようにしても本発明を適用できることは
容易に類推できる。
In the fifth embodiment shown in FIG. 9, the initial value of the shift register 2a is changed to set the number of continuous transmissions for which the majority logic is obtained.
Since it is only necessary to change the number to be counted, it can be easily inferred that the present invention can be applied even if the detection value of the detection means can be set.

〈第6実施例〉 これまで述べてきた実施例では、加算手段として加算回
路を用いてきたがカウンタを用いることによっても本発
明を適用することができる。
<Sixth Embodiment> In the embodiments described so far, the adding circuit is used as the adding means, but the present invention can be applied by using a counter.

第10図に、加算手段としてカウンタを用いた本発明の第
6実施例の構成を示す。この実施例は第1B図に示した第
1実施例における加算回路2をカウンタに置換えて構成
したものであり、第1B図と同一構成部分には同一符号を
付している。第10図において、回路1は2ビット40段シ
フトレジスタである。回路2bはプリセット端子(信号
n)がLowレベルとなった時、シフトレジスタ1の出力
信号g1、g2を内部にセットする機能を持ったプリセット
型のカウンタであり、信号cの立上がりタイミングで内
部にセットされた値をカウントアップするものである。
回路20はデータクロックbとデータクロックbの4倍の
周波数を持つタイミングクロックkを受けカウンタ2bの
カウントクロックとなる信号mとプリセット信号nを出
力するタイミング発生回路である。
FIG. 10 shows the configuration of the sixth embodiment of the present invention using a counter as the addition means. This embodiment is configured by replacing the adder circuit 2 in the first embodiment shown in FIG. 1B with a counter, and the same components as those in FIG. 1B are designated by the same reference numerals. In FIG. 10, the circuit 1 is a 2-bit 40-stage shift register. The circuit 2b is a preset type counter having a function of internally setting the output signals g1 and g2 of the shift register 1 when the preset terminal (signal n) becomes Low level. The circuit 2b is internally set at the rising timing of the signal c. The set value is counted up.
The circuit 20 is a timing generation circuit that receives a data clock b and a timing clock k having a frequency four times as high as that of the data clock b, and outputs a signal m serving as a count clock of the counter 2b and a preset signal n.

第10図に示した第6実施例の動作の説明に先立ち、ま
ず、タイミング発生回路20の構成例および動作を第12
図、第13図を用いて説明する。
Prior to the description of the operation of the sixth embodiment shown in FIG. 10, first, a configuration example and operation of the timing generation circuit 20 will be explained.
This will be described with reference to FIG. 13 and FIG.

第12図はタイミング発生回路20の構成例を示す構成図で
ある。回路22、23はD型フリップフロップ(以下D−FF
と略す)、回路24はNORゲート、回路25はANDゲート、回
路21はインバータである。以下、第12図に示した回路の
動作を第13図のタイミング図を併用して説明する。先に
述べたようにタイミングクロックkはデータクロックb
に同期した4倍周波数のクロック信号である。ここで
は、タイミングクロックkの立上がりでデータクロック
bが変化するとした。まず、D−FF22によりデータクロ
ックbをタイミングクロックkの立下がりタイミングま
で遅延させた信号k1を得る。次にD−FF23により信号k1
をさらにタイミングクロックkの1クロック分遅延さ
せ、その否定信号k2を得る。D−FF22およびD−FF23か
ら得た信号k1、k2の論理和信号mをNORゲート24から、
論理積信号nをNANDゲート25から得て出力する。これら
の動作により第13図に示したタイミングで、信号mおよ
び信号nがタイミング発生回路20より出力される。
FIG. 12 is a configuration diagram showing a configuration example of the timing generation circuit 20. The circuits 22 and 23 are D-type flip-flops (hereinafter referred to as D-FF).
Circuit 24 is a NOR gate, circuit 25 is an AND gate, and circuit 21 is an inverter. The operation of the circuit shown in FIG. 12 will be described below with reference to the timing chart of FIG. As described above, the timing clock k is the data clock b
Is a clock signal having a quadruple frequency synchronized with. Here, it is assumed that the data clock b changes at the rise of the timing clock k. First, a signal k1 obtained by delaying the data clock b until the falling timing of the timing clock k is obtained by the D-FF22. Next, the signal k1 is sent by D-FF23.
Is further delayed by one clock of the timing clock k to obtain its negated signal k2. From the NOR gate 24, the logical sum signal m of the signals k1 and k2 obtained from D-FF22 and D-FF23 is obtained.
The AND signal n is obtained from the NAND gate 25 and output. By these operations, the signal m and the signal n are output from the timing generation circuit 20 at the timing shown in FIG.

第10図に示した実施例では信号mはカウンタ2bのカウン
トクロック信号、信号nはカウンタ2bのプリセット信号
として使用しており、第11図示したタイミングに従っ
て、t1でデータaが変化し、t2でカウンタ2bがカウント
アップし、t3でシフトレジスタ1がシフト動作を実行
し、t4てカウンタ2bのプリセット動作の実行という順序
で繰返し動作が行なわれることになる。
In the embodiment shown in FIG. 10, the signal m is used as the count clock signal of the counter 2b and the signal n is used as the preset signal of the counter 2b. According to the timing shown in FIG. 11, the data a changes at t1 and at t2. The counter 2b counts up, the shift register 1 performs the shift operation at t3, and the preset operation of the counter 2b is performed at t4.

次に、第10図に示した第6実施例全体の動作を第11図を
併用して説明する。本実施例においてシフトレジスタ1
とANDゲート3の動作は第1B図に示した第1実施例の動
作と同じであり、シフトレジスタ1はカウンタ2bのカウ
ント出力を記憶し、ANDゲート3はシフトレジスタ1の
出力値が3であることを検出する。連送データ開始時に
シフトレジスタ1の内容はリセット信号rにより0に初
期化される。ANDゲート3の出力が“0"の場合、データ
入力aの値が“1"ならば信号mがANDゲート4を通過し
カウントクロック信号としてカウンタ2bに供給されカウ
ント動作を行なう。データ入力aの値が“0"ならばAND
ゲート4aで信号mが阻止されカウント動作は行なわれな
いことになる。つまり、第1実施例の加算回路2と同様
にカウンタ2bはデータ入力aの“1"の数を計数すること
になる。計数動作が進み計数値が3に達するとANDゲー
ト3がこれを検出して出力を“1"にする。これにより、
ANDゲート4aが閉じられカウンタ2bのカウントクロック
信号cが禁止される。つまり、ANDゲート4aにより、カ
ウンタ2bのカウント動作が禁止されることになる。この
結果、本実施例においても第1実施例と同様にデータの
“1"の数が3個以上ある場合はシフトレジスタ1内に記
憶されているカウント値が3のまま保持されることにな
り、この値をANDゲート3で検出することにより多数決
論理を得ることができる。
Next, the operation of the entire sixth embodiment shown in FIG. 10 will be described with reference to FIG. In this embodiment, the shift register 1
The operation of the AND gate 3 is the same as the operation of the first embodiment shown in FIG. 1B, the shift register 1 stores the count output of the counter 2b, and the AND gate 3 outputs the output value of the shift register 1 of 3. Detect that there is. At the start of the continuous transmission data, the contents of the shift register 1 are initialized to 0 by the reset signal r. When the output of the AND gate 3 is "0" and the value of the data input a is "1", the signal m passes through the AND gate 4 and is supplied to the counter 2b as the count clock signal to perform the counting operation. AND if the value of data input a is "0"
The signal m is blocked by the gate 4a and the counting operation is not performed. That is, like the adder circuit 2 of the first embodiment, the counter 2b counts the number of "1" of the data input a. When the counting operation progresses and the count value reaches 3, the AND gate 3 detects this and sets the output to "1". This allows
The AND gate 4a is closed and the count clock signal c of the counter 2b is prohibited. That is, the AND gate 4a prohibits the counting operation of the counter 2b. As a result, also in the present embodiment, as in the first embodiment, when the number of data "1" is 3 or more, the count value stored in the shift register 1 is held as 3. By detecting this value with the AND gate 3, the majority logic can be obtained.

以上述べたように加算手段としてカウンタ回路を用いた
本実施例においても2列40段のシフトレジスタで5連送
データの多数決論理を得ることができ、シフトレジスタ
の数を削減できるという効果が得られる。さらに、本実
施例では第1実施例の計数手段をカウンタで置換えた例
を示したが、第2、第3、第4および第5の実施例に対
しても加算手段にカウンタ回路を適用できることは、容
易に類推することができる。
As described above, also in the present embodiment using the counter circuit as the adding means, the majority logic of 5 consecutively transmitted data can be obtained by the shift register of 2 rows and 40 stages, and the effect that the number of shift registers can be reduced is obtained. To be Further, in the present embodiment, an example in which the counting means of the first embodiment is replaced with a counter is shown, but the counter circuit can be applied to the adding means also in the second, third, fourth and fifth embodiments. Can be easily analogized.

これまでの実施例ではデータの“1"の数を計数したが、
論理的に“1"か“0"かはインバータ回路1個で変更でき
る。従って、本発明は“0"の数を数える(加算する)場
合にも適用できることは自明である。また、データの長
さもシフトレジスタの段数を変更することにより40ビッ
ト以外のものに対しても本発明を適用できることは明白
である。さらに、“1"または“0"の個数を初期値から減
算するようにも変更し得る。
In the above examples, the number of "1" s in the data was counted,
Logically "1" or "0" can be changed with one inverter circuit. Therefore, it is obvious that the present invention can be applied to the case of counting (adding) the number of "0" s. Further, it is obvious that the present invention can be applied to data other than 40 bits by changing the number of stages of the shift register. Further, the number of "1" or "0" may be changed to be subtracted from the initial value.

[発明の効果] 以上述べたように本発明によれば、k組のシフトレジス
タを用いて(2k+1−3)連送のデータまでの多数決論理
が得られるので、シフトレジスタの数を大幅に削減でき
回路規模を削減できるという効果がある。
[Effects of the Invention] As described above, according to the present invention, the majority decision logic up to (2 k + 1 -3) continuous transmission data can be obtained by using k sets of shift registers. This has the effect of being able to significantly reduce the circuit scale.

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

第1A図は本発明の構成を示すブロック図、第1B図は本発
明の第1実施例の構成図、第2図は第1実施例の動作例
を示すタイミング図、第3図は本発明の第2実施例の構
成図、第4図は伝送されてくる連送データの一例を示す
データ構成図、第5図は第2実施例の動作例を示すタイ
ミング図、第6図は本発明の第3実施例の構成図、第7
図は第3実施例の動作例を示すタイミング図、第8図は
本発明の第4実施例の構成図、第9図は本発明の第5実
施例の構成図、第10図は本発明の第6実施例の構成図、
第11図は第6実施例の動作例を示すタイミング図、第12
図は第11図に示したタイミング発生回路20の構成例を示
す回路図、第13図は第12図に示した回路の動作例を示す
タイミング図である。 1,1a……シフトレジスタ、2,2a……加算回路、2b……カ
ウンタ、3,4,4a,7,8……ANDゲート、3a,3b……NANDゲー
ト、9……初期化信号発生回路。
FIG. 1A is a block diagram showing the configuration of the present invention, FIG. 1B is a configuration diagram of the first embodiment of the present invention, FIG. 2 is a timing diagram showing an operation example of the first embodiment, and FIG. 3 is the present invention. 2 is a configuration diagram of a second embodiment, FIG. 4 is a data configuration diagram showing an example of transmitted continuous transmission data, FIG. 5 is a timing diagram showing an operation example of the second embodiment, and FIG. 6 is the present invention. 7 is a block diagram of the third embodiment of FIG.
FIG. 8 is a timing diagram showing an operation example of the third embodiment, FIG. 8 is a configuration diagram of the fourth embodiment of the present invention, FIG. 9 is a configuration diagram of the fifth embodiment of the present invention, and FIG. 6 is a block diagram of a sixth embodiment of FIG.
FIG. 11 is a timing chart showing an operation example of the sixth embodiment,
11 is a circuit diagram showing a configuration example of the timing generation circuit 20 shown in FIG. 11, and FIG. 13 is a timing diagram showing an operation example of the circuit shown in FIG. 1,1a …… Shift register, 2,2a …… Adding circuit, 2b …… Counter, 3,4,4a, 7,8 …… AND gate, 3a, 3b …… NAND gate, 9 …… Initialization signal generation circuit.

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】(2n−1)回(n≧2)連送されてくるm
ビットのシリアルデータの多数決論理回路において、 kビット構成でm段のシフトレジスタと、 該シフトレジスタのkビット出力データに、前記シリア
ルデータに対応した1ビットデータを順次加算し、加算
によって得られたkビットの加算結果を上記シフトレジ
スタに入力する加算手段と、 上記シフトレジスタのkビット出力データが予め定めら
れた値sと一致したか否かを検出する検出手段と、 該一致検出手段の一致検出信号に従って前記加算手段の
加算動作を禁止する禁止手段と、 前記シフトレジスタのm個のkビットデータをすべて
(s−n)に初期化する初期化手段と、 第(2n−1)回目の連送終了後に上記シフトレジスタか
ら出力されるm個のkビット出力データの各々が、前記
sに一致したか否を検出し、各検出結果を多数決論理結
果として出力する手段とを備え、 前記kは、2k−1≧nを満たし、前記Sは、s=2k−1
を満たし、前記加算手段は、加算動作を禁止された場合
に前記シフトレジスタのkビット出力データを前記加算
結果として上記シフトレジスタに入力し、前記第(2n−
1)回目の連送終了後に上記シフトレジスタから出力さ
れるm個のkビット出力データは、(2n−1)回目に連
送されたmビットのシリアルデータの各々について行わ
れた前記加算手段の加算動作によるm個の加算結果であ
ることを特徴とする多数決論理回路。
1. m that is sent continuously (2n-1) times (n ≧ 2)
In a majority logic circuit of bit serial data, a shift register having a k-bit configuration and m stages, and 1-bit data corresponding to the serial data are sequentially added to the k-bit output data of the shift register, and obtained by addition. Addition means for inputting a k-bit addition result to the shift register, detection means for detecting whether or not the k-bit output data of the shift register matches a predetermined value s, and the coincidence detection means Prohibiting means for prohibiting the adding operation of the adding means in accordance with the detection signal; initialization means for initializing all m pieces of k-bit data of the shift register to (s−n); and (2n−1) th time After the end of the continuous transmission, it is detected whether or not each of the m pieces of k-bit output data output from the shift register coincides with the above s, and the respective detection results are detected. And means for outputting the determined logical result, said k satisfies 2 k -1 ≧ n, the S is s = 2 k -1
And the addition means inputs the k-bit output data of the shift register to the shift register as the addition result when the addition operation is prohibited, and adds the second (2n−
1) The m number of k-bit output data output from the shift register after the completion of the first consecutive transmission is the sum of the adding means performed for each of the (2n−1) th consecutive m-bit serial data. A majority logic circuit which is the result of addition of m pieces by an addition operation.
【請求項2】前記シリアルデータに対応した1ビットデ
ータは、前記シリアルデータの各ビットである特許請求
の範囲第1項記載の多数決論理回路。
2. The majority logic circuit according to claim 1, wherein the 1-bit data corresponding to the serial data is each bit of the serial data.
【請求項3】前記シリアルデータに対応した1ビットデ
ータは、前記シリアルデータの各反転ビットである特許
請求の範囲第1項記載の多数決論理回路。
3. The majority logic circuit according to claim 1, wherein the 1-bit data corresponding to the serial data is each inverted bit of the serial data.
【請求項4】前記加算手段は、前記シフトレジスタのk
ビット出力データをプリセットし、前記シリアルデータ
に対応した1ビットデータの値に応じて増分動作を行う
と共に出力を前記シフトレジスタに入力することによ
り、プリセットしたシフトレジスタのkビット出力デー
タに前記シリアルデータに対応した1ビットデータを加
算した前記kビットの加算結果を前記シフトレジスタに
入力するカウンタを有し、 前記禁止手段は、前記一致検出信号に従って、前記前記
カウンタの増分動作を禁止することにより前記加算手段
の加算動作を禁止する特許請求の範囲第1項記載の多数
決論理回路。
4. The addition means includes k of the shift register.
By presetting bit output data, performing an increment operation according to the value of 1-bit data corresponding to the serial data, and inputting the output to the shift register, the serial data is converted into the k-bit output data of the preset shift register. Has a counter for inputting the k-bit addition result obtained by adding 1-bit data corresponding to the above into the shift register, and the prohibiting means prohibits the increment operation of the counter according to the match detection signal. The majority logic circuit according to claim 1, wherein the adding operation of the adding means is prohibited.
【請求項5】(2n−1)回(n≧2)連送されてくるm
ビットのシリアルデータの多数決論理回路において、 kビット構成でm段のシフトレジスタと、 該シフトレジスタのkビット出力データに、前記シリア
ルデータに対応した1ビットデータを順次加算し、加算
によって得られたkビットの加算結果を上記シフトレジ
スタに入力する加算手段と、 上記シフトレジスタのkビット出力データが予め定めら
れた値sと一致したか否かを検出する検出手段と、 該一致検出手段の一致検出信号に従って前記加算手段の
加算動作を禁止する禁止手段と、 前記シフトレジスタのm個のkビットデータをすべて
(s−n)に初期化する初期化手段と、 第(2n−1)回目に連送されたmビットのシリアルデー
タに対応した1ビットデータと上記シフトレジスタから
出力されるkビット出力データとの前記加算手段による
m個の加算結果の各々が、前記sに一致したか否を検出
し、各検出結果を多数決論理結果として出力する手段と
を備え、 前記kは、2k−1≧nを満たし、前記Sは、s=2k−1
を満たし、前記加算手段は、加算動作を禁止された場合
に前記シフトレジスタのkビット出力データを、そのま
ま上記シフトレジスタに入力することを特徴とする多数
決論理回路。
5. An m sent continuously (2n-1) times (n ≧ 2)
In a majority logic circuit of bit serial data, a shift register having a k-bit configuration and m stages, and 1-bit data corresponding to the serial data are sequentially added to the k-bit output data of the shift register, and obtained by addition. Addition means for inputting a k-bit addition result to the shift register, detection means for detecting whether or not the k-bit output data of the shift register matches a predetermined value s, and the coincidence detection means Prohibiting means for prohibiting the adding operation of the adding means in accordance with the detection signal; initialization means for initializing all m pieces of k-bit data in the shift register to (s−n); and (2n−1) th time The addition of 1-bit data corresponding to serially transmitted m-bit serial data and k-bit output data output from the shift register Each of the m addition result by stage, detects whether matches in the s, the respective detection results and means for outputting as a majority logic result, the k satisfies 2 k -1 ≧ n, The S is s = 2 k −1
And the addition means inputs the k-bit output data of the shift register to the shift register as it is when the addition operation is prohibited.
【請求項6】前記シリアルデータに対応した1ビットデ
ータは、前記シリアルデータの各ビットである特許請求
の範囲第5項記載の多数決論理回路。
6. The majority logic circuit according to claim 5, wherein the 1-bit data corresponding to the serial data is each bit of the serial data.
【請求項7】前記シリアルデータに対応した1ビットデ
ータは、前記シリアルデータの各反転ビットである特許
請求の範囲第5項記載の多数決論理回路。
7. The majority logic circuit according to claim 5, wherein the 1-bit data corresponding to the serial data is each inverted bit of the serial data.
【請求項8】前記加算手段は、前記シフトレジスタのk
ビット出力データをプリセットし、前記シリアルデータ
に対応した1ビットデータの値に応じて増分動作を行う
と共に出力を前記シフトレジスタに入力することによ
り、プリセットしたシフトレジスタのkビット出力デー
タに前記シリアルデータに対応した1ビットデータを加
算した前記kビットの加算結果を前記シフトレジスタに
入力するカウンタを有し、 前記禁止手段は、前記一致検出信号に従って、前記前記
カウンタの増分動作を禁止することにより前記加算手段
の加算動作を禁止する特許請求の範囲第5項記載の多数
決論理回路。
8. The addition means includes k of the shift register.
By presetting bit output data, performing an increment operation according to the value of 1-bit data corresponding to the serial data, and inputting the output to the shift register, the serial data is converted into the k-bit output data of the preset shift register. Has a counter for inputting the k-bit addition result obtained by adding 1-bit data corresponding to the above into the shift register, and the prohibiting means prohibits the increment operation of the counter according to the match detection signal. The majority logic circuit according to claim 5, wherein the adding operation of the adding means is prohibited.
JP23026687A 1987-09-14 1987-09-14 Majority logic circuit Expired - Fee Related JPH0797743B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23026687A JPH0797743B2 (en) 1987-09-14 1987-09-14 Majority logic circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23026687A JPH0797743B2 (en) 1987-09-14 1987-09-14 Majority logic circuit

Publications (2)

Publication Number Publication Date
JPS6473820A JPS6473820A (en) 1989-03-20
JPH0797743B2 true JPH0797743B2 (en) 1995-10-18

Family

ID=16905106

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23026687A Expired - Fee Related JPH0797743B2 (en) 1987-09-14 1987-09-14 Majority logic circuit

Country Status (1)

Country Link
JP (1) JPH0797743B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4383806B2 (en) * 2003-08-29 2009-12-16 株式会社日立国際電気 Optical digital transmission device

Also Published As

Publication number Publication date
JPS6473820A (en) 1989-03-20

Similar Documents

Publication Publication Date Title
US5410550A (en) Asynchronous latch circuit and register
GB1478736A (en) Viterbi decoder
US4667338A (en) Noise elimination circuit for eliminating noise signals from binary data
KR19980024989A (en) Circuit device with combination block placed between registers
GB2359706A (en) Synchronising data and clock signals using a programmable delay circuit
JPH11275168A (en) Data communication equipment
US5220585A (en) Serial clock generating circuit
US7733248B2 (en) Measuring and regenerating a variable pulse width
JPH0797743B2 (en) Majority logic circuit
KR19980024978A (en) Pattern Combination Device
US5590371A (en) Serial communication circuit on an LSI chip and communicating with another microcomputer on the chip
JP2024022445A (en) entropy source circuit
US6088400A (en) Receiving device for synchronous serial transmission data
AU744820B2 (en) A circuit and method for receiving data
US6963887B2 (en) Method and device for performing data pattern matching
JPH0738630B2 (en) Digital pattern decoder and decoding method
US6320881B1 (en) Method, architecture and circuit for locking a data transmission frame
JPS61158232A (en) Sequential preamble signal detecting circuit
JPH06188872A (en) Sync protection circuit
JP2814978B2 (en) Frame synchronization circuit
JP3197058B2 (en) Pulse counter
KR0120033Y1 (en) 155M (155M) Synchronous Optical Transmitter Non-One (B1) Byte Section Error Inspection Circuit
KR100273246B1 (en) Apparatus for correcting error of state machine
KR100213256B1 (en) 5 bit and 16 bit cyclic redundancy check circuit
KR940006297Y1 (en) Receiver and transmitter circuit

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees