看板 Grad-ProbAsk 關於我們 聯絡資訊
※ 引述《VB2005 (DaiJouBu)》之銘言: 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
BaaaSwin:表示範圍10^18內->2^60內->Exponent=6->mantissa=16-1-6 12/21 23:41
VB2005:2^60內->Exponent=6 可以再說明一下嗎? 12/21 23:44
Bearcome:2^6=64 你只需要60 12/21 23:58
VB2005:哦~~了解。謝謝 12/21 23:59
BaaaSwin:6個Exponent可以表達到2的-30~31次方! 12/22 00:37
Murasaki0110:請問, 可是題目要求不是要到2^60 12/22 12:11
BaaaSwin:不是表達的數要在2^60以內嗎@@?還是我誤會了 12/22 12:41
BaaaSwin:我想說如果7bit表達的數就超過2^60了 12/22 12:42
雖然有點久了 不過我覺得好像真的怪怪的 題目要的範圍好像要更大 -10^18 ~ +10^18 應該要7個exponent吧??? 這在張凡計組那本p223頁 100年 台聯大的 有請高手解答了 感謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 59.125.187.109 ※ 文章網址: https://www.ptt.cc/bbs/Grad-ProbAsk/M.1478777999.A.111.html
ken52011219: 10^18 約 2^18/0.3 =2*2^59 11/10 20:12
ken52011219: 通常下意識會認為應該要超過59才能概括此系統 11/10 20:14
ken52011219: 但其實這是此2^59是系統給的最大呈現數 11/10 20:15
ken52011219: 假若給7bit 2^64 >2^59 代表可以輸入超過2^59~2^64 11/10 20:17
ken52011219: 系統會造成錯誤 因為它只能呈現到2^59 11/10 20:18
ken52011219: 為了避免造成Overflow 之類的狀況 其實要取小於59的 11/10 20:20
koala0716: 所以within是指設計出來有些如10^18無法表達也ok? 11/10 20:30
ken52011219: 講簡單一下就是 題目單純不能有超過+-10^18的數 11/10 20:31
ken52011219:     點 11/10 20:33
koala0716: 所以exponent挑654321中最大的,表示範圍盡量大又不over 11/10 20:35
ken52011219: 恩恩 11/10 20:37
koala0716: 感激不盡 11/10 21:43