[go: up one dir, main page]

TW201029339A - Method of decoding Golay code and decoder - Google Patents

Method of decoding Golay code and decoder Download PDF

Info

Publication number
TW201029339A
TW201029339A TW98102028A TW98102028A TW201029339A TW 201029339 A TW201029339 A TW 201029339A TW 98102028 A TW98102028 A TW 98102028A TW 98102028 A TW98102028 A TW 98102028A TW 201029339 A TW201029339 A TW 201029339A
Authority
TW
Taiwan
Prior art keywords
vector
symptom
extended
symptom vector
gray code
Prior art date
Application number
TW98102028A
Other languages
Chinese (zh)
Other versions
TWI385931B (en
Inventor
Yao-Zu Zhang
ming-hao Jin
Jian-Hong Chen
Zi-Heng Chen
Original Assignee
Univ Ishou
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 Univ Ishou filed Critical Univ Ishou
Priority to TW98102028A priority Critical patent/TWI385931B/en
Publication of TW201029339A publication Critical patent/TW201029339A/en
Application granted granted Critical
Publication of TWI385931B publication Critical patent/TWI385931B/en

Links

Landscapes

  • Error Detection And Correction (AREA)

Abstract

A method of decoding Golay code comprises the following steps: (a) receiving a binary sequence; (b) computing a first syndrome vector according to the binary sequence and a first auxiliary verification matrix; (c) computing a second syndrome vector according to the binary sequence and a second auxiliary verification matrix; (d) computing a first extended syndrome vector, a second extended syndrome vector, a third extended syndrome vector, and a fourth extended syndrome vector according to the first and second syndrome vectors and the first and second auxiliary verification matrixes; (e) computing the weights corresponding to the first and second syndrome vectors and the first, second, third and fourth extended syndrome vectors; (f) performing condition judgment according to the weights so as to determine an error position vector; and (g) finding the corresponding original data by decoding according the error position vector and the binary sequence.

Description

201029339 六、發明說明: 【發明所屬之技術領域】 本發明是有關於一種二元平方剩餘(quadratic residue ,QR)碼之解碼技術,特別是指一種格雷碼(Golaycode) 之解碼方法及解碼器。 【先前技術】 近年來,從消費性電子產品到通訊電子產品,對於訊 號傳送之可靠度的需求日漸殷切;因此,錯誤偵測及更正 機制也日益重要。在數位通訊過程中,傳送端為了確保欲 傳送之原始資料的正確性,一般而言,會對原始資料附加 冗餘資料(redundant data),而接收端即可根據此冗餘資料進 行錯誤校正。由於二元平方剩餘碼對於傳輸通道中所產生 的錯誤有很好的更正能力,故成為非常受歡迎的通道編碼 (channel coding)方式之一,且目前已為衛星通訊系統、數位 電視系統、各式數位影音記錄媒體等所廣泛使用之錯誤更 正碼(Error Correction Code)。 其中,(23,12, 7)格雷碼即是一種有名的二元平方 剩餘碼。現有的解碼方式主要有代數演算法(algebraic algorithm)、歐機里德演算法(Euclid algorithm)、步階解碼 演算法(step-by-step decoding algorithm),此等演算法因為 運算延遲時間長(long time delay )、複雜度高、規則性低、 所需閘數(gate count)高,故其硬體實現上不易且成本較 高。 【發明内容】 201029339 因此,本發明之目的,即在提供一種格雷碼之解碼方 法。 於是,本發明格雷碼之解碼方法,包含下列步驟:(a) 接收一筆二位兀序列(binary sequence);(b)根據已接收 的該二位元序列,及預先定義的一第一輔助校驗矩陣求 出一第一症狀(syndrome)向量;(〇根據已接收的該二位 凡序列,及預先定義的一第二輔助校驗矩陣,求出一第二 症狀向量;(d)根據該第一症狀向量、該第二症狀向量, 及該第一輔助校驗矩陣、該第二輔助校驗矩陣,求出一第 一延伸症狀向量、複數個第二延伸症狀向量、複數個第三 延伸症狀向量,及複數個第四延伸症狀向量;(e)分別求出 對應該第一症狀向量、該第二症狀向量、該第一延伸症狀 向量、該等第二延伸症狀向量、該等第三延伸症狀向量, 及該等第四延伸症狀向量之複數個權重值(weight ) ; ^ f )根據該等權重值進行條件判斷,決定出一錯誤位置向量 :以及(g)根據該錯誤位置向量及已接收的該二位元序列 解碼出對應的一原始資料。本發明之另一目的,即在提供 一種格雷碼之解碼器。 於疋’本發明格雷碼之解瑪器’包含一資料緩衝儲存 (buffer)單元、一症狀向量計算單元、一延伸症狀向量計 算單元、一權重值計算單元、一錯誤位置向量決定單元, 及一運算單元。 該資科緩衝儲存單元用以儲存已接收的一筆二位元序 列。該症狀向量計算單元用以根據該二位元序列與預先定 201029339 義的一第一輔助校驗矩陣,求出一第-症狀向量,及用以 根據該二位元序列與預先定義的一第二輔助校驗矩陣求 出一第二症狀向量。該延伸症狀向量計算單元用以根據該 第=症狀向量、該第二症狀向量及該第一輔助校驗矩陣 、該第二輔助校驗矩陣,求出一第一延伸症狀向量、複數 個第二延伸症狀向量、複數個第三延伸症狀向量,及複數 個第四延伸症狀向#。該㈣值計算單元用以分別求出對 應'•亥第症狀向量、該第二症狀向量、該第一延伸症狀向 β 4、該等第二延伸症狀向量、該等第三延伸症狀向量,及 該等第四延伸症狀向量之複數個權重值。該錯誤位置向量 决疋單70用以根據該等權重值進行條件判斷,決定出一錯 誤位置向量。該運算單元用以根據該錯誤位置向量及已接 收的該二位元序列解碼出對應的一原始資料。 本發明之功效在於:藉由該等權重值之條件判斷,決 疋出該錯誤位置向量,並據以求出該原始資料;不但可以 有效率地進行格雷碼之解碼,且其運算複雜度、所需閘數 Φ 及成本皆大幅低於現有之演算法’適合以硬體實現。 【實施方式】 有關本發明之前述及其他技術内容、特點與功效,在 以下配合參考圖式之一個較佳實施例的詳細說明中,將可 清楚的呈現。 參閲圖1,本發明格雷碼之解碼器i之較佳實施例包含 一資料緩衝儲存單元11、—症狀向量計算單元12、一延伸 向量計算單元13、一權重值計算單元14、一錯誤位置向量 5 201029339 決定單元15 ’及一運算單元i6。 該資料緩衝儲存單元u用以儲存已接收的—筆二位元 序列。該症狀向量計算單元12心根據該二位元序列與預 先定義的-第-辅助校驗矩陣,求出一第一症狀向量及 用以根據該二位元序列與預先定義的-第二辅助校驗矩陣 ’求出H狀向量。該延伸向量計算單元13用以根據 該第-症狀向量、該第二症狀向量,及該第一輔助校驗矩 陣、該第二辅助校驗矩陣’纟出一第一延伸症狀向量、複 數個第二延伸症狀向量、複數個第三延伸症狀向量,及複 數個第四延伸症狀向量。該權重值計算單元14用以分別求 出對應該第-症狀向量、該第二症狀向量、該第—延伸症 狀向量、該等第二延伸症狀向量、該等第三延伸症狀向量 ,及該等第四延伸症狀向量之複數個權重值。該錯誤位置 向量決定單元15用以根據該等權重值進行條件判斷,決定 出-錯誤位置向量。該運算單元16用以根據該錯誤位置向 量及已接收的該二位元序列解碼出對應的一原始資料。 在本較佳實施例中,該格雷碼之解碼器1係以硬體( hardWare )方式實施,但其亦可以軟體(software )或韌體 (firmware)方式實施,並不限於本較佳實施例之例示。 在進行格雷碼之解碼方法的描述之前,預先定義其步 驟中會使用到的矩陣。 (23, i2’7)格雷碼生成多項式如式(1)所示。 容(^ = 1X^0-#)..................................... ( 其中’ h為在模(modulo ) 23下的非〇二元平方剩餘 201029339 的集合;A為格雷碼生成多項式的根(root)。 而對於每一 _/· = 〇,ι,···,22,β如式(2)所示。 β +..·〜,................................…⑺ 其中’《為迦羅瓦場(Gal〇is Field) GF(2„)的原根( primitive root),\。,£1),1,..”0^。為格雷碼生成多項式的根之原 根係數,且GF(2),定義格雷碼生成多項式的根 之一原根係數矩陣(以A代表),如式(3)所示。201029339 VI. Description of the Invention: [Technical Field] The present invention relates to a decoding technique of a quadratic residue (QR) code, and more particularly to a decoding method and decoder for a Golay code. [Prior Art] In recent years, there has been an increasing demand for reliability of signal transmission from consumer electronics to communication electronics; therefore, error detection and correction mechanisms are becoming increasingly important. In the digital communication process, in order to ensure the correctness of the original data to be transmitted, the transmitting end generally adds redundant data to the original data, and the receiving end can perform error correction based on the redundant data. Since the binary square residual code has a good correcting ability for errors generated in the transmission channel, it has become one of the most popular channel coding methods, and is currently a satellite communication system, a digital television system, and each An error correction code (Error Correction Code) widely used in digital video recording media. Among them, (23,12, 7) Gray code is a well-known binary square residual code. The existing decoding methods mainly include algebraic algorithms, Euclid algorithms, and step-by-step decoding algorithms. These algorithms have long delays in operation ( Long time delay ), high complexity, low regularity, and high gate count are difficult to implement and costly. SUMMARY OF THE INVENTION 201029339 Accordingly, it is an object of the present invention to provide a decoding method for Gray code. Therefore, the decoding method of the Gray code of the present invention comprises the following steps: (a) receiving a binary sequence; (b) receiving the binary sequence according to the received one, and a predefined first auxiliary school Determining a first symptom vector according to the matrix; (determining a second symptom vector according to the received two-bit sequence and a predefined second auxiliary check matrix; (d) according to the a first symptom vector, the second symptom vector, and the first auxiliary check matrix, the second auxiliary check matrix, and determining a first extended symptom vector, a plurality of second extended symptom vectors, and a plurality of third extensions a symptom vector, and a plurality of fourth extended symptom vectors; (e) respectively determining a corresponding first symptom vector, the second symptom vector, the first extended symptom vector, the second extended symptom vector, the third Extending the symptom vector, and a plurality of weight values of the fourth extended symptom vector; ^ f) performing conditional judgment based on the weight values to determine an error position vector: and (g) according to the error position And the two received sequence of bits of a decoded data corresponding to the original. Another object of the present invention is to provide a Gray code decoder.疋 'The Gray code grammar of the present invention' comprises a data buffer storage unit, a symptom vector calculation unit, an extended symptom vector calculation unit, a weight value calculation unit, an error position vector decision unit, and a Arithmetic unit. The resource buffer storage unit is configured to store a received binary sequence. The symptom vector calculation unit is configured to obtain a first symptom vector according to the binary sequence and a first auxiliary check matrix defined in advance 201029339, and to use the predefined sequence according to the binary sequence The second auxiliary check matrix finds a second symptom vector. The extended symptom vector calculation unit is configured to obtain a first extended symptom vector and a plurality of second according to the first symptom vector, the second symptom vector, the first auxiliary check matrix, and the second auxiliary check matrix. The extended symptom vector, the plurality of third extended symptom vectors, and the plurality of fourth extended symptoms to #. The (four) value calculation unit is configured to respectively obtain a corresponding '•Hui symptom vector, the second symptom vector, the first extended symptom to β 4, the second extended symptom vector, the third extended symptom vector, and The plurality of weight values of the fourth extended symptom vector. The error position vector decision block 70 is used for conditional judgment based on the weight values to determine an error position vector. The operation unit is configured to decode a corresponding original data according to the error location vector and the received binary sequence. The effect of the invention is that the error location vector is determined by the condition of the weight value, and the original data is obtained according to the condition; not only can the Gray code be efficiently decoded, but also the operation complexity, The required number of gates Φ and cost are significantly lower than the existing algorithms 'suitable for hardware implementation. The above and other technical contents, features, and advantages of the present invention will be apparent from the following detailed description of the preferred embodiments. Referring to FIG. 1, a preferred embodiment of the Gray code decoder i of the present invention comprises a data buffer storage unit 11, a symptom vector calculation unit 12, an extension vector calculation unit 13, a weight value calculation unit 14, and an error location. Vector 5 201029339 determines unit 15 'and an arithmetic unit i6. The data buffer storage unit u is used to store the received pen-bit sequence. The symptom vector calculation unit 12 calculates a first symptom vector according to the binary sequence and the predefined-auxiliary check matrix, and uses the predefined two-second auxiliary school according to the two-bit sequence. Check the matrix 'to find the H-shaped vector. The extension vector calculation unit 13 is configured to extract a first extended symptom vector according to the first symptom vector, the second symptom vector, and the first auxiliary check matrix, and the second auxiliary check matrix Two extended symptom vectors, a plurality of third extended symptom vectors, and a plurality of fourth extended symptom vectors. The weight value calculation unit 14 is configured to respectively determine a corresponding first symptom vector, the second symptom vector, the first extended symptom vector, the second extended symptom vector, the third extended symptom vector, and the like The plurality of weight values of the fourth extended symptom vector. The error position vector determining unit 15 is configured to perform conditional judgment based on the equal weight values to determine an error-error position vector. The operation unit 16 is configured to decode a corresponding original data according to the error location vector and the received binary sequence. In the preferred embodiment, the decoder 1 of the Gray code is implemented in a hardware manner, but it can also be implemented in a software or firmware manner, and is not limited to the preferred embodiment. An illustration. The matrix used in the steps is pre-defined before the description of the Gray code decoding method is performed. (23, i2'7) Gray code generation polynomial is as shown in equation (1). Rong (^ = 1X^0-#).................................... (where ' h is the set of non-〇 binary squared remainder 201029339 under modulo 23; A is the root of the Gray code generator polynomial. For each _/· = 〇, ι,···, 22, β is as shown in the formula (2). β +..·~,................................(7) Among them, 'the root of the GF(2„) of Gal〇is Field, \., £1),1,..”0^. The root coefficient of the root of the polynomial is generated for Gray code, and GF(2) defines the root coefficient matrix (represented by A) of the root of the Gray code generator polynomial, as shown in equation (3).

α〇,〇 αο,ι … αο,ιο A = «1,0 α\,\ … αΜ〇 _ Λ _α22,0 α22Λ α22,1〇 αη,ο αη,ι ** . Λ απ,ιοΑ〇,〇 αο,ι ... αο,ιο A = «1,0 α\,\ ... αΜ〇 _ Λ _α22,0 α22Λ α22,1〇 αη,ο αη,ι ** . Λ απ, ιο

其中,疋義4為原根係數矩陣^的一上半子矩陣;*為 原根係數矩陣A的一下半子矩陣。 進一步定義一第一辅助校驗矩陣(以$代表),以及一 第二辅助校驗矩陣(以Α代表),分別如式(4)以及(5) 所示。Among them, 疋 4 is an upper half submatrix of the original root coefficient matrix ^; * is the lower half submatrix of the original root coefficient matrix A. Further, a first auxiliary check matrix (represented by $) and a second auxiliary check matrix (represented by )) are defined, as shown in equations (4) and (5), respectively.

