节点文献
C54x系列DSP的快速双精度平均算法实现
Fast Double-precision Averaging Algorithm Based on C54x Series DSP
【摘要】 针对C语言求平均运算效率低,不适应实时系统要求的问题,采用C54x系列DSP的两个40位累加器联合对双精度源数据进行累加,累加结果分别用SUBC指令进行快速除法,得到商的高字和低字再组合成双字,实现快速双精度求平均算法的功能。基于该算法的汇编代码,在仿真测试中误差几乎为0,效率是C语言的30倍左右,为实时处理系统做了可靠的铺垫。
【Abstract】 The operation code compiled by C language does not fit for real-time system,due to its low operation efficiency.By rational use of the two 40-bit accumulators in C54x series DSP,the source data were summed.Then fast division was executed in each accumulator with SUBC order,generating high byte and low byte of the quotient.After combination of the quotient′s high byte and low byte,the fast averaging was completed.In simulation test,the running result of the algorithmic assembly code shows few errors,and the efficiency is about 30 times of that by C language.All these advantages guarantee the reliability and efficiency of the program in real-time system.
- 【文献出处】 武汉理工大学学报(信息与管理工程版) ,Journal of Wuhan University of Technology(Information & Management Engineering) , 编辑部邮箱 ,2012年02期
- 【分类号】TP301.6
- 【下载频次】62