[libre-riscv-dev] TLB

Jacob Lifshay programmerjake at gmail.com
Mon Apr 22 22:27:46 BST 2019

the comment on line 92 of LFSR2.py at
69afc326b3f13100f56b1366fb2c862a85bd9928 is incorrect: quoting wikipedia
(emphasis mine):

For example, if the taps are at the 16th, 14th, 13th and 11th bits (as
shown), the feedback polynomial is

x^16 + x^14 + x^13 + x^11 + 1.

The "one" in the polynomial does NOT correspond to a tap – it corresponds
to the input to the first bit (i.e. x^0, which is equivalent to 1). The
powers of the terms represent the tapped bits, counting from the left. The
first and last bits are always connected as an input and output tap

Jacob Lifshay

More information about the libre-riscv-dev mailing list