owocomm-0 / fpga-fft Goto Github PK
View Code? Open in Web Editor NEWA highly optimized streaming FFT core based on Bailey's 4-step large FFT algorithm
License: Other
A highly optimized streaming FFT core based on Bailey's 4-step large FFT algorithm
License: Other
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
Hi, first thanks for your work!
I tried to use it, but I found a problem when try to run the generator:
$ ./gen_fft.py fft fft1024_wide
Traceback (most recent call last):
File "./gen_fft.py", line 8, in <module>
from gen_fft_layouts import *
File "/fpga-fft/codegen/gen_fft_layouts.py", line 119, in <module>
fft4_large_scale_div_sqrt_n),
NameError: name 'fft4_large_scale_div_sqrt_n' is not defined
This value is not defined in the gen_fft_layouts.py code.
Best!
Why is the barrelshift module called in transposer_adder_gen not exist, what is the parameter in the barrelshift ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.