作者bernachom (Terry)
看板Grad-ProbAsk
标题[理工] 计组-记忆体两题..
时间Fri May 29 23:16:30 2009
请教一下,两题记忆体的问题..
第一题:
The main memory of a computer is organized as 16 blocks, with a block
size of 8 words. The cache has 4 clock frames. In (1) through (3),
show the mappings from the numbered blocks in main memory to the block
frames in the cache. Draw all lines showing the mappings as clearly as
possible.
(3) show the two-way set-associative mapping and the address bits that
identify the tag field, the set number, and the word number.
解:
http://kuso.cc/4Iw9
这个解答上的SET这样切,是不是有错呢??
是不是应该只有1个SET 两个BLOCK而已?
第二题:
A computer system has a 32-bit virtual address and a 28-bit physical address.
The virtual address is divided into three parts. The last 9 bits represent
the address within a page. The next 12 bit represent the segment number. The
machine user a translation look-aside buffer(TLB)
(3)Suggest a suitable sizes for to TLB.
解:
http://kuso.cc/4Iwd (图)
http://kuso.cc/4Iwh (说明)
请教一下,分页表的19bit是怎麽来的呢?
还有那个segment为什麽是11个bit呢?
谢谢帮忙
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 61.224.201.43