fpga-fft
fpga-fft copied to clipboard
I always get an AssertionError
I fixed the "fft4_large_scale_div_sqrt_n is not defined" issue by assigning a default value as I do not want to use it.
Now I wanted to generate the fft core by using this command:
./gen_fft.py fft INSTANCE_TO_GENERATE
Regardless of which INSTANCE_TO_GENERATE I use, I get an AssertionError.
I added some prints to the gen_fft_modules.py file.
line 222: class FFT4Step:
line 223: def __init__(self, N, sub1, sub2, multiplier=defaultMult, twiddleBits='twBits'):
line 224: print("N = ", N)
line 225: print("sub1 = ", sub1.N)
line 226: print("sub2 = ", sub2.N)
line 227: assert N == (sub1.N*sub2.N)
Here is the error log:
./gen_fft.py fft fft256
('N = ', 16)
('sub1 = ', 4)
('sub2 = ', 4)
('N = ', 16)
('sub1 = ', 4)
('sub2 = ', 4)
('N = ', 16)
('sub1 = ', 4)
('sub2 = ', 4)
('N = ', 8)
('sub1 = ', 4)
('sub2 = ', 2)
('N = ', 32)
('sub1 = ', 8)
('sub2 = ', 4)
('N = ', 16)
('sub1 = ', 4)
('sub2 = ', 4)
('N = ', 64)
('sub1 = ', 16)
('sub2 = ', 4)
('N = ', 64)
('sub1 = ', 16)
('sub2 = ', 4)
('N = ', 64)
('sub1 = ', 16)
('sub2 = ', 4)
('N = ', 16)
('sub1 = ', 4)
('sub2 = ', 4)
('N = ', 8)
('sub1 = ', 4)
('sub2 = ', 4)
Traceback (most recent call last):
File "./gen_fft.py", line 8, in <module>
from gen_fft_layouts import *
File "/media/soc/Volume/master-thesis/ft_cores/fpga-fft/fft-core/codegen/gen_fft_layouts.py", line 135, in <module>
fft4_scale_none));
File "/media/soc/Volume/master-thesis/ft_cores/fpga-fft/fft-core/codegen/gen_fft_modules.py", line 227, in __init__
assert N == (sub1.N*sub2.N)
AssertionError
Am I doing something wrong here? How can I solve the issue?
I would appreciate an answer. Best regards