diff --git a/docs/CONTRIBUTORS b/docs/CONTRIBUTORS index 9a50ac9bb..459fe8b03 100644 --- a/docs/CONTRIBUTORS +++ b/docs/CONTRIBUTORS @@ -180,6 +180,7 @@ Paul Wright Pawel Jewstafjew Pawel Sagan Pengcheng Xu +Peter Birch Peter Debacker Peter Horvath Peter Monsson diff --git a/src/V3Number.cpp b/src/V3Number.cpp index d8cbf465f..7856c04c4 100644 --- a/src/V3Number.cpp +++ b/src/V3Number.cpp @@ -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(rhsval) << ")"); } else if (rhsval > 8192) { v3warn(WIDTHCONCAT, "More than a 8k bit replication is probably wrong: " << rhsval); } diff --git a/test_regress/t/t_math_repl2_bad.out b/test_regress/t/t_math_repl2_bad.out index 4b392e65d..3f21714bb 100644 --- a/test_regress/t/t_math_repl2_bad.out +++ b/test_regress/t/t_math_repl2_bad.out @@ -1,4 +1,4 @@ -%Error: t/t_math_repl2_bad.v:28:30: More than a 16 Mbit replication, perhaps the replication factor was two's-complement negative: 4294967291 +%Error: t/t_math_repl2_bad.v:28:30: More than a 16 Mbit replication, perhaps the replication factor was two's-complement negative: 4294967291 (-5) : ... note: In instance 't' 28 | out <= {{(P24 - P29){1'b0}}, in}; | ^