直接映射缓存练习

发布于 2025-01-26 19:29:07 字数 309 浏览 1 评论 0原文

考虑一台具有以下特征的计算机:MAIM的总计1GBYTE 记忆;单词大小为1字节;块大小为32个字节;缓存大小为128 kbytes。

a)对于11101234和0ffcabbe的主内存地址,给予 直接映射的相应标签,缓存行地址和单词值 缓存。

b)给出任意两个主存储地址(基于(a)中标识的格式 将映射到直接映射缓存的同一缓存线的不同标签。

请帮助我解决它。我试图这样做,但我不确定它是否正确。另外,这对我来说很困惑,因为主内存大小为1GB,但是转换后的地址(11101234)更大。关于为什么我试图了解如何解决这些问题以进一步理解时,为什么会非常有帮助。

Consider a computer with the following characteristics: total of 1Gbyte of main
memory; word size of 1 byte; block size of 32 bytes; and cache size of 128 Kbytes.

a)For the main memory addresses of 11101234 and 0FFCABBE, give the
corresponding tag, cache line address, and word values for a direct-mapped
cache.

b) Give any two main memory addresses (based on the format identified in (a) with
different tags that map to the same cache line for a direct-mapped cache.

Please help me to solve it. I tried to do it but i am not sure if it is correct. also, it's bit confusing for me because the main memory size is 1GB but the address (11101234) when converted is bigger. Explanations as to why would be extremely helpful as i'm trying to understand how to work these out for further understanding.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文