JP2591113B2 - Hamming encoder - Google Patents

Hamming encoder

Info

Publication number
JP2591113B2
JP2591113B2 JP63280681A JP28068188A JP2591113B2 JP 2591113 B2 JP2591113 B2 JP 2591113B2 JP 63280681 A JP63280681 A JP 63280681A JP 28068188 A JP28068188 A JP 28068188A JP 2591113 B2 JP2591113 B2 JP 2591113B2
Authority
JP
Japan
Prior art keywords
input
bits
circuit
output
check bits
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 - Lifetime
Application number
JP63280681A
Other languages
Japanese (ja)
Other versions
JPH02126730A (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.)
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 JP63280681A priority Critical patent/JP2591113B2/en
Publication of JPH02126730A publication Critical patent/JPH02126730A/en
Application granted granted Critical
Publication of JP2591113B2 publication Critical patent/JP2591113B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Detection And Correction Of Errors (AREA)
  • Error Detection And Correction (AREA)

Description

【発明の詳細な説明】 〔概 要〕 排他的論理和形式の生成多項式のm個の検査ビットを
持つハミング符号化器に関し、 回路規模の小さいハミング符号化器の提供を目的と
し、 k個の直列入力情報ビットをセレクタに順次入力する
とともに、シフトレジスタにk個のクロツクにて取り込
み保持し、該シフトレジスタのk個の情報ビット夫々の
出力を、夫々マスク信号の入力しているk個の論理積回
路に入力し、該k個の論理積回路の出力をトーナメント
形式の排他的論理和回路群に入力し該排他的論理和回路
群にて生成されるm個の検査ビットを順次該セレクタに
入力し、該セレクタでは、該k個の情報ビットを出力し
た後、該m個の検査ビットを選択して出力するように構
成する。
DETAILED DESCRIPTION OF THE INVENTION [Summary] The present invention relates to a Hamming encoder having m check bits of a generator polynomial in an exclusive-OR format, and aims to provide a Hamming encoder having a small circuit scale. The serial input information bits are sequentially input to the selector, and are taken in and held in the shift register by k clocks, and the outputs of the k information bits of the shift register are output to the k input bits of the mask signal, respectively. The AND circuit inputs the outputs of the k AND circuits to a tournament-type exclusive-OR circuit group, and sequentially selects m check bits generated by the exclusive-OR circuits in the selector. And the selector outputs the k information bits, and then selects and outputs the m check bits.

〔産業上の利用分野〕[Industrial applications]

本発明は、排他的論理和形式の生成多項式のm個の検
査ビットを持つハミング符号化器の改良に関する。
The present invention relates to an improvement of a Hamming encoder having m check bits of a generator polynomial in an exclusive-OR form.

ハミング符号とは、1ビットの誤りを検出し訂正する
ことが可能な符号で、k個の情報ビットにm個の検査ビ
ットを付加し、全体にある関係をつけて、n=k+mビ
ットの符号として送信し、受信側では、その関係が満た
されているかどうかを検出し、誤りがあれば何ビット目
であるかを検出するものであり、回路規模を小さく出来
ることが望まれている。
A Hamming code is a code capable of detecting and correcting a 1-bit error, and adding m check bits to k information bits and giving a certain relation to the whole to form a code of n = k + m bits. The receiving side detects whether or not the relationship is satisfied, and if there is an error, detects the number of the bit, and it is desired that the circuit scale can be reduced.

〔従来の技術〕[Conventional technology]

以下従来例を図を用いて説明する。 Hereinafter, a conventional example will be described with reference to the drawings.

第6図は従来例のハミング符号化器のブロック図、第
7図は第6図のタイムチャート、第8図は1例の生成多
項式が排他的論理和形式の場合の誤り発生ビット検出を
示す図である。
FIG. 6 is a block diagram of a conventional Hamming encoder, FIG. 7 is a time chart of FIG. 6, and FIG. 8 shows detection of an error occurrence bit when an example generating polynomial has an exclusive OR form. FIG.

