作者a613204 (胖胖)
看板Grad-ProbAsk
标题[理工] [计组] load use data hazard
时间Sat Sep 24 16:41:00 2011
Consider a MIPS machine with a 5-stage pipeline with a cycle time of 10ns.
Assume that you are executing a program where a fraction,f,of all instructions
immediately follow a load upon which they are dependent.
With forwarding enabled what is the total execution time for N instructions,
in terms of f?
这里给的答案是[(5-1)+N+N*f]
觉得有点怪
不是两个指令之间必须要暂停一个cycle吗??
为什麽是N*f?? 不是N*f/2
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 123.0.42.10
1F:推 wheels:因为有forwording所以load use data hazard只需停一次 09/24 22:39
2F:→ wheels:又总共有N*f个load use data hazard,所以多停N*f次 09/24 22:40
3F:→ wheels:说说你N*f/2的想法看看?? 09/24 22:41
4F:推 feabries:原PO会不会是误会题目意思 以为f是指load+後面的inst. 全 09/25 00:32
5F:→ feabries:部的比例? 09/25 00:32
6F:→ feabries:原来已经有回文@@ 09/25 00:33