Add a paragraph about pre-defined macros to read_verilog help message
authorClifford Wolf <clifford@clifford.at>
Fri, 21 Jul 2017 12:34:53 +0000 (14:34 +0200)
committerClifford Wolf <clifford@clifford.at>
Fri, 21 Jul 2017 12:34:53 +0000 (14:34 +0200)
frontends/verilog/verilog_frontend.cc

index fe84c8e80feca424e8ced2f37aede111ca5ef30e..19fc3c6afa6109b515f3db8cd533267fa1be59bd 100644 (file)
@@ -168,6 +168,10 @@ struct VerilogFrontend : public Frontend {
                log("recommended to use a simulator (for example Icarus Verilog) for checking\n");
                log("the syntax of the code, rather than to rely on read_verilog for that.\n");
                log("\n");
+               log("Depending on if read_verilog is run in -formal mode, either the macro\n");
+               log("SYNTHESIS or FORMAL is defined automatically. In addition, read_verilog\n");
+               log("always defines the macro YOSYS.\n");
+               log("\n");
                log("See the Yosys README file for a list of non-standard Verilog features\n");
                log("supported by the Yosys Verilog front-end.\n");
                log("\n");