CN104506201A - Code circuit designing method for (15, 5) BCH (Bose, Chaudhuri and Hocquenghem) code - Google Patents

Code circuit designing method for (15, 5) BCH (Bose, Chaudhuri and Hocquenghem) code Download PDF

Info

Publication number
CN104506201A
CN104506201A CN201410594917.9A CN201410594917A CN104506201A CN 104506201 A CN104506201 A CN 104506201A CN 201410594917 A CN201410594917 A CN 201410594917A CN 104506201 A CN104506201 A CN 104506201A
Authority
CN
China
Prior art keywords
relational expression
bit
input
register
redundancy check
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.)
Granted
Application number
CN201410594917.9A
Other languages
Chinese (zh)
Other versions
CN104506201B (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.)
Ruili Flat Core Microelectronics Guangzhou Co Ltd
Original Assignee
Institute of Microelectronics of CAS
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 Institute of Microelectronics of CAS filed Critical Institute of Microelectronics of CAS
Priority to CN201410594917.9A priority Critical patent/CN104506201B/en
Publication of CN104506201A publication Critical patent/CN104506201A/en
Application granted granted Critical
Publication of CN104506201B publication Critical patent/CN104506201B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The invention provides a code circuit designing method for (15, 5) BCH (Bose, Chaudhuri and Hocquenghem) code. The method comprises the steps of constructing a serial code circuit according to a generator polynomial of the (15, 5) BCH code; acquiring stored redundant check bit after inputting the (i+1)th information bit, redundant check bits stored in registers after inputting the i th information bit, and a first relational expression of the input (i+1) information bits for each register in the serial code circuit; acquiring stored redundant check bit after inputting all five information bits, redundant check bit stored in each register when no information bit is input, and a second relational expression of all five information bits for each register in the serial code circuit; and according to the second relational expression, constructing a parallel code circuit. According to the code circuit designing method, a parallel circuit replaces a traditional serial code scheme, so that the coding time is greatly shortened.

Description