第6図は、4個の情報ビットA,B,C,Dと3個の検査ビ
ットE,F,Gよりなる7ビットのハミング符号で、検査ビ
ットE,F,Gの生成多項式は下記の如く排他的論理和形式
のものである。
FIG. 6 shows a 7-bit Hamming code composed of four information bits A, B, C, and D and three check bits E, F, and G. The generating polynomial of check bits E, F, and G is It is of the exclusive OR type.

E=D○C○B F=D○C○A G=D○B○A ○は排他的論理和を示す。E = D ○ C ○ B F = D ○ C ○ A G = D ○ B ○ A 示 す indicates exclusive OR.

シフトレジスタ10に第7図(A)に示す如きA,B,C,D
よりなる4個の情報ビットが入力すると、(B)に示す
如くシフトレジスタ10に入力すると共に、出力QAより順
次セレクタ12に入力して出力する。
A, B, C, D as shown in FIG.
When these four information bits are input, they are input to the shift register 10 as shown in FIG. 7B and are sequentially input to the selector 12 from the output QA and output.

A,B,C,Dの情報ビットがシフトレジスタ10に入力する
と、情報ビットD,C,Bは、検査ビットE用の生成多項式
D○C○Bとする為に、排他的論理和回路(以下EX−OR
と称す)22,23よりなるEX−ORの組30に入力し、情報ビ
ットD,C,Aは、検査ビットF用の生成多項式D○C○A
とする為に、EX−OR24,25よりなるEX−ORの組31に入力
し、情報ビットD,B,Aは、検査ビットG用の生成多項式
D○B○Aとする為に、EX−OR26,27よりなるEX−ORの
組32に入力し、EX−ORの組30,31,32の出力より検査ビッ
トE,F,Gを得、タイミング信号発生回路20−2よりの第
7図の(C)に示すロード信号により、シフトレジスタ
28に並列に入力し、出力よりE,F,Gの順に直列に出力す
る。
When the information bits of A, B, C, and D are input to the shift register 10, the information bits D, C, and B are converted to an exclusive OR circuit ( EX-OR below
), And the information bits D, C, and A are generated by a generator polynomial D ○ C ○ A for the check bit F.
In this case, the information bits D, B, and A are input to an EX-OR set 31 composed of EX-ORs 24 and 25. The test signal is input to an EX-OR set 32 composed of ORs 26 and 27, check bits E, F, and G are obtained from the outputs of the EX-OR sets 30, 31, and 32. (C), the shift register
28 is input in parallel, and E, F, and G are output in series in this order from the output.

この時タイミング信号発生回路20−2よりのセレクト
信号は、第7図(E)に示す如くHレベルとなるので、
セレクタ12よりは、第7図(E)に示す如く、情報ビッ
トA,B,C,D、検査ビットE,F,Gの順に出力されハミング符
号化される。
At this time, the select signal from the timing signal generating circuit 20-2 goes high as shown in FIG.
As shown in FIG. 7 (E), the selector 12 outputs information bits A, B, C, D and check bits E, F, G in that order and performs Hamming encoding.

情報ビットA,B,C,Dに対し検査ビットE,F,Gの生成多項
式が、第8図(A)に示す如く、E=D○C○B,F=D
○C○A,G=D○B○Aで、送信ハミング符号が第8図
(B)に示す如くA,B,C,D,E,F,Gで、受信したハミング
符号が(C)に示す如く、A′,B′,C′,D′,E′,F′,
G′であり、(D)の左欄に示す如く1ビットの誤りが
発生すると、誤り発生ビットに対する再符号化した時の
検査ビットの状態は(D)の右欄に示す如く、例えば誤
りが無ければ、E′,F′,G′は夫々E″,F″,G″と等し
いものが、A≠A′の場合は、E′≠E″、G′≠G″
となり、B≠B′の場合は、F′≠F″、G′≠G″と
なる。以下図に示す如くである。
For the information bits A, B, C, D, the generator polynomial of the check bits E, F, G is, as shown in FIG. 8 (A), E = D ○ C ○ B, F = D
CC ○ A, G = D ○ B ○ A, the transmission Hamming code is A, B, C, D, E, F, G as shown in FIG. 8 (B), and the received Hamming code is (C). As shown in A, B ', C', D ', E', F ',
G ', and when a 1-bit error occurs as shown in the left column of (D), the state of the check bit when re-encoding the error-occurring bit is, for example, as shown in the right column of (D), If not, E ', F', G 'are equal to E ", F", G ", respectively, but if A ≠ A', E '≠ E", G' ≠ G "
When B ≠ B ′, F′FF ″ and G ′ ≠ G ″. It is as shown in the figure below.