...............(4 ) ·**···········( 5 ) 7χ 參閱圖i與圖2,配合上述格雷碼之解碼器卜本發明 格雷碼之解碼方法的較佳實施例包含下列步驟。 、在步驟21中,該格雷碼之解碼器i接收該二位元序列 (以"-(/^,..,,^2”,,22)代表);並儲存於該資料緩衝儲存單元 工2根據該二位元 在步驟22中,該症狀向量計算單元 201029339 Γ:二第;輔:—、第二輔一 狀向量(以Α代表),及該第二症狀向量( 2代表)’分別如式⑷以及⑺所示。 ^?Γ>...................... ,、 .......................................... = %..................... ,、 —在步驟23中’該延伸症狀向量計算單元ι3根據該第 、:狀向量Α、第二症狀向量及該第一輔助校驗矩陣[ _辅助校驗矩陣I求出該第-延伸症狀向量、該等第 延伸症狀向量、該等第三延伸症狀向量,及該等第四延 伸症狀向量’分別如式(8)、(”、( 1〇)及(U)所示。 第一延伸症狀向量=ϊ2θ^12).. .................................... 〇 ) 第二延伸症狀向量4㊉俨,匕{11,12,...,22}......................(9) 第三延伸症狀向量=ϊ㈣"㊉私1),iM12,13”",22}.............. ( 1〇) 第四延伸症狀向量= ί-2@ρ,匕似,叫......................(1〇 其中,乂(/)為該第一、該第二輔助校驗矩陣乃的第/列向 量,J = l,2;㊉為有限場加法運算,在此即是互斥或(x〇r) 運算。 在步驟24中,該權重值計算單元14先求出該第一症 狀向量5、第二症狀向量4、該第一延伸症狀向量、該等第 二延伸症狀向量、該等第三延伸症狀向量,及該等第四延 伸症狀向量的權重值,分別以咐⑻、咐⑹、财$㊉私2))、 Η^,θλ/1))、㊉纪”㊉把)),及财氏㊉杞2))代表。然後該錯誤位 置向量決定單元15根據财⑻、⑽⑹、州咕㊉咕))、Μ^㊉纪η) 201029339 、η^ΛΘ/^Θ啞:)’及州咐#俨}進行以下條件判斷,並依條件 判斷的結果決定出錯誤向量(以?代表)。值得一提的是, 對於可解的(decodable )的二位元序列f,依上述運算求出 的權重值’必定僅符合以下六種情況的其中一者。 情況一:若OSw咕)<3,則& =〇 ’其令,; 清況一.若 1^〇2)<3,且 i2=(s。,“),則吒=〇且 〜12=\,其中,Of <10; 情況三:若,且?2㊉纪)= (m,W,則 _ 〜=1 且心 12 ,其中,0S/S1O ; 情況四:若存在唯一的一 f值,ie {11,丨2,,22卜使得...............(4) ·**············ (5) 7χ Refer to Figure i and Figure 2, together with the above-mentioned Gray code decoder The preferred embodiment of the decoding method of the Gray code of the present invention comprises the following steps. In step 21, the decoder i of the Gray code receives the binary sequence (represented by "-(/^,..,,^2",, 22)); and stores in the data buffer storage unit According to the two bits in step 22, the symptom vector calculation unit 201029339 Γ: two; auxiliary: -, second auxiliary one-shaped vector (represented by Α), and the second symptom vector (2 represents)' They are shown in equations (4) and (7) respectively. ^?Γ>......................,,.................. ............................. = %................... . . , , - In step 23, the extended symptom vector calculation unit ι3 finds the first based on the first:: vector vector Α, the second symptom vector, and the first auxiliary check matrix [ _ auxiliary check matrix I - The extended symptom vector, the first extended symptom vector, the third extended symptom vector, and the fourth extended symptom vector ' are represented by equations (8), (", (1), and (U), respectively. An extended symptom vector = ϊ 2θ ^ 12)................................ 〇) Two extended symptom vectors 4 俨, 匕 {11,12,...,22}......................(9) Third Extended symptom vector = ϊ (four) " 十私1), iM12, 13"", 22}.............. (1〇) Fourth extension symptom vector = ί-2@ρ, Similar, called ......................(1〇 where 乂(/) is the first, the second auxiliary check matrix is the first /column vector, J = l, 2; ten is a finite field addition operation, here is a mutually exclusive or (x〇r) operation. In step 24, the weight value calculation unit 14 first finds the first symptom vector 5. The second symptom vector 4, the first extended symptom vector, the second extended symptom vector, the third extended symptom vector, and the weight values of the fourth extended symptom vector are respectively 咐(8), 咐(6) , Finance $10 private 2)), Η^, θλ/1)), Shiji "ten"), and Cai's ten 杞 2)). Then, the error position vector decision unit 15 judges the following conditions according to the financial (8), (10) (6), state 咕 咕 咕)), Μ 十 η 2010) 201029339, η ^ ΛΘ / ^ Θ ::) 'and the state 咐 # 俨}, And based on the results of the conditional judgment, the error vector (represented by ?) is determined. It is worth mentioning that for the decodable binary sequence f, the weight value determined by the above operation must only meet one of the following six cases. Case 1: If OSw咕)<3, then &=〇' its order,; condition 1. if 1^〇2)<3, and i2=(s.,"), then 吒=〇 ~12=\, where,Of <10; Case 3: If, and ?2 十纪) = (m, W, then _ =1 and heart 12, where 0S/S1O; Case 4: If there is a unique An f value, ie {11, 丨2,, 22

Bw明㊉Α7”β2,則^;=1,且〜=〇,其中,nsx22,且片 情況五:若存在唯一的一 ζ·值,匕似以,22),使得 你叫㊉纪”㊉斯)):】,則〜=1,e, =1 ,且勹=〇,其中,12^以, 且_/_#·;以及 情況六:若存在唯一的一 £•值,ie{〇1,,1〇},使得 ♦㊉〇 = 2,且ί2θΑ-,⑵=(M,…,〜),則〜=〇且〜3,其中 參 5 0^;<10 0 上述情況中的e,·代表該錯誤位置向量5的第z•位元,錯 誤位置向量e位70中未被給定(assign )值的位元表示不在 乎位元(don’t care bit)。 在步驟25中,該運算單元16將該錯誤位置向量g與該 二位元序列F進行互斥或運算,以解碼出該原始資料(以了 代表)’如式(12)所示。 (12) 201029339 综上所述,本發明藉由該等權重值之條件判斷,可以 較少的運算元決定出該錯誤位置向量,並據以求出該原始 資料,而且上述條件判斷中的六種情況,在硬體上可以平 行(parallel )方式實現;不但大幅提昇了格雷碼之解碼效 率,且其運算規則性高,而複雜度、所需閘數及成本皆遠 低於現有之演算法,極適合以硬體實現,故確實能達成本 發明之目的。Bw 明十Α7”β2, then ^;=1, and ~=〇, where nsx22, and slice case five: if there is a unique value, like, to 22), making you called the ten )):], then ~=1, e, =1, and 勹=〇, where 12^以, and _/_#·; and case six: if there is a unique £• value, ie{〇1 ,, 1〇}, such that ♦ ten 〇 = 2, and ί2θ Α -, (2) = (M, ..., ~), then ~ = 〜 and ~ 3, where 5 5 0 ^; < 10 0 e in the above case , represents the z-th bit of the error position vector 5, and the bit of the error position vector e-bit 70 that is not given (assign) value represents the don't care bit. In step 25, the arithmetic unit 16 mutually exclusive ORs the error position vector g with the two-bit sequence F to decode the original data (represented by the equation) as shown in equation (12). (12) 201029339 In summary, the present invention determines that the error location vector can be determined by fewer operands by the condition of the weight values, and the original data is obtained according to the condition, and six of the above condition determinations In this case, it can be implemented in parallel on the hardware; not only greatly improves the decoding efficiency of Gray code, but also has high computational regularity, and the complexity, required gate number and cost are far lower than the existing algorithms. It is very suitable for hardware implementation, so it can achieve the object of the present invention.

