mirror of
https://github.com/Asraelite/littlebigcomputer.git
synced 2025-07-17 08:16:50 +00:00
448 B
448 B
L2 data cache
Writeback scenarios:
- Normal: write L1-0 to L2-0, L1-1 to L2-1
- Swap: write L1-0 to L2-1, L1-1 to L2-0
- Normal miss: write L1-0 to L2-1, L1-1 to L2-2
- Swap miss: write L1-0 to L2-2, L1-1 to L2-1
On miss:
Check if requested line is in L2. If so, send a move signal to that position.
L2 instruction cache
Same as data cache but with no writeback functionality
Must pre-emptively fetch the next line after the PC