Add --max-replication option (#7139)

This commit is contained in:
Todd Strader
2026-02-23 16:51:37 -05:00
committed by GitHub
parent f7c5454d91
commit 6a5d3b0b72
14 changed files with 71 additions and 11 deletions
+3 -2
View File
@@ -1532,8 +1532,9 @@ V3Number& V3Number::opRepl(const V3Number& lhs,
// i op repl, L(i)*value(rhs) bit return
NUM_ASSERT_OP_ARGS1(lhs);
NUM_ASSERT_LOGIC_ARGS1(lhs);
if (rhsval > 8192) {
v3warn(WIDTHCONCAT, "More than a 8k bit replication is probably wrong: " << rhsval);
if (v3Global.opt.replicationLimit() && rhsval > (uint32_t)v3Global.opt.replicationLimit()) {
v3warn(WIDTHCONCAT, "Replication of more that --replication-limit "
<< v3Global.opt.replicationLimit() << " is suspect: " << rhsval);
}
setZero();
int obit = 0;