开发者

how to test simulation results for 256 point FFT written in verilog code

开发者 https://www.devze.com 2023-03-29 12:04 出处:网络
I have written verilog code for 256 point FFT(radix22 sdf) and testbench (which has random sample values...)

I have written verilog code for 256 point FFT(radix22 sdf) and testbench (which has random sample values...) I got some simulation results how to know whether the r开发者_C百科esults what i got are correct or not..


This is a standard verification problem.

You need to get some "right answers" from somewhere and get your testbench to compare your code's output against them.

You can get the right answers in various ways:

  • A tool such as Matlab if you have access to it would be very easy
  • Take an existing C library like FFTW and run your data through that
  • You could calculate them by hand (but I wouldn't recommend it as they are unlikely to be right first time :)

Take those outputs and convert them to a Verilog $readmem compatible file, read them into the simulator and compare the results at the end. Or write your results out in some form Matlab or whatever can work with and do the comparison there.

0

精彩评论

暂无评论...
验证码 换一张
取 消