Category Archives: Math

Mathematical problems and implementation of math constructs.

Evaluating Polynomials in an FPGA

Sometimes, a polynomial will need to be evaluated at a specific value in an algorithm.  This might be used for curve fitting or interpolation.  Another case is for Galois Fields and error correction, where high-degree polynomials are common.  There is … Continue reading

Posted in FPGA, Math | Tagged | Comments Off on Evaluating Polynomials in an FPGA

Another Galois Field Multiply

After completing my Reed-Solomon decoder’s HDL, I decided to see how well it performed.  The results weren’t as good as I expected.  The limiting path was in the field math.  A bit of simple pipelining allowed 250MHz operation on my … Continue reading

Posted in FPGA, Math | Tagged , | Comments Off on Another Galois Field Multiply

The 360 Element Shift Register

As mentioned in the three-bit shift register article, one of the applications for non-maximal length LFSRs/NLFSRs is in angle sensors.  I had read an article on generating LFSRs of a given length.  For the 360 element case, it came up … Continue reading

Posted in Math | Tagged , | Comments Off on The 360 Element Shift Register

Reed-Solomon Encoder

This article describes how to make a performance optimized Reed-Solomon encoder.  The actual encoder is for an full-length, narrow-sense RS code.  In this case, the code generated was an code that could allow at least 8 bytes to be corrected, … Continue reading

Posted in FPGA, Math | Tagged , | Comments Off on Reed-Solomon Encoder

Three-Bit Feedback Shift Register

One question that I’ve often pondered is how to generate non-maximal length LFSRs or NLFSRs.  I decided to see what could be done with an 8b shift register that took 3 taps, and performed a logic operation to generate the … Continue reading

Posted in Math | Tagged , | Comments Off on Three-Bit Feedback Shift Register

Shifting an LFSR Multiple Times

One useful operation for a Galois Field is the multiplication by a constant value.  This is very useful, as it allows very simple logic to be used to generate the product .  This avoids the need to convert between polynomial … Continue reading

Posted in Math | Tagged , | Comments Off on Shifting an LFSR Multiple Times

Basic Math In a Galois Field

A Galois Field presents unique challenges, as basic operations like addition and multiplication are different.  This article addresses basic methods for addition, subtraction, multiplication, and division of field elements.  FPGA considerations are included.

Posted in Math | Tagged , | Comments Off on Basic Math In a Galois Field

Intro to Galois LFSRs

There is another, natural way to write the code for an LFSR.  This article describes the Galois implementation of an LFSR.  This also shows how LFSRs are related to Galois fields.  This implementation is claimed to be a bit faster … Continue reading

Posted in Math | Tagged , | Comments Off on Intro to Galois LFSRs

The Magic LFSR Taps

Just like magic, these aren’t real either. Continue reading

Posted in Math | Tagged | Comments Off on The Magic LFSR Taps