作者XX9 ( 佛曰: ....)
看板FCUProblems
标题[考古] 计算机结构/张贵忠/97上期末
时间Fri Jan 16 22:02:31 2009
※ [本文转录自 FCU_Talk 看板]
作者: justforppt (洨面人) 看板: FCU_Talk
标题: [考古][资讯][张贵忠][97年上期末][计算机结构][计结]
时间: Wed Jan 14 14:27:05 2009
1. Branch in simple five-stage pipeline
(a)What are the two parts of determining a conditional brancd?
(b)Explain how the branch penalty can be reduced to 1 cycle?
(c)What are the required cost in order to achieve the solution of 1 cycle
penalty?
(d)What are the software solutions to eliminate the branch penalty?
(e)Can we reduce the branch penalty to 0 cycle? If yes,how to? If not,why not
2. Just a brief explanation
(a) What is Temporal locality? What is Spatial locality?
(b) What are the effects if we increase the block size in cache?(suppose the
cache size is fixex)
(c) Howto solve the data hazard for R-type instructions?
3. For a 4KB cache with a block of 16 bytes,how the organizations for caches
with direct-mapped and four-way set associative respecively for 32-bit
input address.
(a) Split the 32-bit address into "tag","index",and "offset" pieces,How many
address bits comprise each piece for each organization? Show the
organization for two chches.
(b) Compute the total bits(including tags and one valid bit) required for
these two structures respectively.
4. A computer architect needs to design the pipeline of a new micro-processor.
She has an example workload program core with 10^6 instructions.Each
instructions takes 100ps to finish.
(a) How long does it take to execute this program core on a nonpipelined
processor?
(b) The current state-of-art micro-processor has about 20 pipeline stages.
Assume it is perfectly pipelined.How much speedup will it achieve
compared to the nonpipelined processor?
(c) Real pipelining isn't perfect,since implementing pipelining introduces
some overhead per pipeline stage. Will this overhead affect instruction
latency,instruction throughput,or both?
5. 给你第五张的电路图...将其指令的控制讯号的值写出
RegDst ALUSrc MemtoReg RegWrite MemWrite MemRead Branch ALUOP1,2
R-type
lw
sw
beq
--
原po尬正妹,迸出新滋味,全新科科良品,复古味,新绝配!
http://www.wretch.cc/blog/lulu168
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 114.46.151.138
1F:→ CKone1209:实验室学弟正在改这张考卷.... 01/14 15:57
2F:→ justforppt:我这张考得很不好...感觉会完蛋.. 01/14 16:11
3F:→ justforppt:就是因为这张考卷我才想多做点善事..看不会不会过..科 01/14 16:12
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.132.214.27