JPH04235412A - Majority circuit - Google Patents

Majority circuit

Info

Publication number
JPH04235412A
JPH04235412A JP171491A JP171491A JPH04235412A JP H04235412 A JPH04235412 A JP H04235412A JP 171491 A JP171491 A JP 171491A JP 171491 A JP171491 A JP 171491A JP H04235412 A JPH04235412 A JP H04235412A
Authority
JP
Japan
Prior art keywords
information
shift
bits
output
circuit
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.)
Withdrawn
Application number
JP171491A
Other languages
Japanese (ja)
Inventor
Hiroshi Kubota
広志 久保田
Kunihiko Kimiyama
邦彦 公山
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP171491A priority Critical patent/JPH04235412A/en
Publication of JPH04235412A publication Critical patent/JPH04235412A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To provide the majority circuit with a simple circuit and to sufficiently apply the circuit to the high speed operations. CONSTITUTION:The load values for plural bits is preliminarily set in a shift register 13. This circuit is composed of a decision part 16 that the load values are shifted according to the enable information and the shift information and the majority decision is performed by the moving amount of the load value and a conversion part 15 provided with plural converters 10a to 10d obtaining the shift information deciding that the digital signals are inputted by 2 bits and that the load values are shifted to the left or right according to the number that the 2 bits are multiplied by 0.1 and the enable information deciding input enable in the shift register 13.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は多数決回路に関する。詳
しくは、ビタビ復号器等で誤り訂正されて出力された複
数出力の多数決をとる回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to majority voting circuits. Specifically, the present invention relates to a circuit that takes a majority vote among a plurality of outputs that have been error-corrected and output by a Viterbi decoder or the like.

【0002】0002

【従来の技術】デジタル信号を扱う装置、例えば無線装
置の受信側装置等においては、符号化されたデジタル信
号を元の状態に戻す、つまり復号化する際にビタビ復号
器を用いることがある。ビタビ復号器は、誤り訂正を行
なうに際してデジタル信号のある1ビット分を例えば8
通り(8ビット)の0又は1の候補として表現して出力
する。そこで、8ビットとして出力された0又は1の多
数決をとり、多い方を上記1ビット分のデジタル信号と
決定する。このような多数決をとる際に用いられる回路
が多数決回路である。
2. Description of the Related Art In devices that handle digital signals, such as receiving devices of wireless devices, a Viterbi decoder is sometimes used to restore encoded digital signals to their original state, that is, to decode them. When performing error correction, the Viterbi decoder converts one bit of the digital signal into 8 bits, for example.
It is expressed as a 0 or 1 candidate (8 bits) and output. Therefore, a majority vote is taken between the 0s and 1s output as 8 bits, and the one with the larger number is determined as the digital signal for 1 bit. A circuit used to take such a majority decision is a majority decision circuit.

【0003】図3は従来の一例のブロック図を示す。ビ
タビ復号器から出力された8ビット(例えば、1,1,
1,0,0,0,0,0)のデジタル信号(前記のよう
に、誤り訂正される前の1ビット分のデジタル信号)は
2ビットずつ1ビット加算器1a,1b,1c,1dに
入力され、加算器1aからは1,0(10進法表現では
「2」、以下、10進法表現を「  」で示す)加算器
16からは0,1(「1」)、加算器1c,1dからは
0,0(「0」)が夫々出力される。加算器1a,1b
の出力及び加算器1c,1dの出力は夫々2ビット加算
器2a,2bに入力され、加算器2aからは0,1,1
(「3」)、加算器2bからは0,0,0(「0」)が
夫々出力される。
FIG. 3 shows a block diagram of a conventional example. The 8 bits output from the Viterbi decoder (e.g. 1, 1,
1, 0, 0, 0, 0, 0) (as mentioned above, the 1-bit digital signal before error correction) is sent 2 bits at a time to 1-bit adders 1a, 1b, 1c, and 1d. 1,0 from adder 1a ("2" in decimal notation; hereinafter, decimal notation is indicated by ""), 0,1 ("1") from adder 16, adder 1c , 1d output 0 and 0 (“0”), respectively. Adders 1a, 1b
and the outputs of adders 1c and 1d are input to 2-bit adders 2a and 2b, respectively, and from adder 2a, 0, 1, 1
(“3”), and 0, 0, 0 (“0”) are output from the adder 2b, respectively.

