lfsr_init

Initialize a LFSR register object

Calling sequence

lfsr = lfsr_init(deg)

Parameters

deg:

LFSR polynomial degree (from 0 to 15)

lfsr:

Resulting LFSR object (can be used with the function lfsr_process)

Description

The LFSR register size will be 1 + degree, and the polynomial choosen so as to have the longest minimal sequence.


See also

Bibliography

Xilinx xapp-052.pdf (July 7, 1996), page 5