3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-04-27 15:35:51 +00:00

Docs: Use sby lexer

This commit is contained in:
Krystine Sherwin 2024-06-10 18:41:15 +12:00
parent 5426bee107
commit a3844d4a30
No known key found for this signature in database
4 changed files with 22 additions and 16 deletions

View file

@ -13,7 +13,7 @@ Tasks section
The optional ``[tasks]`` section can be used to configure multiple verification tasks in
a single ``.sby`` file. Each line in the ``[tasks]`` section configures one task. For example:
.. code-block:: text
.. code-block:: sby
[tasks]
task1 task_1_or_2 task_1_or_3
@ -35,7 +35,7 @@ If no task is specified then all tasks in the ``[tasks]`` section are run.
After the ``[tasks]`` section individual lines can be specified for specific
tasks or task groups:
.. code-block:: text
.. code-block:: sby
[options]
task_1_or_2: mode bmc
@ -45,7 +45,7 @@ tasks or task groups:
If the tag ``<taskname>:`` is used on a line by itself then the conditional string
extends until the next conditional block or ``--`` on a line by itself.
.. code-block:: text
.. code-block:: sby
[options]
task_1_or_2:
@ -59,7 +59,7 @@ extends until the next conditional block or ``--`` on a line by itself.
The tag ``~<taskname>:`` can be used for a line or block that should not be used when
the given task is active:
.. code-block:: text
.. code-block:: sby
[options]
~task3:
@ -73,7 +73,7 @@ the given task is active:
The following example demonstrates how to configure safety and liveness checks for all
combinations of some host implementations A and B and device implementations X and Y:
.. code-block:: text
.. code-block:: sby
[tasks]
prove_hAdX prove hostA deviceX
@ -208,7 +208,7 @@ usually followed by a solver name and solver options.
Example:
.. code-block:: text
.. code-block:: sby
[engines]
smtbmc --syn --nopresat z3 rewriter.cache_all=true opt.enable_sat=true
@ -378,7 +378,7 @@ The ``[script]`` section contains the Yosys script that reads and elaborates
the design under test. For example, for a simple project contained in a single
design file ``mytest.sv`` with the top-module ``mytest``:
.. code-block:: text
.. code-block:: sby
[script]
read -sv mytest.sv
@ -387,7 +387,7 @@ design file ``mytest.sv`` with the top-module ``mytest``:
Or explicitly using the Verific SystemVerilog parser (default for ``read -sv``
when Yosys is built with Verific support):
.. code-block:: text
.. code-block:: sby
[script]
verific -sv mytest.sv
@ -397,7 +397,7 @@ when Yosys is built with Verific support):
Or explicitly using the native Yosys Verilog parser (default for ``read -sv``
when Yosys is not built with Verific support):
.. code-block:: text
.. code-block:: sby
[script]
read_verilog -sv mytest.sv
@ -422,7 +422,7 @@ Yosys script for files not listed in the files section.)
For example:
.. code-block:: text
.. code-block:: sby
[files]
top.sv
@ -436,7 +436,7 @@ If the name of the file in ``<outdir>/src/`` should be different from the
basename of the specified file, then the new file name can be specified before
the source file name. For example:
.. code-block:: text
.. code-block:: sby
[files]
top.sv
@ -450,7 +450,7 @@ File sections can be used to create additional files in ``<outdir>/src/`` from
the literal content of the ``[file <filename>]`` section ("here document"). For
example:
.. code-block:: text
.. code-block:: sby
[file params.vh]
`define RESET_LEN 42
@ -465,7 +465,7 @@ file lines from the python code. The variable ``task`` contains the current task
if any, and ``None`` otherwise. The variable ``tags`` contains a set of all tags
associated with the current task.
.. code-block:: text
.. code-block:: sby
[tasks]
--pycode-begin--