Skip to content

feat(cache): enable larger physical data caches - #17

Open
murdoa wants to merge 3 commits into
LilithSemi:masterfrom
murdoa:feat/larger-physical-dcache
Open

murdoa wants to merge 3 commits into
LilithSemi:masterfrom
murdoa:feat/larger-physical-dcache

Conversation

@murdoa

@murdoa murdoa commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Enable larger D-cache configurations only in the translated, whole-line-PMA-checked physical L1 stage.
  • Reuse the existing alias, permission, MMIO, fault and flush assertions at 4/8/16 KiB; add high-index-bank and virtual-capacity guard tests.
  • Preserve default cache sizes, legacy virtual paths and the disabled cached-misaligned-load policy. No board configuration changes.

Prerequisite

Depends on Harbor #9. This branch pins its tested fork head 57b7bdccb1b2e2bef2c87c387f339d00b2274d2a, with matching Dart locks and Nix source hash. River #16 is already merged into the base. The fork pin is an explicit pending prerequisite, not an upstream release.

Validation

Tree Pass Unchanged assertion
Upstream 307 1
Harbor update only 307 1
Complete integration 427 1

Every baseline pass is preserved. The additional 120 passing executions cover the 8/16 KiB matrices and index checks. Identical sources and complete per-case results are verified; no skipped, incomplete or loader-failed runs count as passes.

The existing dual-issue fetch-fault test fails identically in all three trees because it never observes the prerequisite Sv39 page-table walk. It remains recorded as a failure; this PR does not fix or weaken it.

Ten emitted physical-stage RTL configurations pass Icarus checks for bank isolation, values, refill counts, tag replacement, flush and PMA bypass. Dependency-only and candidate 4 KiB RTL is identical except for generation-time comments. The primitive model is limited to the exercised common-clock RAMB36 interface.

Analysis has the same 20 warnings and 16 infos on baseline and candidate, with no errors. Formatting and diff checks pass.

Validation covers the selected component/legacy regressions, capacity matrices and emitted-stage checks; the entire River suite was not run. Core integration retains the existing non-H, in-order RV64 Sv39 scope. RV32 coverage is standalone physical-stage coverage, not Sv32 core support. No timing, whole-core area or board-boot claim.

Use the exact tested head of Harbor LilithSemi#9 while that prerequisite is open. Keep the Dart lock representations and Nix git source hash aligned.
Enable physical indexing only in the translated, whole-line-PMA-checked stage. Keep legacy virtual callers, default geometry and cached misaligned-load policy unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant