Add YOSYS to the implicitly defined verilog macros in verific

Signed-off-by: Claire Xenia Wolf <claire@clairexen.net>
This commit is contained in:
Claire Xenia Wolf 2021-12-13 18:20:08 +01:00
parent 19a38222e7
commit 313340aed5
1 changed files with 2 additions and 1 deletions

View File

@ -2295,7 +2295,7 @@ struct VerificPass : public Pass {
log("\n"); log("\n");
log("Additional -D<macro>[=<value>] options may be added after the option indicating\n"); log("Additional -D<macro>[=<value>] options may be added after the option indicating\n");
log("the language version (and before file names) to set additional verilog defines.\n"); log("the language version (and before file names) to set additional verilog defines.\n");
log("The macros SYNTHESIS and VERIFIC are defined implicitly.\n"); log("The macros YOSYS, SYNTHESIS, and VERIFIC are defined implicitly.\n");
log("\n"); log("\n");
log("\n"); log("\n");
log(" verific -formal <verilog-file>..\n"); log(" verific -formal <verilog-file>..\n");
@ -2713,6 +2713,7 @@ struct VerificPass : public Pass {
else else
log_abort(); log_abort();
veri_file::DefineMacro("YOSYS");
veri_file::DefineMacro("VERIFIC"); veri_file::DefineMacro("VERIFIC");
veri_file::DefineMacro(args[argidx] == "-formal" ? "FORMAL" : "SYNTHESIS"); veri_file::DefineMacro(args[argidx] == "-formal" ? "FORMAL" : "SYNTHESIS");