Skip to content

Commit

Permalink
Merge pull request #4770 from YosysHQ/emil/autoidx-option
Browse files Browse the repository at this point in the history
driver: add --autoidx
  • Loading branch information
widlarizer authored Dec 4, 2024
2 parents 59a9647 + 65146e3 commit d780864
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kernel/driver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,8 @@ int main(int argc, char **argv)
options.add_options("developer")
("X,trace", "enable tracing of core data structure changes. for debugging")
("M,randomize-pointers", "will slightly randomize allocated pointer addresses. for debugging")
("autoidx", "start counting autoidx up from <seed>, similar effect to --hash-seed",
cxxopts::value<uint64_t>(), "<idx>")
("A,abort", "will call abort() at the end of the script. for debugging")
("x,experimental", "do not print warnings for the experimental <feature>",
cxxopts::value<std::vector<std::string>>(), "<feature>")
Expand Down Expand Up @@ -427,6 +429,10 @@ int main(int argc, char **argv)
if (result.count("infile")) {
frontend_files = result["infile"].as<std::vector<std::string>>();
}
if (result.count("autoidx")) {
int idx = result["autoidx"].as<uint64_t>();
autoidx = idx;
}

if (log_errfile == NULL) {
log_files.push_back(stdout);
Expand Down

0 comments on commit d780864

Please sign in to comment.