即ち、1ビットの誤りが発生すると、受信した検査ビ
ットE′,F′,G′と再符号化した検査ビットE″,F″,
G″とが等しいものと異なるものが生じ、その内容によ
り誤りビットの位置が検出出来、訂正することが出来
る。
That is, when a 1-bit error occurs, the received check bits E ', F', G 'and the re-encoded check bits E ", F",
There is a case where G "is equal to or different from G", and the position of the error bit can be detected and corrected based on the content.

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

しかしながら、各検査ビット毎に、同時に生成多項式
を生成して出力する為に、EX−OR回路の数が多く、又同
時に生成した各検査ビットを並列に入力し直列に出力す
る為のシフトレジスタが必要で回路規模が大きくなる問
題点がある。
However, since a generator polynomial is simultaneously generated and output for each check bit, the number of EX-OR circuits is large, and a shift register for simultaneously inputting each check bit generated in parallel and outputting it in series is provided. There is a problem that the circuit scale becomes large as necessary.

本発明は回路規模の小さい排他的論理和形式の生成多
項式の検査ビットを持つハミング符号化器の提供を目的
としている。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a Hamming encoder having a check bit of a generator polynomial in an exclusive OR format having a small circuit scale.

〔課題を解決するための手段〕[Means for solving the problem]

第1図は本発明の原理図で(A)は構成を示すブロッ
ク図,(B)はタイムチャートである。
1A and 1B are principle diagrams of the present invention, wherein FIG. 1A is a block diagram showing the configuration, and FIG. 1B is a time chart.

第1図(A)に示す如く、直列に入力するk個の情報
ビットをセレクタ12に順次入力するとともに、シフトレ
ジスタ10にk個のクロツクにて取り込み保持し、該シフ
トレジスタ10のk個の情報ビット夫々の出力を夫々、タ
イミング信号発生回路20よりのマスク信号の入力してい
るk個の論理積回路1,2,・・・k−1,kに入力し、該k
個の論理積回路1,2,・・・k−1,kの出力をトーナメン
ト形式の排他的論理和回路群11に入力する。
As shown in FIG. 1A, k information bits input in series are sequentially input to a selector 12, and are taken in and held by a shift register 10 with k clocks. The output of each information bit is input to k AND circuits 1, 2,..., K−1, k to which a mask signal is input from the timing signal generation circuit 20, respectively.
The outputs of the AND circuits 1, 2,..., K−1, k are input to the exclusive OR circuit group 11 in the tournament format.

そして、該k個の論理積回路1,2,・・・k−1,kに入
力しているマスク信号を、該タイミング信号発生回路20
にて順次m個の検査ビットを得るタイミングで、夫々の
タイミングでは無関係な情報ビットをマスクする信号と
し、該排他的論理和回路群11にて生成させるm個の検査
ビットを順次出力して該セレクタ12に入力する。
Then, the mask signal input to the k AND circuits 1, 2,...
At the timing at which m check bits are sequentially obtained, at each timing, a signal for masking irrelevant information bits is used as a signal, and the m check bits generated by the exclusive OR circuit group 11 are sequentially output to output the m check bits. Input to selector 12.

そして、該セレクタ12では、該k個の情報ビットを出
力した後、該m個の検査ビットを選択して出力するよう
にする。
Then, after outputting the k information bits, the selector 12 selects and outputs the m check bits.

〔作 用〕(Operation)

本発明では、第1図(B)の(a)に示す直列に入力
するk個の情報ビットをセレクタ12に順次入力する。
In the present invention, serially input k information bits shown in (a) of FIG.

