看板 Grad-ProbAsk 關於我們 聯絡資訊
請教一下 Schedule the following instruction segment into a superscaler pipeline for MIPS. Assume that the pipeline can execute one ALU Or branch instruction and one data transfer instruction concurrently. For the best, the instruction segment can be executed in four clock cycles. Fill in the instruction identifiers into the table. NOte that data dependency should be taken into account. (Identifier) (Instruction) In-1 loop: lw $t0.0($1) In-2 addu $t0.$t0.$s2 In-3 sw $t0.0($1) In-4 addi $s1.$s1,-4 In-5 bne $s1.$zero.Loop __________________________________ ▕clock ▕ alu or branch instruction ▕data transfer instruction ▕ ▕___▕_______________▕______________ ▕1___▕______________▕______________▕ ▕2___▕______________▕______________▕ ▕3___▕______________▕______________▕ ▕4___▕______________▕______________▕ 表格我盡力了...不會畫... 麻煩了,謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.228.97.36 ※ 編輯: bernachom 來自: 61.228.97.36 (05/09 00:55)
uminchu185: lw $t0,0($1) 05/09 10:05
uminchu185:addi,$s1,$s1,-4 05/09 10:06
uminchu185:addu $t0,$t0,$s2 05/09 10:06
uminchu185:bne $s1,$0,Loop sw $t0,4($s1) 05/09 10:08
uminchu185:I4往前移消除hazard,因此I3的參考位址需加4 05/09 10:15
bernachom:謝謝您^^ 05/09 14:30
whisp1222:樓上要不要找人一起念 一起念有問題才能互相討論 否則你 05/09 17:19
whisp1222:光打字就打很久吧 而且有朋友一起念比較久 05/09 17:20
icrts:比如說樓上就不錯喔 XD 05/09 21:32
bernachom:有在想啦,不過目前先把底子加強一下,謝謝各位嚕^^ 05/09 23:31