mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-08-28 16:53:45 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user