-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Michael Riegert <[email protected]>
- Loading branch information
1 parent
cdf3402
commit 1095a38
Showing
3 changed files
with
84 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
Configuration | ||
============= | ||
|
||
This is the list of possible configurations that go in ``conf.py``. | ||
|
||
Yosys | ||
+++++ | ||
|
||
``hdl_diagram_yosys`` tells the program what version or binary of Yosys to use. | ||
By default it is set to ``YoWASP``. Setting it to ``system``, the program will | ||
use Yosys available in the current PATH. It can also contain the path to a specific | ||
Yosys binary.:: | ||
|
||
hdl_diagram_yosys = "yowasp" # default | ||
|
||
hdl_diagram_yosys = "system" # use yosys from PATH | ||
|
||
hdl_diagram_yosys = "<path-to-Yosys>" # use specific yosys binary | ||
|
||
|
||
netlistsvg | ||
++++++++++ | ||
|
||
netlistsvg can take various skin files for use when creating diagrams. It is | ||
set to ``default`` by default, using the built-in netlistsvg skin.:: | ||
|
||
hdl_diagram_skin = "<path-to-skin>" | ||
|
||
|
||
Output format | ||
+++++++++++++ | ||
|
||
The output format for the generated diagrams can either be set to ``svg`` or ``png``.:: | ||
|
||
hdl_diagram_output_format = "svg" | ||
|
||
hdl_diagram_output_format = "png" | ||
|
||
|
||
GHDL | ||
++++ | ||
|
||
GHDL can either be prebuilt into Yosys or loaded at runtime. If it is loaded at | ||
runtime, then this can either be set to ``module`` if GHDL is in the PATH, or | ||
a path to the ``ghdl.so`` shared library. :: | ||
|
||
hdl_diagram_ghdl = "module" # default, passes `-m ghdl` to Yosys | ||
|
||
hdl_diagram_ghdl = "prebuilt" # if GHDL is built into Yosys | ||
|
||
hdl_diagram_ghdl = "<path-to-GHDL-shared-library>" # path to specific ghdl.so | ||
|
||
|
||
Common Errors | ||
+++++++++++++ | ||
|
||
.. code-block:: | ||
ERROR: | ||
This version of Yosys cannot load plugins at runtime. | ||
Some plugins may have been included at build time. | ||
Use option `-H' to see the available built-in and plugin commands. | ||
This error signifies that the current version of Yosys cannot load plugins | ||
at runtime, and so all plugins must be prebuit. For VHDL, ``hdl_diagram_ghdl`` | ||
must be set to ``prebuilt``. | ||
|
||
.. code-block:: | ||
ERROR: Can't guess frontend for input file `' (missing -f option)! | ||
This error signifies that the version of Yosys being used cannot figure out | ||
how to interpret the input file. For VHDL, this signifies that either GHDL | ||
isn't being loaded properly, or that the current version of Yosys isn't compatible | ||
with GHDL. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters