3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-04-22 21:05:30 +00:00
Commit graph

260 commits

Author SHA1 Message Date
Claire Xenia Wolf
003ccf7197 Add color handling via click.style and click.echo
Signed-off-by: Claire Xenia Wolf <claire@clairexen.net>
2022-10-31 20:29:32 +01:00
Jannis Harder
966bdae1f6 aigbmc: Convert aiw trace to yw trace and load that into smtbmc
This handles more edge cases concerning FF initialization, memories and
hierarchy.
2022-10-20 14:36:07 +02:00
Jannis Harder
83a1aa23c8
Merge pull request from jix/fix_engine_list
Fix engine_list's return value
2022-09-15 17:59:25 +02:00
Jannis Harder
a0e3dd3d9a Fix engine_list's return value
This fixes 
2022-09-15 15:47:27 +02:00
Jannis Harder
168d667b6d Add vcd option to make VCD writing optional 2022-09-05 15:42:24 +02:00
Jannis Harder
bd88454d7d
Merge pull request from jix/parallel_jobserver
Run tasks in parallel and integrate with the make jobserver
2022-08-19 14:21:53 +02:00
Jannis Harder
e91977e01e Use local jobslots as fallback on Windows.
As we have no make jobserver support on windows, fallback to using
process local slots to limit prallelism.
2022-08-18 14:40:02 +02:00
Jannis Harder
b0786aea43 Make jobserver integration
Only implements the POSIX jobserver and will break on windows.
Unbreaking it on windows will be done as a follow up.

