TW201035781A - Root finding circuit - Google Patents

Root finding circuit Download PDF

Info

Publication number
TW201035781A
TW201035781A TW98110422A TW98110422A TW201035781A TW 201035781 A TW201035781 A TW 201035781A TW 98110422 A TW98110422 A TW 98110422A TW 98110422 A TW98110422 A TW 98110422A TW 201035781 A TW201035781 A TW 201035781A
Authority
TW
Taiwan
Prior art keywords
order
root
zero element
operator
multiplier
Prior art date
Application number
TW98110422A
Other languages
Chinese (zh)
Other versions
TWI392238B (en
Inventor
ming-hao Jin
Yao-Zu Zhang
Jian-Hong 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 TW98110422A priority Critical patent/TWI392238B/en
Publication of TW201035781A publication Critical patent/TW201035781A/en
Application granted granted Critical
Publication of TWI392238B publication Critical patent/TWI392238B/en

Links

Landscapes

  • Error Detection And Correction (AREA)

Abstract

A root finding circuit is suitable for detecting whether a nonzero element belongs to the root of an R-order polynomial. The root finding circuit comprises a computing device and a comparator. The computing device includes: (R-1) order calculators, each order calculator corresponding to one of the orders in the polynomial except a selected order and generating an order product based on the coefficient of the corresponding order; and a finite adder for receiving the order products generated by all order calculators and the coefficient of the selected order so as to form a numerical signal. The comparator is used for comparing a selected reference value related to the selected order with the numerical signal, so as to determine whether the nonzero element belongs to the root of the polynomial.

Description

201035781 六、發明說明: 【發明所屬之技術領域】 本發明是有關於-種代數運算技w,特别是指一種用 以實現錢氏搜尋法(Chien Search)的尋根電路。 【先前技術】 Ο ❹ 錢氏搜尋法主要用途為:求出—多項式的根(r〇叫以 利於多項式的因式分解。常見用於可更正隨機位元錯誤的 李德所羅門(Reed Solomon,RS)解碼器,來分析_錯^ 多項式而找出發生錯誤的位置。 = 假設RS解碼ϋ接收了—個(n,k,d)編碼信號,其碼長打 位元’實際資訊長度k位元,可糾錯容量為及= 其中W代表:小於等於X的最大正整數。那麼is2解」可 根據此編碼信號產生一階數最多為R的錯誤位置多項式 (error-loc詹polynomial)如方程式⑴所示接著運用錢工氏 搜尋法將加洛瓦體GFo N個非零元素(_· 一代入,來檢驗得知哪些非零元 素是屬於錯誤位置多項式的根,且所有檢驗運算都是建立 在為有限體的加洛瓦體GF(2m)上。其中,m , η=0,1,2..·(Ν-1),且錯誤位置多項式的常數項係數,各 階係數分別為Λ·ι ' Λ2... 。 Ο) λ(^ )= ΣΛ^ r=0 r 參閱圖1 ’其顯示了實現方程式⑴的電路圖。當一非零 201035781 元素αη傳入這個雷跋 分別為該非零元素y : Ρ可藉由尺個有限體乘法器71 合相加成-數算’再由加法器72集 否為1來判斷二二—比較器73會依據該數值信號是 進而決定發生”二二素。"是否為錯誤位置多項式的根, t生錯誤的位置。爾後’圖i的電路會在下 ::另一非零元素α”。但是,這樣的電路必須耗費 週期才能完成所有非零元素‘,、 於解碼效率。 +利 為此各知一技術提出了平行化的概念(如圖2),使在 一個週期t同時檢驗其巾ρ個非零元素心藉以將檢 =幅縮減為「贈1週期,其代表··大於等於χ的最大 正整數。並且’另—習知技術更將圖2電路化簡成圖3,企 圖降低每—週期的操作時間。可惜,改善程度有限。 练觀圖1〜3 ’不難發現:針對每一非零元素^,比較器 73都疋等到計算出該數值信號(含有該非零元素^的第卜尺 階)後,才將所得的數值信號錢1做比較。這意味著比 較器73、83、93的等待時間相當長,連帶地影響了每一週 期的操作時間,也是解碼效率低落的一大主因。 此外,雖然圖2和圖3電路的檢驗週期數目都較圖五 大為縮減,但是硬體電路數目幾乎是圖i的p倍,實現成 本過高。鑑於此,陸續也有其他改善方式被提出,譬如:201035781 VI. Description of the Invention: TECHNICAL FIELD OF THE INVENTION The present invention relates to an algebraic arithmetic technique, and more particularly to a root-seeking circuit for implementing Chien Search. [Prior Art] Ο ❹ The main purpose of the Qian search method is to find the root of the polynomial (r〇 is to facilitate the factorization of the polynomial. It is commonly used in Reed Solomon (RS) to correct random bit errors. The decoder analyzes the _ er^ polynomial to find the location where the error occurred. = Suppose the RS decoding ϋ receives an (n, k, d) coded signal whose code length is the bit 'the actual information length k bits, The error correctable capacity is and = where W represents: the largest positive integer less than or equal to X. Then the is2 solution can generate an error-loc polynomial with an order of up to R according to the coded signal, as in equation (1). Then, using the Qiangong search method, the Gallo-body GFO N non-zero elements (_· one generation) are tested to find out which non-zero elements belong to the root of the error location polynomial, and all the test operations are based on The finite body of the Galois body GF(2m), where m, η=0,1,2..·(Ν-1), and the constant term coefficient of the error location polynomial, the coefficients of each order are Λ·ι ' Λ2... Ο) λ(^ )= ΣΛ^ r=0 r See Figure 1 ' The circuit diagram for implementing equation (1) is shown. When a non-zero 201035781 element αη is introduced into the thunder, the non-zero element y is: Ρ can be combined by the finite body multiplier 71 and the number is calculated by the adder. The 72nd set is 1 to judge the 22nd-comparator 73 according to the numerical signal to determine the occurrence of the "two-two prime." is the root of the error location polynomial, t is the wrong position. Then the circuit of Figure i will In the following:: Another non-zero element α". However, such a circuit must take a period of time to complete all non-zero elements', and the decoding efficiency. + Lee proposed a parallelization concept for this technology (Figure 2 ), so that the non-zero element core of the towel is tested at the same time t to reduce the detection to the "giving 1 cycle, which represents the largest positive integer greater than or equal to χ. And the other technology is more Figure 2 is simplified in Figure 3, in an attempt to reduce the operating time per cycle. Unfortunately, the degree of improvement is limited. Figure 1~3 'It is not difficult to find: for each non-zero element ^, the comparator 73 waits until the calculation The value signal (containing the non- After the element ^'s dimension, the resulting value signal is compared to 1. This means that the comparators 73, 83, 93 have a relatively long waiting time, which affects the operation time of each cycle, and is also decoded. In addition, although the number of inspection cycles of the circuits of Figures 2 and 3 is reduced compared with Figure 5, the number of hardware circuits is almost p times that of Figure i, and the implementation cost is too high. In view of this, there are successively Other improvements have been proposed, such as:

Chen 和 Paihi 於 IEEE TRANSACTIONS ON VERY LARGE SCALE INTEGRATWN(VLSI) SYSTEMS,2004 中提出的以交 迭匹配(Iterative Matching)和群組匹配(Group Matching)方式 201035781 來共用運算電路’又譬如:Cho和Sung於/五石五 TRANSACTIONS ON CIRCUITS AND SYSTEMS-U, 2008 今爽 議以移位器(shifter)來取代有限體的乘法運算。只是在圖2 、3的架構下,這些做法都無法有效地減輕實現成本的壓力 〇 【發明内容】 因此’本發明之目的’即在提供一種可以縮減根檢驗 時間並降低硬體電路成本的尋根電路。 〇 於是,本發明尋根電路,適用於檢驗一非零元素是否 屬於一個R階多項式的根,包含:一計算裝置,包括:(R_ 1)個階運算器,每一階運算器對應該多項式中除了一選定階 ' 的其中一階,且根據該對應階的係數產生一階乘積;及一 . 個有限體加法器,接收所有階運算器產生的階乘積以及該 選定階的係數,而形成一數值信號;及一比較器,以一關 於該選定階的選定參考值來與該數值信號做比對,以判斷 該非零元素是否屬於該多項式的根。 〇 而本發明尋根電路,適用於檢驗一非零元素是否屬於 一個R階多項式的根,包含:一第一計算裝置,包括:5個 階運算器,每一階運算器對應該多項式中除了一選定階的 其中一階,且根據該對應階的係數產生一階乘積,匕 ,及一個有限體加法器,接收該s個階運算器產生的階乘 積以及該選定階的係數,而形成一第一數值信號;一第二 &十异裝置,包括.(R_丨_S)個階運算器,每一階運算器對應 該多項式中除了 一選定階的其中一階,且根據該對應階的 201035781 係數產生一階乘積;及一個有限體加法器,接收該(R_丨_s) 個階運算器產生的階乘積以及一關於該選定階的選定參考 值’而形成一第二數值信號;及一比較器,比對該第一數 值信號與該第二數值信號,以判斷該非零元素是否屬於該 多項式的根。 【實施方式】 有關本發明之前述及其他技術内容、特點與功效,在 以下配合參考圖式之五個較佳實施例的詳細說明中,將可 清楚的呈現。 在本發明被詳細描述之前,要注意的是’在以下的說 明内容中,類似的元件是以相同的編號來表示。 复較佳青施制 為了縮短比較器的等待時間以降低每一週期的操作時 間,本發明提出一摺疊(folding)架構,將多項式的R階區分 成兩部份,並為每一部份計算出一數值信號。再由比較器 比對該二數值信號來做判斷。 參閱圖4’本發明尋根電路之第一較佳實施例適用於從 加洛瓦體GF(2m)的N個非零元素^〇,夂〆…y-i中,找出屬 於一個R階多項式的根。該尋根電路i包含一第一計算裝 置11、一第二計算裝置12及一比較器13。第一計算裝置 11包括S個階運算器TCr及一個有限體加法器14,而第二 6十算裝置12包括(R-S)個階運算器TCr及一個有限體加法器 14 °其中’每一階運算器TCr分別對應多項式的第r階,且 201035781 具有一多工器16、一 而1SS<R,Μ , ° 及—有限體常數乘法器17, 較佳地,使時/2」而令第 的運算,並令第二計 彳,裝置11負貝奇數階 化每一週期的操作時η /負責偶數階的運算,能最小 V是多項式的根.在迫樣的安排下,假設非零元素 分別為Λ Λ ’且多項柄常數項係數\=1,切係數 Σλχ1 r=l 步那麼非零元素❹滿足方程式⑵,當進一 步分^偶階射得方程式(3)。 ^Chen and Paihi share the arithmetic circuit in the IEEE TRANSACTIONS ON VERY LARGE SCALE INTEGRATWN (VLSI) SYSTEMS, 2004 with the combination of the Iterative Matching and the Group Matching method 201035781. For example: Cho and Sung / 五石五TRANSACTIONS ON CIRCUITS AND SYSTEMS-U, 2008 It is now a shifter to replace the finite-body multiplication. However, under the framework of Figures 2 and 3, these practices cannot effectively alleviate the pressure of implementation cost. [The present invention] Therefore, the object of the present invention is to provide a root-seeking method that can reduce the root-checking time and reduce the cost of the hardware circuit. Circuit. Therefore, the root-seeking circuit of the present invention is adapted to verify whether a non-zero element belongs to a root of an R-th order polynomial, comprising: a computing device comprising: (R_1) order operators, each of which corresponds to a polynomial Except for a first order of a selected order ', and generating a first-order product according to the coefficient of the corresponding order; and a finite body adder, receiving a multiplicative product generated by all the order operators and coefficients of the selected order, forming a And a comparator that compares the selected signal with the selected reference value to determine whether the non-zero element belongs to the root of the polynomial. The root-seeking circuit of the present invention is adapted to verify whether a non-zero element belongs to the root of an R-th order polynomial, and includes: a first computing device comprising: five-order arithmetic operators, each of the multi-dimensional operators corresponding to one of the polynomials Selecting one of the orders of the order, and generating a first-order product according to the coefficient of the corresponding order, 匕, and a finite body adder, receiving the step product generated by the s-order operators and the coefficients of the selected order, forming a first a second signal; a second & ten different device, comprising: (R_丨_S) order operators, each order operator corresponding to one of the selected orders in the polynomial, and according to the corresponding order The 201035781 coefficient produces a first order product; and a finite body adder receives the product of the (R_丨_s) order operator and a selected reference value for the selected order to form a second value signal And a comparator that compares the first value signal with the second value signal to determine whether the non-zero element belongs to the root of the polynomial. The above and other technical contents, features and effects of the present invention will be apparent from the following detailed description of the preferred embodiments of the invention. Before the present invention is described in detail, it is to be noted that in the following description, similar elements are denoted by the same reference numerals. In order to shorten the waiting time of the comparator to reduce the operation time of each cycle, the present invention proposes a folding architecture, which divides the R-order of the polynomial into two parts and calculates for each part. A numerical signal is produced. The comparator then determines the binary signal. Referring to FIG. 4', the first preferred embodiment of the root-seeking circuit of the present invention is applicable to find the roots belonging to an R-order polynomial from N non-zero elements 加, yi ... yi of the Galois GF (2m). . The rooting circuit i includes a first computing device 11, a second computing device 12, and a comparator 13. The first computing device 11 includes S steps operator TCr and a finite body adder 14, and the second 6th computing device 12 includes (RS) order operators TCr and a finite body adder 14 ° where each step The operator TCr corresponds to the rth order of the polynomial, respectively, and 201035781 has a multiplexer 16, a 1SS <R, Μ, ° and - finite body constant multiplier 17, preferably, the time /2" The operation, and let the second count, device 11 negative Bech number ordering operation η / responsible for even-order operations in each cycle, the minimum V is the root of the polynomial. Under the forced arrangement, assuming non-zero elements They are Λ Λ ' and the multi-handle constant term coefficient \=1, the cut coefficient Σλχ1 r=l step, then the non-zero element ❹ satisfies the equation (2), and when further divided into the even order, the equation (3) is obtained. ^

V 4 νψι 1 (2) (3) ΣΛ<=1+ νΛί/V 4 νψι 1 (2) (3) ΣΛ<=1+ νΛί/

r.odd ^ rU r:even,r>2 因而’階運算器Tcr中,有限體常數乘法器17會視〆 為乘數《其乘上多工器16輸出而得到—階乘積,且多工 在第自週期是以係數Λ "為輸出,而其餘週期則是選 取暫存器D輸出。並且’有限體常數乘法器17完成乘法運 算後,會將階乘積送往對應的有限體加法器14,也會將其 存放於暫存器D中。且暫存器D會延遲—個週期後再將儲 存值輸出。 根據方程式(3),第一計算裝置U的有限體加法器14 會加總所有奇數階之階運算器TCr的階乘積而得到一第一數 值t號’第一 5十算裝置12的有限體加法器14會在加總所 有偶數階之階運算器TCr的階乘積後,再加上常數項係數 八〇的1值而得到一第二數值信號。 201035781 然後,比較器13再比對第一數值信號是否吻合第二數 值信號’以判斷··#零元素y是否真的是多項式:根7詳 細來說’在兩數值信號吻合時,比較器13會列斷非零元素 的確是該多項式的根;而不吻合時,則判斷為否 當然,在另-實施例中,第二計算裝置12的有限體加 法器14可以只加總所有偶數階階運算器TCf的階乘積,來 得到該第二數值信號。而比㈣13則是基於第—數值信號 、第二數值信號以及常數項係數Λ〇=1,㈣行匕匕對判斷。 、。值得注意的是,在第一個週期時,每—有限體常數乘 法器17會因為接收係數\而產生階乘積為,所以此時 該有限體加法器14會形成關於非零元素以的數值信號以 供比較器13驗證非零元素心在第二個週期時,每一有限 體常數MU nt因為接收階乘積Λχ而更新階乘積為 Λ,2’,以供比較器13驗證非零元素y。以此類推。 且值得注意的是,本較佳實施例的比較器13只需要等 候一段計算涵蓋奇數階之第—數值信號㈣間,或是等候 一段計算涵蓋偶數階之第二數值信號的時間,因此能較習 知技術實質地縮短每一週期的操作時間。 更值得;主意的是’當本較佳實施例應用於Μ解碼器, 由=在找出發生錯誤的位置後,還需根據多項式的微分來 t算曰誤冑r5j在有限體的運算下,屬於偶數階的微分結 果會等效為0’所以當選取奇偶階分離的架構(如圖4)時, 更可以直接採用涵蓋奇數階之第—數值信號來求取相關錯 誤值,使間接地簡化了用以計算錯誤值的電路。 201035781 盖三例 〃參_ 5’本發明尋根電路之第二較佳實施例包含一計 算裝置21及一比較11 13。計算裝置21包括(R-1)個階運算 11 Cr及一個有限體加法器14。其中,每一階運算器TCr, 均類似於第-較佳實施例的階運算器TCr,而r,的定義會於 稍後說明。R.odd ^ rU r:even,r>2 Therefore, in the 'order operator Tcr, the finite body constant multiplier 17 will treat the multiplier as the multiplier "which multiplies the output of the multiplexer 16 to obtain the -th order product, and multiplex In the first self cycle is the coefficient Λ " for the output, and the remaining cycle is to select the register D output. And after the finite body constant multiplier 17 completes the multiplication operation, the step product is sent to the corresponding finite body adder 14, and it is also stored in the register D. And the register D will be delayed - the storage value will be output after one cycle. According to equation (3), the finite body adder 14 of the first computing device U adds up the product of all odd-order order operators TCr to obtain a first value t number 'the finite body of the first 5th computing device 12 The adder 14 obtains a second value signal by adding a step product of all the even-order order operators TCr and adding a value of the constant term coefficient 〇. 201035781 Then, the comparator 13 compares whether the first numerical signal matches the second numerical signal 'to determine whether the zero element y is really a polynomial: the root 7 is in detail 'when the two numerical signals match, the comparator 13 The non-zero element is indeed the root of the polynomial; if it is not coincident, then it is judged as of course. In another embodiment, the finite body adder 14 of the second computing device 12 can only add all the even orders. The step product of the operator TCf is used to obtain the second value signal. The ratio (4) 13 is based on the first-valued signal, the second numerical signal, and the constant term coefficient Λ〇=1, (4). ,. It is worth noting that, in the first cycle, the finite body constant multiplier 17 will produce a factor product due to the reception coefficient \, so the finite body adder 14 will form a numerical signal about the non-zero element at this time. For the comparator 13 to verify that the non-zero element is in the second period, each finite volume constant MU nt updates the order product Λ, 2' for receiving the step product 以, for the comparator 13 to verify the non-zero element y. And so on. It should be noted that the comparator 13 of the preferred embodiment only needs to wait for a period of time to calculate the odd-numbered first-valued signal (four), or wait for a period of time to calculate the second-order numerical signal covering the even-order order, so Conventional techniques substantially shorten the operating time of each cycle. More worthwhile; the idea is that 'when the preferred embodiment is applied to the Μ decoder, after = finding the location where the error occurred, it is necessary to calculate the error 胄r5j under the finite body operation according to the differentiation of the polynomial. The differential result belonging to the even order will be equivalent to 0'. Therefore, when the architecture of the odd-order separation is selected (as shown in Fig. 4), the first-value signal covering the odd-order order can be directly used to obtain the relevant error value, which is indirectly simplified. A circuit for calculating an error value. 201035781 Cover Three Cases The second preferred embodiment of the present invention includes a computing device 21 and a comparison 11 13 . The computing device 21 includes (R-1) order operations 11 Cr and a finite body adder 14. Here, each of the order operators TCr is similar to the step operator TCr of the first preferred embodiment, and the definition of r, which will be described later.

由於每—階運算器TCr,所具有的有限體常數乘法器17 會因為其乘冑,而&定乘法電路的複雜度,所以本例試圖 改變該等對應的乘數來降低電路成本。假設非零元素"是 多項式的根(見方程式(2)),本例是使計算裝置21接收一選 定階u,並將將方程式(2)除以。《幻來求得方程式(4) ΣΛ, 厂(μ—ί_)η + R-Since the per-order operator TCr has a finite-body multiplier 17 because of its multiplication, and the complexity of the multiplying circuit, the present example attempts to change the corresponding multiplier to reduce the circuit cost. Assuming that the non-zero element " is the root of the polynomial (see equation (2)), this example is to cause computing device 21 to receive a selected order u and divide equation (2). "Fantasy to find the equation (4) ΣΛ, factory (μ_ί_) η + R-

Au + ΣΛ«+Ι· in a (4) 如此,第二較佳實施例將可隨選定階u改變乘數,並 月&省略階運算器TCU的使用’也就是說’計算裝置21只需 包括(R-1)個階運算器TCr,,Γ,= 1,2,…R但Γ’如。且此時, 比較器13是以一選定參考值⑽來做比對,這不同於第一 較佳實施例所選用的1值。 值得注意的是,因為有限體常數乘法器17等效於多個 加法器的集合,且依乘於不同的常數’會對應不同個數的 加法器數量。而本例中,該等有限體常數乘法器17的乘數 都是0;的冪次方’所以可更換不同的選定階以 9 201035781 最小化加法器(即:互斥或(職)閘)的使用數量,進而降低 尋根電路2的實現電路成本。 »然本例的尋根電路2還可包含一用以提供選定階订 的面積估器28,會先對方程式⑷中每一 “的冪次方數目 取絕對值,接著加總所有絕對值得到—如絲式(5)的面積 指標’再據以選出複數個使面積指標較小化的u來供計算 裝置21更換選用。此外’因為省略了階運算器%,所以 面積指標也可以不包含卜_。 面衡曰標=wn| +丨-(“—加丨+…+仏_咖丨 (5 ) =在取絕對值的過程中,基於加洛瓦場GF(2m)的幕次 方計算,存在QJ-H* γ „ (其中vv>2 -1)的關係,所以當 w>0’卜可以表示為w — 2m+i。 更值得注意的是,比較器13用以比對的選定參考值 «,是一個可預先計算的值,且此值會隨著㈣改變。當然 ’在另—實财,也可以不做預先的計算,而㈣—個對 照運算器29來產生此值。 對照運算器29具有一多工器16、一暫存器D及一有限 體常數乘法器17,且動作方式類似於階運算器τ。。其中 ’有限體常數乘法n 17是以“乘上多卫器16輸出且多 工在第—個週期是以i值為輸出。因此,當尋根電路 2在第叫固週期檢驗非零元素α,冑限體常數乘法旨Η會 根據多工1 16之輸出(1值)來產生選定參考值γ。而在第 10 201035781 多工器16會選擇暫存器D的輸 17會據以將選定參考值更新為 二個週期檢驗非零元素α2, 出,且有限體常數乘法器 。以此類推。 參閱圖6 ’第二較佳實施例統合了前兩個實施例的精神 而將4等階運算器TCr,區隔到兩個計算裝置31、32以降 低每一週期的操作時間,並改變有限體常數乘法器17的乘 〇 數來達成降低電路成本的目的。 本發明尋根電路3之第三較佳實施例所包含元件大致 相同於第-較佳實施例(圖4) ’但其中有三項不同處: • (一)階運算器TCr,的乘數為。 (二) 省略了階運算n TCu,且係數ΛιΛ直接傳入有限體 加法器14。 (三) 第二計算裝置32中,有限體加法器14除了接收所 有偶數階階運算器TCr,的輸出,更接收了選定參 ° 考值0。此點不同於第—較佳實施例中所接收的 1值0 為了方便前段說明,圖6是取R為偶數,u為大於3的 奇數來繪製。但實際應用上,R可以是任意正整數,且 舉例來說,u值也可以等於i,且此時尋根電路3, 的架構如圖7所示。 再者,也可以如前例般採用一對照運算器29來產生選 11 201035781 定參考值。並且,美 琢墙 土於有限體加法運算的交換性,對昭 運算裔29也能改成配置於第—計算裝置31中。 。卜帛第—較佳實施例中,由於電路實作上階運 算器TCr、TCr,佔用到大部份的電 旳冤路面積,而在各個階運算 器TCr、TCr’中所使用的有限體常數乘法器17具有可共用 的電路結構’所以可以根播羽 根據I知的交迭匹配(IterativeAu + ΣΛ«+Ι· in a (4) As such, the second preferred embodiment will change the multiplier with the selected order u, and omit the use of the order operator TCU 'that is,' the computing device 21 only It is necessary to include (R-1) order operators TCr,, Γ, = 1, 2, ... R but Γ '. At this time, the comparator 13 is compared by a selected reference value (10), which is different from the value of 1 selected for the first preferred embodiment. It is worth noting that because the finite body constant multiplier 17 is equivalent to a set of multiple adders, and multiplied by a different constant ' will correspond to a different number of adders. In this example, the multipliers of the finite body constant multipliers 17 are all 0; the power of the power is 'so different different stages can be replaced by 9 201035781 to minimize the adder (ie: mutual exclusion or (service) gate) The number of uses, which in turn reduces the circuit cost of the root-seeking circuit 2. - However, the rooting circuit 2 of this example may further include an area estimator 28 for providing the selected order, which will first take the absolute value of each "power square" in the equation (4), and then add all the absolute values to obtain - If the area index of the wire type (5) is selected, a plurality of u which reduce the area index are selected for replacement by the computing device 21. In addition, since the step operator % is omitted, the area index may not include _. 面衡曰标=wn| +丨-(“—加丨+...+仏_咖丨(5)=in the process of taking the absolute value, based on the background of the Galois field GF(2m) There is a relationship of QJ-H* γ „ (where vv> 2 -1), so when w>0' can be expressed as w - 2m + i. More notably, the comparator 13 is used for comparison selection. The reference value « is a pre-calculable value, and this value will change with (4). Of course, 'in another-real money, it is also possible to perform no calculation in advance, and (4) a comparison operator 29 to generate this value. The comparison operator 29 has a multiplexer 16, a register D, and a finite body constant multiplier 17, and the action mode is similar to the order operation. τ where the 'finite body constant multiplication n 17 is "multiplied by the multi-guard 16 output and the multiplex is output at the first period with the value of i. Therefore, when the root-seeking circuit 2 is not in the first-order test The zero element α, the limit body constant multiplication method will generate the selected reference value γ according to the output of the multiplex 1 16 (1 value), and in the 10th 201035781 multiplexer 16 will select the input of the register D. To update the selected reference value to two periods, check the non-zero element α2, and the finite body constant multiplier, etc. See Figure 6 'The second preferred embodiment integrates the spirit of the first two embodiments and will The fourth-order operator TCr is divided into two computing devices 31, 32 to reduce the operation time of each cycle, and the number of multipliers of the finite body constant multiplier 17 is changed to achieve the purpose of reducing the circuit cost. The third preferred embodiment of the third embodiment comprises substantially the same elements as the first preferred embodiment (Fig. 4) 'but there are three differences: • (a) the multiplier of the order operator TCr, (2) omitted The order operation n TCu, and the coefficient ΛιΛ is directly transmitted into the finite body plus 14. In the second computing device 32, the finite body adder 14 receives the output of all the even-order operators TCr, and receives the selected reference value 0. This point is different from the first-preferred implementation. In the example, the value of 1 is 0. In order to facilitate the description of the previous paragraph, Figure 6 is an odd number with R being an even number and u being greater than 3. However, in practice, R can be any positive integer, and for example, the value of u is also The architecture of the root-seeking circuit 3 can be equal to i, and the rooting circuit 3 is shown in Fig. 7. Further, a comparison operator 29 can be used as in the previous example to generate the reference value of 11 201035781. The exchangeability of the volume addition operation can also be changed to the first calculation device 31. . In the preferred embodiment, since the circuit implements the upper-order operators TCr and TCr, occupying most of the electric circuit area, and the finite body used in each of the level operators TCr and TCr' The constant multiplier 17 has a circuit structure that can be shared' so that it can be rooted based on the I-known overlap match (Iterative

Matching)方式來共用電路元件以有效降低電路成本。 第四較佳管施你丨 第四較佳實施例則是引進了平行化的概念,而將圖7 架構更改成圖8,使得在單一週期内能完成p個非零元素y 的檢驗,P>1。 相較於第三較佳實施例,本發明尋根電路4之第四較 佳實施例更包含OM)個第一子計算器V1_p、(IM)個第二子 計算器 V2_P&(P-i)個比較器 JG-p,ρ=12,(ρ ι)。 每一個第一子計算器VI—P包括S,個階運算器TCr,及一 個有限體加法器14,而每一個第二子計算器V2—p包括一個 對照運算器Ep、(R-i_s’)個階運算器TCr,及—個有限體加法 器 14 ’ 且 1SS’<(r_i),r,= 12, r 但 r,笑u。 其中’子計算器Vl_p、V2一p的階運算器TCr,分別具有 —採用乘數的有限體常數乘法器17。另一方面,值得 注意的是,計算裝置41、42的階運算器TCr,類似於第三較 佳實施例,而具有一多工器16、一暫存器D及一採用乘數 orp(〃w)的有限體常數乘法器17。 12 201035781 ,伊Π’更㈣8電路為例來說明尋根電路4的動作 二:二為正偶數,且第—計算裝置41所包括的階 運算器TCr,都是奇數階,第_外宜從里 ,5 τρ ^ θ 弟一汁鼻裝置Μ所包括的階運算 器TCr,都是偶數階。 在第一個週期時: 、計算裝置4卜42的階運算器TCr,會藉由多工器16 送出對應的係數八,然後所有子計算器vi—p、v2』 的Ps運算器TCr,會據以乘上。 並且,對照運算器29會送出1值,以供所有對照 運算器Ερ據以乘上α-ρ。 接著,對計算裝置41與第一子計算器V1_p來說 ,對應有限體加法器14會集合相關階運算器TCr,,而 形成一第一數值信號。對計算裝置42與第二子計算器 _P來說’對應有限體加法器14會集合對照運算5| 29、Ep與相關階運算器TCr,,而形成一第二數值信號Matching) way to share circuit components to effectively reduce circuit cost. The fourth preferred embodiment is that the fourth preferred embodiment introduces the concept of parallelization, and the structure of Fig. 7 is changed to Fig. 8, so that the verification of p non-zero elements y can be completed in a single cycle, P>;1. Compared with the third preferred embodiment, the fourth preferred embodiment of the root-seeking circuit 4 of the present invention further comprises OM) first sub-calculators V1_p, (IM) second sub-calculators V2_P& (Pi) comparisons JG-p, ρ=12, (ρ ι). Each of the first sub-calculators VI-P includes S, a rank operator TCr, and a finite body adder 14, and each of the second sub-calculators V2-p includes a collating operator Ep, (R-i_s' a rank operator TCr, and a finite body adder 14 ' and 1SS' < (r_i), r, = 12, r but r, laugh u. The order operator TCr of the 'sub-calculators Vl_p, V2-p, respectively, has a finite body constant multiplier 17 using a multiplier. On the other hand, it is worth noting that the step operator TCr of the computing devices 41, 42 is similar to the third preferred embodiment, but has a multiplexer 16, a register D, and a multiplier orp (〃). The finite body constant multiplier 17 of w). 12 201035781, Ie's more (four) 8 circuit as an example to illustrate the action 2 of the root-seeking circuit 4: two is a positive even number, and the order-operator TCr included in the first computing device 41 is an odd-order, the first _ , 5 τρ ^ θ The step operator TCr included in the sputum device is an even order. In the first cycle: the step operator TCr of the computing device 4, 42 will send the corresponding coefficient VIII by the multiplexer 16, and then the Ps operator TCr of all the sub-vibrators vi-p, v2, It will be multiplied. Also, the collation operator 29 sends a value of 1 for all the collating operators to multiply α-ρ. Next, for the computing device 41 and the first sub-calculator V1_p, the corresponding finite-body adder 14 assembles the correlation-order operator TCr to form a first value signal. For the computing device 42 and the second sub-calculator _P, the corresponding finite-body adder 14 combines the comparison operation 5| 29, Ep and the correlation-order operator TCr to form a second numerical signal.

最後’比較器13、JG_p只須等待計算裝置41與 第一子計算器V1-P收集完成奇數階階運算器TCr,的輪 出’或是等待計算裝置42與第二子計算器V2 一p收集 凡成對照運算器29' Ep與偶數階階運算器TCr,的輪出 ’就能進行比對以判斷出··非零元素W是否為多項式 的根。 在第二個週期時: 201035781Finally, the comparators 13, JG_p only have to wait for the computing device 41 and the first sub-calculator V1-P to collect the completion of the odd-order operator TCr, or wait for the computing device 42 and the second sub-clock V2. By collecting the rounds of the comparison operator 29' Ep and the even order operator TCr, it is possible to perform an alignment to determine whether or not the non-zero element W is the root of the polynomial. In the second cycle: 201035781

Tcr’會藉由多工器16 V1_P、V2_p的階運 §十算裝置41、42的階運算器 送出^八〃,’然後所有子計算器 算器TCr’會據以乘上ap(r_-„)。 以供所有對 並且,對照運算器29會迸出α-Ρ值 照運算器Ερ據以乘上^-厂。 最後,再由比較器13 ' JG 元素αΡ+ρ是否為多項式的根。 一Ρ來比對判斷出:非 零 且隨後週期的運作,以此類推,直到完全檢驗所有非 零元素W—1。综上,本例不但整體檢驗週期數目可減少 如圖3的習知電路,且每一週期的時間更因為奇偶階的分 離而減半。 當然,實際應用令,計算裝置41、42和子計算器Μ』 、V2_p可不限定以奇偶階來決定所有階運算器的配置 ’只要使該等階運算n TQ’配置於該兩個計算裝置41、42 或是配置於子計算器V1_p、V2_p +,即可達_短每—週 期時間的功效。 此外,屬於同一階的階運算器TCr,都接收同—多工器 的輸出,所以這些階運算器TCr,可以採用習知的群組匹 16 配(Gr〇up Matching)方式來共用電路元件。同理,該等對照 運算器29、Ep也能共享而減少硬體電路的使用。 佳實旅你1 如圖9所示,為了減少有限體常數乘法器17的使用 14 201035781 第五較佳實施例更將子計算器V1_p、V2—p的階運算器TCr 置換成移位器(shifter)。 相較於第四較佳實施例,本發明尋根電路5之第五較 佳實施例的主要不同點有二·· (一)子計算器Vl-P、V2—P的階運算器TCr,僅具有一移 位器58,使對應多工器之輸出向左移位(r,_u)xp, 而造成階乘積的位元長度增加(r,_u)xp。請注意, 本例移位器58的移位長度能隨u改變而間接影響 有限體加法器14使用的XOR數目,有別於習知 的圖3電路。 ()子4算器Vl_p、V2_p除了既有的有限體加法器14 和該等階運算器TCr,外,還具有一個修正電路Μ 會在有限體加法器14集合相關階運算器TCr,之 後,調整對應的數值信號並補償位元長度,再送 往比較器JG_p。Tcr' will send ^8〃 by the order operator of the multiplexer 16 V1_P, V2_p, and then the sub-calculator TCr will multiply ap(r_- „). For all pairs, the comparison operator 29 will take the α-Ρ value operator to multiply the ^-factor. Finally, the comparator 13 ' JG element αΡ+ρ is the root of the polynomial A comparison is made to determine: non-zero and subsequent cycle operation, and so on, until all non-zero elements W-1 are fully tested. In summary, this example can reduce the number of overall inspection cycles as shown in Figure 3. The circuit, and the time of each cycle is halved by the separation of the odd-even steps. Of course, the practical application, the computing devices 41, 42 and the sub-processors, V2_p may not limit the configuration of all the order operators by the odd-even order' As long as the equal-order operation n TQ' is arranged in the two computing devices 41, 42 or in the sub-calculators V1_p, V2_p +, the effect of _short-period time can be achieved. The operator TCr receives the output of the same-multiplexer, so these orders The controller TCr can share the circuit components by the conventional group matching method. Similarly, the comparison operators 29 and Ep can be shared to reduce the use of the hardware circuit. Traveler 1 as shown in Figure 9, in order to reduce the use of the finite-body multiplier 17 14 201035781 The fifth preferred embodiment replaces the step operator TCr of the sub-calculators V1_p, V2-p with a shifter Compared with the fourth preferred embodiment, the main difference of the fifth preferred embodiment of the root-seeking circuit 5 of the present invention is that the first-order sub-calculators Vl-P and V2-P are used. There is only one shifter 58 to shift the output of the corresponding multiplexer to the left (r, _u) xp, and the bit length of the product of the order product is increased (r, _u) xp. Please note that this example shifter The shift length of 58 can indirectly affect the number of XORs used by the finite body adder 14 as a function of u, which is different from the conventional circuit of Fig. 3. () Sub-units Vl_p, V2_p except for the existing finite body adder 14 And the equal-order operator TCr, in addition, there is also a correction circuit Μ a set of correlation-order operators TCr in the finite-body adder 14 Thereafter, the signal corresponding to the adjustment value and the compensation bit length, to the comparator JG_p retransmission.

、接下來’說明這兩項相異處的原由。本發明所 領域中具有通常知識者料㈣解:對於1 〜π—1的有關GF(2m) ” 70素 每一非零元素的 乘法運算具有封閉性的特質。亦即,㈣個非零^ =所得=乘積結果會等效於這“非零其 中之一,且所得乘積結果的位元 除T 孩办„ π Α κ又仍為m。這暗示著, Γ53 /二 進㈣步料,還需要配合修正電 付到位元長度結果1滿足有限體常 201035781 數乘法^ 17的功用。而修正電路53如何補償移位器%的 輸出,是本領域的通常知識,所以本文不再贅述。 此外,子計算器V1—P、V2_p中,各有限體加法器14 的運算時間與實現面積(職數目),取決於相關階運算器 TCr’移位後的位元長度。當移位後的各個位元長度彼此差異 增大’對應有限體加法器14的運算時間會拉長,且實現面 積加大。 所以,較佳地,本例是使第^R/2階的階運算器TCr 配置於第-計算裝置51和第-子計算器Vi—p巾,並使第 ⑽+1)〜R階的階運算器TQ,配置於第二計算和第 二子計算器V2_p中。 再者,為了進一步減少第二子計算器Μ』㈣位位元 長度,第_+1)~R階的階運算@ ,分別減少(R/2)xp移 位長度,即:減少成(r,-R/2-u)Xp。且每一個第二子計算器 V2—P更包括-個公因數乘法3 54,接收對應修正電路53 的輸出以乘上〇^/2,然後再提供給比較器。 值得注意的是,第二子計算器V2_p增加了該等公因數 乘法器54,但是第二計算裂£ 52並沒有同步增加所以本 例根據有限體加法的交換特性,而將該等對照運算器29、 EP移動到第一計算裝置51與第一子計算器νι—p中。 此外’在另-實施態樣中’第三〜五實施例的對照運算 器29、Ep也可以是電連接到該比較器13 ’且比較器13改 由基於對照運算器29、EP的輸出、該等第—數值信號以及 16 201035781 該等第二數值信號,來做判斷。 綜上所述,前述較佳實施例將該等階運算器TCr、TG 區隔到兩個計算裝^ n、31〜51、12〜52或區隔到兩個子計 算器Vim』,以降低每—週期的操作時間。也會在這 樣的架構下,改變有限體常數乘法器17的乘數、或是將有 限體常數乘法器17置換成移位器58,來減少硬體電路,故 破實能達成本發明之目的。Next, explain the reasons for these two differences. There is a general knowledge in the field of the invention (4) solution: for the multiplication of GF(2m)" 70 γ of each non-zero element of 1 to π-1 has a closed property. That is, (four) non-zero ^ = Gain = Product result will be equivalent to one of the "non-zero ones, and the resulting product of the result of the product divided by T „ π Α κ is still m. This implies that Γ53 / binary (four) step, also It is necessary to cooperate with the correction power to the bit length result 1 to satisfy the function of the finite body constant 201035781 multiplication method ^ 17. How the correction circuit 53 compensates the output of the shifter % is a common knowledge in the art, so this article will not repeat them. In the sub-calculators V1_P, V2_p, the operation time and the realized area (number of jobs) of each finite-body adder 14 depend on the bit length after the shift of the correlation-order operator TCr'. The difference in the lengths of the elements increases, and the operation time of the corresponding finite body adder 14 is lengthened, and the area of the implementation is increased. Therefore, in this example, the step operator TCr of the ^R/2th order is preferably arranged. - a computing device 51 and a sub-calculator Vi-p towel, and (10) Step operator TQ of +1) to Rth order is arranged in the second calculation and the second sub-calculator V2_p. Further, in order to further reduce the length of the second sub-rectifier 四 (four) bit, the _+1 The order operation @ of the R order is reduced by (R/2)xp shift length, ie: reduced to (r, -R/2-u) Xp, and each second sub-calculator V2-P further includes - a common factor multiplication 3 54, receives the output of the corresponding correction circuit 53 to multiply 〇^/2, and then supplies it to the comparator. It is worth noting that the second sub-calculator V2_p adds the common factor multiplier 54 However, the second calculation crack 52 does not increase synchronously. Therefore, according to the exchange characteristic of the finite body addition, the comparison operators 29 and EP are moved to the first calculation device 51 and the first sub-calculator νι-p. Further, in the other embodiment, the comparison operators 29, Ep of the third to fifth embodiments may be electrically connected to the comparator 13' and the comparator 13 is changed by the output based on the comparison operator 29, EP. The first-value signal and the second value signal of 16 201035781 are used for the judgment. The embodiment divides the equal-order operators TCr, TG into two computing devices, 31~51, 12~52 or two sub-calculators Vim to reduce the operation time per cycle. Under such a configuration, the multiplier of the finite body constant multiplier 17 is changed, or the finite body constant multiplier 17 is replaced with the shifter 58 to reduce the hardware circuit, so that the object of the present invention can be achieved by breaking.

