aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-03-02 08:02:23 +0100
committerTristan Gingold <tgingold@free.fr>2020-03-02 08:02:23 +0100
commit09a79426abe51f049d52a010b2e08b6e96f5dbad (patch)
tree93cc502df1582d64f761e0328d17ae62dee3ba39 /doc
parent3810f371f59de94848570eba9c3059d8cd3396dc (diff)
downloadghdl-09a79426abe51f049d52a010b2e08b6e96f5dbad.tar.gz
ghdl-09a79426abe51f049d52a010b2e08b6e96f5dbad.tar.bz2
ghdl-09a79426abe51f049d52a010b2e08b6e96f5dbad.zip
doc: document --synth command.
Diffstat (limited to 'doc')
-rw-r--r--doc/using/InvokingGHDL.rst29
1 files changed, 29 insertions, 0 deletions
diff --git a/doc/using/InvokingGHDL.rst b/doc/using/InvokingGHDL.rst
index bea132d60..a2099152c 100644
--- a/doc/using/InvokingGHDL.rst
+++ b/doc/using/InvokingGHDL.rst
@@ -227,6 +227,35 @@ Theses rules can then be integrated in another Makefile.
.. _GHDL:options:
+Synthesis command
+=================
+
+GHDL supports synthesis, but only as a front-end: it generates a
+generic netlist that is not optimized.
+
+.. index:: synthesis command
+
+.. _Synth:command:
+
+Synthesis [``--synth``]
+-----------------------
+
+.. option:: --synth <[options] [unit]>
+
+.. option:: --synth <[options] files -e [unit]>
+
+The first command elaborates for synthesis the design whose top unit
+is indicated by ``unit``. All the units must have been analyzed. The
+second form analyze only the files present on the command line and
+then elaborate them starting from the top ``unit``. A generic netlist
+is then displayed using a very simple vhdl subset.
+
+The command line is the same as the ``ghdl`` command added to
+Yosys by the ghdl plugin except ``--synth`` is not present. With this
+plugin, it is possible to optimize and map to a target the netlist.
+
+This command is useful for checking that a design could be synthesized.
+
Options
=======