Skip to content

Fix leading underscores in Caliptra testbench literals - #60

Merged
gezalore merged 1 commit into
verilator:mainfrom
hankhsu1996:caliptra-hex-literal-underscore
Oct 13, 2026
Merged

gezalore merged 1 commit into
verilator:mainfrom
hankhsu1996:caliptra-hex-literal-underscore

Conversation

@hankhsu1996

Copy link
Copy Markdown
Contributor

Caliptra's caliptra_top_tb_services.sv writes seven based literals as 512'h_8FA8..., with an underscore as the first digit character. IEEE 1800-2023 5.7.1 says the underscore "shall be legal anywhere in a number except as the first character", and A.8.7 writes hex_value ::= hex_digit { _ | hex_digit }, so a tool that follows the grammar rejects the file.

The text is Caliptra's own and is fixed there in chipsalliance/caliptra-rtl#1439. This applies the same change to the copy imported at 0d5d4097, where seven of the nine places exist. The values are unchanged.

Same change as chipsalliance/caliptra-rtl#1439, applied to the copy
imported at 0d5d4097.
@gezalore
gezalore merged commit 525b424 into verilator:main Oct 13, 2026
81 checks passed
@gezalore

Copy link
Copy Markdown
Member

Thanks for all these fixes, keep them coming :)

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.

2 participants