2k x 8 内存。很卡

2k x 8 ram. Very stuck

我正在为一个课程作业问题苦苦挣扎。我卡住了。我的脑袋好痛,在原地转圈。

问题是

(a) Suppose a memory with 4-byte words and a capacity of 2^21-bit is built using 2k x 8 RAM.

i. How many chips are needed?

我在这里的回答/想法不可能是正确的。

发现了一个问题,该问题是从 2k x 8 RAM 中制造出 32k 内存需要多少芯片?答案是 16 个筹码。这是有道理的 2 x 16 = 32

但是,2^21位?

4 字节字 = 32 位。这必须是每个单元格的位数。内存的宽度?

如果整个内存有 2^21 位那么是否意味着会有 2^21 / 32 行? = 65536 行。我想到我总共需要 2^21 位来实现这一点。如果每行有 32 个,我需要 65536 行才能达到 2^21 (=2097152)。

虽然我已经走到这一步了,但我看不出它对我有什么帮助。

每个 2k x 8 RAM 上存储了多少位?

ii. How many address lines are needed for the memory?

我读过

"2k x 8 RAM is referred to as 2k x n memory. There are k address lines and therefore 2k addresses. Each of these addresses contains an n-bit word. In this instance, 2k = 2048 = 211. You need 11 address lines."

我不是 100% 理解这句话。我知道 2 个地址行给出了四个地址。我知道 3 个地址行给出 8 个地址。我需要计算 65536 行吗?

iii. How many of these address lines are connected to the address inputs of the RAM chips?

????

iv. How many of these address lines will be used to select the appropriate RAM chip(s)?

我知道 select 芯片需要一些地址线,而芯片中的单元需要其他地址线。当我知道筹码的数量时,我可以算出来吗?

非常非常感谢您能给我的任何帮助。

(a) Suppose a memory with 4-byte words and a capacity of 2^21-bit is built using 2k x 8 RAM.

“8 Ram”表示此RAM芯片存储字节,因此此芯片有容量存储2kB,或512个字== 2^9个字。

现在,要存储 2²¹ 位 == 2^18 字节 == 2^16 个字 == 2^7 个字 == 128 个字。

没那么难吧?

How many bits are stored on each 2k x 8 RAM?

2k * 8,正如你引用的书中所说。

ii. How many address lines are needed for the memory?

好吧,select 芯片需要 7 行,select 芯片内的字需要 9 行。 7+9 = 16。

iii. How many of these address lines are connected to the address inputs of the RAM chips?

9,见 ii.

iv.

7,见ii.