Direct-Mapped Cache Indexing Interview Problem

Practice calculating tag, index and byte offset fields for a direct-mapped cache.

Task

Given an address and cache configuration, calculate the byte offset, set index and tag fields used to locate a cache line.

What this tests

Cache organization, address decomposition and memory hierarchy fundamentals.

Practice interactively in HDLForge