Not used for autotune, that needs some more changes.
2022-08-18 14:40:00 +02:00
Jannis Harder
de939e279a Run tasks in parallel 2022-08-18 14:38:40 +02:00
Aki Van Ness
de40cc499f
sby: core: removed invalid None check in setup section 2022-08-18 05:52:38 -04:00
Aki Van Ness
41b4ce5a7e
sby: fixed issue where engine index would be out of range 2022-08-18 05:51:03 -04:00
Aki Van Ness
8f5508142d
sby: core: minor error message cleanups for consistency 2022-08-18 05:36:11 -04:00
Aki Van Ness
a6c220dd5d
docs: Cut out the in-progress docs in preperation for a merge 2022-08-18 05:36:11 -04:00
Aki Van Ness
841e0cb797
sby: core: Added unsupported messages to the new sections 2022-08-18 05:36:11 -04:00
Aki Van Ness
637095a8ec
sby: fixed the sby task execution to accept the new engine internal layout 2022-08-18 05:36:11 -04:00
Aki Van Ness
98fdcd7772
sby: core: fixed up the [setup] section 2022-08-18 05:36:11 -04:00
Aki Van Ness
6c959577f3
sby: core: cleaned up the [stage] section parsing 2022-08-18 05:36:11 -04:00
Aki Van Ness
ad4f506d2a
sby: core: fixed up the engines section parser 2022-08-18 05:36:10 -04:00
Aki Van Ness
2f841e5d55
sby: core: updated the parsing to match the changes in PR 2022-08-18 05:36:10 -04:00
Aki Van Ness
e4a7f624c1
sby: core: config: fixed the engines section parsing where it was not setting the engine mode when parsing the section 2022-08-18 05:36:10 -04:00
Aki Van Ness
204869bfed
sby: core: config: updated the error messages for the new setctions to make them more descriptive 2022-08-18 05:36:10 -04:00
Aki Van Ness
9293081308
modified the mode runners to accept the modified engine layout in preperation for the per-mode engine sections 2022-08-18 05:36:10 -04:00
Aki Van Ness
f1a645bb18
sby: core: config: Updated the [stage] section to use commas for the parents 2022-08-18 05:36:09 -04:00
Aki Van Ness
a0d366e58a
some cleanup, added some rough parser tests, and started altering the engines section 2022-08-18 05:36:09 -04:00
Aki Van Ness
0ab158eea1
sby: core: minor update to the stage parsing 2022-08-18 05:36:09 -04:00
Aki Van Ness
ed82c78acc
sby: core: Added preliminary support for [stage] sections 2022-08-18 05:36:08 -04:00
Aki Van Ness
4cccbf77fa
sby: core: Added preliminary support for the [setup] section 2022-08-18 05:36:08 -04:00
Jannis Harder
0aebf0b4d0 aig model: Call memory_map late to avoid performance issues
This requires running simplemap on the output as memory_map produces
coarse-grained cells even though we already have a fine-grained design.
2022-08-17 16:41:32 +02:00
Jannis Harder
3412ea859b New "none" engine to be used with the "make_model" option 2022-08-05 16:31:15 +02:00
Jannis Harder
231f0b80aa Add make_model option to generate models not required by the task
Useful to do custom things (like counter example minimization) but still
use sby's flow to prepare models.
2022-08-05 16:31:15 +02:00
Jannis Harder
22585b33dc Use 'rename -witness' instead of multiple 'rename -enumerate' 2022-08-05 16:31:15 +02:00
Jannis Harder
d3520037b9 Write native yosys witness traces 2022-08-05 16:31:15 +02:00
Jannis Harder
acaf6ef0c2 Use new memory_map -formal for aiger/_nomem 2022-08-05 16:31:15 +02:00
Jannis Harder
5265a52b65 Refactor flow to use a common prep model
The goal of this is to make sure that all backend flows are compatible
and we can map between them, so that e.g. the aiger model can be used to
minimize a counterexample trace produced by smtbmc. Reducing the parts
that differ per backend (including parts that receive different input
depending on the used backend) also makes testing more effective as the
common parts are easier to cover.
2022-08-05 16:31:15 +02:00
Jannis Harder
edb068bff4 Fix print_junit_results failure during some error conditions
There is a small window between setting self.precise_prop_status and
initializing self.design. I've only managed to produce an error within
that windows during development, but getting unrelated stacktraces from
print_junit_result failing distracts from debugging the issue at hand.
2022-08-05 16:31:15 +02:00
Aki Van Ness
46ca20f8ec sby: core: ensured to strip the line of any uneeded whitespace 2022-08-04 06:13:28 -04:00
Aki Van Ness
9368f3f987 sby: core: explicitly split the the entries for the [options] section params to be at most one, 2022-08-04 06:13:28 -04:00
Aki Van Ness
10234fef00 sby: core: changed how the split for the section header and arguments are done, with a prior strip to remove and extra whitespace 2022-08-04 06:13:28 -04:00
Aki Van Ness
8133aaa8f8 sby: core: changed how the sections and their arguments are handled and cleared up the strangly worded error messages related to that 2022-08-04 06:13:28 -04:00
Aki Van Ness
59dc27ed73 sby: core: config: cleaned up the error messages to make them less opaque 2022-08-01 10:16:05 -04:00
N. Engelhardt
3ff2c9affc avoid erroring out when coarse-grain logic loops can be resolved by mapping to fine grain operators 2022-07-25 16:22:32 +02:00
Jannis Harder
07d19b202b
Merge pull request from jix/sbyproc-truncated-output
Fix a race-condition SbyProc that could truncate output
2022-07-13 17:30:36 +02:00
Jannis Harder
5d3f784beb Fix a race-condition SbyProc that could truncate output
Present for a long time, but was not easy to hit. Some of my work in
progress changes made this much more likely and running the complete
test suite in parallel had a good chance of reproducing this for at
least one of the tests.
2022-07-13 16:01:49 +02:00
Jannis Harder
92e7eb2e32 abc pdr: Enable log output by default
This makes it consistent with the other abc solvers and shows whether
abc pdr is making progress.
2022-07-08 12:36:44 +02:00
Jannis Harder
de43a4c936
Merge pull request from jix/early-readconfig
Read config before creating a workdir
2022-07-06 12:05:13 +02:00
Jannis Harder
b3b315a473 Make SbyProc hide Windows differences in retcode handling
Without this, we don't properly detect missing solver binaries and do
not properly handle the return status of the pono solver.
2022-07-06 11:22:59 +02:00
Jannis Harder
566edad13c Read config before creating a workdir
When using a task name not defined in the config, this now produces an
error before creating an unnecessary workdir for that non-existing task.
2022-07-05 17:20:55 +02:00
Jannis Harder
ff802086b4 test uninited FFs with const clks and fix btor script for this 2022-07-04 14:03:56 +02:00
Jannis Harder
e3123283ea
Merge pull request from programmerjake/add-simcheck-option
switch to using hierarchy -smtcheck for smtlib2 solvers, allowing smtlib2_module modules
2022-07-03 11:47:22 +02:00
Jannis Harder
b4458d43d7 Automatic engine selection 2022-06-27 15:58:42 +02:00