一方、該k個の情報ビットを(B)の(b)に示すk
個のクロツクにて、シフトレジスタ10に(B)の(c)
に示す如く取り込み保持する。
On the other hand, the k information bits are represented by k shown in (b) of (B).
(C) of (B) in the shift register 10
As shown in the figure, it is taken and held.

シフトレジスタ10に保持したk個の情報ビットは夫
々、タイミング信号発生回路20よりのマスク信号の入力
しているk個の論理積回路1,2,・・・k−1,kに入力す
る。
The k information bits held in the shift register 10 are respectively input to k AND circuits 1, 2,..., K−1, k to which a mask signal is input from the timing signal generation circuit 20.

論理積回路に入力するマスク信号をLルベルとする
と、該論理積回路に入力している情報ビットは出力され
ず出力はLレベルになる点及び、EX−OR回路では、1方
の入力レベルがLレベルであると、他方の入力はスルー
に出力する点に着目し、該k個の論理積回路1,2,・・・
k−1,kに入力している(B)の(d)に示すマスク信
号を、タイミング信号発生回路20にて、m個の検査ビッ
トを順次得るタイミングで、夫々のタイミングでは無関
係な情報ビットをマスクする信号とする。
Assuming that the mask signal input to the AND circuit is L level, the information bit input to the AND circuit is not output and the output is at L level. In the EX-OR circuit, one input level is Focusing on the point that the other input outputs through when the level is at the L level, the k AND circuits 1, 2,.
The mask signal shown in (d) of (B) input to k−1, k is obtained at the timing of sequentially obtaining m check bits by the timing signal generation circuit 20. Is a signal to be masked.

こうすると、トーナメント形式のEX−OR回路群11の出
力よりは、順次、m個の排他的論理和形式の生成多項式
の検査ビットが出力されセレクタ12に入力する。
In this case, m check bits of the generator polynomial in the exclusive-OR format are sequentially output from the output of the EX-OR circuit group 11 in the tournament format and input to the selector 12.

セレクタ12には(B)の(e)に示す如き選択信号が
入力しており、出力よりは(B)の(f)に示す如く、
k個の情報ビットの次にm個の検査ビットが選択出力さ
れハミング符号として送信される。
The selector 12 receives a selection signal as shown in (e) of (B), and outputs a selection signal as shown in (f) of (B) rather than the output.
Next to the k information bits, m check bits are selectively output and transmitted as a Hamming code.

このように、論理積回路を用い、これに入力するマス
ク信号を、m個の検査ビットを順次得るタイミングで、
夫々のタイミングでは無関係な情報ビットをマスクする
ようにして、m個の検査ビットを、同時に生成せず、1
検査ビットづつ順次生成するようにしているので、排他
的論理和形式の生成多項式を得る為のEX−OR回路の数を
減少することが出来、又m個の生成多項式の検査ビット
を同時に並列に入力し、直列に出力するシフトレジスタ
も不要になるので、回路規模を小さくすることが出来
る。
In this way, using a logical product circuit, a mask signal to be input to the logical product circuit is generated at the timing when m check bits are sequentially obtained.
At each timing, irrelevant information bits are masked, so that m check bits are not generated at the same time.
Since the check bits are sequentially generated, the number of EX-OR circuits for obtaining the exclusive-OR generating polynomial can be reduced, and the check bits of the m generating polynomials can be simultaneously and in parallel. Since a shift register for inputting and serially outputting is unnecessary, the circuit scale can be reduced.

〔実施例〕〔Example〕

以下本発明の1実施例に付き図に従って説明する。 An embodiment of the present invention will be described below with reference to the drawings.

第2図は本発明の実施例のハミング符号化器のブロッ
ク図、第3図は第2図の場合のタイムチャート、第4図
は本発明の1段階を説明する1例のハミング符号化器の
ブロック図、第5図は第4図のタイムチャートである。
FIG. 2 is a block diagram of a Hamming encoder according to an embodiment of the present invention, FIG. 3 is a time chart in the case of FIG. 2, and FIG. 4 is an example of a Hamming encoder illustrating one stage of the present invention. FIG. 5 is a time chart of FIG.

