Skip to content

Cast the byte OpenPiton's console print appends to a string - #59

Merged
gezalore merged 1 commit into
verilator:mainfrom
hankhsu1996:fix/openpiton-string-cast
Oct 12, 2026
Merged

gezalore merged 1 commit into
verilator:mainfrom
hankhsu1996:fix/openpiton-string-cast

Conversation

@hankhsu1996

Copy link
Copy Markdown
Contributor

The console print in OpenPiton's pc_cmp appended a byte of the PC to a string with no cast, which IEEE 1800-2023 6.16 requires for an integral value. Cast it with string'(...). The same line is in every configuration's pc_cmp.tmp.v, 1365 places, and each changes only by the cast. The print is not in OpenPiton's pc_cmp.v.pyv, so the files are edited in place. OpenPiton:1x1:hello still prints Hello from HART 0! and passes.

Fixes #58

@gezalore
gezalore merged commit 6d4c52f into verilator:main Oct 12, 2026
81 checks passed
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.

OpenPiton pc_cmp concatenates an integral value onto a string without a cast

2 participants