mirror of https://github.com/YosysHQ/yosys.git
Add YOSYS to the implicitly defined verilog macros in verific
Signed-off-by: Claire Xenia Wolf <claire@clairexen.net>
This commit is contained in:
parent
19a38222e7
commit
313340aed5
|
@ -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");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue