Skip to content

Commit

Permalink
Force -parse flag for Surelog when reading Verilog directly
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Gorochowik <tgorochowik@antmicro.com>
  • Loading branch information
tgorochowik committed Mar 16, 2022
1 parent 5c7d58a commit 47c71ac
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 @@ -110,6 +110,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 47c71ac

Please sign in to comment.