Advertisement

Cache Size: 16 Bytes, Cache Line Size: 4 Bytes, Direct-Mapped Cache

阅读量:

当若 cache size设置为16个字节 同时 每条缓存行大小设定为4个字节 ,并且是 direct-mapped cache (直接映射缓存) 时,则按照以下规定配置缓存。


1. 基本计算

  • 整体存储容量 = 16 字节(能够容纳的总容量单位数)
  • 每条线占用的空间量 = 4 字节(能够容纳的单个块)
  • 总体线数等于 整除计算结果
    • \frac{\text{Cache size}}{\text{Cache line size}} = \frac{16}{4} = 4

全部评论 (0)

还没有任何评论哟~