Skip to content

Commit

Permalink
Merge pull request #4173 from YosysHQ/verific_complex
Browse files Browse the repository at this point in the history
verific: add option to skip simplifying complex ports
  • Loading branch information
nakengelhardt authored Feb 1, 2024
2 parents bbb8ad5 + db1de5f commit 9f27923
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions frontends/verific/verific.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2815,6 +2815,9 @@ struct VerificPass : public Pass {
log(" -extnets\n");
log(" Resolve references to external nets by adding module ports as needed.\n");
log("\n");
log(" -no-split-complex-ports\n");
log(" Complex ports (structs or arrays) are not split and remain packed as a single port.\n");
log("\n");
log(" -autocover\n");
log(" Generate automatic cover statements for all asserts\n");
log("\n");
Expand Down Expand Up @@ -3548,6 +3551,7 @@ struct VerificPass : public Pass {
bool mode_nosva = false, mode_names = false, mode_verific = false;
bool mode_autocover = false, mode_fullinit = false;
bool flatten = false, extnets = false, mode_cells = false;
bool split_complex_ports = true;
string dumpfile;
string ppfile;
Map parameters(STRING_HASH);
Expand All @@ -3565,6 +3569,10 @@ struct VerificPass : public Pass {
flatten = true;
continue;
}
if (args[argidx] == "-no-split-complex-ports") {
split_complex_ports = false;
continue;
}
if (args[argidx] == "-extnets") {
extnets = true;
continue;
Expand Down Expand Up @@ -3804,8 +3812,10 @@ struct VerificPass : public Pass {
worker.run(nl.second);
}

for (auto nl : nl_todo)
nl.second->ChangePortBusStructures(1 /* hierarchical */);
if (split_complex_ports) {
for (auto nl : nl_todo)
nl.second->ChangePortBusStructures(1 /* hierarchical */);
}

if (!dumpfile.empty()) {
VeriWrite veri_writer;
Expand Down

0 comments on commit 9f27923

Please sign in to comment.