惟以上所述者,僅為本發明之較佳實施例而已,當不 能以此限定本發明實施之範圍,即大凡依本發明申請專利 範圍及發明說明内容所作之簡單的等效變化與修飾,皆仍 屬本發明專利涵蓋之範圍内。 【圖式簡單說明】 圖1是一方塊圖, 實施例;以及 圖2是一流程圖, 佳實施例。 說明本發明格雷碼之解碼器的較佳 說明本發明格雷碼之解喝方法的較The above is only the preferred embodiment of the present invention, and the scope of the invention is not limited thereto, that is, the simple equivalent changes and modifications made by the scope of the invention and the description of the invention are All remain within the scope of the invention patent. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram, an embodiment; and FIG. 2 is a flow chart, a preferred embodiment. DESCRIPTION OF THE PREFERRED EMBODIMENT OF THE GRAPHIC CODE OF THE INVENTION

10 201029339 【主要元件符號說明】 1 «>««««>» …格雷碼之解碼器 算單元 11 …資料緩衝儲存單 *| 4 > *·«·»»» t 權重值計算單元 元 1 •錯誤位置向量決 1 4 Φ Φ V ft …症狀向量計算單 定單元 元 16 運算單元 1 α 1 ^ '…延伸症狀向量計 21〜2 5…* -步驟10 201029339 [Description of main component symbols] 1 «>««««>» ...Decoding unit of Gray code 11 ... data buffer storage list*| 4 > *·«·»»» t Weight value calculation unit Element 1 • Error position vector decision 1 4 Φ Φ V ft ... symptom vector calculation unit cell 16 arithmetic unit 1 α 1 ^ '... extended symptom vector meter 21~2 5...* - steps