第2図,第4図は従来例と同じく、4個の情報ビット
A,B,C,Dと、排他的論理和形式の生成多項式の3個の検
査ビットE,F,Gよりなる7ビットのハミング符号の場合
である。
2 and 4 show four information bits as in the conventional example.
This is a case of a 7-bit Hamming code composed of A, B, C, D and three check bits E, F, G of a generator polynomial in an exclusive OR form.

まづ第4図,第5図を用いて並列入力を直列出力にす
るシフトレジスタをなくすることが出来る方法につき説
明する。
First, a method for eliminating a shift register for converting a parallel input into a serial output will be described with reference to FIGS.

第4図では、第5図の(A)に示すA,B,C,D,の情報ビ
ットが入力すると、これはセレクタ12に入力し出力され
る。
In FIG. 4, when the information bits of A, B, C, and D shown in FIG. 5A are input, they are input to the selector 12 and output.

一方この情報ビットは、タイミング信号発生回路20−
1よりの第5図(B)に示す4個の制御クロックにて
(C)に示す如くシフトレジスタ10に入力し保持され
る。
On the other hand, this information bit is used for the timing signal generation circuit 20-.
The four control clocks shown in FIG. 5 (B) are input to and held in the shift register 10 as shown in FIG. 5 (C).

このシフトレジスタ10の出力を用い、排他的論理和形
式の生成多項式の検査ビットE,F,Gを生成するのは第6
図の従来例と同じであり、同時に生成された検査ビット
E,F,Gはセレクタ21に入力する。
Using the output of the shift register 10 to generate the check bits E, F, and G of the generator polynomial in the exclusive-OR format is the sixth
Check bits generated in the same manner as the conventional example in FIG.
E, F, and G are input to the selector 21.

セレクタ21には、第5図(SEL1)(SEL2)(SEL3)に
示す如き、検査ビットE,F,Gを順次選択して出力する信
号が、タイミング信号発生回路20−1より出力されてい
るので、セレクタ21よりは検査ビットE,F,Gが順次出力
される。
As shown in FIG. 5 (SEL1), (SEL2) and (SEL3), the selector 21 outputs a signal for sequentially selecting and outputting the check bits E, F, and G from the timing signal generation circuit 20-1. Therefore, the selector 21 sequentially outputs check bits E, F, and G.

又タイミング信号発生回路20−1より出力する第5図
(D)に示す如き選択信号がセレクタ12に入力している
ので、セレクタ12よりは、第5図(E)に示す如く情報
ビットA,B,C,D,の次に検査ビットE,F,Gが出力され、ハ
ミング符号となる。
Since the selection signal output from the timing signal generating circuit 20-1 as shown in FIG. 5D is input to the selector 12, the selector 12 outputs the information bits A and A as shown in FIG. Check bits E, F, and G are output next to B, C, and D, and become a Hamming code.

即ち、第5図(SEL1)(SEL2)(SEL3)に示す如き、
検査ビットE,F,Gを順次選択して出力する信号のタイミ
ングに合わせ、検査ビットE,F,Gを順次得るようにすれ
ば、並列入力直列出力のシフトレジスタをなくすること
が出来るので、第2図,第3図の本発明の実施例では、
検査ビットE,F,Gを順次出力するタイミングの信号を用
いると共に、検査ビットE,F,Gを同時に生成せず、この
タイミングに合わせ、順次生成するようにしている。
That is, as shown in FIG. 5 (SEL1) (SEL2) (SEL3),
If the check bits E, F, and G are sequentially selected and the check bits E, F, and G are sequentially obtained in accordance with the timing of the signal to be output, the shift register of the parallel input serial output can be eliminated. In the embodiment of the present invention shown in FIGS. 2 and 3,
In addition to using the signal of the timing of sequentially outputting the check bits E, F, and G, the check bits E, F, and G are not generated at the same time, but are sequentially generated according to this timing.

以下第2図,第3図を用いて本発明の実施例を説明す
る。
Hereinafter, an embodiment of the present invention will be described with reference to FIGS.

