Remove memory leak when multi-bit module path delays fail

This commit is contained in:
Cary R 2026-01-21 20:46:40 -08:00
parent e51ce2a8e9
commit 068f33b35a
4 changed files with 10 additions and 4 deletions

View File

@ -1 +1,2 @@
sorry: multi-bit module path delays are currently not fully supported.
: using the LSB delay for all bits.

View File

@ -4,3 +4,7 @@
5 11 11
7 10 11
9 10 10
10 01 10
11 01 11
12 01 01
PASSED

View File

@ -1,6 +1,6 @@
{
"type" : "EF",
"source" : "br_gh1184.v",
"gold" : "br_gh1184",
"remove_gold_check_for_now" : "br_gh1184",
"iverilog-args" : [ "-gspecify" ]
}

View File

@ -665,9 +665,10 @@ void vvp_fun_modpath::recv_vec4(vvp_net_ptr_t port, const vvp_vector4_t&bit,
* is needed for this bit. */
if (cur_vec4_.value(idx) == bit.value(idx)) continue;
if (tmp != use_delay) {
fprintf(stderr, "sorry: multi-bit module path delays are "
"currently not fully supported.\n");
exit(2);
fprintf(stderr, "sorry: multi-bit module path delays are "
"currently not fully supported.\n");
fprintf(stderr, " : using the LSB delay for all bits.\n");
continue;
}
}