作者antirazin (你今天督了吗XD)
看板TransCSI
标题Re: [请益] 请教一个简单的计概填充题
时间Wed May 9 11:32:14 2007
※ 引述《ccpz (OoOoOo)》之铭言:
: ※ 引述《choufeng (Timothy)》之铭言:
: : A computer has 256MB of memory. The word size of this computer is
: : 64 bits. How many bits are needed to address any single word in memory?
: : 请教这题要如何来看呢?谢谢。
: 先看一共几个 word:
: 一个 word 64/8=8byte
: 总共 256 MB, 所以有 256MB /8 = 32 M(1024*1024) = 2^25 个 word
: 要定址就是每一个 word 都要给他一个号码当 address
: 所以总共是 2^25 个 address
: 要 25 bit 才能表示
看到上述解答,小的有一个类似的问题要请教一下...
Calculate the number of bits that are needed to store the address for a
256 MB RAM.
解答为:256MB=2^28,所以需28bits
但是我自己的解答方式是256MB = (2^8) * (2^20) *(2^3) = 2*31
也就是31bits,我觉得怪怪的就写信问老师,
他跟我说,这题是在问"需要多少个位址bit",
而一个位址空间可以存1Byte,
所以是需要2^28空间
整个看的雾煞煞@@?!
什麽是位址bit?还有题目应该是问bits数而不是什麽位址bits数吧~
我翻的没错的话,这题应该在问:
「 计算储存一个256MB的RAM的位址所需的bit数 」
总觉得逻辑怪怪的~><
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 125.226.224.86