Imported Upstream version 3.0
[debian/gnuradio] / usrp / fpga / sdr_lib / gen_cordic_consts.py
1 #!/usr/bin/env python
2
3 import math
4
5 zwidth = 16
6
7 for i in range(17):
8     c = math.atan (1.0/(2**i)) / (2 * math.pi) * (1 << zwidth)
9     print "`define c%02d %d'd%d" % (i, zwidth, round (c))
10