Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@youngar
Copy link
Member

@youngar youngar commented Jul 17, 2025

We are currently printing 1-bit localparams without a size, which causes verilator to complain that it does not have a known bitwidth when used in some expressions. This changes ExportVerilog to always print the bitwidth of localparams, which is something we already do for parameters.

Copy link
Member

@uenoku uenoku left a comment

Choose a reason for hiding this comment

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

LGTM

We are currently printing 1-bit localparams without a size, which causes
verilator to complain that it does not have a known bitwidth when used
in some expressions.  This changes ExportVerilog to always print the
bitwidth of localparams, which is something we already do for
parameters.
@youngar youngar force-pushed the export-verilog-localparam branch from f6c9f6f to 0f350d3 Compare July 17, 2025 23:36
@youngar youngar merged commit 62a6582 into llvm:main Jul 18, 2025
7 checks passed
@youngar youngar deleted the export-verilog-localparam branch July 18, 2025 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants