全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Direct-mapped, set-associative, fully associative?

又称: direct-mapped cache · set-associative cache · fully associative cache

Definition 12.5 University Computer Science — Year 2 · 第 12 章 — Caches and the Memory Hierarchy

A cache is direct-mapped when each set holds one line, so that a line can be in one place only; AA-way set-associative when each set holds AA lines, any of which may receive a line of that set; and fully associative when there is one set, so that any line can go anywhere.

The fields of a 32-bit address for a direct-mapped cache of 512 bytes with 32-byte lines: 16 sets, so 4 index bits and 5 offset bits. The same address cut for another cache gives other fields.
The fields of a 32-bit address for a direct-mapped cache of 512 bytes with 32-byte lines: 16 sets, so 4 index bits and 5 offset bits. The same address cut for another cache gives other fields.
The cache after the trace of . Only two of its sixteen sets were ever used; the valid bit tells an empty set from a set holding tag 0.
The cache after the trace of Output 12.3. Only two of its sixteen sets were ever used; the valid bit tells an empty set from a set holding tag 0.
在原文中阅读 →