Chapter 7 Caches

1. on-chip and off-chip

2. L1 and L2

3. terminology:

4. Cache architecture

4.1 Harvard architecture have I-Cache and D-cache. Data level 1 caches backed by a unified level 2 cache.

4.2 Cache有地址, 数据,和状态信息。地址告诉Cache信息是从主存储区的哪里来的,这个地址就是tag来标注的。

存储数据至少是一行(line)——A5 A9的一行是8个字(words),A8 A15的一行是16个字(words)。

Associated with each line of data are one or more status bits. Typically, we will have a valid bit,
which marks the line as containing data that can be used. (This means that the address tag
represents some real value.) We will also have one or more dirty bits which mark whether the
cache line (or part of it) holds data which is not the same as (newer than) the contents of main
memory. We will treat this in more detail later in the chapter.(红色表示
重要)

5. Cache controller(缓存控制器)

系统自己完成,知道做了什么就行。

6. Direct mapped caches

 

cache controller will use two bits of the address (bits 3:2) as the offset to select a word
within the line and two bits of the address (bits 5:4) as the index to select one of the four
available lines. The remaining bits of the address (bits 31:6) will be stored as a tag value.














  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值