From d082f9e3d2a957a838b9d905b9b4d3e295c07163 Mon Sep 17 00:00:00 2001 From: FallenSigh Date: Mon, 13 Apr 2026 17:27:15 +0800 Subject: [PATCH] test: add test results for fft, dma, fft_dma --- sdk/software/examples/dma/result.txt | 75 ++++++++++++++++++++++++ sdk/software/examples/fft/result.txt | 19 ++++++ sdk/software/examples/fft_dma/result.txt | 19 ++++++ 3 files changed, 113 insertions(+) create mode 100644 sdk/software/examples/dma/result.txt create mode 100644 sdk/software/examples/fft/result.txt create mode 100644 sdk/software/examples/fft_dma/result.txt diff --git a/sdk/software/examples/dma/result.txt b/sdk/software/examples/dma/result.txt new file mode 100644 index 0000000..7c2ddbd --- /dev/null +++ b/sdk/software/examples/dma/result.txt @@ -0,0 +1,75 @@ +dma_status init = 0 +src_array: 1c080d80 +dst_array: 1c080c80 +phys_src_array: 1c080d80 +phys_dst_array: 1c080c80 +uncached_src: bc080d80 +uncached_dst: bc080c80 +polling... +dma passed! +0: 0 +1: 1 +2: 4 +3: 9 +4: 16 +5: 25 +6: 36 +7: 49 +8: 64 +9: 81 +10: 100 +11: 121 +12: 144 +13: 169 +14: 196 +15: 225 +16: 256 +17: 289 +18: 324 +19: 361 +20: 400 +21: 441 +22: 484 +23: 529 +24: 576 +25: 625 +26: 676 +27: 729 +28: 784 +29: 841 +30: 900 +31: 961 +32: 1024 +33: 1089 +34: 1156 +35: 1225 +36: 1296 +37: 1369 +38: 1444 +39: 1521 +40: 1600 +41: 1681 +42: 1764 +43: 1849 +44: 1936 +45: 2025 +46: 2116 +47: 2209 +48: 2304 +49: 2401 +50: 2500 +51: 2601 +52: 2704 +53: 2809 +54: 2916 +55: 3025 +56: 3136 +57: 3249 +58: 3364 +59: 3481 +60: 3600 +61: 3721 +62: 3844 +63: 3969 + +Success! Array to Array DMA transfer verified. diff --git a/sdk/software/examples/fft/result.txt b/sdk/software/examples/fft/result.txt new file mode 100644 index 0000000..de30c47 --- /dev/null +++ b/sdk/software/examples/fft/result.txt @@ -0,0 +1,19 @@ +fft_csr = 0 + +--- Starting Hardware FFT --- +--- Starting Software FFT --- + +--- Performance Comparison --- +Timer Clock Freq : 50000000 Hz +Hardware FFT Time: 1695360 ns (1.695 ms) +Software FFT Time: 274547190 ns (274.547 ms) +Speedup Ratio : 161.94x + +--- Verification (Only showing Bins with energy > 10) --- +Bin [ 0] Hz: HW(Re: 4007, Im: 0) | SW(Re: 4000, Im: 0) +Bin [ 10] Hz: HW(Re: 4006, Im: -1) | SW(Re: 3999, Im: 0) +Bin [ 200] Hz: HW(Re: 2, Im: -2994) | SW(Re: 0, Im: -3000) +Bin [ 400] Hz: HW(Re: -5, Im: -1496) | SW(Re: 0, Im: -1499) +Bin [ 624] Hz: HW(Re: -5, Im: 1497) | SW(Re: 0, Im: 1500) +Bin [ 824] Hz: HW(Re: 3, Im: 2994) | SW(Re: 0, Im: 2999) +Bin [1014] Hz: HW(Re: 4007, Im: 0) | SW(Re: 3999, Im: 0) diff --git a/sdk/software/examples/fft_dma/result.txt b/sdk/software/examples/fft_dma/result.txt new file mode 100644 index 0000000..b36a12b --- /dev/null +++ b/sdk/software/examples/fft_dma/result.txt @@ -0,0 +1,19 @@ +fft_csr init = 0 + +--- Starting Hardware FFT with DMA --- +--- Starting Software FFT --- + +--- Performance Comparison --- +Timer Clock Freq : 50000000 Hz +Hardware FFT Time: 407310 ns (0.407 ms) +Software FFT Time: 274786920 ns (274.787 ms) +Speedup Ratio : 674.64x + +--- Verification (Only showing Bins with energy > 10) --- +Bin [ 0] Hz: HW(Re: 4007, Im: 0) | SW(Re: 4000, Im: 0) +Bin [ 10] Hz: HW(Re: 4006, Im: -1) | SW(Re: 3999, Im: 0) +Bin [ 200] Hz: HW(Re: 2, Im: -2994) | SW(Re: 0, Im: -3000) +Bin [ 400] Hz: HW(Re: -5, Im: -1496) | SW(Re: 0, Im: -1499) +Bin [ 624] Hz: HW(Re: -5, Im: 1497) | SW(Re: 0, Im: 1500) +Bin [ 824] Hz: HW(Re: 3, Im: 2994) | SW(Re: 0, Im: 2999) +Bin [1014] Hz: HW(Re: 4007, Im: 0) | SW(Re: 3999, Im: 0)