▲惟以上所述者,僅為本發明之較佳實施例而已,當不 能以此限定本發明實施之範圍,即大凡依本發明中請專利 範圍及發明說明内容所作之簡單的等效變化與修飾皆仍 屬本發明專利涵蓋之範圍内。 【圖式簡單說明】 圖1是一方塊圖,說明實現錢氏搜尋法的習知電路; 圖2是一方塊圖,說明平行化概念的-習知電路; 圖3是-方塊圖,說明平行化概念的另一習知電路; 圖4是本發明尋根電路之第一較佳實施例的方塊圖; 圖5是本發明尋根電路之第二較佳實施例的方塊圖; 圖6是本發明尋根電路之第三較佳實施例的方塊圖 圖7是-方塊圖’說明第三較佳實施例的一態樣; 圖8是本發明尋根電路之第四較佳實施例的方塊圖; 及 圖9是本發明尋根電路之第五較佳實施例的方塊圖。 17 201035781 【主要元件符號說明】 1〜5 尋根電路 31, 11 〜51 …第一計算裝置 32,-… 12 〜52 •第二計算裝置 53 13 比較器 54' 14…… 有限體加法器 58 · 16 多工器 D 17……’ …有限體常數乘法器 Ep-·· 21. 計算裝置 JG_p 28*· •面積評估器 TC 1 2 9 ° ^ 對照運算器 Vl_p 3, 尋根電路 V2_p •第一計算裝置 。第二計算裝置 修正電路 公因數乘法器 移位器 暫存器 •對照運算器 -比較器 階運算器 第一子計算器 -第二子計算器 18The above is only the preferred embodiment of the present invention, and the scope of the present invention is not limited thereto, that is, the simple equivalent change of the patent scope and the description of the invention in the present invention is Modifications are still within the scope of the invention. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing a conventional circuit for implementing the Chien search method; FIG. 2 is a block diagram showing a conventional circuit of parallelization concept; FIG. 3 is a block diagram showing parallel 4 is a block diagram of a first preferred embodiment of the root-seeking circuit of the present invention; FIG. 5 is a block diagram of a second preferred embodiment of the root-seeking circuit of the present invention; FIG. 7 is a block diagram showing a fourth preferred embodiment of the present invention; FIG. 8 is a block diagram showing a fourth preferred embodiment of the root-seeking circuit of the present invention; Figure 9 is a block diagram of a fifth preferred embodiment of the root-seeking circuit of the present invention. 17 201035781 [Description of main component symbols] 1 to 5 Rooting circuits 31, 11 to 51 ... First computing device 32, -... 12 to 52 • Second computing device 53 13 Comparator 54' 14 ... Finite body adder 58 · 16 multiplexer D 17...'...finite body constant multiplier Ep-·· 21. calculation device JG_p 28*· area estimator TC 1 2 9 ° ^ comparison operator Vl_p 3, root finding circuit V2_p • first calculation Device. Second Computing Device Correction Circuit Common Factor Multiplier Shifter Register • Comparison Operator - Comparator Step Operator First Sub Calculator - Second Sub Calculator 18

