feat: parametrize Cheshire for 32-bit cores + SerialLink fix - #287
Draft
Xeratec wants to merge 2 commits into
Draft
feat: parametrize Cheshire for 32-bit cores + SerialLink fix#287Xeratec wants to merge 2 commits into
Xeratec wants to merge 2 commits into
Conversation
3 tasks
Contributor
|
Hi @Xeratec, this is an unprompted comment but I did something similar (but much more reduced in scope and quick and dirty) some time ago: 54f4350. I don't know if something can be complementary or be saved from it, for example it could be likely possible to have a unified |
- Cleanup - Add AXI Cut
Xeratec
force-pushed
the
wiesep/32bit-support
branch
from
July 23, 2026 20:18
bd4c2db to
6fbe675
Compare
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.
Generic (non-Chimera) changes extracted from the
wiesep/chimera-mainintegration branch,proposed for upstream. No functional change for the default 64-bit configuration.
fix: guard SerialLink APB maskWhen
SerialLinkis disabled,gen_cheshire_cfgstill set the APB mask bit for theslinkreg-bus port, pointing the APB demux at a port that isn't instantiated. Guarded on
cfg.SerialLink, matching the other optional ports.feat: parametrize Cheshire for 32-bit (XLEN) coresGeneralizes Cheshire so it can be instantiated with a 32-bit core (
riscv::XLEN == 32),today hardcoded to 64.
HW
RiscvWordWidthfromriscv::XLENinstead of hardcoding 64 in everyaxi_riscv_atomicswrapper (reg, LLC, debug, DMA-conf).boot_addr_i/hart_id_itoriscv::XLEN.TFLenWidth,AxiSlvIdWidth, and external wide-AXI port counts(
AxiExtNumWideMst/AxiExtNumWideSlv).cheshire_idma_wrapfor the standarddma_core_wrap(typed AXI channels,configurable
TFLenWidth/EnableAxiCut).SW / build
crt0.Sintosw/lib/32/andsw/lib/64/; add a 32-bit startup path.sw.mkbuild for the selected XLEN; add rv32 linker support incommon.ldh.dif/uartchanged fromuint64_ttouint32_t(valid on both XLENs).Open points for review
cheshire_idma_wrap.svis left inBender.ymlbut no longer instantiated — remove it,or gate the DMA wrapper choice behind a parameter?
Draft: split out of the Chimera 64-bit upgrade work (pulp-platform/chimera#84).