一、LFSR原理
1.1 Fibonacci LFSRs
![在这里插入图片描述](https://img-blog.csdnimg.cn/eebe9c41726040f98c12e5c4925f88c5.png)
1.2 Galois LFSRs
![在这里插入图片描述](https://img-blog.csdnimg.cn/41829e49e5734ea985e4341715555840.png)
二、verilog代码
某大佬的开源代码:https://github.com/AmeerAbdelhadi/Linear-Feedback-Shift-Register-LFSR-Counter/tree/master
此代码采用的LFSR是Fibonacci LFSRs。
多项式采用的是Solomon W. Golomb开发的,链接:https://en.wikipedia.org/wiki/Linear-feedback_shift_register