【0004】加算器2a,2bの出力は3ビット加算器
3に入力され、加算器3からは0,0,1,1(「3」
)が出力されて比較器4に入力され、ここで比較値であ
る0,1,0,0(「4」)と比較される。この場合は
3ビット加算器3の出力の方が小さいので、比較器4か
らは0が出力される。
[0004] The outputs of the adders 2a and 2b are input to a 3-bit adder 3, and the outputs from the adder 3 are 0, 0, 1, 1 ("3"
) is output and input to the comparator 4, where it is compared with the comparison value 0, 1, 0, 0 ("4"). In this case, since the output of the 3-bit adder 3 is smaller, the comparator 4 outputs 0.

【0005】図4は従来の他の例のブロック図を示す。 ビタビ復号器からの8ビットのデジタル信号(1,1,
1,0,0,0,0,0)はパラレル/シリアル変換器
5にてシリアル信号に変換され、カウンタ6にイネーブ
ル信号として入力されて1の数をカウントされ、カウン
タ6より0,0,1,1(「3」)が出力される。カウ
ンタ6の出力は比較器4で比較値と比較され、比較器4
からは0が出力される。
FIG. 4 shows a block diagram of another conventional example. 8-bit digital signal from Viterbi decoder (1, 1,
1, 0, 0, 0, 0, 0) is converted into a serial signal by the parallel/serial converter 5, and is input as an enable signal to the counter 6 to count the number of 1s. 1,1 (“3”) is output. The output of the counter 6 is compared with the comparison value in the comparator 4.
outputs 0.

【0006】[0006]

【発明が解決しようとする課題】図3に示す従来例は、
多くの加算器を用いた構成であるため、回路規模が大き
くなり、安価に構成できない問題点があった。
[Problems to be Solved by the Invention] The conventional example shown in FIG.
Since the configuration uses many adders, the circuit scale becomes large and there is a problem that it cannot be configured at low cost.

【0007】図4に示す従来例は、パラレル/シリアル
変換器5の読出し周波数がビタビ復号器の読出し周波数
の8倍必要であり、高速動作に適当でない問題点があっ
た。本発明は、簡単な回路構成で、しかも高速動作にも
十分適用できる多数決回路を提供することを目的とする
The conventional example shown in FIG. 4 has a problem in that the read frequency of the parallel/serial converter 5 is eight times the read frequency of the Viterbi decoder, making it unsuitable for high-speed operation. SUMMARY OF THE INVENTION An object of the present invention is to provide a majority voting circuit that has a simple circuit configuration and is sufficiently applicable to high-speed operation.

【0008】[0008]

【課題を解決するための手段】本発明になる多数決回路
は、シフトレジスタに予め複数ビットのロード値が設定
されており、該ロード値がイネーブル情報,シフト情報
に応じて左又は右へシフトされ、該ロード値のうちの所
定数ビットに1又は0があるか否かで多数決判定を行な
う判定部と、入力デジタル信号を2ビットずつ入力され
、該2ビットの0,1の数に応じて上記ロード値を左又
は右へシフトさせることを決定するシフト情報と、上記
シフトレジスタの入力イネーブルを決定するイネーブル
情報とを得る複数の変換器を設けられた変換部とを設け
た構成とする。
[Means for Solving the Problems] In the majority voting circuit according to the present invention, a load value of multiple bits is set in advance in a shift register, and the load value is shifted to the left or right according to enable information and shift information. , a determination unit that performs a majority decision based on whether or not a predetermined number of bits of the load value are 1 or 0; The converter includes a converter provided with a plurality of converters for obtaining shift information that determines to shift the load value to the left or right and enable information that determines input enable of the shift register.

