mirror of
https://github.com/fairwaves/UHD-Fairwaves.git
synced 2025-11-03 21:43:15 +00:00
11 lines
201 B
Python
Executable File
11 lines
201 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
import math
|
|
|
|
zwidth = 24
|
|
|
|
for i in range(24):
|
|
c = math.atan (1.0/(2**i)) / (2 * math.pi) * (1 << zwidth)
|
|
print "localparam c%02d = %d'd%d;" % (i, zwidth, round (c))
|
|
|