- 20
- 0
- 约4.53万字
- 约 26页
- 2017-07-29 发布于湖北
- 举报
Date:
Quiz for Chapter 5 Large and Fast: Exploiting Memory Hierarchy
3.10
Not all questions are of equal difficulty. Please review the entire quiz first and then
budget your time carefully.
Name:
Course:
Solutions in RED
1. [24 points] Caches and Address Translation. Consider a 64-byte cache with 8 byte blocks, an
associativity of 2 and LRU block replacement. Virtual addresses are 16 bits. The cache is physically
tagged. The processor has 16KB of physical memory.
(a) What is the total number of tag bits?
The cache is 64-bytes with 8-byte blocks, so there are 8 blocks. The associativity is 2, so there are 4 sets.
Since there are 16KB of physical memory, a physical address is 14 bits long. Of these, 3 bits are taken
for the offset (8-byte blocks), and 2 for the index (4 sets). That leaves 9 tag bits per block. Since there
are 8 blocks, that makes 72 tag bits or 9 tag bytes.
(b) Assuming there are no special provisions for avoiding synonyms, what is the minimum page size?
To avoid synonyms, the number of sets times the block size cannot exceed the page size. Hence, the
minimum page size is 32 bytes
(c) Assume each page is 64 bytes. How large would a single-level page table be given that each page
requires 4 protection bits, and entries must be an integral number of bytes.
There is 16KB of physical memory and 64 B pages, meaning there are 256 physical pages and each PFN
is 8 bits. Each entry has a PFN and 4 protection bits, that’s 12 bits which we round up to 2 bytes. A
single-level page table has one entry per virtual page. With a 16-bit virtual address space, there is 64KB
of memory. Since each page is 64 bytes, that means there are 1K pages. At 2 bytes per page, the page
table is 2KB in size.
(d) For the following sequence of references, label the cache misses.Also, label each miss as being
either a compulsory miss, a capacity miss, or a conflict
您可能关注的文档
- DWG图文件找不到大字体SHX文件之「替代大字体」解决方案.pdf
- 第五章计算机期末复习题.doc
- 4-2光程 光程差.ppt
- 混凝土框架内节点受剪承载力计算模型与方法研究.pdf
- E110BaseT转换器使用说明书.pdf
- 第五章打印机接口模式.ppt
- 网络推广网络营销360好搜推广介绍.docx
- 晶片减薄技术原理概况柳滨.pdf
- 第3章—工信部:手机预装软件必须可卸载 华为、三星、小米都要傻眼了.pdf
- 注册服务商数据托管协议指南.pdf
- OBE欧贝结算管理用户手册.pdf
- Zhejiang电力行业规范说明书用户手册.pdf
- Wuhu Electronic Certification 用户手册说明书.pdf
- MLBioELISA试剂盒ml103656说明书用户手册.pdf
- Beijing政务公开服务手册无型号说明书用户手册.pdf
- ZJDB建筑工程合同说明书用户手册.pdf
- CitCorp竹懋科技车用电子料件CN 362744 CN 312861 CN 449005说明书用户手册.pdf
- Elabscience磷酸盐比色法测试盒品类信息型号信息说明书用户手册.pdf
- BaiRui贝锐向日葵Q0.5用户手册.pdf
- LICHEN ROTATIONAL VISCOLOGY MEASUREMENT DEVICE USER’S INSTRUCTION说明书用户手册.pdf
最近下载
- 光伏电子产品的设计与制作-电子课件项目3-光伏草坪灯控制电路的设计与制作.pptx VIP
- 2024-2025学年江苏信息职业技术学院单招《数学》试卷含答案详解【考试直接用】.docx VIP
- 党员个人自评总结3篇-党员个人自评 党员个人自评小结 党员个人自评总结3篇.doc VIP
- 人教版英语新目标八年级下册第二单元教材词汇及重点搭配讲解.docx VIP
- 2026年演出经纪人《思想政治与法律基础》真题库及参考答案一套.docx VIP
- 索拉非尼治疗肝癌.pptx VIP
- 【高清可复制】HGT21629-2021 管架标准图_251-300.pdf VIP
- 新版人教版七年级下册地理全册教案(完整版)教学设计.docx
- 2025年北京事业单位真题.docx VIP
- 临时用地表(可编辑).pdf VIP
原创力文档

文档评论(0)