【0009】[0009]

【作用】図1において、変換器10a〜10dの個々の
2つの入力が0,1、又は1,0の時は0も1も同数で
あるのでイネーブル情報は0、2つの入力が0,0の時
は0は多いのでシフト情報は0(左)で、イネーブル情
報は1、2つの入力が1,1の時は1が多いのでシフト
情報は1(右)で、イネーブル情報は1に変換する。変
換器10a〜10dの各イネーブル情報及びシフト情報
出力によってローテートシフトレジスタ13のロード値
(例えば、0,0,0,0,1,0,0,0)が順次シ
フトされ、最終的に0,0,0,1,0,0,0,0と
なる。ローテートシフトレジスタ13では右側4ビット
出力に1があるか否かで多数決判定を行なっているので
、この場合は0が決定される。
[Operation] In FIG. 1, when the two inputs of the converters 10a to 10d are 0, 1, or 1, 0, the enable information is 0, and the two inputs are 0, 0 because 0 and 1 are the same number. When , there are many 0s, so the shift information is 0 (left) and the enable information is 1. When the two inputs are 1 and 1, there are many 1s, so the shift information is 1 (right), and the enable information is converted to 1. do. The load value (for example, 0, 0, 0, 0, 1, 0, 0, 0) of the rotating shift register 13 is sequentially shifted by each enable information and shift information output of the converters 10a to 10d, and finally 0, 0, 0, 1, 0, 0, 0, 0. In the rotating shift register 13, a majority decision is made based on whether or not there is a 1 in the right 4-bit output, so in this case, 0 is determined.

【0010】例えば8ビットの入力デジタル信号をイネ
ーブル情報及びシフト情報の2つに同時に分けてローテ
ートシフトレジスタ13を動作させているので、一連の
8ビット情報につき4回のクロックがあればよく、つま
り、シフトレジスタ13を動作させる周波数は入力デジ
タル信号の周波数の4倍あればよく、パラレル/シリア
ル変換器の読出し周波数が入力デジタル信号周波数の8
倍必要だった従来例に比しては時間的に2倍の余裕がで
き、高速動作に適する。又、回路構成を簡単にできる。
For example, since the rotating shift register 13 is operated by simultaneously dividing an 8-bit input digital signal into two pieces of enable information and shift information, four clocks are required for each series of 8-bit information, that is, , the frequency for operating the shift register 13 should be four times the frequency of the input digital signal, and the readout frequency of the parallel/serial converter should be eight times the frequency of the input digital signal.
Compared to the conventional example, which required twice as much time, there is twice as much time, making it suitable for high-speed operation. Moreover, the circuit configuration can be simplified.

【0011】[0011]

【実施例】図1は本発明の一実施例のブロック図を示す
。同図中、10a〜10dは変換器で、エクスクルシブ
ノアゲート及びアンドゲートにて構成されており、図2
に示す如く、2つの入力■,■に対してエクスクルシブ
ノアゲートからはイネーブル情報、アンドゲートからは
シフト情報を出力する。11,12はシフトレジスタで
、変換器10a〜10dから出力される夫々イネーブル
情報,シフト情報をシフトする。変換器10a〜10d
、シフトレジスタ11,12にて変換部15が構成され
ている。13はローテートシフトレジスタで、例えば0
,0,0,0,1,0,0,0というロード値が予め設
定されており、シフトレジスタ11,12の出力に応じ
てそのロード値をシフトされ、右側の4ビットに出力を
得る。ローテートシフトレジスタ13は、その4ビット
出力に1があるか否かによって多数決判定を行なうので
、そのロード値は例えば1が1個所設けられている。 14は判定回路で、オアゲートにて構成されており、判
定結果を得る。ローテートシフトレジスタ13、判定回
路14にて判定部16が構成されている。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 shows a block diagram of an embodiment of the present invention. In the figure, 10a to 10d are converters, which are composed of exclusive NOR gates and AND gates.
As shown in FIG. 2, the exclusive NOR gate outputs enable information and the AND gate outputs shift information for the two inputs (1) and (2). Shift registers 11 and 12 shift enable information and shift information output from the converters 10a to 10d, respectively. Converters 10a-10d
, shift registers 11 and 12 constitute a conversion section 15. 13 is a rotating shift register, for example 0
, 0, 0, 0, 1, 0, 0, 0 are set in advance, and the load values are shifted according to the outputs of the shift registers 11 and 12, and the output is obtained in the right four bits. Since the rotating shift register 13 makes a majority decision based on whether or not there is a 1 in its 4-bit output, the load value is set to 1 at one location, for example. Reference numeral 14 denotes a judgment circuit, which is composed of an OR gate and obtains a judgment result. The rotating shift register 13 and the determining circuit 14 constitute a determining section 16.

