oxidecomputer / oxidecomputer/quartz

SystemRDL: Generate default `defaultValue` in BSV even if reset not specified?

Open
#121 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

rdl tooling
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.