RELATED APPLICATIONS

[0001]
This application is a divisional application of U.S. patent application Ser. No. 10/440,330 filed May 16, 2003 which is hereby incorporated herein by reference and to which this application claims priority, and claims priority of U.S. Provisional application to Stein et al. entitled A COMPACT GALOIS FIELD MULTIPLIER, filed Oct. 9, 2002 (AD337J), U.S. Provisional application Ser. No. 60/334,662, filed Nov. 30, 2001 to Stein et al., entitled GF2ALU (AD239J); U.S. Provisional application Ser. No. 60/334,510 filed Nov. 20, 2001 to Stein et al., entitled PARALLEL GALOIS FIELD MULTIPLIER (AD240J); U.S. Provisional application Ser. No. 60/341,635, filed Dec. 18, 2001 to Stein et al., entitled GALOIS FIELD MULTIPLY ADD (MPA) USING GF2ALU (AD299J); U.S. Provisional application Ser. No. 60/341,737, filed Dec. 18, 2001, to Stein et al., entitled PROGRAMMABLE GF2ALU LINEAR FEEDBACK SHIFT REGISTER—INCOMING DATA SELECTION (AD300J). This application further claims priority of U.S. patent application Ser. No. 10/395,620 filed Mar. 24, 2003 to Stein et al., entitled COMPACT GALOIS FIELD MULTIPLIER ENGINE (AD337J); U.S. patent application Ser. No. 10/051,533 filed Jan. 18, 2002 to Stein et al., entitled GALOIS FIELD LINEAR TRANSFORMERER (AD239J); U.S. patent application Ser. No. 10/060,699 filed Jan. 30, 2002 to Stein et al., entitled GALOIS FIELD MULTIPLIER SYSTEM (AD240J); U.S. patent application Ser. No. 10/228,526 filed Aug. 26, 2002 to Stein et al., entitled GALOIS FIELD MULTIPLY/MULTIPLY—ADD/MULTIPLY ACCUMULATE (AD299J); and U.S. patent application Ser. No. 10/136,170, filed May 1, 2002 to Stein et al., entitled RECONFIGURABLE INPUT GALOIS FIELD LINEAR TRANSFORMERER SYSTEM (AD300J).
FIELD OF THE INVENTION

[0002]
This invention relates to a Galois field divider engine and method and more generally to a compound Galois field engine for performing a succession of Galois field transforms in one transform operation.
BACKGROUND OF THE INVENTION

[0003]
In certain applications such as encryption and error control coding, it is necessary to perform arithmetic operations, e.g., add, subtract, square root, multiply, and divide over Galois fields. Any such operation between any two members in a Galois field will result in an output (sum, difference, square root, product, quotient) which is another value in the same Galois field. The number of elements in a Galois field is 2^{m }where m is the degree of the field. For example, GF(2^{4}) would have sixteen different elements in it; GF(2^{8}) would have 256. A Galois field is generated from an irreducible polynomial in a particular power. Each Galois field of a particular degree will have a number of irreducible polynomials form each of which may be devised a different field using the same terms but in a different order.

[0004]
Division over a Galois field is done by multiplying the dividend by the reciprocal of the divisor. This divisor reciprocal can be generated in a number of ways. One way is to have a stored lookup table of reciprocals where the divisor is the address for the table. One problem with this approach is that for each field of each irreducible polynomial there must be stored a separate table. In addition, the tables can only be accessed in serial: if parallel operations are required a copy of each table must be provided for each parallel operation. Another approach is to multiply each of the stored Galois field elements by the particular divisor. The value that produces a product of one is then the reciprocal of the particular divisor. Once again all of the values have to be stored and in multiple copies if parallel operation is contemplated. And, a Galois field multiplier is required just to accomplish the retrieval. A third approach uses two linear feedback shift registers (LFSR) each configured to generate a selected Galois field of a particular irreducible polynomial. The first is initialized to the divisor; the second is initialized to “1”. Starting from the divisor value the two are clocked synchronously. When the product of the first LFSR equals “1” the divisor has been multiplied by its reciprocal. The product of the second LFSR at that moment is the Galois field element that is the reciprocal of the divisor. One problem with this approach is that for each Galois field of each irreducible polynomial for each degree a different pair of LFSRs is required. In both, the second lookup table approach, above, and the LFSR approach the search for the reciprocal requires up to _{2} ^{m}−1 iterations.
BRIEF SUMMARY OF THE INVENTION

[0005]
It is therefore an object of this invention to provide an improved Galois field divider engine and method.

[0006]
It is a further object of this invention to provide such an improved Galois field divider engine which can complete the search for the divisor reciprocal in m−1 iterations.

[0007]
It is a further object of this invention to provide such an improved Galois field divider engine which can be easily reconfigured to accommodate different irreducible polynomial Galois fields of different degrees.

[0008]
It is a further object of this invention to provide such an improved Galois field divider engine which can function to generate both the divisor reciprocal and multiply it by the dividend.

[0009]
It is a further object of this invention to provide such an improved Galois field divider engine which requires less power and less area.

[0010]
It is a further object of this invention to provide more generally an improved, compound Galois field engine for performing a succession of Galois field transforms in one transform operation.

[0011]
The invention results from the realization that such an improved Galois field division engine and method which is smaller, faster, and more efficient can be achieved with a Galois field reciprocal generator and an input selection circuit for initially inputting a 1 and a first Galois field element to the Galois field reciprocal generator to obtain an output, subsequently multiplying in the Galois field reciprocal generator a first Galois field element by the output of the Galois field reciprocal generator for predicting the modulo remainder of the square of the polynomial product of an irreducible polynomial m−2 times where m is the degree of the Galois field, to obtain the reciprocal of the first Galois field element and multiplying in the Galois field reciprocal engine the reciprocal of the first Galois field element by a second Galois field element for predicting the modulo reminder of the polynomial product for an irreducible polynomial to obtain the quotient of the two Galois field elements in m cycles.

[0012]
It was also realized, more generally, that an improved compound Galois field engine for performing a succession of Galois field linear transforms on a succession of polynomial inputs to obtain an ultimate output where each input, except the first, is the output of the previous Galois field linear transform can be accomplished with an input circuit for providing a first input and a Galois field linear transformer having a matrix of cells responsive to the first input and configured to, in one transform, immediately predict the modulo remainder of the succession of Galois field linear transforms of an irreducible Galois field polynomial to obtain the ultimate output of the Galois field linear transform directly from the first input.

[0013]
This invention features a Galois field divider engine including a Galois field reciprocal generator and an input selection circuit for initially inputting a 1 and a first Galois field element to the Galois field reciprocal generator to obtain an output, subsequently multiplying in the Galois field reciprocal generator a first Galois field element by the output of the Galois field reciprocal generator for predicting the modulo remainder of the square of the polynomial product of an irreducible polynomial m−2 times, where m is the degree of the Galois field, to obtain the reciprocal of the first Galois field element and multiplying in the Galois field reciprocal engine the reciprocal of the first Galois field element by a second Galois field element for predicting the modulo remainder of the polynomial product, for an irreducible polynomial to obtain the quotient of the two Galois field elements in m cycles.

[0014]
In a preferred embodiment, the reciprocal generator may include first and second Galois field multipliers. The first Galois field multiplier may include a first polynomial multiplier circuit and a first Galois field linear transformer. The first Galois field linear transformer may include a matrix of cells. The first Galois field linear transform may include a matrix section and a unity matrix section. The second Galois field multiplier may include a second polynomial multiplier circuit and a second Galois field linear transformer. The second Galois field linear transformer may include a matrix of cells. The second Galois field linear transformer matrix of cells may include a matrix section and a unity matrix section. The output of the first Galois field multiplier may be fed to both multiply inputs of the second Galois field linear multiplier to provide the square of that output. The Galois field reciprocal generator may include a Galois field multiplier including a first polynomial multiplier and a first Galois field transformer and a second Galois field transformer for calculating the square of the first Galois field multiplier output. The second Galois field transformer may be approximately one half the size of the first Galois field transformer. The first and second Galois field transformers each may include a matrix of cells and the second Galois field transformer may include approximately one half the number of cells of the first Galois field transformer. The Galois field reciprocal engine may include a Galois field multiplier and a program circuit for programming the Galois field multiplier to perform a compound multiplysquare operation for m−2 times followed by a multiply operation.