【0012】いま、ビタビ復号器の出力を従来例の場合
と同様に1,1,1,0,0,0,0,0とすると、変
換器10aからは1,1、変換器10bからは0,0、
変換器10c,10dからは1,0が夫々出力され、イ
ネーブル情報及びシフト情報としてシフトレジスタ11
,12に入力される。つまり、入力■,■が1,0、又
は、0,1の時は0も1も同数であるのでイネーブル情
報は0、入力■,■が0,0の時は0が多いのでシフト
情報は0(左)で、イネーブル情報は1、入力■,■が
1,1の時は1が多いのでシフト情報は1(右)で、イ
ネーブル情報は1に変換する。
Now, if the output of the Viterbi decoder is 1, 1, 1, 0, 0, 0, 0, 0 as in the conventional example, then 1, 1 is output from the converter 10a, and 1, 1 is output from the converter 10b. 0,0,
1 and 0 are output from the converters 10c and 10d, respectively, and are sent to the shift register 11 as enable information and shift information.
, 12. In other words, when the inputs ■, ■ are 1, 0, or 0, 1, there are the same number of 0s and 1s, so the enable information is 0; when the inputs ■, ■ are 0, 0, there are many 0s, so the shift information is 0 (left) and the enable information is 1. When the inputs ■ and ■ are 1 and 1, there are many 1s, so the shift information is 1 (right) and the enable information is converted to 1.

【0013】シフトレジスタ11,12からは先ず変換
器10dの出力(イネーブル情報1、シフト情報0)が
出力され、これにより、ローテートシフトレジスタ13
のロード値は左へシフトされて0,0,0,1,0,0
,0,0となる。次に、シフトレジスタ11,12から
は変換器10cの出力(イネーブル情報1、シフト情報
0)が出力され、これにより、ローテートシフトレジス
タ13のロード値は更に左へシフトされて0,0,1,
0,0,0,0,0となる。続いて、シフトレジスタ1
1,12からは変換器10bの出力(イネーブル情報0
、シフト情報0)が出力され、これにより、ローテート
シフトレジスタ13のロード値は変化しない。更に、シ
フトレジスタ11,12からは変換器10aの出力(イ
ネーブル情報1、シフト情報1)が出力され、これによ
り、ローテートシフトレジスタ13のロード値は右へシ
フトされて0,0,0,1,0,0,0,0となる。
First, the output of the converter 10d (enable information 1, shift information 0) is output from the shift registers 11 and 12, and as a result, the rotating shift register 13
The load value of is shifted left to 0, 0, 0, 1, 0, 0
,0,0. Next, the output of the converter 10c (enable information 1, shift information 0) is output from the shift registers 11 and 12, and thereby the load value of the rotating shift register 13 is further shifted to the left to 0, 0, 1. ,
It becomes 0, 0, 0, 0, 0. Next, shift register 1
From 1 and 12, the output of converter 10b (enable information 0
, shift information 0) are output, so that the load value of the rotating shift register 13 does not change. Furthermore, the output of the converter 10a (enable information 1, shift information 1) is output from the shift registers 11 and 12, and the load value of the rotating shift register 13 is thereby shifted to the right and becomes 0, 0, 0, 1. ,0,0,0,0.

