简体   繁体   English

查找处理器的多层缓存的AMAT和CPI

[英]Find AMAT and CPI of Multi-level cache for a processor

Can anyone help me with this question? 有人可以帮我解决这个问题吗? It is my computer architecture homework. 这是我的计算机体系结构作业。 I have no idea how to solve this. 我不知道该如何解决。 I know only this formula. 我只知道这个公式。 AMAT = Hit time + (miss rate * miss penalty). AMAT =命中时间+(失败率*未命中罚分)。 However, I know that this formula cannot apply to this problem. 但是,我知道这个公式不能解决这个问题。 I also don't know how to find CPI. 我也不知道如何找到CPI。

Assume that main memory accesses take 70 ns and that memory accesses are 36% of all instructions. 假设主存储器访问花费70 ns,并且存储器访问占所有指令的36%。 L1 and L2 caches are attached to a processor P. The specification of the two caches can be listed as follows: L1: size 2KB, miss rate = 8%, and hit time (time needed if a word is found in L1 ) is 0.66ns L2: size = 1 MB. L1和L2高速缓存连接到处理器P。这两个高速缓存的规格可以列出如下:L1:大小2KB,未命中率= 8%,命中时间(如果在L1中找到一个单词,则需要的时间)为0.66。 ns L2:大小= 1 MB。 miss rate = 95%, and hit time is 5.62ns 未命中率= 95%,命中时间为5.62ns

What is the AMAT (Average Memory Access Time) for P? P的AMAT(平均内存访问时间)是多少? Assume the base CPI (Cycle per Instruction) of 1.0 without any memory stalls (a word is found in L1), what is the total CPI for P? 假设基本CPI(每个指令的周期)为1.0,而没有任何内存停顿(在L1中找到一个字),那么P的总CPI是多少?

We are not supposed to do your homework. 我们不应该做你的作业。

AMAT: 0.66 + 0.08*(5.62+0.95*70) = 6.4296 AMAT:0.66 + 0.08 *(5.62 + 0.95 * 70)= 6.4296

CPI: 0.36 * 6.4296/0.66 + 0.64 = 4.15 CPI:0.36 * 6.4296 / 0.66 + 0.64 = 4.15

AMAT = hitrateL1 * accessTimeL1 + MissRateL1(hitrateL2(accessTimeL1 + accessTimeL2)+ missrateL2(accessTimeL1 + accessTimeL2 + accesstimeMainmemory))

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM