This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" simple LFSR generator | |
Uses galois algorithmn to return next bit of LFSR. | |
To initialize the generator pass the seed value (one | |
value that the generator will generate, != 0) and | |
the used polynom. | |
Observe that for a n bit polynom, x^n has to be in | |
the polynom, which should be the case anyhow therefore e.g.: | |
x^4 + x^3 + 1 = 0b1100 |