aboutsummaryrefslogtreecommitdiffstats
path: root/sdr_lib/gen_cordic_consts.py
diff options
context:
space:
mode:
Diffstat (limited to 'sdr_lib/gen_cordic_consts.py')
-rwxr-xr-xsdr_lib/gen_cordic_consts.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sdr_lib/gen_cordic_consts.py b/sdr_lib/gen_cordic_consts.py
index ab66cfe01..261e8c223 100755
--- a/sdr_lib/gen_cordic_consts.py
+++ b/sdr_lib/gen_cordic_consts.py
@@ -2,9 +2,9 @@
import math
-zwidth = 16
+zwidth = 24
-for i in range(17):
+for i in range(24):
c = math.atan (1.0/(2**i)) / (2 * math.pi) * (1 << zwidth)
- print "`define c%02d %d'd%d" % (i, zwidth, round (c))
+ print "localparam c%02d = %d'd%d;" % (i, zwidth, round (c))