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

Subversion Repositories versatile_counter

[/] [versatile_counter/] [trunk/] [rtl/] [verilog/] [lfsr_polynom.v] - Diff between revs 10 and 11

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 10 Rev 11
Line 1... Line 1...
`switch (LFSR_LENGTH)
`switch (LFSR_LENGTH)
`case 2
`case 2
 `let LFSR_FB="q[`LFSR_LENGTH]^q[1]"
 `let LFSR_FB="qi[`LFSR_LENGTH]^qi[1]"
 `let LFSR_FB_REW="q[1]^q[2]"
 `let LFSR_FB_REW="qi[1]^qi[2]"
`breaksw
`breaksw
`case 3
`case 3
 `let LFSR_FB="q[`LFSR_LENGTH]^q[2]"
 `let LFSR_FB="qi[`LFSR_LENGTH]^qi[2]"
 `let LFSR_FB_REW="q[1]^q[3]"
 `let LFSR_FB_REW="qi[1]^qi[3]"
`breaksw
`breaksw
`case 4
`case 4
 `let LFSR_FB="q[`LFSR_LENGTH]^q[3]"
 `let LFSR_FB="qi[`LFSR_LENGTH]^qi[3]"
 `let LFSR_FB_REW="q[1]^q[4]"
 `let LFSR_FB_REW="qi[1]^qi[4]"
`breaksw
`breaksw
`case 5
`case 5
 `let LFSR_FB="q[`LFSR_LENGTH]^q[3]"
 `let LFSR_FB="qi[`LFSR_LENGTH]^qi[3]"
 `let LFSR_FB_REW="q[1]^q[4]"
 `let LFSR_FB_REW="qi[1]^qi[4]"
`breaksw
`breaksw
`case 6
`case 6
 `let LFSR_FB="q[`LFSR_LENGTH]^q[5]"
 `let LFSR_FB="qi[`LFSR_LENGTH]^qi[5]"
 `let LFSR_FB_REW="q[1]^q[6]"
 `let LFSR_FB_REW="qi[1]^qi[6]"
`breaksw
`breaksw
`case 7
`case 7
 `let LFSR_FB="q[`LFSR_LENGTH]^q[6]"
 `let LFSR_FB="qi[`LFSR_LENGTH]^qi[6]"
 `let LFSR_FB_REW="q[1]^q[7]"
 `let LFSR_FB_REW="qi[1]^qi[7]"
`breaksw
`breaksw
`case 8
`case 8
 `let LFSR_FB="q[`LFSR_LENGTH]^q[6]^q[5]^q[4]"
 `let LFSR_FB="qi[`LFSR_LENGTH]^qi[6]^qi[5]^qi[4]"
 `let LFSR_FB_REW="q[1]^q[7]^q[6]^q[5]"
 `let LFSR_FB_REW="qi[1]^qi[7]^qi[6]^qi[5]"
`breaksw
`breaksw
`case 9
`case 9
 `let LFSR_FB="q[`LFSR_LENGTH]^q[5]"
 `let LFSR_FB="qi[`LFSR_LENGTH]^qi[5]"
 `let LFSR_FB_REW="q[1]^q[6]"
 `let LFSR_FB_REW="qi[1]^qi[6]"
`breaksw
`breaksw
`case 10
`case 10
 `let LFSR_FB="q[`LFSR_LENGTH]^q[7]"
 `let LFSR_FB="qi[`LFSR_LENGTH]^qi[7]"
 `let LFSR_FB_REW="q[1]^q[8]"
 `let LFSR_FB_REW="qi[1]^qi[8]"
`breaksw
`breaksw
`case 11
`case 11
 `let LFSR_FB="q[`LFSR_LENGTH]^q[9]"
 `let LFSR_FB="qi[`LFSR_LENGTH]^qi[9]"
 `let LFSR_FB_REW="q[1]^q[10]"
 `let LFSR_FB_REW="qi[1]^qi[10]"
`breaksw
`breaksw
`case 12
`case 12
 `let LFSR_FB="q[`LFSR_LENGTH]^q[6]^q[4]^q[1]"
 `let LFSR_FB="qi[`LFSR_LENGTH]^qi[6]^qi[4]^qi[1]"
 `let LFSR_FB_REW="q[1]^q[7]^q[5]^q[2]"
 `let LFSR_FB_REW="qi[1]^qi[7]^qi[5]^qi[2]"