The coding circuit method for designing of (15,5) BCH code
Technical field
The present invention relates to error-correcting code technique field, particularly a kind of coding circuit method for designing of (15,5) BCH code.
Background technology
BCH (BoSe Ray-Chaudhuri Hocque5ghe15) is a kind of error correcting code efficiently, and its loop coding and decoding feature make it communicate, be widely used in the reliability etc. of control and memory automatically improving.
Usual Bose-Chaudhuri-Hocquenghem Code decoding adopts serial mode to realize, and needed for the coding and decoding of this scheme, circuit is very little, but the coding and decoding time but depends on clock cycle and code word size, therefore circuit speed is being required to high occasion seems inapplicable.
(15,5) BCH code can correct the mistake of 3, altogether needs the redundancy check bit of 10, at the GF (2 of m=4 4) structure can correct three wrong BCH code on territory, therefore t=3.At GF (2 4) on, basis α and α 32t-1corresponding multinomial is respectively:
φ 1(X)=1+X+X 4
φ 3(X)=1+X+X 2+X 3+X 4
φ 5(X)=1+X+X 2
The generator polynomial obtaining (15,5) BCH code is:
g(X)=φ 1(X)·φ 3(X)·φ 5(X)=1+X+X 2+X 4+X 5+X 8+X 10
According to the expression-form of generator polynomial g (X), can design coding and decoding circuit as shown in Figure 1, wherein square represents register, the expression modular two addition device with plus sige inside circle, i.e. XOR gate.Can find out, traditional BCH code coding needs through 10 registers, and therefore in the synchronous digital circuit of clock control, need 5 clock cycle shift register all could be sent in 5 bit data positions and complete coding, speed is slower.And be not suitable for high speed Bose-Chaudhuri-Hocquenghem Code circuit.
Summary of the invention
The invention provides the coding circuit method for designing of one (15,5) BCH code, greatly can shorten the scramble time, not by the restriction of clock cycle, coding rate improves greatly.
According to one embodiment of present invention, provide the coding circuit method for designing of one (15,5) BCH code, this coding circuit method for designing comprises: according to this (15,5) generator polynomial of BCH code, there is the serial encoding circuitry of the register of 10 series connection; According to this serial encoding circuitry, be respectively each register in serial encoding circuitry, the first relational expression between the redundancy check bit that after redundancy check bit that after obtaining input the i-th+1 information bit, it stores and input i-th information bit, each register memory stores up, the i-th+1 information bit of input, i≤4 and be nonnegative integer; According to the first relational expression, be respectively each register in serial encoding circuitry, the redundancy check bit that when obtaining redundancy check bit of its storage after inputting whole 5 information bits and do not input any information bit, each register memory stores up, the second relational expression of whole 5 information bits; According to the second relational expression, construct with 5 information bits be input, 10 redundancy check bits are the parallel encoding circuit exported.
Alternatively, the redundancy check bit not inputting each register memory storage during any information bit is all set to 0.
Alternatively, the step obtaining the second relational expression according to the first relational expression comprises: by the first relational expression vectorization obtained for each register in serial encoding circuitry, thus obtain represent input the i-th+1 information bit after the vector of the redundancy check bit that 10 registers store, input after the vector of redundancy check bit that stores of 10 registers and input i-th information bit the i-th+1 information bit between the primary vector relational expression of relation; According to primary vector relational expression, obtain the secondary vector relational expression of the vector of the redundancy check bit that 10 registers store after representing whole 5 information bits of input and relation when not inputting any information bit between the vector of the redundancy check bit that 10 registers store, whole 5 information bits; From secondary vector relational expression, obtain the second relational expression of each register corresponded in serial encoding circuitry.
The redundancy check bit that after the present invention's redundancy check bit that first draw input the i-th+1 information bit from serial encoding circuitry after, each register stores and input i-th information bit, each register memory stores up, relation between the i-th+1 information bit of input, and then the redundancy check bit that the redundancy check bit that after drawing whole 5 information bits of input, each register stores stores up with each register memory when not inputting any information bit, the relation of whole 5 information bits, this relation is exactly the relation of 10 redundancy check bits and 5 information bits, thus can construct with 5 information bits as input, 10 redundancy check bits are the parallel encoding circuit exported.Compared with the serial encoding circuitry of prior art, parallel circuit is adopted to replace traditional tandem coding solution, can not by the restriction of clock cycle, greatly shorten the scramble time, coding rate improves greatly.
Accompanying drawing explanation
By reading the detailed description done non-limiting example done with reference to the following drawings, other features, objects and advantages of the present invention will become more obvious.
Fig. 1 is the coding circuit of (15,5) BCH code of prior art;
Fig. 2 is the serial encoding circuitry first constructed of (15,5) BCH code of an example of coding circuit as the present invention (15,5) BCH code;
Fig. 3 is the parallel encoding circuit finally constructed of (15,5) BCH code of an example of coding circuit as the present invention (15,5) BCH code;
Fig. 4 is the flow chart of the coding circuit method for designing of (15,5) according to an embodiment of the invention BCH code.
Embodiment
Embodiments of the invention are described below in detail.
The example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has element that is identical or similar functions from start to finish.Being exemplary below by the embodiment be described with reference to the drawings, only for explaining the present invention, and can not limitation of the present invention being interpreted as.Disclosing hereafter provides many different embodiments or example is used for realizing different structure of the present invention.Of the present invention open in order to simplify, hereinafter the parts of specific examples and setting are described.Certainly, they are only example, and object does not lie in restriction the present invention.
The invention provides the coding circuit method for designing of one (15,5) BCH code, wherein the figure place of information bit is 5, and the total bit after coding is 15, and the figure place of redundancy check bit is 10.As shown in Figure 4, the method comprises:
In step S1, according to the generator polynomial of this (15,5) BCH code, there is the serial encoding circuitry of the register of 10 series connection.
With (15,5) BCH code for example, Fig. 2 shows a serial encoding circuitry with the register of 10 series connection constructed, and it can construct by the mode of prior art.With the generator polynomial of (15,5) BCH code described above be:
g(X)=φ 1(X)·φ 3(X)·φ 5(X)=1+X+X 2+X 4+X 5+X 8+X 10
Situation be example, construct the serial encoding circuitry shown in Fig. 2.In fact, Fig. 2 is the connection layout specialized of Fig. 1.This circuit comprises S 0~ S 9ten registers.
Concrete, during circuit working, clock signal c1k controls ten register S 0~ S 9.When rising edge clock arrives, the output of ten registers sends into next stage respectively, produces the output of next stage simultaneously.After information bit has inputted, the value of preserving in 10 registers has been exactly the value of 10 bit check positions.Together with the data of preserving in 10 registers input with the external world, cyclic shift.Understand according to algebraic method, ten bit check positions are exactly the information bit multinomial that information bit is formed, and are then multiplied by X 10(output of input information and rightmost register together computing is equivalent to be multiplied by X 10), then the coefficient of the residue obtained divided by the generator polynomial g (X) that BCH is corresponding.
In step S2, according to this serial encoding circuitry, be respectively each register in serial encoding circuitry, the first relational expression between the redundancy check bit that after redundancy check bit that after obtaining input the i-th+1 information bit, it stores and input i-th information bit, each register memory stores up, the i-th+1 information bit of input, i≤4 and be nonnegative integer.
Still for the example of Fig. 2, can be each register in 10 registers of Fig. 2, obtain the first relational expression as follows:
S 9 i + 1 = S 8 i S 8 i + 1 = S 9 i + S 7 i S 7 i + 1 = S 6 i S 6 i + 1 = S 5 i S 5 i + 1 = S 9 i + S 4 i S 4 i + 1 = S 9 i + S 3 i S 3 i + 1 = S 2 i S 2 i + 1 = S 9 i + S 1 i S 1 i + 1 = S 9 i + S 0 i S 0 i + 1 = S 9 i + u i + 1 - - - ( 1 )
Wherein, the redundancy check bit stored in each register S0 ~ S9 after representing input i-th information bit, each register S after inputting the i-th+1 information bit 0~ S 9the redundancy check bit of interior storage, u i+1represent the i-th+1 information bit of input.As shown in Figure 2, register S 9after input the i-th+1 information bit, its storing value is last register S 8pass over, last register S should be equaled 8storing value after input i-th information bit, therefore register S 8after input the i-th+1 information bit, its storing value is last register S 7the value passed over adds register S 9the value fed back and, therefore adding here is all that finger print two adds.
In step s3, according to the first relational expression (1), be respectively each register in serial encoding circuitry, the redundancy check bit that when obtaining redundancy check bit of its storage after inputting whole 5 information bits and do not input any information bit, each register memory stores up, second relational expression (2) of whole 5 information bits.Particularly:
In sub-step S31, by the first relational expression vectorization obtained for each register in serial encoding circuitry, thus obtain represent input the i-th+1 information bit after the vector of the redundancy check bit that 10 registers store, input after the vector of redundancy check bit that stores of 10 registers and input i-th information bit the i-th+1 information bit between the primary vector relational expression of relation.
Still with above-mentioned (15,5) BCH code be example for example, the first relational expression (1) is rewritten into primary vector relational expression (I):
S i + 1 = A [ S i ⊕ G , i + 1 ] - - - ( I )
S ithe vector of the redundancy check bit of 10 register storages after expression input i-th information bit, S i+1the vector of the redundancy check bit of 10 register storages after expression input the i-th+1 information bit.Still with aforementioned (15,5) BCH code for example:
S i = [ S 9 i , S 8 i , . . . . . . S 0 i ]
S i + 1 = [ S 9 i + 1 , S 8 i + 1 , . . . . . . S 0 i + 1 ]
The coefficient matrix of matrix A for being obtained by each coefficient in above formula (1).Matrix A is:
A = 0 1 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 10 × 10
G i+1it is the vector of the i-th+1 information bit of reflection input.It is a column vector, and the first row is the vector of the i-th+1 information bit of input, all the other behaviors 0.If U is the vectorial U=[u of all information bits composition 0, u 1..., u 4],
G = 1 0 0 0 0 0 0 0 0 0 0 · U = u 0 u 1 u 2 u 3 u 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Wherein G , i+1i-th+1 row of representing matrix.
In sub-step S32, according to primary vector relational expression (I), obtain the secondary vector relational expression of the vector of the redundancy check bit that 10 registers store after representing whole 5 information bits of input and relation when not inputting any information bit between the vector of the redundancy check bit that 10 registers store, whole 5 information bits.
With above-mentioned (15,5) BCH code for example, by primary vector relational expression (I), obtain secondary vector relational expression (II):
S 5 = A [ S 4 ⊕ G , 5 ] = A [ A [ S 3 ⊕ G , 4 ] ⊕ G , 5 ] = . . . = A 5 S 0 ⊕ A 5 G , 1 ⊕ . . . ⊕ A 2 G , 4 ⊕ AG , 5 - - - ( II )
S 5for the vector of the redundancy check bit of 10 register storages after whole 5 information bits of expression input, S 0the vector of the redundancy check bit that 10 registers store during for not inputting any information bit.The redundancy check bit of register memory storage each when not inputting any information bit all can be set to 0, now S 0be 0, above formula (II) becomes:
S 5 = A 5 G , 1 ⊕ · · · ⊕ A 2 G , 4 ⊕ AG , 5 - - - ( II - 1 )
In step S33, from secondary vector relational expression, obtain the second relational expression of each register corresponded in serial encoding circuitry.
With above-mentioned (15,5) BCH code for example, above formula (II-1) is launched to obtain following expression, namely corresponds to the second relational expression of each register in serial encoding circuitry:
S 9 4 = u 1 + u 3 + u 4 S 8 5 = u 0 + u 2 + u 3 S 7 5 = u 2 + u 3 + u 4 S 6 5 = u 1 + u 2 + u 3 S 5 5 = u 0 + u 1 + u 2 S 4 5 = u 0 + u 3 + u 4 S 3 5 = u 1 + u 2 + u 4 S 2 5 = u 0 + u 1 + u 3 S 1 5 = u 0 + u 1 + u 2 + u 3 + u 4 S 0 5 = u 0 + u 2 + u 4 - - - ( 2 )
Step S3 also can perform not according to the mode of above-mentioned S31-S33.Such as, directly from the first relational expression (1), namely
S 9 i + 1 = S 8 i S 8 i + 1 = S 9 i + S 7 i S 7 i + 1 = S 6 i S 6 i + 1 = S 5 i S 5 i + 1 = S 9 i + S 4 i S 4 i + 1 = S 9 i + S 3 i S 3 i + 1 = S 2 i S 2 i + 1 = S 9 i + S 1 i S 1 i + 1 = S 9 i + S 0 i S 0 i + 1 = S 9 i + u i + 1 - - - ( 1 )
, by deriving, will be expressed as u 0-u 4function, namely obtain (2), only process is complicated a little.
Herein, plus sige all represents the addition on mould two, namely equals binary XOR
In step S4, according to the second relational expression, construct with 5 information bits be input, 10 redundancy check bits are the parallel encoding circuit exported.
With above-mentioned (15,5) BCH code for example, according to above-mentioned (2), construct parallel encoding circuit as shown in Figure 3.
Suppose that information bit to be encoded is for (11000), corresponding multinomial is U (X)=1+X, X 10u (X) is divided by generator polynomial g (X)=1+X+X 2+ X 4+ X 5+ X 8+ X 10obtain residue:
b(X)=1+X 3+X 4+X 6+X 8+X 9
Therefore coding obtains (1001101011|11000), 10, the left side is redundancy check bit, and 5, the right is information bit,
Can be correct according to formula (2) checking derivation result.
Although with the generator polynomial of (15,5) BCH code be above:
g(X)=φ 1(X)·φ 3(X)·φ 5(X)=1+X+X 2+X 4+X 5+X 8+X 10
For example describes the design process of coding circuit of the present invention, but those skilled in the art are known, if g (X) is other, the present invention is applicable equally.
The present invention proposes the coding circuit method for designing of one (15,5) BCH code, adopts parallel circuit to replace traditional tandem coding solution, can not by the restriction of clock cycle, and greatly shorten the scramble time, coding rate improves greatly.

