給定一台電腦,以下為執行程式後,分析四種指令所得到的特性。其中X 表示不需使
用。又,throughput 定義為每秒可執行的指令數(instructions per second)。請問:
Distribution
IF
ID
EX
MEM
WB
Load
25%
2ns
1ns
2ns
2ns
1ns
Store
10%
2ns
1ns
X
Arithmetic
45%
1ns
X
1ns
Branch
20%
2ns
X
X
如果該電腦以single-cycle processor 實現。請問throughput 是多少?(6 分)
如果該電腦以multi-cycle processor 實現。請問throughput 是多少?(7 分)
如果該電腦以5-stage pipelined processor 實現。假設沒有任何data hazard,
structural hazard 及control hazard 發生,請問throughput 是多少?(7 分)
六、下圖為ALU 的設計。請根據該設計,回答Add, Nor, Or 的控制信號為何?(10 分)
Operations
4 bits (Anegat, Binvert, Op)
Add
Nor
Or
0
3
Op
1
CarryOut
0
1
b
2
Result
Anegat
CarryIn
0
1
Binvert
Operations
a
Less