The application provides a Falcon signature FFT acceleration method for a RISC-V architecture. The method comprises the following steps: S1, adopting a Union
data processing mechanism to
complete data type conversion, directly calling RISC-V native double-precision hardware
floating point instructions for FFT complex number operation, and accurately controlling
register allocation; S2, introducing a cache prefetch mechanism, storing batch of discrete distributed complex rotation factors in a continuous intermediate cache array in advance before executing the FFT core calculation loop, changing the discrete real-
time data fetching mode, and sequentially addressing to complete
rotation factor reading; S3, adopting multi-loop
loop unrolling transformation for the innermost calculation loop of FFT, performing
parallel processing on multiple groups of calculation units in
single loop iteration, and reducing the proportion of jump
branch instructions; S4, after completing the FFT operation, writing the operation result into a target
storage area through an optimized
instruction sequence. The method provided by the application solves the problems of low efficiency of instruction mapping, low memory access efficiency and insufficient hardware
resource scheduling of the existing Falcon
algorithm when running on a RISC-V platform.