[dv] Randomize hart_id
Nobody has claimed this yet.
- Dominant language
- SystemVerilog
- Stars
- 2.1k
- Forks
- 810
- Avg merge
- 5d 23h
- Merged PRs (30d)
- 9
Description
Ibex has a top-level `hart_id_i` input which provides the value for the `MHARTID` CSR. Currently it is fixed in the testbench. We should randomize it for every test to ensure the CSR is reporting the correct value from the top-level input.
Pushed to V3 as the feature is very simple and by inspection looks correct. Furthermore as OpenTitan has a single core it has no use for the `MHARTID` CSR so an issue here is unlikely to have notable impact.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the testbench that currently fixes the top-level hart_id_i input and inspect how each test drives it. Verify how the MHARTID CSR is checked, then make the per-test value vary and confirm the CSR reports the corresponding input value across the test suite.
Written by the indexing model from the issue text.
Assessment
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100