针对多路复用有限长单脉冲响应(FIR)滤波器计算性能有待提升的问题,根据其系数时间局部性特点和数据空间局部性特点,通过程序框架和多路输入数据存储位置关系的调整,对多路输入数据采用分时复用传输机制的多路FIR滤波器软件实现方法进行了优化。经龙芯2号原型系统实验证明,与典型多路FIR滤波器软件实现方法相比,当输入数据的复用路数越大,或滤波器阶数与单路连续传输数据量之间的差越大时,该优化实现方法的局部性程度越高,对多路FIR滤波器计算性能的提升效果越显著。
In view of the fact that the computation performance of multi-channel multiplexed finite impulse response (FIR) filters need to be improved, according to their coefficient temporal locality characteristic and data space locality characteristic, the paper proposes a method to optimize the software implementation for multi-channel FIR filters, whose muhi-channel input data use the time-multiplexed transport mechanism by adjusting the software frame- work and the multi-channel input data' s storage location. The results of the experiments on the Godson-2 prototype system show that compared with the typical software implementation method for multi-channel FIR filters, the proposed optimization method can achieve the higher degree of locality and performance when the number of channels is larger or when the difference between the amount of the filter order and the amount of continuous data on single channel is greater.