`breaksw
`breaksw
`case 13
`case 13
 `let LFSR_FB="q[`LFSR_LENGTH]^q[4]^q[3]^q[1]"
 `let LFSR_FB="qi[`LFSR_LENGTH]^qi[4]^qi[3]^qi[1]"
 `let LFSR_FB_REW="q[1]^q[5]^q[4]^q[2]"
 `let LFSR_FB_REW="qi[1]^qi[5]^qi[4]^qi[2]"
`breaksw
`breaksw
`case 14
`case 14
 `let LFSR_FB="q[`LFSR_LENGTH]^q[5]^q[3]^q[1]"
 `let LFSR_FB="qi[`LFSR_LENGTH]^qi[5]^qi[3]^qi[1]"
 `let LFSR_FB_REW="q[1]^q[6]^q[4]^q[2]"
 `let LFSR_FB_REW="qi[1]^qi[6]^qi[4]^qi[2]"
`breaksw
`breaksw
`case 15
`case 15
 `let LFSR_FB="q[`LFSR_LENGTH]^q[14]"
 `let LFSR_FB="qi[`LFSR_LENGTH]^qi[14]"
 `let LFSR_FB_REW="q[1]^q[15]"
 `let LFSR_FB_REW="qi[1]^qi[15]"
`breaksw
`breaksw
`case 16
`case 16
 `let LFSR_FB="q[`LFSR_LENGTH]^q[15]^q[13]^q[4]"
 `let LFSR_FB="qi[`LFSR_LENGTH]^qi[15]^qi[13]^qi[4]"
 `let LFSR_FB_REW="q[1]^q[16]^q[14]^q[5]"
 `let LFSR_FB_REW="qi[1]^qi[16]^qi[14]^qi[5]"
`breaksw
`breaksw
`case 17
`case 17
 `let LFSR_FB="q[`LFSR_LENGTH]^q[14]"
 `let LFSR_FB="qi[`LFSR_LENGTH]^qi[14]"
 `let LFSR_FB_REW="q[1]^q[15]"
 `let LFSR_FB_REW="qi[1]^qi[15]"
`breaksw
`breaksw
`case 18
`case 18
 `let LFSR_FB="q[`LFSR_LENGTH]^q[11]"
 `let LFSR_FB="qi[`LFSR_LENGTH]^qi[11]"
 `let LFSR_FB_REW="q[1]^q[12]"
 `let LFSR_FB_REW="qi[1]^qi[12]"
`breaksw
`breaksw
`case 19
`case 19
 `let LFSR_FB="q[`LFSR_LENGTH]^q[6]^q[2]^q[1]"
 `let LFSR_FB="qi[`LFSR_LENGTH]^qi[6]^qi[2]^qi[1]"
 `let LFSR_FB_REW="q[1]^q[7]^q[3]^q[2]"
 `let LFSR_FB_REW="qi[1]^qi[7]^qi[3]^qi[2]"
`breaksw
`breaksw
`case 20
`case 20
 `let LFSR_FB="q[`LFSR_LENGTH]^q[17]"
 `let LFSR_FB="qi[`LFSR_LENGTH]^qi[17]"
 `let LFSR_FB_REW="q[1]^q[18]"
 `let LFSR_FB_REW="qi[1]^qi[18]"
`breaksw
`breaksw
`case 21
`case 21
 `let LFSR_FB="q[`LFSR_LENGTH]^q[19]"
 `let LFSR_FB="qi[`LFSR_LENGTH]^qi[19]"
 `let LFSR_FB_REW="q[1]^q[20]"
 `let LFSR_FB_REW="qi[1]^qi[20]"
`breaksw
`breaksw
`case 22
`case 22
 `let LFSR_FB="q[`LFSR_LENGTH]^q[21]"
 `let LFSR_FB="qi[`LFSR_LENGTH]^qi[21]"
 `let LFSR_FB_REW="q[1]^q[22]"
 `let LFSR_FB_REW="qi[1]^qi[22]"
