再来看课程主要内容..ppt

再来看课程主要内容..ppt

* 假定Cache的容量为2N为字节(例中N=10),主存块大小为32字节,主存的容量为232字节。那么,32位主存地址的划分应该如下:低5位表示块内字节号,中间5位表示Cache的行(槽)号,高12位表示主存标志。 * Data cache uses 1 byte as the smallest unit but instruction cache uses 1 word as the smallest units This is yet another example showing that the byte select is divided into block offset and byte offset. Different computer systems have different designing choice. Designing shown in this example is good for both Instruction cache and data cache. * 访存过程: CPU给出一个20位主存地址,根据高11位的内容同时与Cache中各槽的标志位进行比较。 若能找到相等的槽,则说明要访问的单元在该槽中。再根据后9位字号找到相应的字取到CPU中。 若全都不相等,则说明要访问的单元不在Ca

文档评论(0)

1亿VIP精品文档

相关文档