[理工] [計組]浮點數

看板Grad-ProbAsk作者 (DaiJouBu)時間11年前 (2012/12/21 23:28), 編輯推噓0(008)
留言8則, 4人參與, 最新討論串1/2 (看更多)
assume we are designing a 16bit mips cpu with 16 bit instruction words. (1)assume the ieee-754 floating-point representation is also adjusted to 16bit long for this 16bit mips cpu. if the floating-point numbers are required to represent the values within ±10^18 , what are the numbers of bits of the feilds (a)(b)(c) in this 16 bit floating-point format? please your reasons,(assume log 2 = 0.3 ) 10 sign exponent mantissa (a) (b) (c) 請問: (b) 6bit (c) 9bit 怎麼來的。 謝謝… -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 111.252.158.162

12/21 23:41, , 1F
表示範圍10^18內->2^60內->Exponent=6->mantissa=16-1-6
12/21 23:41, 1F

12/21 23:44, , 2F
2^60內->Exponent=6 可以再說明一下嗎?
12/21 23:44, 2F

12/21 23:58, , 3F
2^6=64 你只需要60
12/21 23:58, 3F

12/21 23:59, , 4F
哦~~了解。謝謝
12/21 23:59, 4F

12/22 00:37, , 5F
6個Exponent可以表達到2的-30~31次方!
12/22 00:37, 5F

12/22 12:11, , 6F
請問, 可是題目要求不是要到2^60
12/22 12:11, 6F

12/22 12:41, , 7F
不是表達的數要在2^60以內嗎@@?還是我誤會了
12/22 12:41, 7F

12/22 12:42, , 8F
我想說如果7bit表達的數就超過2^60了
12/22 12:42, 8F
文章代碼(AID): #1Gr800GB (Grad-ProbAsk)
文章代碼(AID): #1Gr800GB (Grad-ProbAsk)