Closed jotego closed 1 month ago
The warning appears after 5e1fc6e24d9c2706d9871de9bec25cebf2a95ac7, but the warning looks correct to me - looking at the full file, you have assign result = n1574_o;
further up, so in the case statement default: n1574_o = result;
is equivalent to default: n1574_o = n1574_o;
. Seems like that commit fixed a bug rather than caused one.
Thank you very much @RootCubed :-)
Using Verilator 5.024 2024-04-05 rev v5.024
I get a latch warning for this code:
I would have expected the default statement to prevent the latch warning. Slightly older versions of verilator will not mark this as a latch.
The full file itself is here. Running
verilator --lint-only
on it will produce the warning:I think this warning is wrong.