|
| 1 | +Configuration |
| 2 | +============= |
| 3 | + |
| 4 | +This is the list of possible configurations that go in ``conf.py``. |
| 5 | + |
| 6 | +Yosys |
| 7 | ++++++ |
| 8 | + |
| 9 | +``hdl_diagram_yosys`` tells the program what version or binary of Yosys to use. |
| 10 | +By default it is set to ``YoWASP``. Setting it to ``system``, the program will |
| 11 | +use Yosys available in the current PATH. It can also contain the path to a specific |
| 12 | +Yosys binary.:: |
| 13 | + |
| 14 | + hdl_diagram_yosys = "yowasp" # default |
| 15 | + |
| 16 | + hdl_diagram_yosys = "system" # use yosys from PATH |
| 17 | + |
| 18 | + hdl_diagram_yosys = "<path-to-Yosys>" # use specific yosys binary |
| 19 | + |
| 20 | + |
| 21 | +netlistsvg |
| 22 | +++++++++++ |
| 23 | + |
| 24 | +netlistsvg can take various skin files for use when creating diagrams. It is |
| 25 | +set to ``default`` by default, using the built-in netlistsvg skin.:: |
| 26 | + |
| 27 | + hdl_diagram_skin = "<path-to-skin>" |
| 28 | + |
| 29 | + |
| 30 | +Output format |
| 31 | ++++++++++++++ |
| 32 | + |
| 33 | +The output format for the generated diagrams can either be set to ``svg`` or ``png``.:: |
| 34 | + |
| 35 | + hdl_diagram_output_format = "svg" |
| 36 | + |
| 37 | + hdl_diagram_output_format = "png" |
| 38 | + |
| 39 | + |
| 40 | +GHDL |
| 41 | +++++ |
| 42 | + |
| 43 | +GHDL can either be prebuilt into Yosys or loaded at runtime. If it is loaded at |
| 44 | +runtime, then this can either be set to ``module`` if GHDL is in the PATH, or |
| 45 | +a path to the ``ghdl.so`` shared library. :: |
| 46 | + |
| 47 | + hdl_diagram_ghdl = "module" # default, passes `-m ghdl` to Yosys |
| 48 | + |
| 49 | + hdl_diagram_ghdl = "prebuilt" # if GHDL is built into Yosys |
| 50 | + |
| 51 | + hdl_diagram_ghdl = "<path-to-GHDL-shared-library>" # path to specific ghdl.so |
| 52 | + |
| 53 | + |
| 54 | +Common Errors |
| 55 | ++++++++++++++ |
| 56 | + |
| 57 | +.. code-block:: |
| 58 | +
|
| 59 | + ERROR: |
| 60 | + This version of Yosys cannot load plugins at runtime. |
| 61 | + Some plugins may have been included at build time. |
| 62 | + Use option `-H' to see the available built-in and plugin commands. |
| 63 | +
|
| 64 | +This error signifies that the current version of Yosys cannot load plugins |
| 65 | +at runtime, and so all plugins must be prebuit. For VHDL, ``hdl_diagram_ghdl`` |
| 66 | +must be set to ``prebuilt``. |
| 67 | + |
| 68 | +.. code-block:: |
| 69 | +
|
| 70 | + ERROR: Can't guess frontend for input file `' (missing -f option)! |
| 71 | +
|
| 72 | +This error signifies that the version of Yosys being used cannot figure out |
| 73 | +how to interpret the input file. For VHDL, this signifies that either GHDL |
| 74 | +isn't being loaded properly, or that the current version of Yosys isn't compatible |
| 75 | +with GHDL. |
0 commit comments