Ibex Compatibility Refactor: Integrate Ibex-Specific Generator, Test Base, and Flow Updates #1
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.
This PR adds and refactors key components in riscv-dv to enable seamless test generation and simulation for the Ibex RISC-V core. The main changes include:
Ibex-Specific Assembly Generator:
Introduced
ibex_asm_program_gen.py
to handle Ibex’s unique trap/interrupt vector placement, program headers, and exception handling.New Ibex Base Test Class:
Added
ibex_instr_base_test.py
, which leverages the Ibex generator and applies directed instruction streams tailored for Ibex.Testlist and Configuration Updates:
New Ibex-oriented entries in
base_testlist.yaml
for arithmetic, random, and load/store tests. Updated core settings to support Ibex’s privilege modes and vectored interrupts.Documentation Improvements:
README extended with Ibex-specific motivation, usage, and technical details. Added a reference file listing supported PyFlow tests for Ibex.
Motivation:
These changes allow riscv-dv to generate ELF and assembly files that work directly with Ibex, respecting its boot/reset and pass/fail conventions. This enables easier simulation, test extension, and maintenance for Ibex users.