1111

Claims (1)

201029339 七、申請專利範圍: 1. 一種格雷碼之解瑪方法,包含下列步驟: (a )接收一筆二位元序列; (b) 根據已接收的該二位元序列,及預先定義的一 第一辅助校驗矩陣,求出一第一症狀向量; (c) 根據已接收的該二位元序列,及預先定義的一 第二輔助校驗矩陣,求出一第二症狀向量; (d) 根據該第一症狀向量、該第二症狀向量,及該 第一輔助校驗矩陣、該第二輔助校驗矩陣,求出一第一 延伸症狀向量、複數個第二延伸症狀向量、複數個第三 延伸症狀向量,及複數個第四延伸症狀向量; (e) 分別求出對應該第一症狀向量、該第二症狀向 量、該第一延伸症狀向量、該等第二延伸症狀向量、該 等第二延伸症狀向量,及該等第四延伸症狀向量之複數 個權重值; (f) 根據該等權重值進行條件判斷,決定出一錯誤 位置向量;以及 (g)根據該錯誤位置向量及已接收的該二位元序列 解碼出對應的一原始資料。201029339 VII. Patent application scope: 1. A Gray code solution method, comprising the following steps: (a) receiving a two-bit sequence; (b) according to the received binary sequence, and a predefined one An auxiliary check matrix is obtained to obtain a first symptom vector; (c) determining a second symptom vector according to the received binary sequence and a predefined second auxiliary check matrix; (d) Determining a first extended symptom vector, a plurality of second extended symptom vectors, and a plurality of numbers according to the first symptom vector, the second symptom vector, and the first auxiliary check matrix and the second auxiliary check matrix a third extended symptom vector, and a plurality of fourth extended symptom vectors; (e) respectively determining a corresponding first symptom vector, the second symptom vector, the first extended symptom vector, the second extended symptom vector, and the like a second extended symptom vector, and a plurality of weight values of the fourth extended symptom vector; (f) performing conditional judgment based on the weighted values to determine an error position vector; and (g) determining the error location based on the error location And the amount of the two received sequence of bits corresponding to a decoded original data. A為格雷碼生成多項式的根之一原根係 陣’ 為A的一上半子矩陣, 4為A的一下半子矩陣 72為AAJ1,其中 數矩陣,為, 12 201029339 3· t據巾請專利範圍第2項所述之格雷碼之解碼方法,其 I’該第一症狀向量如’該第二症狀向量咖,其 中,r為已接收的該二位元序列。 4.依據巾請專利範圍第3項所述之格雷碼之解碼方法,其 中’該第:延伸症狀向量為叫2),該等第二延伸症狀 向量為Αθρ,該等第三延伸症狀向量為,該 等第四延伸症狀向量為_尸,其中,W為該第-輔助 心驗矩陣、該第二辅助校驗矩陣『的第丨列向量,):1,2A is the root of the Gray code generator polynomial, the original root matrix ' is an upper half submatrix of A, and 4 is the lower half submatrix 72 of A is AAJ1, where the number matrix is, 12 201029339 3· t according to the towel The decoding method of the Gray code according to Item 2 of the patent scope, wherein the first symptom vector is the second symptom vector, wherein r is the received binary sequence. 4. According to the method for decoding Gray code according to item 3 of the patent application, wherein 'the first: the extended symptom vector is called 2), the second extended symptom vector is Αθρ, and the third extended symptom vector is The fourth extended symptom vector is _ corpse, wherein W is the first-assisted matrix and the second auxiliary check matrix 『the third column vector,: 1, 2 Ο 5.依獅請專利範圍第4項所述之格雷碼之解碼方法,其 中’在該步称(f)巾’係進行以下條件判斷以決定該 錯誤位置向量e,其中,e,代表錯誤位置向量g的第/位 70,且吨)、吨)、,㊉咕))、μ(㈣))、吨喊”㊉啞) ,及对味㊉^⑺)分別代表該第一症狀向量的權重值、該第 二症狀向量的權重值、該第一延伸症狀向量的權重值、 該等第二延伸症狀向量的權重值、該等第三延伸症狀向 量的權重值’及該等第四延伸症狀向量的權重值: 情況一:若0^啊)53,則ei=0,其中,uygn; 情況二:若1“咐2)<3,且& =(^,,s〗。),則吒=〇且 〜2=\’其中,0幺1幺1〇; 情況三:若〇“咕㊉咕))22,且^㊉碎)=(5。,'” ”51。),則 吒=1且心12=\,其中,0SK10 ; 情況四:若存在唯一的一 I•值,ie {1112,,22丨,使得 ㊉纪υ)<2 ’ 則 a =1 ’ 且〜=〇,其中,,且 _/Ά· 201029339 情況五:若存在唯一的一 t•值,ie {1213, ,22},使得 Wi(il φ乂1 )= 1 ’ 則〜=1,¢, = 1 ’且 1= 〇,其中,12< 22 ,且;以及 清况八.若存在唯一的一 值,ie{〇1,1〇丨,使得 蛛2Θ& )_2 ’且0纪2>=(方。“,則〜且〜+1〆,其中 ,0< 7 <10 〇Ο 5. According to the lion's patent method, the Gray code decoding method described in item 4, wherein 'in this step is called (f) towel, the following condition is judged to determine the error position vector e, where e represents an error. Position vector g of the first / position 70, and tons), tons), ten 咕)), μ ((four))), ton shout "ten dumb", and the taste of ten ^ (7)) respectively represent the first symptom vector a weight value, a weight value of the second symptom vector, a weight value of the first extended symptom vector, a weight value of the second extended symptom vector, a weight value of the third extended symptom vector', and the fourth extension The weight value of the symptom vector: Case 1: If 0^ ah) 53, then ei = 0, where uygn; Case 2: If 1 "咐 2) < 3, and & = (^,, s〗.) , then 吒=〇 and ~2=\' where 0幺1幺1〇; Case 3: If “〇十咕))22, and ^十碎)=(5.,'” ”51.), Then 吒=1 and heart 12=\, where 0SK10; Case 4: If there is a unique I• value, ie {1112,,22丨, so that 纪纪υ)<2 ' then a =1 ' and ~ =〇, where, and _/Ά· 2010293 39 Case 5: If there is a unique value of t, ie {1213, , 22}, such that Wi(il φ乂1 )= 1 ' then ~=1, ¢, = 1 'and 1= 〇, where 12&lt 22, and; and condition 8. If there is a unique value, ie{〇1,1〇丨, make the spider 2Θ&)_2 'and 0 纪2>=(square.", then ~ and ~+1 〆, where, 0 < 7 <10 〇 6. 依據巾請專利範圍第丨項所述之格雷碼之解碼方法,其 中’在該步驟(g)中,係將該錯誤位置向量及已接收的 該-位7L序列進行互斥或運算,以解瑪出該原始資料。 7. —種格雷碼之解碼器,包含: 一貝料緩衝儲存單元,用以儲存已接收的一筆二位 元序列; —征狀向量計算單元,用以根據該二位元序列與 先定義的一第—辅助校驗矩陣,求出-第-症狀向量6. According to the method of decoding the Gray code described in the scope of the patent application, wherein in the step (g), the error position vector and the received sequence of the 7-bit sequence are mutually exclusive OR. To solve the original data. 7. A Gray code decoder comprising: a material buffer storage unit for storing a received binary sequence; a syndrome vector calculation unit for defining a binary sequence according to the binary sequence a first - auxiliary check matrix, find the - first symptom vector 及用以根據該二位元序列與預先定義的一第二輔助校 矩陣,求出一第二症狀向量; 一延伸症狀向量訃質gg - 重十算皁70,用以根據該第一症狀 量、該第一症狀向量,及诗曾 及該第一輔助权驗矩陣、該第 辅助权驗矩陣,束屮—每 承出第—延伸症狀向量、複數個第 延伸症狀向量、趨激伽货_ 第二延伸症狀向量’及複數個 四延伸症狀向量; 一權重值計算單元 向量、該第二症狀向量 用以分別求出對應該第—症狀 該第一延伸症狀向量、該等第 14 201029339 二延伸症狀向量、該等第三延伸症狀向量,及該等第四 延伸症狀向量之複數個權重值; 一錯誤位置向量決定單ι用以根據該等權重值進 订條件判斷,決定出—錯誤位置向量;以及 —運算单①,用卩根據該錯誤位置向量及已接收的 該二位元序列解碼出對應的一原始資料。 依據中請專利範圍第7項所述之格雷碼之解瑪器,其中 ’該第一輔助校驗矩陣(為<,該第二辅助校驗矩陣巧 為4,其中,Λ為格雷碼生成多項式的根之一原根係數 矩陣4為Α的-上半子矩陣,^為讀_下半子矩陣。 依據u利範圍第8項所述之格雷碼之解碼器,其中 ,該症狀向量計算單元之運算如下:該第一症狀向量' 為A,該第二症狀向量?2為汀2,其中,?為已接收的該二 位元序列。 以依據申請專利範圍第9項所述之格雷碼之解碼器,其中 ,該延伸症狀向量計算單元之運算如下:該第-延伸症 狀向量為㊉私),該等第二延伸症狀向量為^㊉纪”,該等 第三延伸症狀向量為㈣)㊉咕,該等第四延伸症狀向量 為⑽⑵,其中,❸為該第一辅助校驗矩陣該第二輔 助校驗矩陣7;的第f列向量,)=12。 11.依射請專利_第1G項所述之格雷碼之解碼器,其中 ’該錯誤位置向量決定單元係進行以下條件判斷,以決 定該錯誤位置向量泛,其中、代表錯誤位置向量泛的第,· 位兀,且对⑷、轉2)、邮2㊉咕))、_㊉纪】))、 15 201029339 ννί(Α㊉纪”㊉,及wi(?2 φ杞2))分別代表該第一症狀向量的權 重值、該第二症狀向量的權重值、該第一延伸症狀向量 的權重值、該等第二延伸症狀向量的權重值、該等第三 延伸症狀向量的權重值,及該等第四延伸症狀向量的權 重值: 情況一:若OSvv咕)53,貝|J e, =0,其中,幺22; 情況二:若1^(ϊ2)<3,且ί2=(νίι,〜),則吒=〇且 ei+12 = \,其中,〇 U < 1〇 ; 情況三:若,且= 為),則 611=1且6,+|2=\,其中,〇以21〇; 情況四:若存在唯一的一 ^值,& {1U2,,22丨,使得 心啊e#)mU=1,且 e;=0,其中,n^22,且 情況五:若存在唯一的一 值,叫2,13,.·.,22},使得 响㊉纪、咕)=1,則en=1,gi = 1,且〜=〇,其巾,叫以 ,且_;> ί;以及 其中 ey'+12 = Sj 情況六:若存在唯一的叫值,ie{〇1,,1〇},使得 吨㊉化(2)) = 2,且?2θρ=(Μ,,Si。),則吒=〇且 ,0< 7<10 〇 12.依據中請專利範圍第7項所述之格雷碼之解碼器,其中 ,該運算單元係將該錯誤位置向量及已接收的該二位元 序列進行互斥或運算,以解碼出該原始資料。 16And determining a second symptom vector according to the binary sequence and a predefined second auxiliary calibration matrix; an extended symptom vector 讣 gg - 重十算皂70, for using the first symptom amount The first symptom vector, and the poem and the first auxiliary check matrix, the auxiliary auxiliary check matrix, the bundle - each of the first extended symptom vector, the plurality of extended symptom vectors, and the stimuli _ a second extended symptom vector 'and a plurality of four extended symptom vectors; a weight value calculating unit vector, the second symptom vector is used to respectively determine the first extended symptom vector corresponding to the first symptom, and the 14th 201029339 second extension a symptom vector, the third extended symptom vector, and a plurality of weight values of the fourth extended symptom vector; an error position vector determining the single ι for determining the error position vector according to the weighting condition And the operation unit 1 is configured to decode the corresponding original data according to the error position vector and the received binary sequence. According to the gamma hopper of the Gray code described in Item 7 of the patent application, wherein the first auxiliary check matrix (for <, the second auxiliary check matrix is 4, wherein Λ is Gray code generation One of the roots of the polynomial, the root coefficient matrix 4 is the upper-sub-matrix of the ,, and the ^ is the lower-sub-matrix of the read_lower sub-matrix. The decoder of the Gray code according to item 8 of the u-profit range, wherein the symptom vector is calculated. The operation of the unit is as follows: the first symptom vector 'is A, and the second symptom vector 2 is Ting 2, where ? is the received binary sequence. According to the gray according to claim 9 a decoder of the code, wherein the operation of the extended symptom vector calculation unit is as follows: the first extended symptom vector is ten private, the second extended symptom vector is ^10, and the third extended symptom vector is (four) The tenth extension symptom vector is (10) (2), wherein ❸ is the first auxiliary check matrix of the second auxiliary check matrix 7; the f-th column vector,)=12. _The code of the Gray code described in item 1G, where 'this error The set vector decision unit performs the following conditional judgment to determine the error position vector pan, where the position representing the error position vector is, ·, and (4), turn 2), post 2, 咕), _ 十纪) ), 15 201029339 ννί (Α十纪十十, and wi(?2 φ杞2)) respectively represent the weight value of the first symptom vector, the weight value of the second symptom vector, and the weight value of the first extended symptom vector The weight value of the second extended symptom vector, the weight value of the third extended symptom vector, and the weight value of the fourth extended symptom vector: Case 1: If OSvv咕)53, Bay|J e, = 0, where 幺22; Case 2: If 1^(ϊ2)<3, and ί2=(νίι,~), then 吒=〇 and ei+12 = \, where 〇U <1〇; Three: If, and = is), then 611 = 1 and 6, + | 2 = \, where 〇 is 21 〇; Case 4: If there is a unique value, & {1U2,, 22丨, Heart e#)mU=1, and e;=0, where n^22, and case five: if there is a unique value, called 2,13,.·.,22}, making it ten times, 咕) =1, then en=1 , gi = 1, and ~=〇, its towel, called, and _;>ί; and where ey'+12 = Sj Case 6: If there is a unique value, ie{〇1,,1〇} , so that ten tons (2)) = 2, and? 2θρ=(Μ,, Si.), then 吒=〇, 00<10<10 〇12. According to the Gray code decoder described in claim 7, wherein the arithmetic unit is the error The location vector and the received binary sequence are mutually exclusive ORed to decode the original data. 16
TW98102028A 2009-01-20 2009-01-20 Gray code decoding method and decoder TWI385931B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW98102028A TWI385931B (en) 2009-01-20 2009-01-20 Gray code decoding method and decoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW98102028A TWI385931B (en) 2009-01-20 2009-01-20 Gray code decoding method and decoder

