Skip to content

Major revamp of schema for WARL/WLRL#233

Merged
james-ball-qualcomm merged 6 commits intomainfrom
add_rv32_rv64_csr_values
Mar 25, 2026
Merged

Major revamp of schema for WARL/WLRL#233
james-ball-qualcomm merged 6 commits intomainfrom
add_rv32_rv64_csr_values

Conversation

@james-ball-qualcomm
Copy link
Copy Markdown
Collaborator

No description provided.

@james-ball-qualcomm james-ball-qualcomm self-assigned this Mar 25, 2026
Copilot AI review requested due to automatic review settings March 25, 2026 17:35
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the WARL/WLRL CSR schema encoding to use a single discriminator (type) plus an optional width-parameter (only for var-width), and updates the params generator + test fixtures to match the new contract.

Changes:

  • Replace CSR selector properties (enum / width / ro-mask / ro-value) with type and conditional width-parameter in schemas.
  • Update tools/create_params.py to validate/emit the new CSR shape and simplify CSR HTML “Type” rendering.
  • Update test YAML inputs and golden JSON/HTML outputs for params + normative rules.

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tools/create_params.py Switch CSR parsing/output to type + width-parameter; update CSR HTML “Type” column rendering.
tools/README.md Update documentation for new CSR encoding (but sections appear accidentally overwritten).
tests/params/test-ch1.yaml Update CSR definition to new type + width-parameter form.
tests/params/test-ch2.yaml Update CSR definitions to new type-based encoding.
tests/params/expected/test-params.json Refresh expected params JSON for new CSR output shape.
tests/params/expected/test-params.html Refresh expected params HTML CSR “Type” column output.
tests/norm-rule/test-ch2.yaml Update normative-rule names/tags to match revised fixtures.
tests/norm-rule/test-ch2.adoc Update normative rule text/tags used by fixtures.
tests/norm-rule/expected/test-norm-rules.json Refresh expected normative-rules JSON for updated fixtures.
tests/norm-rule/expected/test-norm-rules.html Refresh expected normative-rules HTML for updated fixtures.
tests/norm-rule/expected/test-ch2-norm-tags.json Refresh expected extracted tag text mapping.
schemas/params-schema.json Require CSR type; add conditional requirement/ban of width-parameter.
schemas/param-defs-schema.json Require CSR type; add conditional requirement/ban of width-parameter.
schemas/param-common-schema.json Add csrType + description helpers; remove old CSR enum/multibase definitions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tools/README.md Outdated
Comment thread tools/README.md Outdated
Comment thread tools/create_params.py Outdated
Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 25, 2026

@james-ball-qualcomm I've opened a new pull request, #234, to work on those changes. Once the pull request is ready, I'll request review from you.

james-ball-qualcomm and others added 4 commits March 25, 2026 10:47
Co-authored-by: Copilot <[email protected]>
Signed-off-by: James Ball <[email protected]>
Signed-off-by: James Ball <[email protected]>
Fix tools/README.md: restore corrupted tag_text_to_html.py and shared_utils.py sections
@james-ball-qualcomm james-ball-qualcomm merged commit 14dd77a into main Mar 25, 2026
2 checks passed
@james-ball-qualcomm james-ball-qualcomm deleted the add_rv32_rv64_csr_values branch March 25, 2026 17:56
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.

3 participants