Claims (3)

1. the coding circuit method for designing of one kind (15,5) BCH code, this coding circuit method for designing comprises:
According to the generator polynomial of this (15,5) BCH code, there is the serial encoding circuitry of the register of 10 series connection;
According to this serial encoding circuitry, be respectively each register in serial encoding circuitry, the first relational expression between the redundancy check bit that after redundancy check bit that after obtaining input the i-th+1 information bit, it stores and input i-th information bit, each register memory stores up, the i-th+1 information bit of input, i≤4 and be nonnegative integer;
According to the first relational expression, be respectively each register in serial encoding circuitry, the redundancy check bit that when obtaining redundancy check bit of its storage after inputting whole 5 information bits and do not input any information bit, each register memory stores up, the second relational expression of whole 5 information bits;
According to the second relational expression, construct with 5 information bits be input, 10 redundancy check bits are the parallel encoding circuit exported.
2. coding circuit method for designing according to claim 1, the redundancy check bit wherein not inputting each register memory storage during any information bit is all set to 0.
3. coding circuit method for designing according to claim 1, wherein comprises according to the step that the first relational expression obtains the second relational expression:
By the first relational expression vectorization obtained for each register in serial encoding circuitry, thus obtain represent input the i-th+1 information bit after the vector of the redundancy check bit that 10 registers store, input after the vector of redundancy check bit that stores of 10 registers and input i-th information bit the i-th+1 information bit between the primary vector relational expression of relation;
According to primary vector relational expression, obtain the secondary vector relational expression of the vector of the redundancy check bit that 10 registers store after representing whole 5 information bits of input and relation when not inputting any information bit between the vector of the redundancy check bit that 10 registers store, whole 5 information bits;
From secondary vector relational expression, obtain the second relational expression of each register corresponded in serial encoding circuitry.
CN201410594917.9A 2014-10-29 2014-10-29 (15,5)The coding circuit design method of BCH code Active CN104506201B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410594917.9A CN104506201B (en) 2014-10-29 2014-10-29 (15,5)The coding circuit design method of BCH code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410594917.9A CN104506201B (en) 2014-10-29 2014-10-29 (15,5)The coding circuit design method of BCH code