`breaksw
`breaksw
`case 23
`case 23
 `let LFSR_FB="q[`LFSR_LENGTH]^q[18]"
 `let LFSR_FB="qi[`LFSR_LENGTH]^qi[18]"
 `let LFSR_FB_REW="q[1]^q[19]"
 `let LFSR_FB_REW="qi[1]^qi[19]"
`breaksw
`breaksw
`case 24
`case 24
 `let LFSR_FB="q[`LFSR_LENGTH]^q[23]^q[22]^q[17]"
 `let LFSR_FB="qi[`LFSR_LENGTH]^qi[23]^qi[22]^qi[17]"
 `let LFSR_FB_REW="q[1]^q[24]^q[23]^q[18]"
 `let LFSR_FB_REW="qi[1]^qi[24]^qi[23]^qi[18]"
`breaksw
`breaksw
`case 25
`case 25
 `let LFSR_FB="q[`LFSR_LENGTH]^q[22]"
 `let LFSR_FB="qi[`LFSR_LENGTH]^qi[22]"
 `let LFSR_FB_REW="q[1]^q[23]"
 `let LFSR_FB_REW="qi[1]^qi[23]"
`breaksw
`breaksw
`case 26
`case 26
 `let LFSR_FB="q[`LFSR_LENGTH]^q[6]^q[2]^q[1]"
 `let LFSR_FB="qi[`LFSR_LENGTH]^qi[6]^qi[2]^qi[1]"
 `let LFSR_FB_REW="q[1]^q[7]^q[3]^q[2]"
 `let LFSR_FB_REW="qi[1]^qi[7]^qi[3]^qi[2]"
`breaksw
`breaksw
`case 27
`case 27
 `let LFSR_FB="q[`LFSR_LENGTH]^q[5]^q[2]^q[1]"
 `let LFSR_FB="qi[`LFSR_LENGTH]^qi[5]^qi[2]^qi[1]"
 `let LFSR_FB_REW="q[1]^q[6]^q[3]^q[2]"
 `let LFSR_FB_REW="qi[1]^qi[6]^qi[3]^qi[2]"
`breaksw
`breaksw
`case 28
`case 28
 `let LFSR_FB="q[`LFSR_LENGTH]^q[25]"
 `let LFSR_FB="qi[`LFSR_LENGTH]^qi[25]"
 `let LFSR_FB_REW="q[1]^q[26]"
 `let LFSR_FB_REW="qi[1]^qi[26]"
`breaksw
`breaksw
`case 29
`case 29
 `let LFSR_FB="q[`LFSR_LENGTH]^q[27]"
 `let LFSR_FB="qi[`LFSR_LENGTH]^qi[27]"
 `let LFSR_FB_REW="q[1]^q[28]"
 `let LFSR_FB_REW="qi[1]^qi[28]"
`breaksw
`breaksw
`case 30
`case 30
 `let LFSR_FB="q[`LFSR_LENGTH]^q[6]^q[4]^q[1]"
 `let LFSR_FB="qi[`LFSR_LENGTH]^qi[6]^qi[4]^qi[1]"
 `let LFSR_FB_REW="q[1]^q[7]^q[5]^q[2]"
 `let LFSR_FB_REW="qi[1]^qi[7]^qi[5]^qi[2]"
`breaksw
`breaksw
`case 31
`case 31
 `let LFSR_FB="q[`LFSR_LENGTH]^q[28]"
 `let LFSR_FB="qi[`LFSR_LENGTH]^qi[28]"
 `let LFSR_FB_REW="q[1]^q[29]"
 `let LFSR_FB_REW="qi[1]^qi[29]"
`breaksw
`breaksw
`case 32
`case 32
 `let LFSR_FB="q[`LFSR_LENGTH]^q[22]^q[2]^q[1]"
 `let LFSR_FB="qi[`LFSR_LENGTH]^qi[22]^qi[2]^qi[1]"
 `let LFSR_FB_REW="q[1]^q[23]^q[3]^q[2]"
 `let LFSR_FB_REW="qi[1]^qi[23]^qi[3]^qi[2]"
`breaksw
`breaksw
`endswitch
`endswitch
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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