Multi-Scalar Configuration - #28
Draft
DiyouS wants to merge 11 commits into
Draft
Conversation
… at cluster level
…n peripheral geneartion.
…le to pass-in dual-scalar core configures
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a new "dual-CC" Core Complex flavor to CachePool: two Snitch scalar harts sharing one Spatz vector/FPU unit, for RLC-style kernels where not every hart needs the vector core
at the same time. cachepool_cc.sv (single-Snitch CC) is untouched — this is a sibling module (cachepool_cc_dual.sv) selected by a new build-time knob.
Two sharing modes are provided:
non-owner requests are rejected. A release drains all outstanding Spatz traffic — including vle/vse ops, which don't produce a normal acc_rsp_t completion and need their own tracking —
before handing ownership back to idle/round-robin.
TODO:
Add and test more configurations
Adapt current kernels for dual-scalar core
Add dual-scalar core configuration into CI
Hardware
register cuts), hardware/src/acc_mux.sv (idle round-robin / locked pass-through acc-interface mux).
and hart-id assignment all updated for the variable per-CC hart count.
that "core" and "hart" diverge.
Config/build
length.
to match.
Software runtime
mechanism.
Tests
shared Spatz register v0 under lock protection; a lost update (lock failing to exclude concurrent access) yields a detectably wrong final sum, unlike a per-hart-disjoint-slice test which
can't distinguish real serialization from independently-correct access.
and one snrt_cluster_hw_barrier call are currently commented out — flagging in case these should be restored/cleaned up before merge.
Verification
Confirmed passing in simulation with cachepool_dual_4g: spatz-lock-handoff reports [PASS] pairs=64 len=64, clean [EOC] exit (retval = 0), no assertion failures.