Publications (2)

Publication Number Publication Date
TW201029339A true TW201029339A (en) 2010-08-01
TWI385931B TWI385931B (en) 2013-02-11

Family

ID=44853999

Family Applications (1)

Application Number Title Priority Date Filing Date
TW98102028A TWI385931B (en) 2009-01-20 2009-01-20 Gray code decoding method and decoder

Country Status (1)

Country Link
TW (1) TWI385931B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017076301A1 (en) * 2015-11-02 2017-05-11 Chongqing University Of Posts And Telecommunications Methods, systems and computer-readable media for error correction

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI742371B (en) * 2019-05-13 2021-10-11 義守大學 Error correction method for applying single trace

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5323402A (en) * 1991-02-14 1994-06-21 The Mitre Corporation Programmable systolic BCH decoder
US5373511A (en) * 1992-05-04 1994-12-13 Motorola, Inc. Method for decoding a reed solomon encoded signal with inner code and apparatus for doing same
JP2002027464A (en) * 2000-07-07 2002-01-25 Fujitsu Ltd Encoding device and decoding device
US7287209B2 (en) * 2004-06-03 2007-10-23 Cheertek, Inc. System and method for detecting codeword errors in error correction code or cyclic redundancy check code

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017076301A1 (en) * 2015-11-02 2017-05-11 Chongqing University Of Posts And Telecommunications Methods, systems and computer-readable media for error correction
US10742236B2 (en) 2015-11-02 2020-08-11 Chongqing University Of Posts And Telecommunications Methods, systems and computer-readable media for decoding cyclic code
US10826533B2 (en) 2015-11-02 2020-11-03 Chongqing University Of Posts And Telecommunications Methods, systems, and computer-readable media for decoding a cyclic code

