oxidecomputer / oxidecomputer/quartz
SystemRDL: Generate default `defaultValue` in BSV even if reset not specified?
Nobody has claimed this yet.
- Dominant language
- VHDL
- Stars
- 22
- Forks
- 2
- Avg merge
- 9h 38m
- Merged PRs (30d)
- 1
Description
Currently if a register does not have a field with a reset value, we do not get a defaultValue in the generated BSV. Do we want to generate one anyway (all zeroes or something)? This would be a little more ergonomic as a defaultValue would always be available if one wanted to use it, and then it is customizable via the field reset value in the RDL.
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
The issue does not name files or tests; start by locating the SystemRDL-to-BSV generation path that decides whether to emit register defaultValue values. Clarify whether registers without reset fields should receive an all-zero default or another value, then verify the chosen behavior in generated BSV output and add coverage if the project has an applicable test location.
Written by the indexing model from the issue text.
Assessment
- Domain
- embedded-iot
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100