首页> 中文期刊> 《计算机工程与科学》 >Matrix编译器中饱和算术指令映射的设计与实现

Matrix编译器中饱和算术指令映射的设计与实现

         

摘要

Matrix is a high-performance DSP processor for soft base stations.The saturation arithmetic instruction is of importance in Matrix,which enables the DSP algorithms more secure,accurate and efficient.As a result,supporting saturation arithmetic instructions mapping is critical for Matrix compiler,which is developed based on GCC.However,the current versions of GCC only support saturation arithmetic instruction with fixed-point types rather than integer or float types.Based on the internal mechanism of instructions mapping in GCC,an implementation scheme of C extensions based saturation arithmetic instructions is proposed.Further more,the proposed scheme is validated by implementing the saturation integer addition instruction mapping,and the results show that this scheme can support Matrix's saturation arithmetic instruction mapping efficiently and accurately.%Matrix是一款面向软基站的高性能DSP,饱和算术指令是Matrix体系结构中很重要的一种指令,它使得DSP算法更加安全、准确、高效.因此,Matrix编译器对饱和算术指令的映射支持就尤为关键.Matrix编译器的开发平台是gcc,现有的gcc版本只支持Fixed-point的饱和算术指令,不支持整数和浮点的饱和算术指令.首先分析了gcc内部指令映射的机制,在此基础上提出了一种基于C扩展的饱和算术指令映射实现方案,并通过实现饱和加法指令的映射来验证所提出的方案.实验结果表明,该方案能够高效、准确地实现饱和算术指令的映射.

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号