第2図では、第3図(A)に示すA,B,C,D,の情報ビッ
トが入力すると、セレクタ12に入力し、順次出力され
る。
In FIG. 2, when the information bits of A, B, C, and D shown in FIG. 3A are input, they are input to the selector 12 and sequentially output.

又タイミング信号発生回路20よりの第3図(B)に示
す4個の制御クロックにて、第3図(C)に示す如く、
シフトレジスタ10に入力し保持される。
As shown in FIG. 3C, four control clocks from the timing signal generating circuit 20 shown in FIG.
The data is input to the shift register 10 and held.

このシフトレジスタ10の出力を情報ビットA,B,C,をア
ンド回路1,2,3に入力し、情報ビットDは検査ビットE,
F,Gの全ての場合に用いマスクする必要がないので、そ
の儘トーナメント形式のEX−OR回路群11のEX−OR回路41
に入力する。
The output of the shift register 10 is input to the AND circuits 1, 2, and 3 with information bits A, B, and C, and the information bit D is a check bit E,
Since it is not necessary to use a mask in all cases of F and G, the EX-OR circuit 41 of the EX-OR circuit group 11 in the tournament format as it is
To enter.

又アンド回路1,2,3,にはタイミング信号発生回路20よ
りの信号で第3図(DEC1)(DEC2)(DEC3)に示す如
き、検査ビットE,F,Gを生成するタイミングではLレベ
ルとなるマスク信号DEC1,DEC2,DEC3がデコーダ13より入
力している。
The AND circuits 1, 2, and 3 use the signal from the timing signal generation circuit 20 as shown in FIGS. 3 (DEC1), (DEC2), and (DEC3) to generate the L level at the timing of generating the check bits E, F, and G. The mask signals DEC1, DEC2, and DEC3 are input from the decoder 13.

今マスク信号DEC1の信号がLレベルの場合で説明する
と、情報ビットAはマスクされアンド回路1より出力さ
れず、又アンド回路1の出力はLレベルとなる。
Now, the case where the mask signal DEC1 is at the L level will be described. The information bit A is masked and is not output from the AND circuit 1, and the output of the AND circuit 1 is at the L level.

すると、アンド回路2より出力される情報ビットBは
EX−OR回路40はスルーに取りEX−OR回路42に入力する。
Then, the information bit B output from the AND circuit 2 becomes
The EX-OR circuit 40 takes a through signal and inputs it to the EX-OR circuit 42.

一方アンド回路3より出力される情報ビットCは、EX
−OR回路41に入力する。
On the other hand, the information bit C output from the AND circuit 3 is EX
-Input to the OR circuit 41.

この状態は、第6図はEX−ORの組30の状態と同じであ
り、出力よりは生成多項式D○C○Bの検査ビットEが
出力され、セレクタ12に入力する。
This state is the same as the state of the EX-OR set 30 in FIG. 6, and the check bit E of the generator polynomial DCC ○ B is output from the output and input to the selector 12.

この時、セレクタ12には検査ビットを選択する第3図
(D)に示す如き信号が入力しているので、情報ビット
Eはセレクタ12より出力される。
At this time, since a signal for selecting a check bit as shown in FIG. 3D is input to the selector 12, the information bit E is output from the selector 12.

マスク信号DEC2,DEC3が、第3図(DEC2)(DEC3)に
示す如く、Lレベルとなると、上記と同様にしてトーナ
メント形式のEX−OR群11よりは、生成多項式D○C○
A、D○B○Aの検査ビットF,Gが生成され、セレクタ1
2より出力される。
When the mask signals DEC2 and DEC3 become L level as shown in FIGS. 3 (DEC2) and (DEC3), the generator polynomial D.sub.C.sub.C.sup.
The check bits F and G of A, D ○ BAA are generated, and the selector 1
Output from 2.

即ち、セレクタ12の出力は第3図(E)に示す如く、
A,B,C,D,E,F,Gのハミング符号となる。
That is, the output of the selector 12 is as shown in FIG.
A, B, C, D, E, F, and G hamming codes.

