作者lovefo (lovefo)
看板Grad-ProbAsk
标题[理工] [计导]-中兴97-资科所
时间Tue Feb 2 20:03:48 2010
以下是 97 中兴计算机系统的题目
(1)(b)
Convert the decimal number -520 into signed 10-bit binary number in the 2's
complement representation
我记得 如果是 10-bit 2的补数可以表现的数字不是 -2^9 ~ +(2^9-1)
题目要表示 -520 这样不就破表了
还是我观念错误??
(6)
In a virtual memory system,it takes 10ns to access a word in the cache.If a
word is main memory but not in the cache,30ns are needed to load it into the
cache,and then the reference to it is srarted again.If the word is not in
main memory,12ms are required to fetch the word from disk,followed by 30ns
to copy itto the cache,and then the reference is started again.
(a)
Let the cache hit ratio be 0.9 and the main-memory hit ratio be 0.6.
What is the average time (in ns)to access a referenced word in the system?
(b)
The operating system can improve the CPU utilization by trying to do
something else other idle for 12ms to wait for the required data to be load
from disc to the main memory.Explain how this process works.
上面这一大题 完全不知道如何下手....
(7)
Consider a cache memory system with the following properties:
(i) 32-bit physical address
(ii) 16 Bytes per cache block
(iii) 128 KB of data cache,which are2-way set associative
(a)
Indicate the length if each field in a physical address: tag, index,and block
offset
我想法是:
block offset : 16 = 2^4
index : 128 KB /16 B = 2^13 / 2 = 2^12
tag : 32 - 12 - 4 = 16
这样对吗?
还是我算错了?
(b)
Draw a simplified block diagram of this cache system, and show how a memory
reference that is a hit in the cache is processed
这题就是画图给他 对吗?
不好意思 小弟程度不好 还希望各位高手多多指导
--
一切....
似乎都不再那麽重要....
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 114.46.163.157
※ 编辑: lovefo 来自: 114.46.163.157 (02/02 20:05)
1F:→ devilend:1 爆表没错 02/02 20:22