[0015]
The invention also features in a broader sense a compound Galois field engine for performing a succession of Galois field linear transforms on a succession of polynomial inputs to obtain an ultimate output where each input except the first is the output of the previous Galois field linear transform. There is an input circuit for providing a first input and a Galois field linear transformer having a matrix of cells responsive to the first input and configured to, in one transform, immediately predict the modulo remainder of the succession of Galois field linear transforms of an irreducible Galois field polynomial to obtain the ultimate output of the Galois field linear transform directly from the first input.

[0016]
This invention also features a method of Galois field division including initially inputting a 1 and a first Galois field element to a Galois field reciprocal generator to obtain an output, multiplying in the Galois field reciprocal generator a first Galois field element by the output of the Galois field reciprocal generator for predicting the modulo remainder of the square of the polynomial product of an irreducible polynomial m−2 times where m is the degree of the Galois field to obtain the reciprocal of the first Galois field element, and multiplying in the Galois field reciprocal engine the reciprocal of the first Galois field element by a second Galois field element for predicting the modulo remainder of the polynomial product for an irreducible polynomial to obtain the quotient of the two Galois field elements in m cycles.

[0017]
This invention also features a Galois field square root engine including a Galois field square root generator and an input circuit for inputting a Galois field element to the Galois field square root generator to obtain the square root of the Galois field elements in one cycle.

[0018]
In a preferred embodiment, the Galois field square root engine may include a Galois field multiplier, and a program circuit for programming the Galois field multiplier to perform a compound square operation of ml times in one cycle.

[0019]
The invention also features a Galois field square root method including inputting a Galois field element to a Galois field square root generator to obtain an output and squaring in the Galois field square root generator the output of the Galois field square root generator for predicting the modulo remainder of the square of the polynomial product of an irreducible polynomial m−1 times where m is the degree of the Galois field to obtain the square root of the Galois field element in (m−1) cycles.
BRIEF DESCRIPTION OF THE DRAWINGS

[0020]
Other objects, features and advantages will occur to those skilled in the art from the following description of a preferred embodiment and the accompanying drawings, in which:

[0021]
FIG. 1 is a functional block diagram of a compact Galois field multiplier engine according to the invention;

[0022]
FIG. 2 is a more detailed functional block diagram of a conventional Galois field multiplier engine according to the invention;

[0023]
FIG. 3 is a more detailed functional block diagram of the compact Galois field multiplier engine of FIG. 1 displaying the reduced size Galois field linear transformer unity matrix feature of the invention;

[0024]
FIG. 4 is a schematic of a typical programmable XOR circuit cell for the matrix of the Galois field linear transformer circuit of FIGS. 2 and 3;

[0025]
FIG. 5 is a simplified schematic diagram of the Galois field linear transformer circuit of FIGS. 3 and 9 illustrating the programming of the matrix section and unity matrix section cells according to the invention for a particular polynomial of power eight;

[0026]
FIG. 6 is a simplified schematic diagram of the Galois field linear transformer circuit of FIGS. 3 and 9 illustrating the programming of the matrix section and unity matrix section cells according to the invention for another polynomial of power eight;

[0027]
FIG. 7 is a simplified schematic diagram of the Galois field linear transformer circuit of FIGS. 3 and 9 illustrating the programming of the matrix section and unity matrix section cells according to the invention for yet another polynomial of power four;

[0028]
FIG. 8 is a simplified schematic diagram of the Galois field linear transformer circuit of FIGS. 3 and 9 illustrating the programming of a second matrix section as a sparse matrix for supporting polynomial powers between half (4) powers and full (8) powers in this particular embodiment;

[0029]
FIG. 9 is a more detailed block diagram of a compact Galois field multiplier engine of FIG. 1 incorporating both the reduced size matrix and the reduced hardware and localized bus features of the invention;

[0030]
FIG. 10 is a block diagram of Galois field multiplier engine according to the invention employing a number of Galois field linear transformer units;

[0031]
FIG. 11 is a schematic view of a polynomial multiplier usable in FIGS. 2, 3, 5 and 9;

[0032]
FIG. 12 is an illustration the transfer function for the polynomial multiplier of FIG. 11;

[0033]
FIG. 13 is a simplified schematic block diagram of a divider engine according to this invention;

[0034]
FIG. 14 is a more detailed view of the Galois field multiplier and squarer of FIG. 13;

[0035]
FIG. 15 is a chart of the reduced transfer function values for the polynomial multiplier of FIG. 12;

[0036]
FIG. 16 is a view of a Galois field multiplier and squarer similar to that of FIG. 14 implementing the reduced transfer function of FIG. 15;

[0037]
FIG. 17 is a schematic illustration of the pattern of enabled cells of the Galois field linear transformer of FIG. 14;

[0038]
FIG. 18 is a schematic illustration of the pattern of enabled cells of the Galois field linear transformer of FIG. 16 utilizing the reduced transfer function;

[0039]
FIG. 19 is a schematic illustration of the pattern of enabled cells of a compound Galois linear engine for compound Galois field engine for performing a succession of Galois field linear transforms on a succession of polynomial inputs to obtain an ultimate output e.g. division according to a more general feature of this invention;

[0040]
FIG. 20 is a simplified schematic diagram of a compound Galois field engine utilizing the Galois field transform illustrated in FIG. 19;

[0041]
FIG. 21 is a flow chart of the Galois field divider method according to this invention;

[0042]
FIG. 22 is a schematic block diagram of a square root engine according to this invention;

[0043]
FIG. 23 is a schematic illustration of the pattern of enabled cells of a compound Galois field linear engine for performing a succession of Galois field linear transforms on a succession of polynomial inputs as shown in FIG. 22 to obtain an ultimate output e.g. square root according to the more general feature of this invention;

[0044]
FIG. 24 is a flow chart of the Galois field square root method according to this invention; and

[0045]
FIG. 25 is a simplified block diagram of a compound Galois field engine according to this invention.
DISCLOSURE OF THE PREFERRED EMBODIMENT

[0046]
Aside from the preferred embodiment or embodiments disclosed below, this invention is capable of other embodiments and of being practiced or being carried out in various ways. Thus, it is to be understood that the invention is not limited in its application to the details of construction and the arrangements of components set forth in the following description or illustrated in the drawings.

[0047]
Before disclosing the compound Galois field engine and the divisor engine and method of this invention an explanation of Galois field transformers and multipliers is presented for a better understanding.

[0048]
A Galois field GF(n) is a set of elements on which two binary operations can be performed. Addition and multiplication must satisfy the commutative, associative and distributive laws. A field with a finite number of elements is a finite field. An example of a binary field is the set {0, 1} under modulo 2 addition and modulo 2 multiplication and is denoted GF(2). The modulo 2 addition and multiplication operations are defined by the tables shown in the following illustration. The first row and the first column indicate the inputs to the Galois field adder and multiplier. For e.g. 1+1=0 and 1*1=1.


Modulo 2 Addition (XOR) 
+  0  1 

0  0  1 
1  1  0 


[0049]


Modulo 2 Multiplication (AND) 
* 
0 
1 

0 
0 
0 
1 
0 
1 


[0050]
In general, if p is any prime number then it can be shown that GF(p) is a finite field with p elements and that GF(p^{m}) is an extension field with pm elements. In addition, the various elements of the field can be generated as various powers of one field element, β, by raising it to different powers. For example GF(256) has 256 elements which can all be generated by raising the primitive element, β, to the 256 different powers.

