Repository navigation
Fix AIA local interrupts above 31 on RV32 and add rv32imac_mp_aia - #63
Open
cphurley82 wants to merge 5 commits into
Open
cphurley82 wants to merge 5 commits into
cphurley82 wants to merge 5 commits into
Conversation
Registers rv32imac_mp_aia, the rv32imac_mp core with the Advanced Interrupt Architecture enabled. Co-authored-by: Mark Karlstad <mkarlsta@qti.qualcomm.com>
The testbench takes a CLINT input count and binds one signal initiator per input, and the encoder gains the CSR instructions a trap test needs.
AIA adds mieh/miph so an RV32 hart can take 64 local interrupts, but core_complex capped the CLINT inputs at XLEN, built the irq bit with an int shift and masked mcause to 32 causes. A FEAT_AIA RV32 m_p hart now accepts 64 inputs and reports their causes in full. Co-authored-by: Mark Karlstad <mkarlsta@qti.qualcomm.com>
write_ip tested for mieh, which never reaches it, so a miph write landed in the lower half. An RV32 mu_p hart with AIA also accepts 64 local interrupts now, as m_p does. Co-authored-by: Mark Karlstad <mkarlsta@qti.qualcomm.com>
read_ip tested for mieh, which never reaches it, so a miph read returned the lower half. An RV32 msu_vp hart with AIA also accepts 64 local interrupts now, as m_p and mu_p do. this_class dropped FEAT, so msu_vp did not compile with any feature set and no AIA build of it existed. Co-authored-by: Mark Karlstad <mkarlsta@qti.qualcomm.com>
cphurley82
marked this pull request as ready for review
October 22, 2026 18:01
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.
Fixes local interrupt handling on RV32 cores with the Advanced Interrupt Architecture, and adds an rv32imac core that uses it.
rv32imac_mp_aia: rv32imac_mp with FEAT_AIA.this_classdropped FEAT).case siph, and write_ie mergessiewrites from mie. Neither can be reached because siph and sieh are never registered.