Skip to content

rdl: fix improperly configured field sw access - #508

Merged
nathanaelhuffman merged 1 commit into
mainfrom
aaron/rdl-access-ctrl
Jul 22, 2026
Merged

rdl: fix improperly configured field sw access#508
nathanaelhuffman merged 1 commit into
mainfrom
aaron/rdl-access-ctrl

Conversation

@Aaron-Hartwig

Copy link
Copy Markdown
Collaborator

In SystemRDL, the default keyword only applies to children within the scope it is declared. This means when it is used within a field (which can't have children), nothing happens. Additionally, it does not set the property locally (that is, on the field), so all the places where default $property = $value exist within a field don't actually do anything. This PR fixes all the occurrences where we did this within our RDL definitions.

Fixes #507

@Aaron-Hartwig Aaron-Hartwig self-assigned this Jul 17, 2026
desc = "";

field {
default sw = woclr;

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually an invalid statement which was swallowed by the compiler since default is meaningless within field. woclr is a bool type that can be set on its own, so I adjusted that.

@jamesmunns

Copy link
Copy Markdown

Great catch! Do we need to do anything to update the JSON files checked into hubris once this change has landed?

@nathanaelhuffman

Copy link
Copy Markdown
Collaborator

Great catch! Do we need to do anything to update the JSON files checked into hubris once this change has landed?

Yep we'll need to push new releases to hubris with the json files I'll work on making that happen this week.

@nathanaelhuffman nathanaelhuffman left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ty for digging into this

@nathanaelhuffman
nathanaelhuffman merged commit 779dbcb into main Jul 22, 2026
10 checks passed
@nathanaelhuffman
nathanaelhuffman deleted the aaron/rdl-access-ctrl branch July 22, 2026 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sw_access in JSON output doesn't seem to match HDL

3 participants