[理工] 計組90 MIPS問題!

看板Grad-ProbAsk作者 (andrew)時間7年前 (2018/08/16 15:10), 編輯推噓4(409)
留言13則, 6人參與, 7年前最新討論串1/1
https://i.imgur.com/luTFG9h.jpg
https://i.imgur.com/0z1fBF3.jpg
請問一下,op funct的bits數是怎麼來的? 題目好像沒什麼線索可以推……… -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 27.246.158.55 ※ 文章網址: https://www.ptt.cc/bbs/Grad-ProbAsk/M.1534403445.A.823.html

08/16 15:18, 7年前 , 1F
6個算數指令 需要3bit
08/16 15:18, 1F

08/16 15:18, 7年前 , 2F
1 (R type) +10 (other instructions) = 11
08/16 15:18, 2F

08/16 15:18, 7年前 , 3F
log2(11) ceiling = 4
08/16 15:18, 3F

08/16 15:19, 7年前 , 4F
2bit只能表達4種 所以用3bit
08/16 15:19, 4F

08/16 15:19, 7年前 , 5F
我剛剛講的是op
08/16 15:19, 5F

08/16 16:30, 7年前 , 6F
為何R type是1啊?
08/16 16:30, 6F

08/16 17:32, 7年前 , 7F
....R type op是000000
08/16 17:32, 7F

08/16 17:33, 7年前 , 8F
然後再用func去區分 哪種功能 不然會讓op太長
08/16 17:33, 8F

08/16 18:29, 7年前 , 9F
請問一下題目不是說16-bit嗎 那這樣不是超過了?
08/16 18:29, 9F

08/16 20:37, 7年前 , 10F
張凡有說這題題目出得不好 不過也只能這樣寫答案
08/16 20:37, 10F

08/16 20:56, 7年前 , 11F
所以加總起來超過16bit是題目出不好嗎?
08/16 20:56, 11F

08/17 00:04, 7年前 , 12F
08/17 00:04, 12F

08/19 08:20, 7年前 , 13F
這題加起來會超過 不用理他
08/19 08:20, 13F
文章代碼(AID): #1RTIDrWZ (Grad-ProbAsk)