[0051]
In addition, polynomials whose coefficients are binary belong to GF(2). A polynomial over GF(2) of degree m is said to be irreducible if it is not divisible by any polynomial over GF(2) of degree less than m but greater than zero. The polynomial F(X)=X^{2}+X+1 is an irreducible polynomial as it is not divisible by either X or X+1. An irreducible polynomial of degree m which divides X^{2} m−1+1, is known as a primitive polynomial. For a given m, there may be more than one primitive polynomial. An example of a primitive polynomial for m=8, which is often used in most communication standards is F(X)=0×11=x^{8}+x^{4}+x^{3}+x^{2}+1.

[0052]
Galois field addition is easy to implement in software, as it is the same as modulo addition. For example, if 29 and 16 are two elements in GF(2^{8}) then their addition is done simply as an XOR operation as follows: 29 (11101)⊕ 16(10000)=13(01101).

[0053]
Galois field multiplication on the other hand is a bit more complicated as shown by the following example, which computes all the elements of GF(2^{4}), by repeated multiplication of the primitive element β. To generate the field elements for GF(2^{4}) a primitive polynomial G(x) of degree m=4 is chosen as follows G(x)=X^{4}+X+1. In order to make the multiplication be modulo so that the results of the multiplication are still elements of the field, any element that has the fifth bit set is brought into a 4bit result using the following identity F(β)=β^{4}+β+1=0. This identity is used repeatedly to form the different elements of the field, by setting β^{4}=1+β. Thus the elements of the field can be enumerated as follows:
{0, 1, β, β^{2}β^{3}, 1+β, β+β^{2}, β^{2}+β^{3}, 1+β+β^{3}, . . . 1+β^{3},}
since β is the primitive element for GF(2^{4}) it can be set to 2 to generate the field elements of GF(2^{4}) as {0,1,2,4,8,3,6,12,11 . . . 9}.

[0054]
It can be seen that Galois field polynomial multiplication can be implemented in two basic steps. The first is a calculation of the polynomial product c(x)=a(x)*b(x) which is algebraically expanded, and like powers are collected (addition corresponds to an XOR operation between the corresponding terms) to give c(x). For example c(x)=(a_{3}x^{3}+a_{2}x^{2}+a_{1}x^{1}+a_{0})*(b_{3}x^{3}+b_{2}x^{3}+b_{1}x^{1}+b_{0}) c(x)=c_{6}x^{6}+c_{5}x^{5}+c_{4}x^{4}+c_{3}x^{3}+c_{2}x^{2}+c_{1}x^{1}+c_{0 }where:
${c}_{0}={a}_{0}*{b}_{0}$
${c}_{1}={a}_{1}*{b}_{0}\oplus {a}_{0}*{b}_{1}$
${c}_{2}={a}_{2}*{b}_{0}\oplus {a}_{1}*{b}_{1}\oplus {a}_{0}*{b}_{2}$
${c}_{3}={a}_{3}*{b}_{0}\oplus {a}_{2}*{b}_{1}\oplus {a}_{1}*{b}_{2}\oplus {a}_{0}*{b}_{3}$
${c}_{4}={a}_{3}*{b}_{1}\oplus {a}_{2}*{b}_{2}\oplus {a}_{1}*{b}_{3}$
${c}_{5}={a}_{3}*{b}_{2}\oplus {a}_{2}*{b}_{3}$
${c}_{6}={a}_{3}*{b}_{3}$

[0055]
The second is the calculation of d(x)=c(x) modulo p(x).

[0056]
To illustrate, multiplications are performed with the multiplication of polynomials modulo an irreducible polynomial. For example: (if m(x) =x^{8}+x^{4}+x^{3}+x+1)

[0057]
{57}*{83}={c1} because,
$\begin{array}{c}\left({x}^{6}+{x}^{4}+{x}^{2}x+1\right)+\left({x}^{7}+x+1\right)={x}^{13}\oplus {x}^{11}\oplus {x}^{9}\oplus {x}^{8}\oplus {x}^{7}\\ {x}^{7}\oplus {x}^{5}\oplus {x}^{3}\oplus {x}^{2}\oplus x\\ {x}^{6}\oplus {x}^{4}\oplus {x}^{2}\oplus x\oplus x\\ ={x}^{13}\oplus {x}^{11}\oplus {x}^{9}\oplus {x}^{8}\oplus {x}^{6}\oplus \\ {x}^{5}\oplus {x}^{\text{\hspace{1em}}4}\oplus {x}^{\text{\hspace{1em}}3}\oplus 1\\ {x}^{13}+{x}^{11}+{x}^{9}+{x}^{8}+{x}^{6}+{x}^{5}{x}^{4}+{x}^{3}+1\text{\hspace{1em}}\mathrm{modulo}\text{\hspace{1em}}({x}^{8}+\text{\hspace{1em}}{x}^{4}\text{\hspace{1em}}+\text{\hspace{1em}}{x}^{3}\text{\hspace{1em}}+\\ x+1)\\ ={x}^{7}+{x}^{6}+1\end{array}$