尚デコーダ13の内部は、ナンド回路14〜16、ノット回
路17,18を用いた通常のものである。
The inside of the decoder 13 is a normal one using NAND circuits 14 to 16 and knot circuits 17 and 18.

そこで、第2図と第6図の場合で、回路規模を比較す
ると、第6図の場合は、EX−OR回路6個で4×6=24BC
(ベーシック・セル)で、又シフトレジスタ28が24BCで
合計48BCとなり、第2図の場合は、デコーダ13が5BCで
アンド回路3個で2×3=6BCでEX−OR回路3個で4×
3=12BCで合計23BCとなり、回路規模は25BCの削減とな
る。
Thus, comparing the circuit scales in the case of FIGS. 2 and 6, in the case of FIG. 6, 4 × 6 = 24 BC with six EX-OR circuits.
(Basic cell), and the shift register 28 is 24BC, for a total of 48BC. In the case of FIG. 2, the decoder 13 is 5BC, 3 AND circuits, 2 × 3 = 6BC, and 3 EX-OR circuits, 4 ×
3 = 12BC for a total of 23BC, reducing the circuit size by 25BC.

この回路規模の減少は、検査ビットの数が多く、ビッ
ト数の多いハミング符号となる程顕著になる。
This reduction in circuit size becomes more pronounced as the number of check bits is larger and the Hamming code has a larger number of bits.

〔発明の効果〕〔The invention's effect〕

以上詳細に説明せる如く本発明によれば、回路規模の
小さい、排他的論理和形式の生成多項式の検査ビットを
持つハミング符号化器が得られる効果がある。
As described above in detail, according to the present invention, there is an effect that a Hamming encoder having a small circuit scale and having a check bit of a generating polynomial in an exclusive OR form can be obtained.

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

第1図は本発明の原理図、 第2図は本発明の実施例のハミング符号化器のブロック
図、 第3図は第2図の場合のタイムチャート、 第4図は本発明の1段階を説明する1例のハミング符号
化器のブロック図、 第5図は第4図のタイムチャート、 第6図は従来例のハミング符号化器のブロック図、 第7図は第6図のタイムチャート、 第8図は1例の生成多項式が排他的論理和形式の場合の
誤り発生ビット検出を示す図である。 図において、 1,2,3,k−1,kは論理積回路、 10,28はシフトレジスタ、 11はトーナメント形式の排他的論理和回路群、 12,21はセレクタ、 13はデコーダ、 14〜16はナンド回路、 17,18はノット回路、 20,20−1,20−2はタイミング信号発生回路、 22〜27,40〜42は排他的論理和回路、 30,31,32は排他的論理和回路の組を示す。
FIG. 1 is a principle diagram of the present invention, FIG. 2 is a block diagram of a Hamming encoder according to an embodiment of the present invention, FIG. 3 is a time chart in the case of FIG. 2, and FIG. FIG. 5 is a time chart of FIG. 4, FIG. 6 is a block diagram of a conventional Hamming encoder, and FIG. 7 is a time chart of FIG. FIG. 8 is a diagram showing the detection of an error occurrence bit when the generator polynomial in one example is in the exclusive-OR format. In the figure, 1,2,3, k−1, k are AND circuits, 10,28 are shift registers, 11 is a tournament-type exclusive OR circuit group, 12,21 is a selector, 13 is a decoder, 14 ~ 16 is a NAND circuit, 17, 18 is a knot circuit, 20, 20, -1, 20-2 are timing signal generation circuits, 22 to 27, 40 to 42 are exclusive OR circuits, 30, 31, and 32 are exclusive logic. 3 shows a set of sum circuits.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】k(k=n−m,nはハミング符号ビット数,
m=検査ビット数)個の直列入力情報ビットをセレクタ
(12)に順次入力するとともに、シフトレジスタ(10)
にk個のクロツクにて取り込み保持し、該シフトレジス
タ(10)のk個の情報ビット夫々の出力を夫々、タイミ
ング信号発生回路(20)よりのマスク信号の入力してい
るk個の論理積回路(1,2,・・・k−1,k)に入力し、
該k個の論理積回路(1,2,・・・k−1,k)の出力をト
ーナメント形式の排他的論理和回路群(11)に入力し、
該k個の論理積回路(1,2,・・・k−1,k)に入力して
いるマスク信号を、該タイミング信号発生回路(20)に
て順次m個の検査ビットを得るタイミングで、夫々のタ
イミングでは無関係な情報ビットをマスクする信号と
し、該排他的論理和回路群(11)にて生成されるm個の
検査ビットを順次該セレクタ(12)に入力し、該セレク
タ(12)では、該k個の情報ビットを出力した後、該m
個の検査ビットを選択して出力するようにしたことを特
徴とするハミング符号化器。
(1) k (k = nm, n is the number of Hamming code bits,
m = the number of check bits) serial input information bits are sequentially input to the selector (12), and the shift register (10)
And the output of each of the k information bits of the shift register (10) is k ANDed with the mask signal input from the timing signal generation circuit (20). Input to the circuit (1,2, ... k-1, k)
The outputs of the k AND circuits (1, 2,..., K−1, k) are input to a tournament-type exclusive OR circuit group (11),
The mask signals input to the k AND circuits (1, 2,..., K−1, k) are changed by the timing signal generation circuit (20) at the timing of sequentially obtaining m check bits. At each timing, an irrelevant information bit is masked, and m check bits generated by the exclusive OR circuit group (11) are sequentially input to the selector (12). )), After outputting the k information bits,
A Hamming encoder characterized in that a plurality of check bits are selected and output.
JP63280681A 1988-11-07 1988-11-07 Hamming encoder Expired - Lifetime JP2591113B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63280681A JP2591113B2 (en) 1988-11-07 1988-11-07 Hamming encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63280681A JP2591113B2 (en) 1988-11-07 1988-11-07 Hamming encoder

