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 <lars@metafoo.de>
This commit is contained in:
Lars-Peter Clausen 2022-06-06 13:27:55 +02:00
parent 2f1987bded
commit d84f1b9843
1 changed files with 1 additions and 1 deletions

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;