首页> 中文期刊> 《计算机工程与科学》 >基于一阶泰勒级数查表法单精度倒数的设计与实现

基于一阶泰勒级数查表法单精度倒数的设计与实现

         

摘要

在分析了单精度倒数算法在图形处理器中存在的不足的基础上,设计了一阶泰勒级数单精度倒数算法.与传统算法相比,在资源消耗、运算周期和效率方面得到了有效改善.本浮点倒数算法的主要逻辑模块由一个24位整数加法器、一个ROM和一个24位乘法器组成.将在[1,2)范围的尾数平均分为4 096个区间,将每个区间起始点倒数平方放入查找表,并对每个区间采用一阶泰勒级数计算倒数值.仿真结果表明:仿真的结果与理论结果一致,满足单精度浮点数的精度要求.目前此算法已经成功流片,应用于国产第三代图形处理器JM7200.%Based on the analysis on the existing problems in the single precision inverse algorithm,we design and implement a single precision inverse based on the first order Taylor series.Compared with the traditional algorithm,the resource consumption,operation cycle and efficiency are improved.The main logic module of this floating point algorithm is composed of a 24 bit integer adder,a ROM and a 24bit multiplier.The mantissa in range of [1,2) is divided to 4096 intervals on average,and the reciprocal square of the starting point of each interval is stored in a lookup table.Then the first order Taylor series is applied to compute the inverse value of each interval.Simulation results are consistent with the theoretical results,which meets the accuracy requirement of the single precision.This algorithm has been successfully applied to the third generation of GPU JM7200.

著录项

相似文献

  • 中文文献
  • 外文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号