[0058]
An improved Galois field multiplier system 10, foreclosing on this approach includes a multiplier circuit for multiplying two polynomials a_{0}a_{7 }in an A register with the polynomial b_{0}b_{7 }in an B register with coefficients over a Galois field to obtain their product is given by the fifteenterm polynomial c(x) defined as Chart II. The multiplier circuit actually includes a plurality of multiplier cells.
$c\text{\hspace{1em}}14=a\text{\hspace{1em}}7*b\text{\hspace{1em}}7$
$c\text{\hspace{1em}}13=a\text{\hspace{1em}}7*b\text{\hspace{1em}}6\oplus a\text{\hspace{1em}}6*b\text{\hspace{1em}}7$
$c\text{\hspace{1em}}12=a\text{\hspace{1em}}7*b\text{\hspace{1em}}5\oplus a\text{\hspace{1em}}6*b\text{\hspace{1em}}6\oplus a\text{\hspace{1em}}5*b\text{\hspace{1em}}7$
$c\text{\hspace{1em}}11=a\text{\hspace{1em}}7*b\text{\hspace{1em}}4\oplus a\text{\hspace{1em}}6*b\text{\hspace{1em}}5\oplus a\text{\hspace{1em}}5*b\text{\hspace{1em}}6\oplus a\text{\hspace{1em}}4*b\text{\hspace{1em}}7$
$c\text{\hspace{1em}}10=a\text{\hspace{1em}}7*b\text{\hspace{1em}}3\oplus a\text{\hspace{1em}}6*b\text{\hspace{1em}}4\oplus a\text{\hspace{1em}}5*b\text{\hspace{1em}}5\oplus a\text{\hspace{1em}}4*b\text{\hspace{1em}}6\oplus a\text{\hspace{1em}}3*b\text{\hspace{1em}}7$
$c\text{\hspace{1em}}9=a\text{\hspace{1em}}7*b\text{\hspace{1em}}2\oplus a\text{\hspace{1em}}6*b\text{\hspace{1em}}3\oplus a\text{\hspace{1em}}5*b\text{\hspace{1em}}4\oplus a\text{\hspace{1em}}4*b\text{\hspace{1em}}5\oplus a\text{\hspace{1em}}3*b\text{\hspace{1em}}6\oplus a\text{\hspace{1em}}2*b\text{\hspace{1em}}7$
$\begin{array}{c}c\text{\hspace{1em}}8=a\text{\hspace{1em}}7*b\text{\hspace{1em}}1\oplus a\text{\hspace{1em}}6*b\text{\hspace{1em}}2\oplus a\text{\hspace{1em}}5*b\text{\hspace{1em}}3\oplus a\text{\hspace{1em}}4*b\text{\hspace{1em}}4\oplus a\text{\hspace{1em}}3*b\text{\hspace{1em}}5\oplus a\text{\hspace{1em}}2*b\text{\hspace{1em}}6\oplus \\ \begin{array}{c}a\text{\hspace{1em}}1*b\text{\hspace{1em}}7\\ c\text{\hspace{1em}}7=a\text{\hspace{1em}}7*b\text{\hspace{1em}}0\oplus a\text{\hspace{1em}}6*b\text{\hspace{1em}}1\oplus a\text{\hspace{1em}}5*b\text{\hspace{1em}}2\oplus a\text{\hspace{1em}}4*b\text{\hspace{1em}}3\oplus a\text{\hspace{1em}}3*b\text{\hspace{1em}}4\oplus a\text{\hspace{1em}}2*b\text{\hspace{1em}}5\oplus \\ a\text{\hspace{1em}}1*b\text{\hspace{1em}}6\oplus a\text{\hspace{1em}}0*b\text{\hspace{1em}}7\hspace{1em}\\ c\text{\hspace{1em}}6=a\text{\hspace{1em}}6*b\text{\hspace{1em}}0\oplus a\text{\hspace{1em}}5*b\text{\hspace{1em}}1\oplus a\text{\hspace{1em}}4*b\text{\hspace{1em}}2\oplus a\text{\hspace{1em}}3*b\text{\hspace{1em}}3\oplus a\text{\hspace{1em}}2*b\text{\hspace{1em}}4\oplus a\text{\hspace{1em}}1*b\text{\hspace{1em}}5\oplus \\ a\text{\hspace{1em}}0*b\text{\hspace{1em}}6\hspace{1em}\end{array}\end{array}$
$\mathrm{c5}=a\text{\hspace{1em}}5*b\text{\hspace{1em}}0\oplus a\text{\hspace{1em}}4*b\text{\hspace{1em}}1\oplus a\text{\hspace{1em}}3*b\text{\hspace{1em}}2\oplus a\text{\hspace{1em}}2*b\text{\hspace{1em}}3\oplus a\text{\hspace{1em}}1*b\text{\hspace{1em}}4\oplus a\text{\hspace{1em}}0*b\text{\hspace{1em}}5;$
$c\text{\hspace{1em}}4=a\text{\hspace{1em}}4*b\text{\hspace{1em}}0\oplus a\text{\hspace{1em}}3*b\text{\hspace{1em}}1\oplus a\text{\hspace{1em}}2*b\text{\hspace{1em}}2\oplus a\text{\hspace{1em}}1*b\text{\hspace{1em}}3\oplus a\text{\hspace{1em}}0*b\text{\hspace{1em}}4$
$c\text{\hspace{1em}}3=a\text{\hspace{1em}}3*b\text{\hspace{1em}}0\oplus a\text{\hspace{1em}}2*b\text{\hspace{1em}}1\oplus a\text{\hspace{1em}}1*b\text{\hspace{1em}}2\oplus a\text{\hspace{1em}}0*b\text{\hspace{1em}}3$
$c\text{\hspace{1em}}2=a\text{\hspace{1em}}2*b\text{\hspace{1em}}0\oplus a\text{\hspace{1em}}1*b\text{\hspace{1em}}1\oplus a\text{\hspace{1em}}0*b\text{\hspace{1em}}2$
$c\text{\hspace{1em}}1=a\text{\hspace{1em}}1*b\text{\hspace{1em}}0\oplus a\text{\hspace{1em}}0*b\text{\hspace{1em}}1$
$c\text{\hspace{1em}}0=a\text{\hspace{1em}}0*b\text{\hspace{1em}}0$
The operation of a Galois field multiplier system is explained in U.S. patent application to Stein et al. entitled GALOIS FIELD MULTIPLIER SYSTEM [AD240J] Ser. No. 10/060,699 filed Jan. 30, 2002 which is incorporated herein in its entirety by this reference.

