首页> 外国专利> METHOD AND DEVICE FOR RIGHT-SHIFTING AN INTEGER OPERAND AND ROUNDING A FRACTIONAL INTERMEDIATE RESULT TO OBTAIN A ROUNDED INTEGER RESULT

METHOD AND DEVICE FOR RIGHT-SHIFTING AN INTEGER OPERAND AND ROUNDING A FRACTIONAL INTERMEDIATE RESULT TO OBTAIN A ROUNDED INTEGER RESULT

机译:右移整数操作并围绕分数中间结果以获取整数结果的方法和设备

摘要

PURPOSE: An apparatus and a method for making a right-shift of an integer operand and rounding a fractional intermediate result in order to obtain an integer result, are provided to get signed, unsigned operands to be right-shifted by N bits, and round the fractional intermediate result so that it can be close to zero or kept away from zero. CONSTITUTION: A right-shifter(202) in a logic circuit(200) is an M-bit M-location shifter for receiving an M-bit binary integer operand as an operand input, a shift count signal and a mode signal. The right-shifter(202) presents arithmetic right-shift, and inserts a sign bit of the operand at an MSB(Most Significant Bit) of the operand if a mode signal is '1'. The right-shifter(202) inserts zero into the MSB of the operand. A range detector(204) receives an unsigned operand(N) that includes a mode signal bit and a round signal bit. The round signal bit is '1' when a round is kept away from zero, and zero when the round gets close to zero. A control circuit(206) receives a fraction bit, the MSB of the operand, the mode signal bit, the round signal bit and a range designation bit from the right-shifter(202).
机译:目的:提供一种用于使整数操作数右移并舍入小数中间结果以获得整数结果的装置和方法,以获取有符号,无符号操作数右移N位并舍入分数中间结果,使其可以接近零或远离零。组成:逻辑电路(200)中的右移位器(202)是一个M位M位置移位器,用于接收M位二进制整数操作数作为操作数输入,移位计数信号和模式信号。右移位器(202)呈现算术右移,并且如果模式信号为“ 1”,则在操作数的MSB(最高有效位)处插入操作数的符号位。右移位器(202)将零插入操作数的MSB中。范围检测器(204)接收包括模式信号位和舍入信号位的无符号操作数(N)。当舍入远离零时,舍入信号位为'1';当舍入接近零时,舍入信号位为零。控制电路(206)从右移位器(202)接收分数位,操作数的MSB,模式信号位,舍入信号位和范围指定位。

著录项

  • 公开/公告号KR100260494B1

    专利类型

  • 公开/公告日2000-07-01

    原文格式PDF

  • 申请/专利权人 SAMSUNG ELECTRONICS CO LTD.;

    申请/专利号KR19970016969

  • 发明设计人 RONEY S. WONG;

    申请日1997-05-02

  • 分类号G06F7/48;

  • 国家 KR

  • 入库时间 2022-08-22 01:44:46

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号