Claims (1)

201035781 七、申請專利範圍: -丨· 一種尋根電路,適用於檢驗一非零元素是否屬於一個R 階多項式的根,包含: 一計算裝置,包括: (R-1)個階運算器,每一階運算器對應該多項式 中除了-選定階的其中—階,且根據該對應階的係 數產生一階乘積;及 個有限體加法器,接收所有階運算器產生的 〇 階乘積以及該選定階的係數,而形成一數值信號; 及 一比較器,以一關於該選定階的選定參考值來與該 數值信號做比對,以判斷該非零元素是否屬於該多項式 的根。 2. 依據申請專利範圍第丨項所述之尋根電路,其中,當該 選定階為u且幺/?,則該選定參考值是該非零元素的 (-u)冪次方; 〇 每一階運算器具有一有限體常數乘法器,會以一乘 數乘上該對應階的係數而產生該階乘積並且對於相關 第r階的階運算器,該乘數為該非零元素的(ru)冪次方 ,1幺但 3. 依據申請專利範圍第2項所述之尋根電路,更適用於檢 驗另一非零元素是否屬於該多項式的根,其中, 每一階運算器更具有: 一暫存器’接收該有限體常數乘法器產生的該 19 201035781 憝乘積,並在一個週期後輸出;及 、—多工器,選擇將該暫存器之輸出或該對應階 係數輪出,以供該有限體常數乘法器的運算依據 :第-個週期時,每—多工器是以該對應階的係數 :輸出’ ^令對應有限體常數乘法器產生關於該非零元 ’、的階乘積’以供該有限體加法器形成關於該非零元素 ^ = ¼號’並使該比較器據以判斷該非零元素是否屬 於該多項式的根; ^第二個週期時,該多工器是提供該暫存器之 =有限料㈣法器,而令對應有㈣常數乘法器產 生關於該另一非愛;各& # + 非零凡素的階乘積,以使該比較器進行對 該另一非零元素的判斷。 4. 依據申凊專利範圍第1 項所述之寸根電路,更包含一對 '、、、自’產生該比較器用以判斷的選定參考值。 5. 依據申請專利範圍第 少 照運算n,具有:項料之讀電路,更包含一對 -暫存器’接收該比較器用以判斷的選定參考值, 並在一個週期後輸出; 一多工器’選擇輸出該暫存器之輸出,或是輸出1 值, 一有限體常數乘法器 數,以更新該選定參考值 u)幂次方; 使該多工器之輸出乘上一乘 且該乘數為該非零元素的(- 20 201035781 在第-個週期時,該多工器是以1值為, 該有限體常數乘法器產生關 ’ ·、而令 益座玍關於该非零兀素的選定 ,以供該比較器據以判斷該 的根; 雜非零-素是否屬於該多項式 二個週期時’該多工器是選擇該暫存 ’而令該有限體常數乘法器更新該選定參考值, 6.201035781 VII. Patent application scope: -丨· A root-seeking circuit, which is suitable for testing whether a non-zero element belongs to the root of an R-order polynomial, comprising: a computing device, comprising: (R-1) rank operators, each The order operator corresponds to the -order of the selected order in the polynomial, and generates a first-order product according to the coefficient of the corresponding order; and a finite body adder receives the 〇-order product generated by all the order operators and the selected order A coefficient forms a numerical signal; and a comparator aligns with the numerical signal with a selected reference value for the selected order to determine whether the non-zero element belongs to the root of the polynomial. 2. The root finding circuit according to the scope of the patent application scope, wherein when the selected order is u and 幺/?, the selected reference value is the (-u) power of the non-zero element; The operator has a finite body constant multiplier that multiplies the coefficient of the corresponding order by a multiplier to produce the product of the order and for the step operator of the relevant rth order, the multiplier is the (ru) power of the non-zero element Square, 1幺 3. According to the root-seeking circuit described in claim 2, it is more suitable to check whether another non-zero element belongs to the root of the polynomial, wherein each-order operator has: 'Receiving the 19 201035781 憝 product generated by the finite body constant multiplier and outputting after one cycle; and, - multiplexer, selecting to output the output of the register or the corresponding order coefficient for the limited The operation basis of the body constant multiplier: at the first cycle, each multiplexer is the coefficient of the corresponding order: the output '^ is the corresponding finite body constant multiplier to generate the product of the non-zero element', for the order product The finite body adder is formed The non-zero element ^ = 1⁄4 ' and the comparator is used to determine whether the non-zero element belongs to the root of the polynomial; ^ in the second cycle, the multiplexer is the finite material (four) method providing the register And the corresponding (4) constant multiplier produces a product of the order of the other non-love; each &# + non-zero, so that the comparator makes a judgment on the other non-zero element. 4. According to the root circuit described in claim 1 of the claim patent, a pair of ', , and from ' generates a selected reference value for the comparator to determine. 5. According to the patent application scope, the minority operation n has: a read circuit of the item material, and further includes a pair of - register holders to receive the selected reference value used by the comparator for judgment, and output after one cycle; 'selects the output of the register, or outputs a value of 1, a finite constant multiplier to update the selected reference value u) power; multiply the output of the multiplexer by a multiplication The multiplier is the non-zero element (- 20 201035781. In the first cycle, the multiplexer is a value of 1 and the finite body constant multiplier generates a '', and the benefit is about the non-zero element The selection is for the comparator to determine the root; whether the non-zero-prime belongs to the polynomial two cycles, the multiplexer selects the temporary storage and the finite body constant multiplier updates the selection Reference value, 6. 比較器進行對該另—非零元素的判斷。 八〜 :=艮電路’適用於檢驗一非零元素是否屬於_個r 鳴多項式的根,包含: 一第一計算裝置,包括: S個階運冑器,每一階運算器對應該多項式中 除了-選定階的其卜階’且根據該對應階的係數 產生一階乘積,1^</?;及 一個有限體加法器,接收該s個階運算器產生 的階乘積以及該選定階的係數,而形成一第一數值 信號; 一第二計算裝置,包括: (R-1-S)個階運算器,每一階運算器對應該多項 式中除了 一選定階的其中一階,且根據該對應階的 係數產生一階乘積;及 一個有限體加法器’接收該(r_ 1 _S)個階運算器 產生的階乘積以及一關於該選定階的選定參考值, 而形成一第二數值信號;及 一比較器,比對該第一數值信號與該第二數值信號 21 201035781 ’以判斷該非零元素是否屬於該多項式的根。 7. 依據申請專利範圍第6項所述之尋根電路,其中,當該 選定階為u且沢,則該選定參考值是該非零元素的 (-u)冪次方; 每一階運算器具有一有限體常數乘法器,會以一乘 數乘上該對應階的係數而產生該階乘積,並且對於相關 第Γ階的階運算器,該乘數為該非零元素的冪次方 ,1幺但 8. 依據申請專利範圍第7項所述之尋根電路,更適用於檢 驗另一非零元素是否屬於該多項式的根,其中, 每一階運算器更具有: 一暫存器,接收該有限體常數乘法器產生的該 階乘積’並在一個週期後輸出;及 多工器’選擇將該暫存器之輸出或該對應階 的係數輸出,以供該有限體常數乘法器的運算依據The comparator makes a judgment on the other-non-zero element. VIII~:=艮 circuit 'applies to verify whether a non-zero element belongs to the root of _ r ming polynomial, comprising: a first computing device, comprising: S throttling devices, each ordering operator corresponding to the polynomial Except for the selected order of the order and generating a first-order product according to the coefficient of the corresponding order, 1^</?; and a finite body adder, receiving the product of the s-order operator and the selected order a coefficient of the first numerical signal; a second computing device comprising: (R-1-S) rank operators, each of the operators corresponding to a first order of the selected order of the polynomial, and Generating a first-order product according to the coefficient of the corresponding order; and a finite body adder 'receiving the product of the (r_ 1 _S) order operator and a selected reference value for the selected step to form a second value And a comparator that compares the first value signal with the second value signal 21 201035781 ' to determine whether the non-zero element belongs to the root of the polynomial. 7. The root-seeking circuit according to claim 6, wherein when the selected order is u and 沢, the selected reference value is a (-u) power of the non-zero element; each stage operator has a A finite body constant multiplier that multiplies the coefficient of the corresponding order by a multiplier to produce the product of the order, and for the order operator of the relevant second order, the multiplier is the power of the non-zero element, 1幺8. The root-seeking circuit according to claim 7 of the patent application scope is more suitable for testing whether another non-zero element belongs to the root of the polynomial, wherein each level operator further has: a register, receiving the finite body The multiplication product generated by the constant multiplier is output after one cycle; and the multiplexer 'selects the output of the register or the coefficient of the corresponding order for the operation basis of the finite body constant multiplier 為輸出,而令對應有限體常數乘法器產生關於該非零 素的階乘積,且玆柄毋& …ea .For output, the corresponding finite body constant multiplier produces a product of the order of the non-zero element, and 毋 毋 & ... ea . 於該多項式的根;At the root of the polynomial; 生關於該另一 喂朋時,該多工器是提供該暫存器之輸出 數乘法器’而令對應有限體常數乘法器產 非零疋素的階乘積,以使該比較器進行對 22 201035781 該另一非零元素的判斷。 • 9.依據中請專利範圍第6項所述之尋根電路,更包含一對 知、運算器,用以產生該選定參考值。 10.依據申請專利範圍第8項所述之尋根電路,更包含一對 照運算器,具有: -暫存器’接收該選定參考值,並在一個週期後輸 出; 一多工器,選擇輸出該暫存器之輸出,或是輸出1 〇 值; -有限體常數乘法器,使該多工器之輸出乘上一乘 數’以更新該選定參考值’且該乘數為該非零元素的(_ U)冪次方; • 在第—個週期時,該多工器是以1值為輸出,而令 該有限體常數乘法器產生關於該非零元素的選定參考值 ,以供該有限體加法器形成關於該非零元素的第二數值 信號,而使該比較器判斷該非零元素是否屬於該多項式 的根; 在第二個週期時,該多工器是選擇該暫存器之輸出 ,而令該有限體常數乘法器更新該選定參考值以供該 比較器進行對該另一非零元素的判斷。 11·依據中請專利範圍第6項所述之尋根電路,更適用於同 時檢驗另-非零元素,其中,當該選定階為U且 ,則該選定參考值是該非零元素的(_2u)冪次方,且該第 -和該第二計算裝置的階運算器所採用乘數是該非零元 201035781 素的2(r-u)幂次方,該尋根電路更包含: 一第一子計算器,包括: S個階運算器,分別接收來自該第一計算裝置 的對應多工器之輸出,並據以產生一階乘積;及 個有限體加法器,接收該s個階運算器產生 的階乘積以及該選定階的係數,而形成一第一數值 信號; 一第二子計算器,包括: (R-i-s)個階運算器,分別接收來自該第二計算 裝置的對應多工器之輸出,並據以產生一階乘積 ;及 ' 一個有限體加法器,接收該(r—u)個階運算器 產生的階乘積以及關於該選定階的選定參考值,而 形成一第二數值信號;及 一比較器,比對來自該第二子計算器的第一數值信 號與來自該第_子計算器的第二數值信號,以判斷該另 一非零元素是否屬於該多項式的根。 12. 依據申請專利範圍第u項所述之尋根電路,其中, 該二個子計算器中,每—階運算器具有—有限體常 數乘法器’分別以-乘數乘上該對應多工器之輸出而產 生該階乘積,其中該乘數為該非零元素的(ru)幂次方。 13. 依據申請專利範圍第u項所述之尋根電路,其中, 該二個子計算器+,每一階運算器具有一移位器, 令對應多工器之輸出向左移位(r_u),而使該階乘積的位 24 201035781 元長度增加(r-u); 该一個子计算器更分別包括一修正電路,會在對應 有限體加法器集合相關階運算器之後,調整對應的數值 信號並補償位元長度,再送往該比較器。 14. 依據申請專利範圍第η項所述之尋根電路,其中, 該第一 §·[·算裝置和該第一子計算器所包括的階運算 器是屬於第1〜R/2階,且該第二計算裝置和該第二子計 算器所包括的階運算器是屬於第(r/2 + 1)〜r階;且 〇 該第一子計异器的每一階運算器具有一移位器,令 對應多工器之輸出向左移位(r_u),而使該階乘積的位元 長度增加(r-u); 該第二子計算器的每一階運算器具有一移位器,令 對應多工器之輸出向左移位(r_R/2_u),而使該階乘積的 位元長度增加(r-R/2-u); 而該第二子計算器更包括一公因數乘法器,接收董十 應修正電路的輸出以乘上該非零元素的(R/2)冪次方然 〇 後再送往該對應比較器。 15. 依據申請專利範圍第6項所述之尋根電路,其中, 該第一計算裝置所包括的階運算器都是奇數階,且 該第二計算裝置所包括的階運算器都是偶數階。When the other donor is about the other, the multiplexer is to provide the output multiplier of the register, and the corresponding finite body constant multiplier produces a non-zero order product of the multiplicity, so that the comparator performs the pair 22 201035781 The judgment of this other non-zero element. • The root-seeking circuit described in item 6 of the scope of the patent application further includes a pair of knowers and operators for generating the selected reference value. 10. The root-seeking circuit according to item 8 of the patent application scope, further comprising a comparison operator, having: - a temporary register receiving the selected reference value and outputting after one cycle; a multiplexer, selecting to output the The output of the register, or the output 1 〇 value; - the finite body constant multiplier, multiplying the output of the multiplexer by a multiplier 'to update the selected reference value' and the multiplier is the non-zero element ( _ U) power square; • at the first cycle, the multiplexer outputs a value of 1 and causes the finite body constant multiplier to generate a selected reference value for the non-zero element for the finite body addition Forming a second value signal for the non-zero element, and causing the comparator to determine whether the non-zero element belongs to the root of the polynomial; in the second cycle, the multiplexer selects the output of the register, and The finite volume constant multiplier updates the selected reference value for the comparator to make a determination of the other non-zero element. 11. The root-seeking circuit according to item 6 of the patent scope is more suitable for simultaneously testing another-non-zero element, wherein when the selected order is U, the selected reference value is (_2u) of the non-zero element. a power of the power, and the multiplier used by the first- and second-order computing devices is a 2 (ru) power of the non-zero element 201035781, and the root-seeking circuit further includes: a first sub-calculator, The method includes: an S-order operator, respectively receiving an output of a corresponding multiplexer from the first computing device, and generating a first-order product; and a finite-body adder, receiving a step product generated by the s-order operators And a coefficient of the selected order to form a first value signal; a second sub-calculator comprising: (Ris) level operator, respectively receiving the output of the corresponding multiplexer from the second computing device, and according to To generate a first-order product; and 'a finite body adder, receiving a multiplicative product generated by the (r-u)th order operator and a selected reference value for the selected order to form a second numerical signal; and a comparison , the comparison comes from The first value signal of the second sub-routine and the second value signal from the first sub-calculator determine whether the other non-zero element belongs to the root of the polynomial. 12. The root-seeking circuit according to claim 5, wherein each of the two sub-calculators has a finite-body multiplier that multiplies the corresponding multiplexer by a multiplier The output produces the product of the order, where the multiplier is the (ru) power of the non-zero element. 13. The root-seeking circuit according to the scope of claim 5, wherein the two sub-calculators +, each-order operator has a shifter, shifting the output of the corresponding multiplexer to the left (r_u), and The length of the bit product 24 201035781 is increased (ru); the one sub-calculator further includes a correction circuit, which adjusts the corresponding numerical signal and compensates the bit after the corresponding finite body adder set related order operator The length is sent to the comparator. 14. The root-seeking circuit according to claim n, wherein the first §·[· computing device and the first-level calculator comprise a step-operator belonging to the first to the R/2th order, and The second computing device and the second arithmetic unit include a step operator belonging to the (r/2 + 1)~r order; and each of the first arithmetic operators has a shift Transmitting the output of the corresponding multiplexer to the left (r_u), and increasing the bit length of the step product by (ru); each second-level calculator has a shifter for the corresponding The output of the multiplexer is shifted to the left (r_R/2_u), and the bit length of the multiplicative product is increased (rR/2-u); and the second sub-calculator further includes a common factor multiplier for receiving the Dong The output of the circuit should be corrected by multiplying the (R/2) power of the non-zero element and then sent to the corresponding comparator. 15. The root-seeking circuit according to claim 6, wherein the first computing device includes an order operator, and the second computing device includes an order operator.
TW98110422A 2009-03-30 2009-03-30 Root search circuit TWI392238B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW98110422A TWI392238B (en) 2009-03-30 2009-03-30 Root search circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW98110422A TWI392238B (en) 2009-03-30 2009-03-30 Root search circuit

