mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Add hint of the signed rhsval in oversized replication error (#6098)
This commit is contained in:
+1
-1
@@ -1474,7 +1474,7 @@ V3Number& V3Number::opRepl(const V3Number& lhs,
|
||||
if (rhsval > (1UL << 24)) {
|
||||
v3error("More than a 16 Mbit replication, perhaps the replication factor"
|
||||
" was two's-complement negative: "
|
||||
<< rhsval);
|
||||
<< rhsval << " (" << static_cast<int32_t>(rhsval) << ")");
|
||||
} else if (rhsval > 8192) {
|
||||
v3warn(WIDTHCONCAT, "More than a 8k bit replication is probably wrong: " << rhsval);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user