tgt-vvp: Use %cmp/e instead of %cmp/u for case comparisons

`%cmp/e` and `%cmp/u` are very similar with `%cmp/e` not setting the lt
flag and being a bit faster due to it. For case comparisons the flag is not
needed so switch to `%cmp/e`. This speeds up simulation time designs which
make use of case comparisons.

Signed-off-by: Lars-Peter Clausen <[email protected]>
This commit is contained in:
Lars-Peter Clausen
2026-05-14 20:34:30 -07:00
parent 2f1987bded
commit d84f1b9843
+1 -1
View File
@@ -671,7 +671,7 @@ static int show_stmt_case(ivl_statement_t net, ivl_scope_t sscope)
switch (ivl_statement_type(net)) {
case IVL_ST_CASE:
fprintf(vvp_out, " %%cmp/u;\n");
fprintf(vvp_out, " %%cmp/e;\n");
fprintf(vvp_out, " %%jmp/1 T_%u.%u, 6;\n",
thread_count, local_base+idx);
break;