首页> 外国专利> Method and system for efficiently multiplying signed and unsigned variable width operands

Method and system for efficiently multiplying signed and unsigned variable width operands

机译:有效地乘以有符号和无符号可变宽度操作数的方法和系统

摘要

A plurality of multipliers for multiplying numbers having B number of bits are provided for multiplying A-operands having B number of bits by a B-operand having B number of bits. Pairs of A- and B-operands are loaded into each multiplier. Each of the multipliers calculates an intermediate result by internally adding B number of partial products. In response to the data processing system being operated in a signed mode, selected bits in selected partial products in selected multipliers are complemented, and 2.sup.B is added to a selected intermediate result so that when the intermediate results are appropriately weighted and added together, a result that is the product of two operands having 2B- bits may be calculated. In another mode, multiple products having B-bits are calculated from the pairs of A- and B-operands. The A- and B- operands may be either signed or unsigned.
机译:提供多个乘法器,该乘法器用于将具有B个位数的数字乘以具有B个位数的B操作数。成对的A和B操作数被加载到每个乘法器中。每个乘法器通过内部相加B个部分乘积来计算中间结果。响应于数据处理系统以有符号模式运行,对所选乘法器中所选部分乘积中的所选位进行补码,并将2.sup.B添加到所选中间结果中,以便在对中间结果进行适当加权和相加时一起,可以计算作为具有2B位的两个操作数之积的结果。在另一种模式中,从A操作数和B操作数对计算具有B位的多个乘积。 A和B操作数可以是有符号的也可以是无符号的。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号