【0014】ローテートシフトレジスタ13の出力は0
,0,0,0であり、判定回路14にてこれらのノアが
とられ、出力0として取出される。この場合、ローテー
トシフトレジスタ13の出力は常に判定回路14を介し
て出力されているが、変換器10aの出力によってシフ
トが行なわれるタイミングをパルス発生器(図示せず)
などで作り、このタイミングにおける判定回路14の出
力を採用する。これにより、ビタビ復号器の出力は0で
あることが決定される。
The output of the rotating shift register 13 is 0.
. In this case, the output of the rotating shift register 13 is always outputted via the determination circuit 14, but the timing at which the shift is performed is determined by a pulse generator (not shown) based on the output of the converter 10a.
etc., and the output of the determination circuit 14 at this timing is adopted. This determines that the output of the Viterbi decoder is zero.

【0015】本発明では、ビタビ復号器からの8ビット
の出力をイネーブル情報及びシフト情報の2つに同時に
分けてローテートシフトレジスタ13を動作させている
ので、一連の8ビットの情報につき4回のクロックがあ
ればよく、つまり、シフトレジスタ11,12の読出し
周波数はビタビ復号器の読出し周波数の4倍あればよく
、図4に示す従来例(パラレル/シリアル変換器5の読
出し周波数がビタビ復号器の読出し周波数の8倍必要)
に比して時間的に2倍の余裕ができ、より高速動作に適
している。又、図3に示す従来例に比して回路構成を簡
単にでき、安価に構成できる。
In the present invention, since the 8-bit output from the Viterbi decoder is simultaneously divided into two parts, enable information and shift information, and the rotating shift register 13 is operated, a series of 8-bit information is processed four times. In other words, the readout frequency of the shift registers 11 and 12 only needs to be four times the readout frequency of the Viterbi decoder. (requires 8 times the readout frequency)
It has twice the time margin compared to , and is suitable for higher-speed operation. Furthermore, the circuit configuration can be simplified and inexpensively compared to the conventional example shown in FIG.

【0016】なお、上記実施例では入力デジタル信号を
8ビットとしたが、これはビタビ復号器の構成に応じて
適宜設定され、8ビットよりも多くても少なくても上記
の場合と同様の動作によって多数決がとられる。
[0016] In the above embodiment, the input digital signal is 8 bits, but this can be set as appropriate depending on the configuration of the Viterbi decoder, and the same operation as in the above case can be achieved even if the number is more or less than 8 bits. A majority vote will be taken.

【0017】又、入力デジタル信号の0,1の数が同数
の場合は、ローテートシフトレジスタ13の出力は1と
定めておく。
Further, when the number of 0's and 1's in the input digital signal is the same, the output of the rotating shift register 13 is set to 1.

【0018】[0018]

【発明の効果】本発明によれば、多数決処理をイネーブ
ル情報及びシフト情報の2つの情報を用いて行なってい
るので、入力デジタル信号の周波数の4倍の周波数のク
ロックで動作させればよく、カウンタを用いていた従来
例に比して時間的な余裕ができ、より高速動作に適して
おり、又、加算器を縦続して用いていた従来例よりも回
路構成を簡単にでき、安価に構成できる。
According to the present invention, since majority voting processing is performed using two pieces of information, enable information and shift information, it is only necessary to operate with a clock having a frequency four times the frequency of the input digital signal. Compared to the conventional example that used a counter, it has more time and is suitable for higher-speed operation, and the circuit configuration is simpler and cheaper than the conventional example that uses adders in series. Can be configured.

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

【図1】本発明の一実施例のブロック図である。FIG. 1 is a block diagram of one embodiment of the present invention.

【図2】変換器の動作を説明する図である。FIG. 2 is a diagram illustrating the operation of a converter.