Publications (2)

Publication Number Publication Date
CN104506201A true CN104506201A (en) 2015-04-08
CN104506201B CN104506201B (en) 2018-08-21

Family

ID=52947924

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410594917.9A Active CN104506201B (en) 2014-10-29 2014-10-29 (15,5)The coding circuit design method of BCH code

Country Status (1)

Country Link
CN (1) CN104506201B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000013241A (en) * 1998-04-22 2000-01-14 Oki Electric Ind Co Ltd Convolutional coder and viterbi decoder
US7124064B1 (en) * 2001-03-30 2006-10-17 Cisco Technology, Inc. Automatic generation of hardware description language code for complex polynomial functions
CN101227194A (en) * 2008-01-22 2008-07-23 炬力集成电路设计有限公司 Circuit, encoder and method for encoding parallel BCH
CN102761340A (en) * 2012-08-10 2012-10-31 济南微晶电子技术有限公司 Broadcast channel (BCH) parallel coding circuit

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000013241A (en) * 1998-04-22 2000-01-14 Oki Electric Ind Co Ltd Convolutional coder and viterbi decoder
US7124064B1 (en) * 2001-03-30 2006-10-17 Cisco Technology, Inc. Automatic generation of hardware description language code for complex polynomial functions
CN101227194A (en) * 2008-01-22 2008-07-23 炬力集成电路设计有限公司 Circuit, encoder and method for encoding parallel BCH
CN102761340A (en) * 2012-08-10 2012-10-31 济南微晶电子技术有限公司 Broadcast channel (BCH) parallel coding circuit

