作者rustw2010 (cherish)
看板Grad-ProbAsk
标题[理工] 106北科计组
时间Tue Mar 5 22:23:28 2019
https://i.imgur.com/kDgAwYE.jpg
https://i.imgur.com/0GTuZug.jpg
想问一下这2题的答案
参考之前文章算的
不是很确定
-----
Sent from JPTT on my iPhone
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 111.184.62.12
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Grad-ProbAsk/M.1551795811.A.376.html
1F:推 cacti653: 你指令个数没加上去 03/06 05:16
2F:→ agag5123: 我算第一题14,第二题13,你写的R-branch跟bne是指什麽? 03/06 15:52
5F:→ rustw2010: 不太会贴连结,我是参考”计组管线的一些题目”那篇文 03/06 19:42
6F:→ rustw2010: 章的其中一篇回覆写的 03/06 19:42
7F:→ rustw2010: c大 可以问一下,遇到beg,要加的指令个数是全部还是, 03/06 19:52
8F:→ rustw2010: beg以後的的指令个数 03/06 19:52
9F:→ cacti653: 遇到branch指令要看他在那个stage决定跳 MEM的话位置是 03/06 20:34
10F:→ cacti653: 在EX stage被计算出来 若猜测错要冲掉後续三个指令 若ID 03/06 20:34
11F:→ cacti653: 决定跳的话 猜错要冲掉後续一个指令 03/06 20:34
12F:→ rustw2010: 这个我知道,想问的是你说少加指令个数到部分 03/06 20:49
13F:→ cacti653: (5-1)+6做六个指令+8额外stall总共14 03/06 21:09
14F:→ cacti653: 额外4打错了 03/06 21:10
15F:→ agag5123: branch if equal(beq);branch if not equal(bne) 03/06 21:21
16F:→ rustw2010: 那我想问一下这题他怎麽没有加指令个数6 03/06 21:26
18F:→ agag5123: 3就是指令个数,题目说branch要跳,所以执行126行指令 03/06 21:39
19F:→ rustw2010: 懂了谢谢各位 03/06 22:17