Also Published As

Publication number Publication date
TWI385931B (en) 2013-02-11

Similar Documents

Publication Publication Date Title
US10187085B2 (en) Decoding method, decoding apparatus and decoder
JP4036338B2 (en) Method and apparatus for correcting and detecting multiple spotty byte errors in a byte with a limited number of error bytes
US9396357B2 (en) Physically unclonable function (PUF) with improved error correction
US10243589B2 (en) Multi-bit error correction method and apparatus based on a BCH code and memory system
CN103380585B (en) Input bit error rate presuming method and device thereof
US8601351B2 (en) BCH decoding with multiple sigma polynomial calculation algorithms
JP7012479B2 (en) Reed-Solomon Decoder and Decoding Method
TW201029339A (en) Method of decoding Golay code and decoder
US20140013181A1 (en) Error Correction Coding Using Large Fields
CN110679090B (en) Reduced delay error correction decoding
US9645883B2 (en) Circuit arrangement and method for realizing check bit compacting for cross parity codes
TW201145850A (en) Orthogonal multiple description coding
Kim et al. Fast low-complexity triple-error-correcting BCH decoding architecture
US8161360B1 (en) Integrated interleaved codes
KR101432909B1 (en) HIGH-SPEED LOW-COMPELEXITY MODIFIED STEP-BY-STEP DECODING METHOD AND Circuit for parallel bch decoder
TWI334277B (en) Method for calculating syndrome efficiently in reed-solomon decoding and machine readable storage medium storing instructions for performing the method
KR101154923B1 (en) BCH decoder, memory system having the same and BCHBCH decoding method
CN102318250A (en) CRC processing method in the communication system, device and LTE terminal
US20130111304A1 (en) Cyclic code decoding method and cyclic code decoder
TWI326988B (en) Rs decoder and ibma method and parallel-to-serial conversion method thereof
Tallini et al. On symmetric/asymmetric Lee distance error control codes and elementary symmetric functions
Buzaglo et al. Systematic codes for rank modulation
US8479075B2 (en) System and method for preserving neighborhoods in codes
Srivastava et al. Efficient Berlekamp-Massey based recursive decoder for Reed-Solomon codes
Berger et al. Maximum likelihood decoding algorithm for some Goppa and BCH Codes: Application to the matrix encoding method for steganography

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees