Linear feedback shift register fpga

broken image
broken image
broken image

Output reg LFSR = 255 // put here the initial value The output sequence starts as follow (assuming all the flip-flops start at '1'): The one shown above is an 8-taps LFSR (it uses 8 flip-flops).

Let's say you want a counter that counts more or less 'randomly', you can use an LFSR.Īs you can see, an LFSR is a shift-register with some XOR gates.

broken image