From c026e03847e106fd4f85eda876a36ba38077d1c5 Mon Sep 17 00:00:00 2001 From: matt Date: Mon, 19 Jan 2009 04:33:11 +0000 Subject: 24 bit wide z. Can't do this parameterized, unfortunately. git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10256 221aa14e-8319-0410-a670-987f0aec2ac5 --- sdr_lib/gen_cordic_consts.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sdr_lib/gen_cordic_consts.py') 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)) -- cgit v1.2.3