3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2026-05-14 08:15:30 +00:00

Docs: Add default tasks and alt tag assignment

Demonstrate `--dumpcfg` sans task in the complex code example (and how the empty task impacts tag matching).
This commit is contained in:
Krystine Sherwin 2026-05-06 09:07:32 +12:00
parent ec27ee9627
commit 974c2339d9
No known key found for this signature in database
9 changed files with 132 additions and 4 deletions

View file

@ -13,6 +13,17 @@ $ sby --dumptags bad.sby task1
task1
task_1_or_2
task_1_or_3
$ sby --dumpdefaults bad.sby
task1
task2
task3
$ sby --dumpcfg bad.sby
[tasks]
task1 task_1_or_2 task_1_or_3
task2 task_1_or_2
task3 task_1_or_3
[options]
$ sby --dumpcfg bad.sby task1
[options]
mode bmc

View file

@ -28,6 +28,35 @@ deviceX
hostA
unbounded
unbounded_hAdX
$ sby --dumpdefaults complex.sby
unbounded_hAdX
unbounded_hAdY
unbounded_hBdX
unbounded_hBdY
liveness_hAdX
liveness_hAdY
liveness_hBdX
liveness_hBdY
$ sby --dumpcfg complex.sby
[tasks]
unbounded_hAdX unbounded hostA deviceX
unbounded_hAdY unbounded hostA deviceY
unbounded_hBdX unbounded hostB deviceX
unbounded_hBdY unbounded hostB deviceY
liveness_hAdX liveness hostA deviceX
liveness_hAdY liveness hostA deviceY
liveness_hBdX liveness hostB deviceX
liveness_hBdY liveness hostB deviceY
[options]
[engines]
abc pdr
aiger suprove
[script]
[files]
$ sby --dumpcfg complex.sby unbounded_hAdX
[options]
mode prove

View file

@ -11,8 +11,8 @@ unbounded: mode prove
liveness: mode live
[engines]
unbounded: abc pdr
liveness: aiger suprove
~liveness: abc pdr
~unbounded: aiger suprove
[script]
--pycode-begin--

View file

@ -0,0 +1,27 @@
./gen.sh -s default
$ sby --dumptasks default.sby
task1
task2
task3
$ sby --dumptags default.sby
task1
task2
task3
task_1_or_2
task_1_or_3
$ sby --dumptags default.sby task1
task1
task_1_or_2
task_1_or_3
$ sby --dumpdefaults default.sby
task2
task3
$ sby --dumpcfg default.sby
[tasks]
task1 task_1_or_3 task_1_or_2
task2 task_1_or_2
task3 task_1_or_3
task2 task3 : default
$ sby --dumpcfg default.sby task1

View file

@ -0,0 +1,6 @@
[tasks]
task1 task_1_or_3 task_1_or_2
task2 task_1_or_2
task3 task_1_or_3
task2 task3 : default

View file

@ -13,6 +13,18 @@ $ sby --dumptags example.sby task1
task1
task_1_or_2
task_1_or_3
$ sby --dumpdefaults example.sby
task1
task2
task3
$ sby --dumpcfg example.sby
[tasks]
task1 task_1_or_2 task_1_or_3
task2 task_1_or_2
task3 task_1_or_3
[options]
depth 100
$ sby --dumpcfg example.sby task1
[options]
mode bmc

View file

@ -33,4 +33,6 @@ set -x
$sby --dumptasks ${script}.sby
$sby --dumptags ${script}.sby
$sby --dumptags ${script}.sby $task
$sby --dumpdefaults ${script}.sby
$sby --dumpcfg ${script}.sby
$sby --dumpcfg ${script}.sby $task