【図3】従来の一例のブロック図である。FIG. 3 is a block diagram of a conventional example.

【図4】従来の他の例のブロック図である。FIG. 4 is a block diagram of another conventional example.

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

10a〜10d  変換器 11,12  シフトレジスタ 13  ローテートシフトレジスタ 14  判定回路 15  変換部 16  判定部 10a-10d converter 11, 12 Shift register 13 Rotating shift register 14 Judgment circuit 15 Conversion section 16 Judgment section

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  0,1で構成される複数ビットのデジ
タル信号がパラレルに入力され、該入力デジタル信号の
0,1の数を多数決判定する多数決回路において、シフ
トレジスタ(13)に予め複数ビットのロード値が設定
されており、該ロード値がイネーブル情報,シフト情報
に応じて左又は右へシフトされ、該ロード値のうちの所
定数ビットに1又は0があるか否かで上記多数決判定を
行なう判定部(16)と、上記入力デジタル信号を2ビ
ットずつ入力され、該2ビットの0,1の数に応じて上
記ロード値を左又は右へシフトさせることを決定するシ
フト情報と、上記シフトレジスタ(13)の入力イネー
ブルを決定するイネーブル情報とを得る複数の変換器(
10a〜10d)を設けられた変換部(15)とよりな
ることを特徴とする多数決回路。
Claim 1: A plurality of bits of digital signal consisting of 0's and 1's are input in parallel, and in a majority decision circuit that determines the number of 0's and 1's in the input digital signal, a shift register (13) is provided with a plurality of bits in advance. A load value is set, the load value is shifted to the left or right according to enable information and shift information, and the majority decision is made based on whether a predetermined number of bits of the load value are 1 or 0. a determination unit (16) that receives the input digital signal 2 bits at a time and determines to shift the load value to the left or right according to the number of 0s and 1s in the 2 bits; A plurality of converters (
10a to 10d).
JP171491A 1991-01-10 1991-01-10 Majority circuit Withdrawn JPH04235412A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP171491A JPH04235412A (en) 1991-01-10 1991-01-10 Majority circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP171491A JPH04235412A (en) 1991-01-10 1991-01-10 Majority circuit

Publications (1)

Publication Number Publication Date
JPH04235412A true JPH04235412A (en) 1992-08-24

Family

ID=11509230

Family Applications (1)

Application Number Title Priority Date Filing Date
JP171491A Withdrawn JPH04235412A (en) 1991-01-10 1991-01-10 Majority circuit

Country Status (1)

Country Link
JP (1) JPH04235412A (en)

Similar Documents

Publication Publication Date Title
US4953115A (en) Absolute value calculating circuit having a single adder
JPH10107651A (en) Viterbi decoder
US5721809A (en) Maximum value selector
US4774686A (en) Serial digital signal processing circuitry
JPH0669813A (en) Decoding device of variable-length code
JPH0480815A (en) Absolute value computing circuit
US5408476A (en) One bit error correction method having actual data reproduction function
JPH08172366A (en) Branchmetric operation circuit in viterbi decoder
JPH04235412A (en) Majority circuit
US5777906A (en) Left shift overflow detection
JP2762941B2 (en) Background noise generator
JPH0661871A (en) Parallel serial data conversion circuit
US7123173B1 (en) Method and system for a feed-forward encoder
US6288657B1 (en) Encoding apparatus and method, decoding apparatus and method, and distribution media
JP3245622B2 (en) Pattern comparison method
JPH01314023A (en) Digital signal processing circuit
JPH0779247B2 (en) Decode circuit
JP3521558B2 (en) Transmission equipment
JP2590840B2 (en) Run-length encoding device
JPH0629860A (en) Adpcm decoder circuit
JP2513021B2 (en) Signed digit number sign judgment circuit
JPH07120964B2 (en) Extension circuit
JPS61105640A (en) Parallel complement circuit
JPH08125494A (en) Moving average filter
JPH06131158A (en) Adding method and addition circuit

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19980514