OpenCores
URL https://opencores.org/ocsvn/myhdl_lfsr/myhdl_lfsr/trunk

Subversion Repositories myhdl_lfsr

[/] [myhdl_lfsr/] [trunk/] [lfsr_tap_table.py] - Rev 2

Compare with Previous | Blame | View Log

#dictionary of width:taps
#taken from table by Roy Ward, Tim Molteno currently available at
#http://courses.cse.tamu.edu/walker/csce680/lfsr_table.pdf
#More taps may be added in this fashion if needed.  The table only lists
#2-tap and 4-tap entries, but any number of taps may potentially be 
#used provided that they fit the width
 
#Powers of 2 and some prime numbers:
lfsr_tap_table = {
            2:[2,1],
            3:[3,2],
            4:[4,3],
            8:[8,6,5,4],
            9:[9,5],
            12:[12,11,8,6],
            16:[16,14,13,11],
            17:[17,14],
            24:[24,23,21,20],
            29:[29,27],
            31:[31,28],
            32:[32,30,26,25],
            33:[33,20],
            37:[37,36,33,31],
            43:[43,42,38,37],
            47:[47,42],
            53:[53,52,51,47],
            64:[64,63,61,60],
            65:[65,47],
            96:[96,90,87,86],
            101:[101,100,95,94],
            128:[128,127,126,121],
            129:[129,124],
            256:[256,254,251,246],
            257:[257,245],
            384:[384,378,369,368],
            512:[512,510,507,504],
            513:[513,428],
            768:[768,764,751,749],
            1024:[1024,1015,1002,1001],
            2048:[2048,2035,2034,2029],
            4096:[4096,4095,4081,4069],
        }
 
 
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.