Skip to content

Conversation

@raylau1
Copy link
Contributor

@raylau1 raylau1 commented Feb 9, 2026

This fixes the verilator VARHIDDEN warning, caused by TpmRdFifoWidth being overwritten on spi_device.sv line 87.

TpmRdFifoWidth from spi_device_reg_pkg was imported on L11, then
overwritten by a localparam with the same name and value on L87.

This commit removes the redundant localparam.

Signed-off-by: Ray Lau <[email protected]>
@rswarbrick rswarbrick marked this pull request as ready for review February 9, 2026 15:25
Copy link
Contributor

@rswarbrick rswarbrick left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@rswarbrick
Copy link
Contributor

CHANGE AUTHORIZED: hw/ip/spi_device/rtl/spi_device.sv

Clearly no risk to the design: this is just removing a duplicate import!

Copy link
Contributor

@hcallahan-lowrisc hcallahan-lowrisc left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @raylau1 !

@hcallahan-lowrisc
Copy link
Contributor

CHANGE AUTHORIZED: hw/ip/spi_device/rtl/spi_device.sv

@rswarbrick rswarbrick added this pull request to the merge queue Feb 10, 2026
Merged via the queue into lowRISC:master with commit b7d8a2c Feb 10, 2026
45 of 47 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.

3 participants