[0059]
Each of the fifteen polynomial c(x) term includes an AND function as represented by an * and each pair of terms are combined with a logical exclusive OR as indicated by a ⊕. This product as represented in Chart II is submitted to a Galois field linear transformer circuit which may include a number of Galois field linear transformer units each composed of 15×8 cells, which respond to the product produced by the multiplier circuit to predict the modulo remainder of the polynomial product for a predetermined irreducible polynomial. The A_{0}, B_{0 }multiplication is performed in a first unit the A_{1}, B_{1 }in a second unit, the A_{2}, B_{2 }in a third unit, and the A_{n}, B_{n }in the last unit. The operation of a Galois field linear transformer circuit and each of its transformer units is explained in U.S. patent application to Stein et al. entitled GALOIS FIELD LINEAR TRANSFORMER[AD239J] Ser. No. 10/051,533 with a filing date of Jan. 18, 2002, which is incorporated herein in its entirety by this reference. Each of the Galois field linear transformer units predicts the modulo remainder by dividing the polynomial product by an irreducible polynomial. That irreducible polynomial may be, for example, anyone of those shown in Chart III.
$\begin{array}{cc}\text{:}\mathrm{GF}\left({2}^{1}\right)& \text{\hspace{1em}}\\ 0\times 3& \left(x+1\right)\\ \text{\hspace{1em}}& \text{\hspace{1em}}\\ \text{:}\mathrm{GF}\left({2}^{2}\right)& \text{\hspace{1em}}\\ 0\times 7& \left({x}^{2}+x+1\right)\\ \text{\hspace{1em}}& \text{\hspace{1em}}\\ \text{:}\mathrm{GF}\left({2}^{3}\right)& \text{\hspace{1em}}\\ 0\times B& \left({x}^{3}+x+1\right)\\ 0\times D& \left({x}^{3}+{x}^{2}+1\right)\\ \text{\hspace{1em}}& \text{\hspace{1em}}\\ \text{:}\mathrm{GF}\left({2}^{4}\right)& \text{\hspace{1em}}\\ 0\times 13& \left({x}^{4}+x+1\right)\\ 0\times 19& \left({x}^{4}+{x}^{3}+1\right)\\ \text{\hspace{1em}}& \text{\hspace{1em}}\\ \text{:}\mathrm{GF}\left({2}^{5}\right)& \text{\hspace{1em}}\\ 0\times 25& \left({x}^{5}+{x}^{2}+1\right)\\ 0\times 29& \left({x}^{5}+{x}^{3}+1\right)\\ 0\times 2\text{\hspace{1em}}F& \left({x}^{5}+{x}^{3}+{x}^{2}+x+\text{\hspace{1em}}1\right)\\ 0\times 37& \left({x}^{5}+{x}^{4}+{x}^{2}+x+\text{\hspace{1em}}1\right)\\ 0\times 3\text{\hspace{1em}}B& \left({x}^{5}+{x}^{4}+{x}^{3}+x+\text{\hspace{1em}}1\right)\\ 0\times 3\text{\hspace{1em}}D& \left({x}^{5}+{x}^{4}+{x}^{3}+{x}^{2}+\text{\hspace{1em}}1\right)\\ \text{\hspace{1em}}& \text{\hspace{1em}}\\ \text{:}\mathrm{GF}\left({2}^{6}\right)& \text{\hspace{1em}}\\ 0\times 43& \left({x}^{6}+x+1\right)\\ 0\times 5\text{\hspace{1em}}B& \left({x}^{6}+{x}^{4}+{x}^{3}+x+1\right)\\ 0\times 61& \left({x}^{6}+{x}^{5}+1\right)\\ 0\times 67& \left({x}^{6}+{x}^{5}+{x}^{2}+x+1\right)\\ 0\times 6\text{\hspace{1em}}D& \left({x}^{6}+{x}^{5}+{x}^{3}+{x}^{2}+1\right)\\ 0\times 73& \left({x}^{6}+{x}^{5}+{x}^{4}+x+1\right)\\ \text{\hspace{1em}}& \text{\hspace{1em}}\\ \text{:}\mathrm{GF}\left({2}^{7}\right)& \text{\hspace{1em}}\\ 0\times 83& \left({x}^{7}+x+1\right)\\ 0\times 89& \left({x}^{7}+{x}^{3}+1\right)\\ 0\times 8\text{\hspace{1em}}F& \left({x}^{7}+{x}^{3}+{x}^{2}+x+1\right)\\ 0\times 91& \left({x}^{7}+{x}^{4}+1\right)\\ 0\times 9\text{\hspace{1em}}D& \left({x}^{7}+{x}^{4}+{x}^{3}+{x}^{2}+1\right)\\ 0\times A\text{\hspace{1em}}7& \left({x}^{7}+{x}^{5}+{x}^{2}+x+1\right)\\ 0\times \mathrm{AB}& \left({x}^{7}+{x}^{5}+{x}^{3}+x+1\right)\\ 0\times B\text{\hspace{1em}}9& \left({x}^{7}+{x}^{5}+{x}^{4}+{x}^{3}+1\right)\\ 0\times \mathrm{BF}& \left({x}^{7}+{x}^{5}+{x}^{4}+{x}^{3}+{x}^{2}+x+1\right)\\ 0\times C\text{\hspace{1em}}1& \left({x}^{7}+{x}^{6}+1\right)\\ 0\times \mathrm{CB}& \left({x}^{7}+{x}^{6}+{x}^{3}+x+1\right)\\ 0\times D\text{\hspace{1em}}3& \left({x}^{7}+{x}^{6}+{x}^{4}+x+1\right)\\ 0\times E\text{\hspace{1em}}5& \left({x}^{7}+{x}^{6}+{x}^{5}+{x}^{2}+1\right)\\ 0\times F\text{\hspace{1em}}1& \left({x}^{7}+{x}^{6}+{x}^{5}+{x}^{4}+1\right)\\ 0\times F\text{\hspace{1em}}7& \left({x}^{7}+{x}^{6}+{x}^{5}+{x}^{4}+{x}^{2}+x+1\right)\\ 0\times \mathrm{FD}& \left({x}^{7}+{x}^{6}+{x}^{5}+{x}^{4}+{x}^{3}+{x}^{2}+1\right)\\ \text{\hspace{1em}}& \text{\hspace{1em}}\\ \text{:}\mathrm{GF}\left({2}^{8}\right)& \text{\hspace{1em}}\\ 0\times 11\text{\hspace{1em}}D& \left({x}^{8}+{x}^{4}+{x}^{3}+{x}^{2}+1\right)\\ 0\times 12\text{\hspace{1em}}B& \left({x}^{8}+{x}^{5}+{x}^{3}+x+1\right)\\ 0\times 12\text{\hspace{1em}}D& \left({x}^{8}+{x}^{5}+{x}^{3}+{x}^{2}+1\right)\\ 0\times 14\text{\hspace{1em}}D& \left({x}^{8}+{x}^{6}+{x}^{3}+{x}^{2}+1\right)\\ 0\times 15\text{\hspace{1em}}F& \left({x}^{8}+{x}^{6}+{x}^{4}+{x}^{3}+{x}^{2}+x+1\right)\\ 0\times 163& \left({x}^{8}+{x}^{6}+{x}^{5}+x+1\right)\\ 0\times 165& \left({x}^{8}+{x}^{6}+{x}^{5}+{x}^{2}+1\right)\\ 0\times 169& \left({x}^{8}+{x}^{6}+{x}^{5}+{x}^{3}+1\right)\\ 0\times 171& \left({x}^{8}+{x}^{6}+{x}^{5}+{x}^{4}+1\right)\\ 0\times 187& \left({x}^{8}+{x}^{7}+{x}^{2}+x+1\right)\\ 0\times 18\text{\hspace{1em}}D& \left({x}^{8}+{x}^{7}+{x}^{3}+{x}^{2}+1\right)\\ 0\times 1A\text{\hspace{1em}}9& \left({x}^{8}+{x}^{7}+{x}^{5}+{x}^{3}+1\right)\\ 0\times 1C\text{\hspace{1em}}3& \left({x}^{8}+{x}^{7}+{x}^{6}+x+1\right)\\ 0\times 1C\text{\hspace{1em}}F& \left({x}^{8}+{x}^{7}+{x}^{5}+{x}^{3}+{x}^{2}+x+1\right)\\ 0\times 1E\text{\hspace{1em}}7& \left({x}^{8}+{x}^{7}+{x}^{6}+{x}^{5}+{x}^{2}+x+1\right)\\ 0\times 1F\text{\hspace{1em}}5& \left({x}^{8}+{x}^{7}+{x}^{5}+{x}^{4}+{x}^{2}+1\right)\end{array}$

[0060]
The Galois field multiplier presented here GF(2^{8}) is capable of performing with powers 2^{8 }and powers 2^{4 }and under as shown in Chart III.

[0061]
An example of the GF multiplication occurs as follows:
 
 
 Before GF( ) multiplication;   After GF9( ) multiplication;  
 Polynomial 0x11d   Polynomial 0x11d 
 

 GF( )  45 23 00 01h  GF( )  45 23 00 01h 
  57 34 00 01h   57 34 00 01h 
  xx xx xx xxh   72 92 00 01h 
 

[0062]
There is shown in FIG. 1 a compact Galois field multiplier engine 10 accompanied by an A input register 12, B input register 14 and an output register 16. Compact Galois field engine 10 is capable of a number of different operations, including multiply, multiplyadd and multiplyaccumulate.

[0063]
Conventional Galois field multiplier engine 10 a, FIG. 2, requires three registers, A register 12 a, B register 14 a and C register 26 a. The burden of these registers must be carried by the associated digital signal processor (DSP) core 28 and require extensive external bus work. In addition to bus 30, for supplying data to A register 12 a, bus 34 for supplying data to B register 14 a and bus 36 for supplying data to C register 26 a, there is required a bus 32 for feeding back the output from register 16 a to the digital signal processor 28 and bus 34 or bus 36 for feeding back that output from digital signal processor 28 to B register 14 a or C register 26 a. Bus 31 connects the output of Galois field linear transformer circuit 20 and output register 16 a. Thus polynomial multiplier circuit 18 can provide to the multiple input 40 of matrix 22 of Galois field linear transformer circuit 20 the proper values in conjunction with the values fed from C register 26 a to the adder input 42 of matrix 22 to perform multiply, multiplyadd and multiplyaccumulation functions. Matrix 22 is shown here as an eight by fifteen matrix for supporting multiplication of polynomials of power eight but may be made larger or smaller, containing more or fewer cells 24, depending upon the power of the polynomial to be serviced.

[0064]
The number of cells 24 b per row, FIG. 3, of matrix 22 b of Galois field linear transformer circuit 20 b in engine 10 b maybe reduced by nearly half, by configuring matrix 22 b into two matrix sections, a matrix section 50 and a unity matrix section 52. The unity matrix section requires only one set of cells 54 wherein these unity matrix section cells represent the prediction of the remainder when the output of the multiplier circuit is a polynomial with a power less than the power of the irreducible polynomial. Thus in FIG. 3 where the irreducible polynomial has a power of eight any polynomial of less than eight will not exceed the modulo and will be passed right through the matrix, thus the absent cells in unity matrix section 52 are unnecessary. This saves nearly half of the cells required for the matrix 22 b resulting in a smaller, simpler and faster engine.

[0065]
Each cell 24 b, FIG. 4, may include an AND circuit 100 and an exclusive OR circuit 102. There is a data input 104 and an enable input 106. Exclusive OR circuit 102 provides an output on line 108 to the input of the next exclusive OR circuit and receives at its input 110 the output from the previous exclusive OR circuit, except for the last exclusive OR circuit whose output is connected to the output of the matrix and the first exclusive OR circuit whose input is connected to the adder input 42 b, FIG. 3, or 42 g, FIG. 9. An enable signal on line 106 enables the data on line 104 to pass through AND gate 100 and to be exclusively ORed by exclusive OR circuit 102 with the input on line 110. The lack of an enabling signal on line 106 simply passes the input on line 110 through the exclusive OR gate 102 to output line 108. An enabling signal on line 106 enables cell 24. In this manner the entire matrix maybe reconfigured for any particular irreducible polynomial.

