Skip to content

Commit

Permalink
Get autoidx reset working
Browse files Browse the repository at this point in the history
  • Loading branch information
akashlevy committed Oct 28, 2024
1 parent d63c793 commit 5e60672
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions frontends/verific/verific.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3173,6 +3173,11 @@ struct VerificPass : public Pass {
log("VHDL default library path.\n");
log("\n");
log("\n");
log(" import -reset_autoidx\n");
log("\n");
log("Reset auto-index.\n");
log("\n");
log("\n");
#endif
log(" import -set-error <msg_id>..\n");
log(" import -set-warning <msg_id>..\n");
Expand Down Expand Up @@ -3683,6 +3688,11 @@ struct VerificPass : public Pass {
goto check_error;
}

if (GetSize(args) > argidx && args[argidx] == "-reset_autoidx") {
autoidx = 1;
goto check_error;
}

if (GetSize(args) > argidx && (args[argidx] == "-f" || args[argidx] == "-F" || args[argidx] == "-FF"))
{
unsigned verilog_mode = veri_file::SYSTEM_VERILOG;
Expand Down

0 comments on commit 5e60672

Please sign in to comment.