[理工] 計組 beq與bne的rs rt
請問beq與bne這類型的rs與rt的正確擺法
雖然不管怎麼擺都不影響運算結果
但是有一些datapath的題目考過(張凡380)
以往R type或是lw sw指令
像是 lw $1 40($6)
rs是$6 rt是$1
但是為什麼bne $1 $2 label
rs是$1 rt是$2(照我理解應該相反才對)
為什麼會這樣?還是沒有理由呢
(翻到前面第一章講到分支指令的地方好像也沒特別提到)
謝謝大家
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 223.137.3.213
※ 文章網址: https://www.ptt.cc/bbs/Grad-ProbAsk/M.1479715078.A.367.html
順帶一問 opcode是要背嗎?
※ 編輯: newpuma (223.137.3.213), 11/21/2016 15:59:43
推
11/21 16:23, , 1F
11/21 16:23, 1F
但branch指令是直接照著組語的暫存器次序擺入rs與rt嗎?
※ 編輯: newpuma (223.137.3.213), 11/21/2016 16:26:35
→
11/21 16:24, , 2F
11/21 16:24, 2F
推
11/21 16:44, , 3F
11/21 16:44, 3F
→
11/21 16:44, , 4F
11/21 16:44, 4F
lw sw我是蠻清楚的...Rtype也是,幾乎都記得很熟,只是好像沒特別解釋為什麼branch
指令,是因為跟swlw才是特例嗎?
→
11/21 16:44, , 5F
11/21 16:44, 5F
考試會給op function table嗎?
順帶一問為什麼單時脈週期把記憶體分成指令記憶體、資料記憶體?我知道在pipeline的
原因,但不知道在single cycle這樣做的好處是什麽?
the processor operates in one cycle abd cannot use a single-ported memory for
two different accesse within that cycle.
是跟pipeline同個原因嗎?
※ 編輯: newpuma (223.137.3.213), 11/21/2016 17:01:11
推
11/21 17:04, , 6F
11/21 17:04, 6F
→
11/21 17:04, , 7F
11/21 17:04, 7F
→
11/21 17:04, , 8F
11/21 17:04, 8F