Publications (2)

Publication Number Publication Date
JPH02126730A JPH02126730A (en) 1990-05-15
JP2591113B2 true JP2591113B2 (en) 1997-03-19

Family

ID=17628451

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63280681A Expired - Lifetime JP2591113B2 (en) 1988-11-07 1988-11-07 Hamming encoder

Country Status (1)

Country Link
JP (1) JP2591113B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3823697B2 (en) 2000-07-11 2006-09-20 富士通株式会社 Synchronization pattern position detection circuit

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57152599A (en) * 1981-03-17 1982-09-20 Fujitsu Ltd Error correcting device

Also Published As

Publication number Publication date
JPH02126730A (en) 1990-05-15

Similar Documents

Publication Publication Date Title
US4105999A (en) Parallel-processing error correction system
US4498174A (en) Parallel cyclic redundancy checking circuit
JPS62133825A (en) Crc bit calculator
JP3429037B2 (en) Error detection and correction method and apparatus in ATM cell header
US4524445A (en) Method and circuit arrangement for synchronous detection
CA1213673A (en) Burst error correction using cyclic block codes
JPS632370B2 (en)
US3571795A (en) Random and burst error-correcting systems utilizing self-orthogonal convolution codes
US5408476A (en) One bit error correction method having actual data reproduction function
JP2591113B2 (en) Hamming encoder
JP3257298B2 (en) CRC code generation method
US5745510A (en) System for detecting frame/burst synchronization and channel error using cyclic code
JPH10327080A (en) Syndrome calculation device
JP3310186B2 (en) Reed-Solomon decoding circuit
JP2685186B2 (en) Error correction device
JP2615700B2 (en) Error correction information output circuit
US4852097A (en) Method for forming data block protection information for serial data bit sequences by means of cyclical binary codes
JP2553575B2 (en) Error correction device
JPH0398346A (en) Cell synchronization circuit
JPH0964754A (en) Error check code generating circuit
JPH01202928A (en) Parallel a/d converter
JP2592685B2 (en) Cell synchronization circuit
JP2591164B2 (en) Parity operation circuit
JP3245622B2 (en) Pattern comparison method
JP2960473B2 (en) Error correction circuit