mirror of
https://github.com/Asraelite/littlebigcomputer.git
synced 2025-07-20 17:16:50 +00:00
Add compiler
This commit is contained in:
parent
476972f85a
commit
3f3125ef43
31 changed files with 2625 additions and 3 deletions
23
doc/parva/design.md
Normal file
23
doc/parva/design.md
Normal file
|
@ -0,0 +1,23 @@
|
|||
|
||||
|
||||
|
||||
# L2 data cache
|
||||
|
||||
Writeback scenarios:
|
||||
|
||||
1. Normal: write L1-0 to L2-0, L1-1 to L2-1
|
||||
2. Swap: write L1-0 to L2-1, L1-1 to L2-0
|
||||
3. Normal miss: write L1-0 to L2-1, L1-1 to L2-2
|
||||
4. 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
|
Loading…
Add table
Add a link
Reference in a new issue