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

Subversion Repositories versatile_counter

[/] [versatile_counter/] [trunk/] [rtl/] [verilog/] [lfsr_polynom.v] - Blame information for rev 4

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 unneback
`switch (LFSR_LENGTH)
2
`case 2
3
 `let LFSR_FB="q[`LFSR_LENGTH]^q[1]"
4
 `let LFSR_FB_REW="q[1]^q[2]"
5
`breaksw
6
`case 3
7
 `let LFSR_FB="q[`LFSR_LENGTH]^q[2]"
8
 `let LFSR_FB_REW="q[1]^q[3]"
9
`breaksw
10
`case 4
11
 `let LFSR_FB="q[`LFSR_LENGTH]^q[3]"
12
 `let LFSR_FB_REW="q[1]^q[4]"
13
`breaksw
14
`case 5
15
 `let LFSR_FB="q[`LFSR_LENGTH]^q[3]"
16
 `let LFSR_FB_REW="q[1]^q[4]"
17
`breaksw
18
`case 6
19
 `let LFSR_FB="q[`LFSR_LENGTH]^q[5]"
20
 `let LFSR_FB_REW="q[1]^q[6]"
21
`breaksw
22
`case 7
23
 `let LFSR_FB="q[`LFSR_LENGTH]^q[6]"
24
 `let LFSR_FB_REW="q[1]^q[7]"
25
`breaksw
26
`case 8
27
 `let LFSR_FB="q[`LFSR_LENGTH]^q[6]^q[5]^q[4]"
28
 `let LFSR_FB_REW="q[1]^q[7]^q[6]^q[5]"
29
`breaksw
30
`case 9
31
 `let LFSR_FB="q[`LFSR_LENGTH]^q[5]"
32
 `let LFSR_FB_REW="q[1]^q[6]"
33
`breaksw
34
`case 10
35
 `let LFSR_FB="q[`LFSR_LENGTH]^q[7]"
36
 `let LFSR_FB_REW="q[1]^q[8]"
37
`breaksw
38
`case 11
39
 `let LFSR_FB="q[`LFSR_LENGTH]^q[9]"
40
 `let LFSR_FB_REW="q[1]^q[10]"
41
`breaksw
42
`case 12
43
 `let LFSR_FB="q[`LFSR_LENGTH]^q[6]^q[4]^q[1]"
44
 `let LFSR_FB_REW="q[1]^q[7]^q[5]^q[2]"
45
`breaksw
46
`case 13
47
 `let LFSR_FB="q[`LFSR_LENGTH]^q[4]^q[3]^q[1]"
48
 `let LFSR_FB_REW="q[1]^q[5]^q[4]^q[2]"
49
`breaksw
50
`case 14
51
 `let LFSR_FB="q[`LFSR_LENGTH]^q[5]^q[3]^q[1]"
52
 `let LFSR_FB_REW="q[1]^q[6]^q[4]^q[2]"
53
`breaksw
54
`case 15
55
 `let LFSR_FB="q[`LFSR_LENGTH]^q[14]"
56
 `let LFSR_FB_REW="q[1]^q[15]"
57
`breaksw
58
`case 16
59
 `let LFSR_FB="q[`LFSR_LENGTH]^q[15]^q[13]^q[4]"
60
 `let LFSR_FB_REW="q[1]^q[16]^q[14]^q[5]"
61
`breaksw
62
`case 17
63
 `let LFSR_FB="q[`LFSR_LENGTH]^q[14]"
64
 `let LFSR_FB_REW="q[1]^q[15]"
65
`breaksw
66
`case 18
67
 `let LFSR_FB="q[`LFSR_LENGTH]^q[11]"
68
 `let LFSR_FB_REW="q[1]^q[12]"
69
`breaksw
70
`case 19
71
 `let LFSR_FB="q[`LFSR_LENGTH]^q[6]^q[2]^q[1]"
72
 `let LFSR_FB_REW="q[1]^q[7]^q[3]^q[2]"
73
`breaksw
74
`case 20
75
 `let LFSR_FB="q[`LFSR_LENGTH]^q[17]"
76
 `let LFSR_FB_REW="q[1]^q[18]"
77
`breaksw
78
`case 21
79
 `let LFSR_FB="q[`LFSR_LENGTH]^q[19]"
80
 `let LFSR_FB_REW="q[1]^q[20]"
81
`breaksw
82
`case 22
83
 `let LFSR_FB="q[`LFSR_LENGTH]^q[21]"
84
 `let LFSR_FB_REW="q[1]^q[22]"
85
`breaksw
86
`case 23
87
 `let LFSR_FB="q[`LFSR_LENGTH]^q[18]"
88
 `let LFSR_FB_REW="q[1]^q[19]"
89
`breaksw
90
`case 24
91
 `let LFSR_FB="q[`LFSR_LENGTH]^q[23]^q[22]^q[17]"
92
 `let LFSR_FB_REW="q[1]^q[24]^q[23]^q[18]"
93
`breaksw
94
`case 25
95
 `let LFSR_FB="q[`LFSR_LENGTH]^q[22]"
96
 `let LFSR_FB_REW="q[1]^q[23]"
97
`breaksw
98
`case 26
99
 `let LFSR_FB="q[`LFSR_LENGTH]^q[6]^q[2]^q[1]"
100
 `let LFSR_FB_REW="q[1]^q[7]^q[3]^q[2]"
101
`breaksw
102
`case 27
103
 `let LFSR_FB="q[`LFSR_LENGTH]^q[5]^q[2]^q[1]"
104
 `let LFSR_FB_REW="q[1]^q[6]^q[3]^q[2]"
105
`breaksw
106
`case 28
107
 `let LFSR_FB="q[`LFSR_LENGTH]^q[25]"
108
 `let LFSR_FB_REW="q[1]^q[26]"
109
`breaksw
110
`case 29
111
 `let LFSR_FB="q[`LFSR_LENGTH]^q[27]"
112
 `let LFSR_FB_REW="q[1]^q[28]"
113
`breaksw
114
`case 30
115
 `let LFSR_FB="q[`LFSR_LENGTH]^q[6]^q[4]^q[1]"
116
 `let LFSR_FB_REW="q[1]^q[7]^q[5]^q[2]"
117
`breaksw
118
`case 31
119
 `let LFSR_FB="q[`LFSR_LENGTH]^q[28]"
120
 `let LFSR_FB_REW="q[1]^q[29]"
121
`breaksw
122
`case 32
123
 `let LFSR_FB="q[`LFSR_LENGTH]^q[22]^q[2]^q[1]"
124
 `let LFSR_FB_REW="q[1]^q[23]^q[3]^q[2]"
125
`breaksw
126
`endswitch

powered by: WebSVN 2.1.0

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