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

Subversion Repositories myhdl_lfsr

[/] [myhdl_lfsr/] [trunk/] [lfsr_tap_table.py] - Blame information for rev 2

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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