aboutsummaryrefslogtreecommitdiffstats
path: root/src/ghdl.cc
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-03-01 09:29:24 +0100
committerTristan Gingold <tgingold@free.fr>2020-03-01 09:29:24 +0100
commit45db317899ebd61f50da2bf68ba381004805bb11 (patch)
treefc46d835ac5b66a5cc5e78435bc30dd0dc113b2d /src/ghdl.cc
parentc5d3c92648dccaddcbe6c93f65eef911a14ee548 (diff)
downloadghdl-yosys-plugin-45db317899ebd61f50da2bf68ba381004805bb11.tar.gz
ghdl-yosys-plugin-45db317899ebd61f50da2bf68ba381004805bb11.tar.bz2
ghdl-yosys-plugin-45db317899ebd61f50da2bf68ba381004805bb11.zip
ghdl.cc: rewrite help.
Diffstat (limited to 'src/ghdl.cc')
-rw-r--r--src/ghdl.cc25
1 files changed, 23 insertions, 2 deletions
diff --git a/src/ghdl.cc b/src/ghdl.cc
index 9553c5e..42a06ec 100644
--- a/src/ghdl.cc
+++ b/src/ghdl.cc
@@ -868,10 +868,31 @@ struct GhdlPass : public Pass {
log("\n");
#endif
log("\n");
- log(" ghdl [FILES... -e] UNIT\n");
+ log(" ghdl [options] unit [arch]\n");
log("\n");
- log("Elaborate the design and import to Yosys\n");
+ log("Elaborate the already analyzed unit design and import it\n");
log("\n");
+ log(" ghdl [options] files... -e [unit]\n");
+ log("\n");
+ log("Analyse files, elaborate unit and import it\n");
+ log("If unit is not specified, it is automatically found\n");
+ log("\n");
+ log("Full list of options are described in ghdl documentation.\n");
+ log("\n");
+ log(" --std=(93|08)\n");
+ log(" set the vhdl standard.\n");
+ log("\n");
+ log(" -C\n");
+ log(" allow UTF-8 in comments.\n");
+ log("\n");
+ log(" --ieee=synopsys\n");
+ log(" allow use of ieee.std_logic_arith.\n");
+ log("\n");
+ log(" -fpsl\n");
+ log(" parse PSL in comments.\n");
+ log("\n");
+ log(" --top-name=hash\n");
+ log(" use hash to encode the top entity name\n");
}
#ifdef YOSYS_ENABLE_GHDL
virtual void execute(std::vector<std::string> args, RTLIL::Design *design)