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

305 commits

Author SHA1 Message Date
piegames 99aca04638 Print paths as absolute
This generally makes debugging path issues easier.
2021-06-21 22:31:53 +02:00
Miodrag Milanovic ecf7b8f1b0 Windows specific fixes 2021-03-22 16:48:33 +01:00
Miodrag Milanovic 605db98382 Fix syntax errors 2021-01-26 09:09:43 +01:00
whitequark 287e33a47f Add a PROGRAM_PREFIX= Makefile option for packages with prefixed Yosys. 2020-08-22 14:45:47 +00:00
Marcelina Kościelnicka b172357161 Run dffunmap before writing the design with aiger/btor/smt2 backends. 2020-07-31 16:37:25 +02:00
N. Engelhardt 8c5b65cf97 add tests directory with additional tests 2020-07-24 13:51:39 +02:00
N. Engelhardt 7bae1b8bba fix error message formatting 2020-07-21 14:48:38 +02:00
Claire Wolf 494f84b0ab Include verilog source files for demo1.sby
Signed-off-by: Claire Wolf <claire@symbioticeda.com>
2020-07-21 13:01:36 +02:00
Claire Wolf 0d98201dc7 Add "Unexpected response" handling to smtbmc engine
Signed-off-by: Claire Wolf <claire@symbioticeda.com>
2020-07-20 19:42:10 +02:00
whitequark db0e5f3637
Inject executable dependencies from the environment 2020-07-05 10:20:35 +00:00
Miodrag Milanovic a62fded391 cosa2 -> pono rename 2020-07-03 11:25:55 +02:00
clairexen 72e84cb320
Merge pull request #97 from nakengelhardt/seed_arg
add --seed option to smtbmc and btor engines
2020-07-01 19:20:06 +02:00
clairexen 18ce85eb02
Merge pull request #94 from nakengelhardt/fix_93
ignore race condition in killing already-terminated process
2020-07-01 19:19:08 +02:00
N. Engelhardt ee5cfdef76 add --seed option to smtbmc and btor engines 2020-07-01 18:05:20 +02:00
Claire Wolf 655d9c6bcd Be more conservative in btor ys script
Signed-off-by: Claire Wolf <claire@symbioticeda.com>
2020-06-23 14:32:59 +02:00
N. Engelhardt 25502e16ef ignore race condition in killing already-terminated process 2020-06-16 12:41:26 +02:00
Claire Wolf c7668de077 Add support for cosa2 BTOR solver
Signed-off-by: Claire Wolf <claire@symbioticeda.com>
2020-05-18 16:59:36 +02:00
N. Engelhardt 9fdece3dab btor engine: handle models with 0 properties 2020-05-18 13:11:25 +02:00
N. Engelhardt 87eb47502d
Merge pull request #87 from nakengelhardt/cover_trace_summary
Trace generation improvements
2020-05-13 18:45:39 +02:00
N. Engelhardt 6a95ef33c8 fix trace summary printing 2020-05-13 18:15:33 +02:00
N. Engelhardt 842e9a121a call job.terminate at end of btor engine run to kill other engines in case of whoever-gets-there-first runs 2020-05-13 12:42:30 +02:00
N. Engelhardt b3d766bf89 start btorsim as soon as a witness is ready, print summary when multiple traces are produced 2020-05-12 16:48:58 +02:00
Claire Wolf ca9c188e3c Add silent mode to SbyTask
Signed-off-by: Claire Wolf <claire@symbioticeda.com>
2020-05-08 18:49:08 +02:00
N. Engelhardt cb01f8469c fix return code check in btor engine 2020-04-29 16:09:18 +02:00
N. Engelhardt 5d6323147d
Merge pull request #85 from nakengelhardt/new_btorsim
Note that the btor engine now requires changes not upstreamed to btor2tools yet, see btor2tools/pull/4
2020-04-29 11:47:20 +02:00
Claire Wolf 69ef444464 Add task pattern matching, closes #76
Signed-off-by: Claire Wolf <claire@symbioticeda.com>
2020-04-14 19:55:14 +02:00
Claire Wolf c91efe15a3 Add a status message when one or more tasks returned a non-zero return code, closes #78
Signed-off-by: Claire Wolf <claire@symbioticeda.com>
2020-04-14 19:54:24 +02:00
N. Engelhardt 8cd9191612 merge master 2020-04-08 17:23:52 +02:00
N. Engelhardt 1b8f3df8bd use info file for btorsim 2020-04-08 15:25:00 +02:00
Claire Wolf 1c92dff6ed
Merge pull request #74 from mattvenn/master
add --init-config option
2020-04-02 18:27:50 +02:00
N. Engelhardt e9af1a65f1 and another 2020-04-02 17:36:54 +02:00
N. Engelhardt 0c0215de91 fix formatting error 2020-04-02 17:21:48 +02:00
N. Engelhardt 9aff36a3fe fix callback functions 2020-03-30 21:24:06 +02:00
N. Engelhardt 180e07f9c4 add btor cover mode; use btorsim for vcd generation
Signed-off-by: N. Engelhardt <nak@symbioticeda.com>
2020-03-30 21:24:06 +02:00
N. Engelhardt 6a918fe102 remove stray braces 2020-03-30 21:23:11 +02:00
matt venn 5eee219127 use argument for name of .sby and .sv files 2020-03-26 18:24:56 +01:00
matt venn f22b6921c5 add --init-config option 2020-03-25 18:00:48 +01:00
N. Engelhardt 30d7c32ec6 Use .format() instead of %
Signed-off-by: N. Engelhardt <nak@symbioticeda.com>
2020-03-25 13:09:37 +01:00
Claire Wolf 0a7013017f Improve BTOR and AIG yosys scripts
Signed-off-by: Claire Wolf <clifford@clifford.at>
2020-02-11 17:33:46 +01:00
Diego H ff3296845c Fix typo in log message 2020-01-30 13:55:34 -06:00
Claire Wolf a5fce77344 Add special handling for command not found errors
Signed-off-by: Claire Wolf <clifford@clifford.at>
2020-01-27 17:59:33 +01:00
Miodrag Milanovic 3fd0c73e65 Added sleep for non-posix, allow supported signals 2020-01-15 08:09:11 +01:00
Miodrag Milanovic 196c3c779a Fix sby execution on Windows 2019-11-17 16:58:35 +01:00
Clifford Wolf 23f89011b6 Use lowercase for non-final smtbmc status, treat PREUNSAT as ERROR
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2019-10-03 15:00:11 +02:00
Serge Bazanski 511268cd18 sby_core: fix hardcoded /bin/bash path
Not all systems (eg. BSDs, NixOS) have a /bin/bash. The de-facto standard for maximum compatibility
these days is using /usr/bin/env bash.
2019-07-24 13:31:37 +02:00
Clifford Wolf 4b6bb4e418 Cleanup some command line option oddities
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2019-06-27 14:06:47 +02:00
Clifford Wolf cc37c497d5 Merge branch 'feature_file_paths' of https://github.com/gs-jgj/SymbiYosys into staging 2019-06-27 13:55:25 +02:00
Hans Anderson 597beb6380 Fix default argument for tasknames 2019-06-24 18:35:52 -06:00
Hans Anderson 9ad0ea3e78 Switch from getopt to argparse 2019-06-21 19:12:26 -06:00
Jeppe Johansen 021c3bb4c0 Add dumpfiles command line argument.
Signed-off-by: Jeppe Johansen <jgj@gomspace.com>
2019-05-08 17:16:34 +02:00
Jeppe Johansen 57276995b6 Add support for expanding environment variables.
Signed-off-by: Jeppe Johansen <jgj@gomspace.com>
2019-05-08 16:56:33 +02:00
Clifford Wolf f087a71f49 Check if config contains any engines, fixes #38
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2019-05-01 18:47:41 +02:00
Clifford Wolf faa5b1f908 Fix re-run in same directory feature
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2019-04-30 20:03:24 +02:00
Clifford Wolf f918e2369a Add extra "setundef -anyseq" to aiger script
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2019-03-22 13:40:50 +01:00
Clifford Wolf 32d7325446 Backward compatibility with Python 3.4 API
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2019-03-21 20:09:44 +01:00
Clifford Wolf a2b85faa08 Significantly improve management of child processes
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2019-03-21 15:06:49 +01:00
Clifford Wolf 334b952e5a Improve logfile/output flushing
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2019-03-20 19:09:00 +01:00
Clifford Wolf 93a5dd0641 Do not overwrite config.sby in reusedir mode
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2019-03-20 19:09:00 +01:00
Clifford Wolf ef26dff799
Merge pull request #33 from cr1901/no-resource
Meaningful Windows Support
2019-03-19 14:20:28 +01:00
William D. Jones f8e27a06aa Annotate cmdline comment, summary string, and output XML with
OS-specific information.
2019-03-18 00:46:06 -04:00
William D. Jones b5eb5b3c78 Choose command separator for tasks based on OS.
Signed-off-by: William D. Jones <thor0505@comcast.net>
2019-03-17 23:01:24 -04:00
Clifford Wolf 410db87ebc Rename ".stamp" file to "status"
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2019-03-15 16:29:23 +01:00
William D. Jones 71e5dbabd6 Merge branch 'master' into no-resource 2019-03-12 16:59:17 -04:00
William D. Jones 43c7db77d4 Gate Unix-specific functionality from resources and fcntl.
Signed-off-by: William D. Jones <thor0505@comcast.net>
2019-03-10 00:43:55 -05:00
Clifford Wolf 577b5bcbc7 Improve rerun-in-existing-dir functionality
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2019-03-09 12:52:51 -08:00
Clifford Wolf bd4094f216 Add support for (re-)running in existing workdir
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2019-03-09 12:42:54 -08:00
Clifford Wolf d5fa89ee0c Improve sby file pycode/tasks handling
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2019-03-08 10:58:28 -08:00
Clifford Wolf 4a392bb639 Add --dumpcfg and --dumptasks
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2019-03-02 19:09:33 -08:00
Clifford Wolf 0772456a15 Further improve BTOR cex handling
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-12-10 03:44:08 +01:00
Clifford Wolf 6878ba0a82 Improve BTOR cex handling
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-12-10 02:42:03 +01:00
Clifford Wolf 3d66e7cec5 Fixes and improvements in BTOR engine
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-12-08 07:16:19 +01:00
Clifford Wolf 150f30ae08 Working BTOR BMC engine
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-12-08 07:01:21 +01:00
Clifford Wolf 4c485766e2 Add btor engine
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-12-08 05:23:04 +01:00
Clifford Wolf 4eb91d5b88 Add "smtbmc ... -- ..." feature (for "raw" smtbmc options)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-11-22 17:08:28 +01:00
Clifford Wolf b50f4f3d10 Generate AIGERs with -I -B
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-11-12 09:36:12 +01:00
Clifford Wolf e90bcb588e Improve bogus task tags detection
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-09-12 13:26:08 +02:00
Clifford Wolf e111f7c935 Detect bogus task tags
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-09-12 13:23:34 +02:00
Clifford Wolf bf47da495b Add "skip" options (smtbmc only)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-09-12 13:23:34 +02:00
Clifford Wolf f2697c23c0 Fixed "counterexample trace:" log message for things like warmup failed
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-08-21 14:00:30 +02:00
Clifford Wolf 07d124084c Use async2sync for "multiclock off" mode
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-07-19 15:31:49 +02:00
Clifford Wolf d24d7e1aef Use "hierarchy -simcheck" in default script
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-05-12 14:03:37 +02:00
Clifford Wolf 35d956c7bb Fix fix for chained tasks
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-05-01 15:58:55 +02:00
Clifford Wolf 162bdc9a3b Fix bug in handling of chained tasks
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-05-01 14:58:18 +02:00
Clifford Wolf 21d9e5d66f Add comment support in [tasks] section
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-04-19 17:28:18 +02:00
Clifford Wolf 836d54d4c7 Add check for malformed dst filename in [files] section
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-04-13 18:03:35 +02:00
Clifford Wolf fc7ace7884 Add JUnit XML output file and .stamp files
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-03-28 13:31:50 +02:00
Clifford Wolf 36c7185393 More improvements in sby error handling
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-03-27 16:23:57 +02:00
Clifford Wolf 9edc65874c Drastically improve sby error handling 2018-03-27 16:11:43 +02:00
Clifford Wolf 76a624a363 Improve handling of nomem models
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-03-15 19:11:42 +01:00
Clifford Wolf c003a1b078 Add localtime also to early log messages
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-03-11 01:26:40 +01:00
Clifford Wolf 93752c6fce Add localtime to log file
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-03-11 01:06:09 +01:00
Clifford Wolf ec38b0b841 Add "smtbmc --basecase/--induction"
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-03-07 22:23:50 +01:00
Clifford Wolf 47729cd61c Add smtbmc --progress option
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-03-07 22:16:24 +01:00
Clifford Wolf cfff7095e4 Merge branch 'master' of github.com:cliffordwolf/SymbiYosys 2018-03-06 23:42:09 +01:00
Clifford Wolf 2efa7c2b90 Use memory_nordff in postprocess script
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-03-06 23:40:08 +01:00
Clifford Wolf f6ab848797 Improvements in [tasks] handling
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-03-06 18:05:51 +01:00
Clifford Wolf d736fb14f9 Slightly change tasks syntax
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-03-06 00:01:55 +01:00
Clifford Wolf 92b247260a Add tasks in .sby files
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-03-05 13:09:20 +01:00
Clifford Wolf a94f21abab Add multiclock option
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-03-04 14:09:16 +01:00
Clifford Wolf e966f3dca4 Add smtbmc --stdt option
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-03-04 14:08:55 +01:00
Clifford Wolf 4eed5ec8bb Fix --dump-smt2 trace name in cover mode
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-03-03 19:59:06 +01:00
David Shah c6d25f0045 Ignore whitespace at top of file
Signed-off-by: David Shah <davey1576@gmail.com>
2018-01-22 13:00:32 +00:00
Clifford Wolf 221c8d24d7 Improve handling of comments in .sby files 2018-01-19 14:26:42 +01:00
Clifford Wolf 25936009bb Disable unrolling per default for z3 2017-12-14 02:12:08 +01:00
Clifford Wolf 82f394260a Make --presat and --unroll the default for smtbmc 2017-12-05 17:16:38 +01:00
Clifford Wolf 20b8b8fe9f Add "sby -t", improve handling of stdin 2017-11-24 20:12:58 +01:00
Andrew Wygle b7c33a72e9 Minimum-modification change for stdin support 2017-11-24 09:57:23 -08:00
Clifford Wolf 78efd64985 Add "smtbmc --dumpsmt2" 2017-10-23 02:17:39 +02:00
Clifford Wolf b690221f99 Add "smtbmc --unroll" 2017-10-22 10:07:26 +02:00
Clifford Wolf 68d90a5510 Add "smtbmc --presat" 2017-07-07 02:47:53 +02:00
Clifford Wolf 6ef12a4b31 Add tbtop config option 2017-07-01 18:33:36 +02:00
Clifford Wolf 3fb72628de Add "setundef -anyseq" to default yosys script 2017-05-28 12:32:30 +02:00
Clifford Wolf ff054ab88b Add support for "aigsmt none" option 2017-05-28 12:32:03 +02:00
Clifford Wolf a2c1dd3f91 Yices 2 is the new default solver for yosys-smtbmc 2017-05-27 12:04:43 +02:00
Clifford Wolf 8817f61de3 Add support for --pycode-begin/end-- sections 2017-05-08 15:07:10 +02:00
Clifford Wolf 2b8533cf17 Fix CEX handle in liveness checking mode 2017-03-02 13:37:58 +01:00
Clifford Wolf 774849a6ed Add "mode live" support 2017-03-01 11:12:23 +01:00
Clifford Wolf 6e03f1d895 Add support for AIGER solvers that do not return a CEX 2017-02-27 22:29:00 +01:00
Clifford Wolf 81144819e5 Add smtc option 2017-02-27 22:28:31 +01:00
Clifford Wolf ad304ddda7 Add rc to DONE msg 2017-02-27 22:27:52 +01:00
Clifford Wolf be8c995e15 Improve option handling 2017-02-26 14:32:33 +01:00
Clifford Wolf 5657976ad3 Fix typo in aiger engine 2017-02-26 13:07:58 +01:00
Clifford Wolf 9a718367ff Improve super_prove integration 2017-02-26 13:03:59 +01:00
Clifford Wolf 7be08218cb Add "append" option 2017-02-26 11:08:14 +01:00
Clifford Wolf 94260e01b8 Add aigbmc support 2017-02-25 23:50:33 +01:00
Clifford Wolf eb83a1b90e Add aigsmt option 2017-02-25 15:06:47 +01:00
Clifford Wolf 1c8e006e46 Add smtbmc stbv support 2017-02-24 18:26:20 +01:00
Clifford Wolf b5be4a5759 Add aiger engine 2017-02-19 23:53:01 +01:00
Clifford Wolf afeab48894 Use smtbmc args for solver options 2017-02-19 22:52:27 +01:00
Clifford Wolf 221018b19d Fix readline() handling for partial lines 2017-02-13 16:59:34 +01:00
Clifford Wolf 7be55edc7d Fix "smtbmc --syn" and "smtbmc --nomem" 2017-02-09 14:32:16 +01:00
Clifford Wolf 7085657687 Add options to set tool paths 2017-02-09 14:09:14 +01:00
Clifford Wolf e69d39434a Add support for "[file <filename>]" .sby sections 2017-02-08 21:33:47 +01:00
Clifford Wolf 29968fcc58 Add docs for "wait" option, more config checking 2017-02-06 21:50:57 +01:00
Clifford Wolf bdb8321069 Fix bug in job.terminate() 2017-02-06 21:41:26 +01:00
Clifford Wolf 01a03d0e07 Add support for "wait" option 2017-02-06 21:35:37 +01:00
Clifford Wolf 88d0e4f13a Add "timeout" option 2017-02-06 17:48:46 +01:00
Clifford Wolf c2c273c7c8 Add "expect" config option 2017-02-06 16:30:29 +01:00
Clifford Wolf ad4c0f2198 Add "cover" mode 2017-02-05 15:44:01 +01:00
Clifford Wolf b8fefaa25b Improve "abc sim3" handling 2017-02-03 12:17:22 +01:00
Clifford Wolf 1f6037c158 Add support for "abc sim3" engine 2017-02-02 16:59:09 +01:00
Clifford Wolf 1410ac4d49 Add some docs for "prove" mode 2017-01-30 13:23:07 +01:00
Clifford Wolf ffeee1a11f Add smtbmc prove support 2017-01-30 12:59:20 +01:00
Clifford Wolf 5125128bbd Added prove mode support via "abc pdr" 2017-01-30 12:32:49 +01:00
Clifford Wolf f49cd7c1a0 Fix bug in task management 2017-01-30 12:04:35 +01:00
Clifford Wolf 363273df52 Refactor engine/mode interfaces 2017-01-30 11:57:04 +01:00
Clifford Wolf f173c703f9 Improve bmc task management 2017-01-30 11:50:14 +01:00
Clifford Wolf 7ff38491c6 Use new "yosys-smtbmc --aig <aim>:<aiw>" feature 2017-01-30 11:40:27 +01:00
Clifford Wolf 08079a435b Fix "abc bmc3" engine for small state spaces 2017-01-30 11:39:48 +01:00
Clifford Wolf 062aae5822 Fix handling of counter examples with "abc bmc3" engine 2017-01-29 16:58:11 +01:00
Clifford Wolf 170a7efe10 Fix error handling in model creation 2017-01-29 15:37:42 +01:00
Clifford Wolf 4f97a20acd Rename "abc_bmc3" engine to "abc bmc3" 2017-01-28 15:25:49 +01:00
Clifford Wolf fb9dafd920 Add AIGER cex support 2017-01-28 15:16:06 +01:00
Clifford Wolf 37951b465a Fix handling of empty src dir 2017-01-22 17:36:21 +01:00
Clifford Wolf 3a13b116a6 Initial import 2017-01-22 16:47:47 +01:00