Also Published As

Publication number Publication date
CN104506201B (en) 2018-08-21

Similar Documents

Publication Publication Date Title
US7543212B2 (en) Low-density parity-check (LDPC) encoder
CN101946230B (en) Method and system for detection and correction of phased-burst errors, erasures, symbol errors, and bit errors in received symbol string
CN103023518B (en) A kind of error correction method of the circulation Hamming code based on parallel encoding decoding
US20070157064A1 (en) Systems and methods for error corrections
CN105553485B (en) BCH coding and decoding device and its decoding method based on FPGA
CN103886915B (en) Circuitry and method for correcting 3-bit errors containing adjacent 2-bit error
CN110071727B (en) Encoding method, decoding method, error correction method and device
CN102468855A (en) Apparatus and method for correcting at least one bit error within a coded bit sequence
Freudenberger et al. A configurable Bose–Chaudhuri–Hocquenghem codec architecture for flash controller applications
KR20180085651A (en) Application-specific integrated circuit to perform a method for fast polynomial updates in bm-based fast chase decoding of binary bch codes through degenerate list decoding
Parvathi et al. FPGA based design and implementation of Reed-Solomon encoder & decoder for error detection and correction
WO2013189274A1 (en) Circuit, encoder and method for parallel bch coding
US9336085B2 (en) Memory system and memory controller
US9191029B2 (en) Additional error correction apparatus and method
Morii et al. Error-trapping decoding for cyclic codes over symbol-pair read channels
US20180219560A1 (en) List decode circuits
CN103309766A (en) Error correction method of cyclic hamming code based on parallel coding and decoding
US20140032990A1 (en) Decoder and Method for Physically Unclonable Functions Using Threshold Decoding
CN103151078A (en) Memorizer Error detection and correction code generation method
CN104506201A (en) Code circuit designing method for (15, 5) BCH (Bose, Chaudhuri and Hocquenghem) code
US10009041B2 (en) BCH decorder in which folded multiplier is equipped
Zhang VLSI architectures for Reed–Solomon codes: Classic, nested, coupled, and beyond
CN104320145A (en) Method for designing encoding circuits of (15,7) BCH codes
US10623026B2 (en) Error correction
Rastogi et al. SEU MITIGATION-using 1/3 rate convolution coding

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201216

Address after: 510000 601, building a, 136 Kaiyuan Avenue, Huangpu District, Guangzhou City, Guangdong Province

Patentee after: AoXin integrated circuit technology (Guangdong) Co.,Ltd.

Address before: 100029 Beijing city Chaoyang District Beitucheng West Road No. 3

Patentee before: Institute of Microelectronics, Chinese Academy of Sciences

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220506

Address after: 510000 room 710, Jianshe building, No. 348, Kaifa Avenue, Huangpu District, Guangzhou, Guangdong

Patentee after: Ruili flat core Microelectronics (Guangzhou) Co.,Ltd.

Address before: 510000 601, building a, 136 Kaiyuan Avenue, Huangpu District, Guangzhou City, Guangdong Province

Patentee before: AoXin integrated circuit technology (Guangdong) Co.,Ltd.