您所在位置: 网站首页 / 计算机系统结构复习题.docx / 文档详情
计算机系统结构复习题.docx 立即下载
2025-01-15
约1.6万字
约23页
0
91KB
举报 版权申诉
预览加载中,请您耐心等待几秒...

计算机系统结构复习题.docx

计算机系统结构复习题.docx

预览

免费试读已结束,剩余 18 页请下载文档后查看

10 金币

下载文档

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

Question4
Asingle-issueprocessorusestomasulo’salgorithminitsfloating-pointunit,whichhasoneadderandonemultiplier,eachwithitsownsetofreservationstation,thereisonlyoneCDB,andbroadcastonthisCDBtakesanentirecycle.theprocessorisexecutingthefollowingsequenceofinstructionand,foreachinstruction,weshowthecycleinwhichtheinstructionisfetched,decoded,issued,beginstoexecute,andwritesresult.
单发射处理器在其浮点单元中使用托马斯算法,其具有一个加法器和一个乘法器,每个具有其自己的一组保留站,只有一个CDB,并且在该CDB上广播需要整个周期。处理器正在执行以下指令序列,并且对于每个指令,我们示出指令被取出,解码,发出,开始执行和写入结果的周期。
instructionfetchdecodeissueexecuteWriteresultI1MULR1,R2,R212348I2ADDR1,R1,R2234910I3MULR2,R2,R3345813I4ADDR3,R1,R14561112I5MULR1,R1,R15671216I6ADDR2,R3,R46711????I7ADDR1,R5,??78131718
whatisthelatencyofthemultiplier?4
Isthemultiplierpipelined?N
Howmanyreservationstationaretherefortheadder?2
InwhichcycledoesI6begintoexecute?13
Whichregisterdoes??RepresentinI7R1
IftheprioryforusingCDBdependsonthetypeofinstruction,betweenADDandMULthepriorityforusingtheCDBgoesto___?ADD

Question8(书本92页)
.Loop:	LDR1,0(R2)			;loadR1fromaddress0+R2
DADDIR1,R1,#1		;R1=R1+1
SDR1,0,(R2)		;storeR1ataddress0+R2
DADDIR2,R2,#4		;R2=R2+4
DSUBR4,R3,R2		;R4=R3-R2
BNEZR4,Loop		;branchtoLoopifR4!=0
AssumethattheinitialvalueofR3isR2+396.
答案:(1)依题意可得,指令序列执行的流水线时空图如下:
1234567891011121314151617181920211IFIDEXMEWB2IFIDEXMEWB3IFIDEXMEWB4IFIDEXMEWB5IFIDEXMEWB6IFIDEXMEWB1IFIFIDEXME
时钟周期为:17*98+18=1684
(2)依题意可得,指令序列执行的流水线时空图如下:

1234567891011121314151IFIDEXMEWB2IFIDSEXMEWB3IFSIDEXMEWB4IFIDEXMEWB5IFIDEXMEWB6IFIDEXMEWB7IFMissMissIFIDEXMEWB
					时钟周期为:10*98+11=991
(3)依题意可得,指令序列执行的流水线时空图如下:

12345678910111IFIDEXMEWB2IFIDEXMEWB3IFIDEXMEWB4IFIDEXMEWB5IFIDEXMEWB6IFIDEXMEWB1IFIDEXMEWB
时钟周期为:6*98+10=598
Question9
9a)Whatistheeffectiveaccesstimeofacachememorysysteminwhichthereisa2-waysetassociativecache,havingthefollowingparameters:
Parameter:Value:numberofsets1024setslinesize16wordscacheaccesstime15ns/linemainmemoryaccesstime70ns/wordmainmemoryaddressspacesize256Mwordscachehitrate95%Labelthefieldsofthememoryaddressbelowu
查看更多
单篇购买
VIP会员(1亿+VIP文档免费下)

扫码即表示接受《下载须知》

计算机系统结构复习题

文档大小:91KB

限时特价:扫码查看

• 请登录后再进行扫码购买
• 使用微信/支付宝扫码注册及付费下载,详阅 用户协议 隐私政策
• 如已在其他页面进行付款,请刷新当前页面重试
• 付费购买成功后,此文档可永久免费下载
全场最划算
12个月
199.0
¥360.0
限时特惠
3个月
69.9
¥90.0
新人专享
1个月
19.9
¥30.0
24个月
398.0
¥720.0
6个月会员
139.9
¥180.0

6亿VIP文档任选,共次下载特权。

已优惠

微信/支付宝扫码完成支付,可开具发票

VIP尽享专属权益

VIP文档免费下载

赠送VIP文档免费下载次数

阅读免打扰

去除文档详情页间广告

专属身份标识

尊贵的VIP专属身份标识

高级客服

一对一高级客服服务

多端互通

电脑端/手机端权益通用