Cache Cruncher

Cache Simulator · Memory · Virtual Memory

Enter any combination of values you know and Cache Cruncher will derive the bit math automatically. Once the geometry is valid, the Cache Simulator can step through addresses and render visual cache and memory tables.

Cache Parameters

Memory & Virtual Memory

Cache Configuration

Memory Configuration

Cache Simulator

Step through addresses and keep the main view focused on translation, cache state, and TLB activity. Extra memory views stay tucked into a compact reference area.

Configure a valid cache geometry to start the simulator.

Address Translation

No address translation yet.

Instruction Breakdown

No access yet.

Address Chain

No access yet.

Trace

    Cache Table

    Cache table will appear here.

    TLB Table

    TLB activity will appear here.
    Page Table and Memory Blocks

    Page Table

    Page table rows will appear here.

    Memory Blocks

    Memory blocks will appear here.

    How was this tool?

    Formulas used

    About the Cache Cruncher Cache Simulator

    Cache Cruncher is a free online Cache Simulator and Memory Simulator designed for students taking computer architecture or computer organization courses. Type any combination of values you already know — cache size, block size, associativity, address width, page size, TLB rows — and every derived field fills in automatically. Because the solver is bidirectional, you can drive it from either side of an equation: edit num_blocks and cache_size recomputes; edit cache_size and num_blocks recomputes.

    What can you calculate and simulate?

    Example: a 32 KB, 4-way set-associative cache with 64-byte blocks

    Enter cache_size = 32 KB, block_size = 64, associativity = 4, and address_size = 32. Cache Cruncher derives 512 blocks, 128 sets, 7 index bits, 6 offset bits, and 19 tag bits — instantly, with no submit button.

    Frequently asked questions

    How do I calculate index bits in a cache?

    Index bits = log₂(number of sets). Number of sets equals the cache size divided by (block size × associativity). For a direct-mapped cache, associativity is 1.

    How do I calculate tag bits?

    Tag bits = address size − (index bits + offset bits). Offset bits = log₂(block size in bytes).

    How do I calculate TLB tag bits?

    TLB tag bits = virtual page number bits − log₂(TLB rows), where VPN bits = virtual address size − page offset bits.

    Is my data sent anywhere?

    No. Cache Cruncher runs entirely in your browser. There is no backend, no analytics, and no tracking. The Cloudflare Worker only serves the static HTML, CSS, and JavaScript.

    Support the tool

    If you like Cache Cruncher, I appreciate the support. The site already includes sponsor links at the top, and you can also connect with me on LinkedIn.

    LinkedIn

    Built by Steve Wheeler — UTSA student from 2023–2025, built while taking Professor Ortiz’s computer infrastructure class to stay engaged and learn.