Skip to content

Commit

Permalink
Merge pull request #272 from antmicro/verilog-via-uhdm-force-parse
Browse files Browse the repository at this point in the history
Force -parse flag for Surelog when reading Verilog directly
  • Loading branch information
tgorochowik authored Mar 16, 2022
2 parents fb94f80 + 47c71ac commit d849fd4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions uhdm-plugin/uhdmsurelogastfrontend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ struct UhdmSurelogAstFrontend : public UhdmCommonFrontend {
if (!success) {
log_error("Error parsing Surelog arguments!\n");
}
// Force -parse flag settings even if it wasn't specified
clp->setwritePpOutput(true);
clp->setParse(true);
clp->setCompile(true);
clp->setElaborate(true);

SURELOG::scompiler *compiler = nullptr;
const std::vector<vpiHandle> uhdm_design = executeCompilation(symbolTable, errors, clp, compiler);

Expand Down

0 comments on commit d849fd4

Please sign in to comment.