News for hackers. Stuff that matters.
Re:Linear Feedback Shift Registers by kurthr on Monday November 20, 2017 @03:11AM (#15738532)
LFSRs are an interesting topic since they see so much use in hardware testing, scrambling, and orthogonal coding. Typically they are used as MLS-Maximum Length Sequences. These sequences and the generating polynomials were (I think?) shown to be related groups by Galois. Look for Golomb and Rice coding if you're interested in this math.

https://en.wikipedia.org/wiki/Maximum_length_sequence

It's a bit odd that they only show the Galois generation method in this blog and not the more commonly used Fibonacci feedback method which takes the current state and generate the next bit each clock (rather than modifying multiple bits each shift).

Note that Gold and Kasami codes are related to MLS... and if you recognize those names from NASA, it's because they developed those high auto-correlation codes for GPS and interplanetary communication.

Re:Linear Feedback Shift Registers by lpmay on Monday November 20, 2017 @07:50AM (#15739516)
LFSR's are cool. Jason Sachs also has a great article series on LFSR's on Embedded Related, if you're interested in an even more in-depth coverage.

https://www.embeddedrelated.com/showarticle/1065.php

Re:Linear Feedback Shift Registers by bascule on Monday November 20, 2017 @10:28AM (#15740541)
Just don't use them (or any linear function, for that matter) for cryptography:

https://en.wikipedia.org/wiki/Content_Scramble_System#The_ci...

Re:Linear Feedback Shift Registers by Animats on Monday November 20, 2017 @03:52AM (#15738678)
Those are fun. The little flickering LEDs used as replacements for candles have a linear feedback shift register as the random number generator.
Re:Linear Feedback Shift Registers by monocasa on Monday November 20, 2017 @09:58AM (#15740265)
Most 2D Nintendo games too.
Re:Linear Feedback Shift Registers by jhallenworld on Monday November 20, 2017 @10:07AM (#15740354)
It was common to use them as counters in early FPGAs such as XC2000 and XC3000. LFSRs where faster and smaller than binary counters since the early FPGAs did not have fast carry logic.

I used them for column, row and address generation in FPGA-based video capture and display cards.

Re:Linear Feedback Shift Registers by SAI_Peregrinus on Monday November 20, 2017 @05:54PM (#15744112)
You might find Linear Hybrid Cellular Automata (LHCA) interesting as well. They're similar to LFSRs, but with potentially better performance.

http://webhome.cs.uvic.ca/~mserra/AttachedFiles/CA_Tutorial....

Re:Linear Feedback Shift Registers by jonnycomputer on Monday November 20, 2017 @10:42AM (#15740664)
This 256 byte C64 music project--not mine, unfortunately--used LFSRs to generate the melody.

https://linusakesson.net/scene/a-mind-is-born

Re:Linear Feedback Shift Registers by jabujabu on Monday November 20, 2017 @11:35AM (#15741125)
LFSR's are cool, I learned a decent amount about them while I was implementing SHA-3 in python.
Re:Linear Feedback Shift Registers by lou1306 on Monday November 20, 2017 @02:56PM (#15742691)
The Wolfenstein 3D tidbit is lovely. That game's a gem for so many different reasons.