[0066]
The efficacy of engine 10 b, FIG. 3, can be understood by choosing an irreducible polynomial from Chart III, supra, and implementing it by enabling the necessary cells. For example, to implement the first polynomial of power eight designated 0×11d representing the irreducible polynomial x^{8}+x^{4}+x^{3}+x^{2}+1, the enabled cells, indicated generally at 24 cc, form a unity matrix 52 c, FIG. 5, with a line of cells 54 c as previously depicted in FIG. 3. When choosing the second irreducible polynomial from Chart III, 0×12b, the irreducible polynomial x^{8}+x^{5}+x^{3}+x+1 produces a pattern of enabled cells 24 dd, FIG. 6, in matrix section 50 d and unity matrix 52 d where once again the unity matrix section 52 d results in a line of enabled cells 54 d.

[0067]
The reduction in the number of required cells is not limited to only polynomials having the same power as the irreducible polynomial. It also applies to any of those having the power of one half or less of the power of the irreducible polynomial. For example, the eight by fifteen matrix 22 b, shown in FIG. 3 and referred to by way of explanation in FIGS. 5 and 6 could also support polynomials to the power of one, two, three, or four, but not powers of five, six and seven, if the irreducible polynomial power was sixteen the matrix that supported it could also support polynomials up to eight, but not nine through fifteen. If it were the power of thirtytwo it could support polynomials of thirtytwo power and up to sixteen, but not seventeen through thirtyone. For example, as shown in FIG. 7 for an irreducible polynomial of the fourth power both the matrix section 50 e and unity matrix section 52 e become smaller and can be implemented anywhere within matrix 22 e. Here the matrix section 50 e has a plurality of enabled cells 24 ee along with the enabled cells in unity matrix 52 e which now has a smaller line of enabled cells 54 e, making up the unity matrix section 52 e.

[0068]
If it is desirable to service the intermediate polynomials of power five, six and seven the unity matrix section can be replaced with a sparse matrix section 52 f, FIG. 8, wherein additional lines of enabled cells 54 ff, 54 fff, 54 ffff, can be employed to support polynomials of power seven, six and five respectively. But it is somewhat less of a reduction in the size of the matrix and required number of cells.

[0069]
The number of input registers can be reduced from three to two and the number of external buses relied upon to communicate with the digital signal processor (DSP) 28 g, FIG. 9, can be reduced and localized to be internal of the engine 10 g itself. Thus, as shown in FIG. 9, there are but two input registers A 12 g and B 14 g and the feedback from output 31 g does not need to go through DSP 28 g but goes directly, locally, on engine 10 g through internal bus 60 to multiplier input selection circuit 62 and adder input selection circuit 64. Digital signal processor 28 g need only provide control signals on line 66 to multiplier input selection circuit 62 and on line 68 to adder input selection circuit 64. Thus in the multiply mode, multiplier input selection circuit 62, passes an input from B register 14 g to polynomial multiplier circuit 18 g while adder input selection circuit 64 provides an additive identity level, in this case, a ground level 70 to the adder input 42 g of Galois field linear transformer circuit 20 g. In the multiplyadd mode digital signal processor 28 instructs multiplier input selection circuits 62 to feed back the output from matrix 22 g over line 60 to polynomial multiplier circuit 18 g and instructs adder input selection circuits 64 to pass the polynomial in B register 14 g to the adder input 42 g of Galois field linear transformer circuit 20 g. In the multiplyaccumulate mode digital signal processor 28 g instructs multiplier input selection circuit 62 to deliver the polynomial from B register 14 g to polynomial multiplier circuit 18 g and instructs adder input selection circuit 64 to feed back the output on line 60 of Galois field linear transformer circuit 20 g.

[0070]
Another feature is the reconfigurability of Galois field linear transformer circuit 20 g by virtue of the selective enablement of cells 24 g. Reconfigurable control circuit 80 selectively enables the ones of cells 24 g required to implement the coefficients of the selected irreducible polynomial and itself can be reduced in size since the number of cells it needs to control has been reduced.

[0071]
The operation of a reconfigurable input Galois field linear transformer circuit is explained in U.S. patent application Ser. No. 10/136,170, filed May 1, 2002 to Stein et al., entitled RECONFIGURABLE INPUT GALOIS FIELD LINEAR TRANSFORMERER SYSTEM (AD300J) and all its priority applications and documents which are incorporated herein in their entirety by this reference.

[0072]
Although thus far for the sake of simplicity the explanation has been with respect to only one engine, a number of the engines may be employed together as shown in FIG. 10 where each engine has a multiplier circuit 10 h, 10 i, 10 j, 10 k . . . 10 n and a Galois field linear transformer 20 h, 20 i, 20 j, 20 k . . . 20 n circuit. With a single central reconfigurable control circuit 80 ^{1 }controlling them all. These engines can share the same wide [32, 64, 128] bit A and B registers were each operates on a different 8 bit (Byte) segment , or each can be serviced by its own reconfigurable control unit 80 h, 80 i, 80 j, 80 k . . . 80 n and each by its own pair of A and B registers A_{0}, and B_{0 } 12 h, and 14 h; A_{1 }and, B_{1}, 12 i, and 14 i; A_{2 }and B_{2}, 12 j and 14 j, A_{3 }and B_{3 } 12 k and 14 k and so on.

[0073]
A polynomial multiplier circuit 181, FIG. 11, usable in the embodiment shown herein to provide an output c0c14 includes a plurality of AND gates 120 which combined with exclusive OR gates 122 can multiply any pair of polynomials from A register 121 and B register 141 e.g., polynomials a_{0}a_{7}, polynomials b_{0}b_{7 }as illustrated in the table 124 FIG. 12.

[0074]
There is shown in FIG. 13 a Galois field divider engine 150 according to this invention including a Galois field reciprocal generator 155 having a Galois field multiplier 152 and a second Galois field multiplier 154 for performing a squaring function. Engine 150 performs the division β/β_{k }by executing the operation β_{1}* 1/β_{k}, where β_{1 }and β_{k }are elements of a Galois field, for example, where m=8, that is GF(2^{8}): the degree of the field is eight. Initially Galois field multiplier 152 receives a 1 and β_{k }and multiplies them together. The output is then squared in Galois field multiplier 154 and fed back to Galois field multiplier 152. This result is multiplied by β_{k }over and over again for m−2 times so that a total of m−1 iterations has occurred. At this point the reciprocal 1/β_{k }is obtained and instead of β_{k }being supplied as it has been for each of the m−2 iterations it is now β_{1 }that is supplied to perform the multiplication β_{1}*(1/β_{k}). Thus, the entire division takes place in a total of m iterations, m−1 for generating the reciprocal and 1 more for multiplying the reciprocal of the divisor and the dividend to get the quotient. The timely application of “1”, β_{k }and β_{1 }is performed by input selection circuit 171.

