作者luckyburgess (心安即自在)
看板Grad-ProbAsk
標題[計組]-中山97-資工所
時間Thu Feb 25 00:08:46 2010
想請問計組的1.3小題
題目:
How many memory accesses are required to execute a "store"
instruction with memory indirect addressing?
手邊的答案是3次 1(instruction fetch)+2(indirect addressing)
但我覺得是2次 即1(instruction fetch)+1(indirect addressing)
不是就IF STAGE 及MEM STAGE各一次嗎??
可以告訴我是哪裡出問題嗎?? 感謝!!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.134.213.201
推 willow02:第一次找到的是要存的位置 第二次才是存進去? 02/25 00:11
→ luckyburgess:?? 02/25 00:26
推 ie925155:問題出在 indirect 02/25 01:11
→ ie925155:indirect 要兩次才能找到你要的operand 02/25 01:12
推 ie925155:addressing就是去抓operand的方法兒sw指令後面16 bit加上 02/25 01:21
→ ie925155:constant 會指到mem的一個位址但裡面卻是operand的真正 02/25 01:22
→ ie925155:位址, 所以第二次才會找到正確operand的address 02/25 01:22
→ luckyburgess:恩 我瞭解了 感謝!! 02/25 01:34