Docs: changes from JF

`yosys-witness` prereq `click`.
Yosys environment vars & `yosys --help` output.
Removing Ubuntu/macOS version numbers/names.
Hide `troubleshooting` page.
This commit is contained in:
Krystine Sherwin 2024-01-23 17:35:06 +13:00
parent e63f1f5367
commit 95849edbba
No known key found for this signature in database
7 changed files with 54 additions and 8 deletions

View File

@ -982,7 +982,7 @@ docs/guidelines:
# many of these will return an error which can be safely ignored, so we prefix
# the command with a '-'
DOCS_USAGE_PROGS := yosys-config yosys-filterlib yosys-abc yosys-smtbmc yosys-witness
DOCS_USAGE_PROGS := yosys yosys-config yosys-filterlib yosys-abc yosys-smtbmc yosys-witness
docs/usage: $(addprefix docs/source/temp/,$(DOCS_USAGE_PROGS))
docs/source/temp/%: docs/guidelines
-$(Q) ./$(PROGRAM_PREFIX)$* --help > $@ 2>&1

View File

@ -57,3 +57,7 @@ independent of the solver.
.. literalinclude:: /temp/yosys-witness
:start-at: Usage
.. note:: ``yosys-witness`` requires `click`_ Python package for use.
.. _click: https://pypi.org/project/click/

View File

@ -0,0 +1,31 @@
Yosys environment variables
===========================
``HOME``
Yosys command history is stored in ``$HOME/.yosys_history``. Graphics (from
:cmd:ref:`show` and :cmd:ref:`viz` commands) will output to this directory by
default. This environment variable is also used in some cases for resolving
filenames with ``~``.
``PATH``
May be used in OpenBSD builds for finding the location of Yosys executable.
``TMPDIR``
Used for storing temporary files.
``ABC``
When compiling Yosys with out-of-tree ABC using ``ABCEXTERNAL``, this
variable can be used to override the external ABC executable.
``YOSYS_NOVERIFIC``
If Yosys was built with Verific, this environment variable can be used to
temporarily disable Verific support.
``YOSYS_COVER_DIR`` and ``YOSYS_COVER_FILE``
When using code coverage, these environment variables control the output file
name/location.
``YOSYS_ABORT_ON_LOG_ERROR``
Can be used for debugging Yosys internals. Setting it to 1 causes abort() to
be called when Yosys terminates with an error message.

View File

@ -3,9 +3,14 @@
================================================================================
Command line reference
================================================================================
.. literalinclude:: /temp/yosys
:start-at: Usage
.. toctree::
:caption: Command reference
:maxdepth: 1
:glob:
/appendix/env_vars
/cmd/*

View File

@ -6,15 +6,20 @@ Testing Yosys
Automatic testing
-----------------
The `Yosys Git repo`_ has automatic testing of builds and running of the
included test suite on the following platforms:
.. only:: html
- Ubuntu 20.04 (Focal Fossa) |test-linux|
- macOS 11 (Big Sur) |test-macos|
The `Yosys Git repo`_ has automatic testing of builds and running of the
included test suite on the following platforms:
- Ubuntu |test-linux|
- macOS |test-macos|
.. _Yosys Git repo: https://github.com/YosysHQ/yosys
.. |test-linux| image:: https://github.com/YosysHQ/yosys/actions/workflows/test-linux.yml/badge.svg?branch=master
.. |test-macos| image:: https://github.com/YosysHQ/yosys/actions/workflows/test-macos.yml/badge.svg?branch=master
For up to date information, including OS versions, refer to `the git actions
page`_.
.. _the git actions page: https://github.com/YosysHQ/yosys/actions

View File

@ -9,4 +9,5 @@ More scripting
load_design
selections
interactive_investigation
troubleshooting
.. troubleshooting

View File

@ -1,6 +1,6 @@
Troubleshooting
~~~~~~~~~~~~~~~
.. TODO:: more on troubleshooting
.. todo:: troubleshooting document(?)
See :doc:`/cmd/bugpoint`