英文:
how this example in computer architecture is possible for main memory?
问题
以下是翻译好的内容:
我阅读我的笔记如下:
我的问题是如何可能有(2^14)-1个字?它是如何计算的?
我们有2^16个可寻址单元,除以2^1(1字节或8位)得到2^15,而不是2^14。我的错误在哪里?
英文:
I read my notes as follows:
My challenge is how it's possible that we have (2^14)-1 words? how it was calculated?
We have 2^16 addressable unit divide by 2^1 (1 byte or 8 bit) makes 2^15 not 2^14. where is my mistake?
答案1
得分: 1
地址单元是字节。使用16位寻址,有2^16个字节。32位字是4字节,所以2^16 / 4(或2^2)= 2^14。
这假设字的寻址必须是字对齐的。如果字可以是字节对齐的,那么字可以重叠,每个字都从每个字节开始(除了内存的顶部)。不过这不是正常情况。
英文:
The addressable units are bytes. With 16 bit addressing, that's 2^16 of them. 32 bit words are 4 bytes, so 2^16 / 4 (or 2^2) = 2^14.
That's assuming the addressing of words must be word-aligned. If words can be byte aligned, words can overlap, with one word starting at each byte (except the top or memory). That's not the normal case though.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论