Publications (2)

Publication Number Publication Date
TW201035781A true TW201035781A (en) 2010-10-01
TWI392238B TWI392238B (en) 2013-04-01

Family

ID=44855984

Family Applications (1)

Application Number Title Priority Date Filing Date
TW98110422A TWI392238B (en) 2009-03-30 2009-03-30 Root search circuit

Country Status (1)

Country Link
TW (1) TWI392238B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI457751B (en) * 2012-07-13 2014-10-21 Univ Feng Chia Tandem fault tolerant device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI457751B (en) * 2012-07-13 2014-10-21 Univ Feng Chia Tandem fault tolerant device

Also Published As

Publication number Publication date
TWI392238B (en) 2013-04-01

Similar Documents

Publication Publication Date Title
CN103762991A (en) Decoding method and system of BCH codes
Truong et al. Algebraic Decoding of the $(89, 45, 17) $ Quadratic Residue Code
CN102170327A (en) Super forward error correction hardware decoding method and apparatus thereof
CN105337619B (en) A kind of BCH code coding/decoding method and device
TW201035781A (en) Root finding circuit
CN106201433B (en) A kind of Galois field multiplier based on RS code
Guerrini et al. Computing the distance distribution of systematic nonlinear codes
WO2009063948A1 (en) M-sequence generating circuit, method for providing the same, and random error generating apparatus using m-sequence generating circuit
US9287898B2 (en) Method and circuit for shortening latency of Chien'S search algorithm for BCH codewords
US20180006664A1 (en) Methods and apparatus for performing reed-solomon encoding by lagrangian polynomial fitting
CN104796156B (en) LDPC decoder and LDPC coding/decoding method
CN201887750U (en) ECC (Error Correction Code) decoder
WO2010054526A1 (en) Rs decoding device and key multinomial solving device used by rs decoding device
Zheng et al. An efficient eligible error locator polynomial searching algorithm and hardware architecture for one-pass Chase decoding of BCH codes
TW201036342A (en) Root-finding circuit
Halbawi et al. Coding with constraints: Minimum distance bounds and systematic constructions
CN102594370B (en) High-efficient low-delay parallel Chien search method and device
TWI326988B (en) Rs decoder and ibma method and parallel-to-serial conversion method thereof
Schipani et al. Efficient evaluations of polynomials over finite fields
TWI551059B (en) MULTI-CODE CHIEN'S SEARCH CIRCUIT FOR BCH CODES WITH VARIOUS VALUES OF M IN GF(2m)
CN102957437B (en) A kind of money search method and device
CN103944589A (en) BCH (Bose, Ray-Chaudhuri and Hocquenghem) encoding and decoding method and device
Hui et al. Design and Implementation of RS (1023, 847) Parallel Decoder
US9882585B1 (en) Systems and methods for partitioned root search for error locator polynomial functions in reed-solomon forward error correction decoding
US11689221B1 (en) BCH fast soft decoding beyond the (d-1)/2 bound

Legal Events

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