📜  字节可寻址存储器和字可寻址存储器之间的差异

📅  最后修改于: 2021-06-28 16:27:36             🧑  作者: Mango

内存是计算机中用于存储应用程序的存储组件。存储芯片分为相等的部分,称为“ CELLS”每个单元由称为“地址”的二进制数字唯一标识。例如,存储芯片配置表示为“ 64 K x 8” ,如下图所示。

可以从上面显示的存储芯片表示中获得以下信息:

1.芯片中的数据空间= 64K X 8
2.单元中的数据空间= 8位
3.芯片中的地址空间= \log_{2} (64 K) = 16位

现在我们可以清楚地说明字节可寻址内存和字可寻址内存之间的区别。

Byte Addressable Memory Word Addressable Memory
When the data space in the cell = 8 bits then the corresponding address space is called as Byte Address. When the data space in the cell = word length of CPU then the corresponding address space is called as Word Address.
Based on this data storage i.e. Bytewise storage, the memory chip configuration is named as Byte Addressable Memory. Based on this data storage i.e. Wordwise storage, the memory chip configuration is named as Word Addressable Memory.
For eg. : 64K X 8 chip has 16 bit Address and cell size = 8 bits (1 Byte) which means that in this chip, data is stored byte by byte. For eg. : For a 16-bit CPU, 64K X 16 chip has 16 bit Address & cell size = 16 bits (Word Length of CPU) which means that in this chip, data is stored word by word.

笔记 :
i)要注意的最重要一点是,无论是字节地址还是字地址,地址大小都可以是任意数量的位(取决于芯片中的单元数),但是每种情况下单元大小都不同

ii)计算机设计中的默认内存配置为“可字节寻址”。