发明申请
US20120124116A1 APPARATUS AND METHOD FOR CONVERTING DATA BETWEEN A FLOATING-POINT NUMBER AND AN INTEGER 有权
用于转换浮点数和整数之间的数据的装置和方法

APPARATUS AND METHOD FOR CONVERTING DATA BETWEEN A FLOATING-POINT NUMBER AND AN INTEGER
摘要:
An apparatus and method for converting data between a floating-point number and an integer is provided. The apparatus includes a data converter configured to determine a sign of input binary data and an output format to which to convert the input binary data and convert the input binary data into a one's complement number based on the sign and the output format of the input binary data, a bias value generator configured to determine whether the input binary data has been rounded up based on a rounding mode of the input binary data and generate a bias value accordingly; and an adder configured to convert the input binary data into a two's complement number by adding the one's complement number and the bias value.
信息查询
0/0