[0075]
The fact that
${\beta}^{{2}^{m2}}=\frac{1}{\beta}$
is shown by the following exposition, given: the field of GF(q) is made up from the numbers {0, 1 . . . (q−1)}. If we multiply by β (β is a field member ≠0} each member of {1, 2 . . . (q−1)} to get {(1β, 2β . . . (q−1)β} we can easily see that we get the same set back again (with the order changed). This means that 1,·2· . . . (q−1)=1β·2β· . . . (q−1)β=1·2· . . . (q−1)β^{(q−1) }by cancelling the factors 1··2· . . . ·(q−1) from both sides assures us that
β^{q−1}=1. (1)
Therefore
β^{−1}β^{q−2 } (2)

[0076]
Replacing q with 2^{m }results in the expression
$\begin{array}{cc}{\beta}^{{2}^{m}2}=\frac{1}{\beta}& \left(3\right)\end{array}$

[0077]
FIG. 13 is a straightforward implementation of this expression.

[0078]
According to (3) for n=7 we need to calculate β^{254}. β^{254 }can be calculated as ⊕1^{128}·β^{64}·β^{16}·β^{8}·β^{4}·β^{2}. Which can be iteratively calculated as
$\begin{array}{c}n=1\text{:}\text{\hspace{1em}}{\left(\beta \xb71\right)}^{2}={\beta}^{2}\text{\hspace{1em}}\\ n=2\text{:}\text{\hspace{1em}}{\left({\beta}^{2}\xb71\right)}^{2}={\beta}^{4}\xb7{\beta}^{2}\\ n=3\text{:}\text{\hspace{1em}}{\left({\beta}^{4}\xb7{\beta}^{2}\xb7\beta \right)}^{2}={\beta}^{8}\xb7{\beta}^{4}\xb7{\beta}^{2}={\beta}^{14}\\ \vdots \\ n=7\text{:}\text{\hspace{1em}}{\left({\beta}^{64}\xb7{\beta}^{32}\xb7{\beta}^{16}\xb7{\beta}^{8}\xb7{\beta}^{4}\xb7{\beta}^{2}\xb7\beta \xb7\right)}^{2}\text{\hspace{1em}}\\ ={\beta}^{128}\xb7{\beta}^{64}\xb7{\beta}^{32}\xb7{\beta}^{16}\xb7{\beta}^{8}\xb7{\beta}^{4}\xb7{\beta}^{2}={\beta}^{254}\end{array}$

[0079]
The circuit of
FIG. 13 starts from an initial value of 1 and generates at
155 the following successive values:
 
 
 Iteration # 
 1  2  3  4  5  6  7 
 
Value at Point 155  β^{3}  β^{6}  β^{14}  β^{30}  B^{62}  β^{126}  B^{254} 

As can be seen, the final value of β
^{−1 }is obtained in (n−1) cycles. The same circuit is generating β
^{−1 }for all intermediate powers of m GF(2
^{m}) {m=3.7}, for example if m=4, β
^{2} ^{ m } ^{−2}=14 is generated at n=3.

[0080]
In one embodiment, Galois field reciprocal generator 155 a, FIG. 14, may include Galois field multiplier 152 a and Galois field multiplier 154 a. Galois field multiplier 152 a includes Galois field linear transformer 156 and a polynomial multiplier 158. Galois field multiplier 156 is shown as including a matrix of exclusive OR cells having two sections, matrix section 160 and reduced unity matrix section 162, but this is not a necessary limitation of the invention as unity matrix section 162 may be implemented with a full matrix as is matrix section 160 if size is not an issue. Galois field multiplier 154 a also includes a polynomial multiplier 164 and Galois field transformer 166 which also may include, but not necessarily, a full matrix section 168 and a reduced unity matrix section 170. Here again unity section 170 is advantageous as to cost and area but it is not necessary as a full section could be used there. Galois field divider engine 150 a performs a division in m iterations. In the first iteration input selection circuit 171 introduces a 1 in combination with β_{k }to Galois field multiplier 152 a. This produces an output β_{k }on line 172 which is delivered to both polynomial multiplier inputs 174, 176 of Galois field multiplier 154 a. Thus, a squaring function is performed and the output is fed back to an input 178 of input selection circuit 171. This iteration occurs m−2 times where m is the degree of the Galois field. After m−2 iterations input selection circuit 171 introduces the dividend β_{1 }to Galois field multiplier 152 a because at that time the value at output 178 is the reciprocal 1/β_{k}. By now multiplying β_{1}, the dividend, times 1/β_{k}, the divisor, the result is β_{1 }is divided by β_{k }to obtain the quotient of the Galois field division at 180.

[0081]
The values at inputs 174 and 176 take the form of, from the most significant digit to the least, b_{7}b_{0 }and a_{7}a_{0}. When the squaring function is being performed as here, then each of the values b_{7}b_{0 }will be the same, respectively, as each of the values of a_{7}a_{0 }because they are the same numbers. The number of digits b_{7}b_{0}, a_{7}a_{0 }depends upon the size of the polynomial, which in this case where m is 8 would be eight digits. Whatever the size, since the values are the same at both inputs, the exclusive OR function will be zero. That is, like inputs to an exclusive OR gate renders a zero output as is well known. Thus, referring again to FIG. 12, it can be seen that for each of the polynomial multiply outputs c_{0}c_{14}, the oddnumbered ones in FIG. 12 contain pairs of identical values. For example, c_{1 }is equal to a_{1}*b_{0}⊕a_{0}*b_{1}. Since we are squaring we know that the two values being presented at inputs 174 and 176 are the same, therefore a_{0 }and b_{0 }are the same and a_{1 }and b_{1 }are the same. Therefore, c_{1 }when exclusively ORed will have a value of zero. The same is true for the rest of the odd numbered Galois field multiplier outputs c_{3}, c_{5}, c_{7}, c_{9}, c_{11}, c_{13}. The result is shown at 182, FIG. 15 where it can be seen not only that there are zero values resulting at the odd numbered c_{1}c_{13}, but that the remaining non zero even numbered values require no exclusive OR gates, only multiplication. For example, c_{0 }is a_{0}*b_{0}. But this is a simple AND function resulting in a value of a_{0}. Similarly, with respect to c_{2 }the value a_{1 }is multiplied by bi giving an AND function which results in the simple output of a_{1}. The same effect is true in c_{4}, c_{6}, c_{8}, c_{10}, c_{12}, and c_{14}. The same applies to Galois field multiplier 156 b. Galois field multiplier 154 b which effects the squaring function can be reduced in size by one half shown by the reduction by one half of the matrix section 168 b and unity section 170 b. Also, now since the function has turned into a simple input as shown in column 184, FIG. 15, two separate inputs are not required and so the polynomial multiplier 164 is no longer needed.

[0082]
Galois field transformers 156 c and 166 c, FIG. 17, are implemented identically. The shaded circles indicate the enabled exclusive OR gate cells in each of the transformers. The programming is accomplished by the codes in column 190 and is the same for both transformers 156 c and 166 c. Transformer 156 c receives the inputs c_{0}c_{14 }and provides the outputs A_{0}A_{7}. These form the inputs with the zeros of A_{0}A_{7 }of Galois field linear transformer 166 c whose final outputs are B_{0}B_{7}. Both transformers have been implemented for the Galois field of degree eight GF(2^{8}) (m=8for the irreducible polynomial (O×12b). When the reduction shown in FIG. 15 is effected, Galois field multiplier 156 d, FIG. 18 stays the same as do all of the programming instructions in the column 190 d, but Galois field linear transformer 166 d has had every other column, the zero columns, eliminated, resulting in the structure shown in FIG. 16.

[0083]
When the Galois field divider engine has been reduced as shown in FIG. 16, a further reduction is now achievable. Because Galois field divider engine 154 b has no polynomial multiplier in the second Galois field transformer 166 b, a single matrix or transformer can be constructed which delivers the output B_{0}B_{7 }directly from c_{0}c_{14 }without the interim A_{0}A_{7 }terms, in one cycle and using a single linear transformer 200, FIG. 19. Transformer 200 has been programmed to have the combination of exclusive OR cells indicated by the shaded circles enabled in order to perform both of the Galois field linear transforms in one Galois field linear transformer and in one operation. Thus, the inputs c_{0}c_{14 }are directly transformed by Galois field linear transformer 200 to the ultimate outputs B_{0}B_{7}. The compounding which reduces the two matrices 156 d and 166 d, FIG. 18, to the single matrix Galois field linear transformer 200 in FIG. 19 can be seen by a simple illustration using B_{7}, FIG. 18, which can be seen as equivalent to the exclusive ORs A_{7}, A_{6}, and A_{5}, as shown in Galois field linear transformer 166 d. Referring then to Galois field linear transformer 156 d (where the backslash indicates a cancellation of a term because it is duplicated), it can be seen that

[0084]
A_{5 }is equal to c_{14}, c_{13}, c_{12}, c_{8}, c_{5 }

[0085]
A_{6 }is equal to c_{9}, c_{6},

[0086]
A_{7 }is equal to, and c_{7},

[0087]
all with the exclusive OR functions between them. This results in the output c_{14}, exclusive OR c_{13}, exclusive OR c_{12}, exclusive OR c_{9}, exclusive OR c_{8}, exclusive OR c_{7}, exclusive OR c_{6}, exclusive OR c_{5}. Thus, in matrix 200, FIG. 19, B_{7 }can be seen to include the exclusive OR combination of c_{14}, c_{13}, c_{12}, c_{9}, c_{8}, c_{7}, c_{6}, and c_{5}. One implementation of such a compounded Galois field divider engine 202 is shown in FIG. 20 where Galois field linear transform, matrix 200 of FIG. 19 appears in conjunction with a polynomial multiplier 204 and input selection circuit 171 e with dual input selection units 206, 208. Now the Galois field reciprocal generator 205 has been implemented by a single, compound Galois field linear transformer 200. Input selection unit 206 is capable of performing multiplyadd (MPA), multiplyaccumulate (MAC), and multiply (MPY). Input selection unit 208 functions similarly and provides to Galois field linear transformer 200 the adder input as previously explained. Program sequencer 210 provides the mapping of the control flipflops 212 which enable and disable the matrix of cells including the exclusive OR gates. The program sequencer can program the GFLT matrix 200 as a compound multiplier performing (GF_MPY(α,β))^{2 }in one cycle for division ,as a Galois field multiplier for multiplication, as a multiply and accumulate for multiply and accumulation and as a multiplyadd for the multiplyadd function.

[0088]
In operation, initially the GFLT is programmed as a compound multiplier performing (GF_MPY(α,β)^{2}, a 1 is provided at input 214 and β_{k }at input 216. Following that for m−2 iterations, the output 180 is fed back on input 214 while β_{k }remains on input 216. After m−2 iterations, when the system has gone through a total of m−1 iterations, the input at 214 is now the reciprocal of β_{k}. At this point the GFLT is programmed as a Galois Field multiplier, β_{k }at input 216 is now replaced with input β_{1 }so that the next multiplication, the m^{th }iteration, multiplies β_{1 }times the reciprocal of β_{k }to provide the output β_{1}divided by β_{k}. The Galois field division method of this invention is shown in FIG. 21 where the divisor β_{k }and dividend β_{1 }are provided at start 240. A query is then made as to whether this iteration is the m^{th }iteration in step 242, where m is the degree of the Galois field involved. If it is the mth iteration, the system goes directly to step 244 where the Galois field multiplication of β_{1 }by the Galois field linear transform output of the reciprocal 1/β_{k }is performed. The quotient is then produced at 246. If the iteration has not reached m, then the query is made in step 248 as to whether it is the first iteration. If it is, multiplication of β_{k }by 1 is effected in step 250 and then the square of that value is performed over a Galois field in step 252. If it is not the first iteration, then in step 254, the Galois field multiplication of β_{k }by the Galois field linear transform output is performed and then the square is performed in Galois field multiplier in step 252. The output from the square calculation is then fed back, step 242, and the iteration begins again.

[0089]
Thus far the invention has focused on a Galois field divider engine and method and to the ability to reduce that engine in size by first reducing the size of one of the Galois field linear transformers and eliminating one of the polynomial multipliers and then by combining the functions of the two linear transformers so that a succession of Galois field linear transforms on a succession of polynomial inputs is performed to obtain the ultimate output (quotient) as shown in FIGS. 19 and 20. But, this is not a necessary limitation of the invention, that is it is not limited to merely division. A compound Galois field engine according to this invention may perform any succession of Galois field linear transforms on a succession of polynomial inputs to obtain an ultimate output where each input, except the first, is the output of the previous Galois field linear transform. That is in one transform it can immediately predict the modulo remainder of the succession of Galois field linear transforms of an irreducible Galois field polynomial to obtain the ultimate output of the Galois field linear transform directly from the first input.

[0090]
Another example of this fact can be seen in the square root operation of a Galois field member β. There is shown in FIG. 22 a compound Galois field engine 300 according to this invention that performs (m−1) successive Galois field linear transforms 302, 304 . . . 306 wherein a first input f, 308 is submitted to Galois field transformer 302 and then the transformed output becomes the input to the next Galois field linear transformer 304, whose output becomes the input to the next Galois field linear transformer, and so on, until it reaches the final transformer 306 as in this case, the √{square root over (β)} output. In accordance with this invention, by compounding the Galois field linear transformers as shown in 310 FIG. 23, the (m−1) transformers of FIG. 22 can be reduced to produce the simplified implementation shown in FIG. 23 of only one GFLT, where, the initial input β can be transformed in a single operation by the compound Galois field linear transformer square root engine 330 to provide in one iteration, the √{square root over (β)} output.

[0091]
The fact that √{square root over (β)}=β^{2} ^{ (m−1) }is shown by the following exposition given: in (1) we have shown that β^{q−1}=1.

[0092]
Replacing q with 2^{m }and multiplying both sides by , results in the expression
β^{2} ^{ m }=β (4)
Taking the √ form both sides results in the expression
β^{(2} ^{ m } ^{)/2}=√{square root over (β)} (5)
or
β^{2} ^{ (m−1) }=√{square root over (β)} (6)
FIG. 22 is a straightforward implementation of this expression.

[0093]
The Galois field square root method of this invention is shown in FIG. 24 where the field element β are provided at start 312. A query is then made as to whether this iteration is the m^{th}−1 iteration in step 314, where m is the degree of the Galois field involved. If it is the m^{th}−1 iteration, the system goes directly to step 316 where the Galois field square root of β is produced. If the iteration has not reached m−1, then the query is made in step 318 as to whether it is the first iteration. If it is, the square of that β value is performed over a Galois field in step 320. If it is not the first iteration, the square of the Galois field linear transform output is performed over a Galois field in step 322. The output from the square calculation is then fed back, step 314, and the iteration begins again. A programming circuit, control flipflops 212 a and programming sequencer 210 a, programs the Galois field linear transformer square root engine 330 as shown in FIG. 23.

[0094]
In summary, generally a compound Galois field engine 260, FIG. 25 according to this invention may perform a number of successive Galois field linear transforms 262, 264, 266, 268 wherein a first input A, 270 is submitted to Galois field transformer 262 and then the transformed output B becomes the input to the next Galois field linear transformer 264, whose output C in turn becomes the input to the next Galois field linear transformer, 266 whose output D becomes the input to the next Galois field linear transformer 268, and so on. In this case, the ultimate output is E. In accordance with this invention, by compounding the Galois field linear transformers as shown in FIG. 19, by reducing the two transformers of FIG. 18 to produce the implementation shown in FIG. 20, the initial input A can be transformed in a single operation by compound Galois field linear transformer 280 to provide in that one iteration, the ultimate output E.

[0095]
Although specific features of the invention are shown in some drawings and not in others, this is for convenience only as each feature may be combined with any or all of the other features in accordance with the invention. The words “including”, “comprising”, “having”, and “with” as used herein are to be interpreted broadly and comprehensively and are not limited to any physical interconnection. Moreover, any embodiments disclosed in the subject application are not to be taken as the only possible embodiments.

[0096]
Other embodiments will occur to those skilled in the art and are within the following claims: