Claire Wolf [Thu, 26 Mar 2020 18:03:37 +0000 (19:03 +0100)]
Merge pull request #1806 from YosysHQ/mwk/techmap-replace-fix
techmap: Fix cell names with _TECHMAP_REPLACE_.*
Claire Wolf [Tue, 24 Mar 2020 16:30:31 +0000 (17:30 +0100)]
Revert part of
0fda8308 from #1746 that broke other smtbmc flows
Signed-off-by: Claire Wolf <claire@symbioticeda.com>
N. Engelhardt [Mon, 23 Mar 2020 19:14:13 +0000 (20:14 +0100)]
Merge pull request #1763 from boqwxp/issue1762
Closes #1762. Adds warnings for `select` arguments not matching any object and for `add` command when no modules selected
Alberto Gonzalez [Mon, 23 Mar 2020 17:50:11 +0000 (17:50 +0000)]
Do not warn on empty selection with prefixed `arg_memb`.
Co-Authored-By: N. Engelhardt <nak@symbioticeda.com>
Alberto Gonzalez [Mon, 23 Mar 2020 06:31:41 +0000 (06:31 +0000)]
Suppress warnings for empty `select` arguments when `-count` or `-assert-*` options are set.
Alberto Gonzalez [Mon, 23 Mar 2020 06:13:48 +0000 (06:13 +0000)]
Add tests for `select` command warnings.
N. Engelhardt [Mon, 23 Mar 2020 12:43:35 +0000 (13:43 +0100)]
Merge pull request #1803 from Grazfather/typedef
Support standard typedef grammar (Fixed)
N. Engelhardt [Mon, 23 Mar 2020 11:33:05 +0000 (12:33 +0100)]
Merge pull request #1805 from hofstee/master
fix typo in `write_smt2` help
Marcin Kościelnicki [Mon, 23 Mar 2020 10:07:03 +0000 (11:07 +0100)]
techmap: Fix cell names with _TECHMAP_REPLACE_.*
Fixes #1804.
N. Engelhardt [Mon, 23 Mar 2020 10:10:39 +0000 (11:10 +0100)]
Merge pull request #1785 from boqwxp/mitercc_cleanup
Clean up pseudo-private member usage in `passes/sat/miter.cc`.
Teguh Hofstee [Mon, 23 Mar 2020 09:14:26 +0000 (02:14 -0700)]
fix typo in `write_smt2` help
Alberto Gonzalez [Thu, 12 Mar 2020 17:00:21 +0000 (17:00 +0000)]
Warn on empty selection for `add` command.
Peter Crozier [Sun, 15 Mar 2020 19:02:47 +0000 (19:02 +0000)]
Simplify was not being called for packages. Broke typedef enums.
Peter Crozier [Sun, 15 Mar 2020 19:01:46 +0000 (19:01 +0000)]
Build pkg_user_types before parsing in case of changes in the design.
Peter [Tue, 3 Mar 2020 19:30:54 +0000 (19:30 +0000)]
Clear pkg_user_types if no packages following a 'design -reset-vlog'.
Peter [Thu, 27 Feb 2020 16:59:19 +0000 (16:59 +0000)]
Revert typedef tests to standard grammar.
Peter [Thu, 27 Feb 2020 16:57:35 +0000 (16:57 +0000)]
Parser changes to support typedef.
R. Ou [Mon, 2 Mar 2020 09:54:37 +0000 (01:54 -0800)]
iopadmap: Attempt to give new wires/cells meaningful names
David Shah [Sat, 21 Mar 2020 17:35:27 +0000 (17:35 +0000)]
Merge pull request #1794 from YosysHQ/dave/mince-abc9-fix
ice40: Map unmapped 'mince' DFFs to gate level
Eddie Hung [Fri, 20 Mar 2020 23:13:46 +0000 (16:13 -0700)]
Merge pull request #1795 from smunaut/fix_abc9_spram
ice40: Fix typos in SPRAM ABC9 timing specs
Sylvain Munaut [Fri, 20 Mar 2020 21:19:55 +0000 (22:19 +0100)]
ice40: Fix typos in SPRAM ABC9 timing specs
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
David Shah [Fri, 20 Mar 2020 20:35:28 +0000 (20:35 +0000)]
Add test for abc9+mince issue
Signed-off-by: David Shah <dave@ds0.me>
David Shah [Fri, 20 Mar 2020 20:29:16 +0000 (20:29 +0000)]
ice40: Map unmapped 'mince' DFFs to gate level
Signed-off-by: David Shah <dave@ds0.me>
Marcin Kościelnicki [Fri, 20 Mar 2020 13:36:00 +0000 (14:36 +0100)]
xilinx: Mark IOBUFDS.IOB as external pad
Eddie Hung [Thu, 19 Mar 2020 21:58:06 +0000 (14:58 -0700)]
Merge pull request #1788 from YosysHQ/eddie/fix_ndebug
Fix NDEBUG warnings
Marcin Kościelnicki [Wed, 18 Mar 2020 19:58:36 +0000 (20:58 +0100)]
fsm_extract: Initialize celltypes with full design.
Fixes #1781.
Miodrag Milanović [Thu, 19 Mar 2020 17:24:40 +0000 (18:24 +0100)]
Merge pull request #1787 from YosysHQ/mmicko/lexer_deps
Add dependency to verilog_lexer.cc
Miodrag Milanovic [Thu, 19 Mar 2020 15:53:40 +0000 (16:53 +0100)]
Add one mode dependency
Eddie Hung [Thu, 19 Mar 2020 15:48:39 +0000 (08:48 -0700)]
Fix NDEBUG warnings
N. Engelhardt [Thu, 19 Mar 2020 12:14:43 +0000 (13:14 +0100)]
Merge pull request #1774 from boqwxp/exec
Add `exec` command to allow running shell commands from inside Yosys scripts
N. Engelhardt [Thu, 19 Mar 2020 12:12:18 +0000 (13:12 +0100)]
Merge pull request #1775 from huaixv/asserts_locations
Add precise locations for asserts
Alberto Gonzalez [Thu, 19 Mar 2020 06:22:42 +0000 (06:22 +0000)]
Clean up pseudo-private member usage in `passes/sat/miter.cc`.
huaixv [Tue, 17 Mar 2020 05:00:12 +0000 (13:00 +0800)]
Add precise locations for asserts
Miodrag Milanović [Wed, 18 Mar 2020 16:39:28 +0000 (17:39 +0100)]
Merge pull request #1780 from YosysHQ/fix-test-bash
Fix make test on macOS: add bash to brewfile & fix argument order
N. Engelhardt [Wed, 18 Mar 2020 14:11:49 +0000 (15:11 +0100)]
fix argument order for macOS compatibility
N. Engelhardt [Wed, 18 Mar 2020 13:36:15 +0000 (14:36 +0100)]
add bash to brewfile
Default bash on macOS is version 3, which does not support `define -A`, now used in `tests/arch/run-test.sh`. Use brew to install newer bash.
Alberto Gonzalez [Wed, 18 Mar 2020 09:14:22 +0000 (09:14 +0000)]
Update copyright and license header.
I hereby assign to Claire Wolf the copyright for all work I did on `passes/cmds/exec.cc`.
In the event that this copyright assignment is not legally valid, I offer this work under the ISC license.
Alberto Gonzalez [Mon, 16 Mar 2020 16:42:04 +0000 (16:42 +0000)]
Clean up `exec` code according to review.
Co-Authored-By: Miodrag Milanović <mmicko@gmail.com>
Claire Wolf [Tue, 17 Mar 2020 17:44:06 +0000 (18:44 +0100)]
Add N:* to select language, fix some old code
Signed-off-by: Claire Wolf <claire@symbioticeda.com>
Eddie Hung [Tue, 17 Mar 2020 17:43:45 +0000 (10:43 -0700)]
Merge pull request #1769 from boqwxp/select_cleanup
Clean up code style and pseudo-private member usage in `passes/cmds/select.cc`
N. Engelhardt [Tue, 17 Mar 2020 15:55:38 +0000 (16:55 +0100)]
Merge pull request #1776 from boqwxp/precise_locations
Add AST node source location information in a couple more parser rules.
Alberto Gonzalez [Tue, 17 Mar 2020 06:21:10 +0000 (06:21 +0000)]
Add AST node source location information in a couple more parser rules.
Alberto Gonzalez [Mon, 16 Mar 2020 20:32:46 +0000 (20:32 +0000)]
Further clean up `passes/cmds/select.cc`.
Co-Authored-By: Eddie Hung <eddie@fpgeh.com>
Alberto Gonzalez [Sat, 14 Mar 2020 04:40:14 +0000 (04:40 +0000)]
Cleanup code style and pseudo-private member usage in `passes/cmds/select.cc`.
Claire Wolf [Mon, 16 Mar 2020 15:28:25 +0000 (16:28 +0100)]
Update Copyright
Signed-off-by: Claire Wolf <claire@symbioticeda.com>
Claire Wolf [Mon, 16 Mar 2020 15:25:58 +0000 (16:25 +0100)]
Merge pull request #1771 from waldyrious/license-update
License: bump year and add title
N. Engelhardt [Mon, 16 Mar 2020 12:49:10 +0000 (13:49 +0100)]
Merge pull request #1768 from boqwxp/smt2_cleanup
Clean up pseudo-private member usage in `backends/smt2/smt2.cc`.
N. Engelhardt [Mon, 16 Mar 2020 11:23:14 +0000 (12:23 +0100)]
Merge pull request #1746 from boqwxp/optimization
Add support for optimizing exists-forall problems.
Alberto Gonzalez [Mon, 16 Mar 2020 06:44:21 +0000 (06:44 +0000)]
Add test for `exec` command.
Alberto Gonzalez [Mon, 16 Mar 2020 06:02:14 +0000 (06:02 +0000)]
Allow specifying multiple regexes to match in `exec` command output, and also to specify regexes that must _not_ match.
Alberto Gonzalez [Sun, 15 Mar 2020 09:16:04 +0000 (09:16 +0000)]
Add `exec` command to run shell commands.
David Shah [Sun, 15 Mar 2020 17:16:57 +0000 (17:16 +0000)]
Merge pull request #1773 from smunaut/fix_spram_model
ice40: Fix SPRAM model to keep data stable if chipselect is low
Sylvain Munaut [Sat, 14 Mar 2020 20:01:42 +0000 (21:01 +0100)]
ice40: Fix SPRAM model to keep data stable if chipselect is low
According to the official simulation model, and also cross-checked
on real hardware, the data output of the SPRAM when chipselect is
low is kept stable. It doesn't go undefined.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Waldir Pimenta [Sat, 14 Mar 2020 16:46:07 +0000 (16:46 +0000)]
License: bump year and add title
Miodrag Milanovic [Sat, 14 Mar 2020 13:33:44 +0000 (14:33 +0100)]
Fix invalid verilog syntax
Miodrag Milanović [Sat, 14 Mar 2020 11:34:59 +0000 (13:34 +0200)]
Merge pull request #1759 from zeldin/constant_with_comment_redux
refixed parsing of constant with comment between size and value
Marcus Comstedt [Sat, 14 Mar 2020 10:41:09 +0000 (11:41 +0100)]
Add regression tests for new handling of comments in constants
Miodrag Milanović [Sat, 14 Mar 2020 09:18:39 +0000 (11:18 +0200)]
Merge pull request #1754 from boqwxp/precise_locations
Set AST node source location in more parser rules.
Miodrag Milanović [Sat, 14 Mar 2020 09:18:27 +0000 (11:18 +0200)]
Merge pull request #1766 from YosysHQ/mmicko/regex_gcc48
Regex support for GCC 4.8
Alberto Gonzalez [Fri, 13 Mar 2020 21:49:12 +0000 (21:49 +0000)]
Clean up pseudo-private member usage in `backends/smt2/smt2.cc`.
Alberto Gonzalez [Sun, 8 Mar 2020 06:34:47 +0000 (06:34 +0000)]
Add support for optimizing exists-forall problems.
Modifies smt2 backend to recognize `$anyconst` etc. assigned to a wire with the `maximize` or `minimize` attribute and emit `; yosys-smt2-maximize` or `; yosys-smt2-minimize` directives as appropriate.
Modifies `backends/smt2/smtbmc.py` and `smtio.py` to recognize those directives and emit a `(maximize ...)` or `(minimize ...)` command at the end of `smt_forall_assert()`, as described in the paper "νZ - An Optimizing SMT Solver" by Nikolaj Bjørner et al.
Adds an example `examples/smtbmc/demo9.v` to show how it can be used.
Miodrag Milanovic [Fri, 13 Mar 2020 16:23:27 +0000 (17:23 +0100)]
exclude clang from checking
Miodrag Milanovic [Fri, 13 Mar 2020 16:19:54 +0000 (17:19 +0100)]
Add YS_ prefix to macros, add explanation and apply to older version as well
Claire Wolf [Fri, 13 Mar 2020 15:54:19 +0000 (16:54 +0100)]
Merge pull request #1764 from Xiretza/fix-abcrev-check
Improve ABC repository management in Makefile
Miodrag Milanovic [Fri, 13 Mar 2020 14:00:18 +0000 (15:00 +0100)]
Added back tests for logger
Miodrag Milanovic [Fri, 13 Mar 2020 13:58:35 +0000 (14:58 +0100)]
Use boost xpressive for gcc 4.8
Miodrag Milanovic [Fri, 13 Mar 2020 13:55:53 +0000 (14:55 +0100)]
remove include where not used
Xiretza [Wed, 29 Jan 2020 18:05:23 +0000 (19:05 +0100)]
Improve ABC repository management in Makefile
`rev-parse --short` output may have a different abbreviated hash length than
ABCREV, so a simple string comparison always fails, even if the correct
commit is checked out. Pass both commits through rev-parse and then
compare the full hashes instead.
Add an `echo-abc-rev` target so that packaging scripts can set ABCPULL=0 and
handle all the git nastiness themselves.
Miodrag Milanovic [Thu, 12 Mar 2020 17:28:20 +0000 (18:28 +0100)]
Added filter-out for libyosys.so
Miodrag Milanovic [Thu, 12 Mar 2020 17:26:19 +0000 (18:26 +0100)]
Revert "Clean up 'install' Makefile target"
This reverts commit
2a746234fec2f6d14e9bfa40fd7f3478cdd539ea.
Miodrag Milanovic [Thu, 12 Mar 2020 17:26:07 +0000 (18:26 +0100)]
Revert "Improve ABC repository management in Makefile"
This reverts commit
90404e1969443a1b8a767ab8f3dc311709c5fe9d.
Miodrag Milanović [Thu, 12 Mar 2020 14:14:48 +0000 (16:14 +0200)]
Merge pull request #1666 from Xiretza/improve-makefile
Makefile improvements for packaging scripts
N. Engelhardt [Thu, 12 Mar 2020 10:18:35 +0000 (11:18 +0100)]
Merge pull request #1751 from boqwxp/add_assert
Extend `add` command to allow adding $assert cells.
Miodrag Milanovic [Thu, 12 Mar 2020 10:17:15 +0000 (11:17 +0100)]
Add mandatory wasm file to zip file as well
Miodrag Milanović [Thu, 12 Mar 2020 10:16:28 +0000 (12:16 +0200)]
Merge pull request #1757 from jiegec/fix-emcc
Fix compilation for emcc
Marcus Comstedt [Wed, 11 Mar 2020 17:21:44 +0000 (18:21 +0100)]
refixed parsing of constant with comment between size and value
The three parts of a based constant (size, base, digits) are now three
separate tokens, allowing the linear whitespace (including comments)
between them to be treated as normal inter-token whitespace.
jiegec [Wed, 11 Mar 2020 15:01:04 +0000 (23:01 +0800)]
Add EXTRA_EXPORTED_RUNTIME_METHODS env for yosysjs
jiegec [Wed, 11 Mar 2020 14:08:02 +0000 (22:08 +0800)]
Fix compilation for emcc
Eddie Hung [Wed, 11 Mar 2020 13:51:03 +0000 (06:51 -0700)]
verilog: add test
Eddie Hung [Wed, 11 Mar 2020 13:32:15 +0000 (06:32 -0700)]
Merge pull request #1743 from YosysHQ/eddie/abc9_keep
abc9: improve (* keep *) handling
Eddie Hung [Wed, 11 Mar 2020 13:31:06 +0000 (06:31 -0700)]
Merge pull request #1744 from YosysHQ/eddie/fix1675
Bump ABCREV to receive fix for #1675
Alberto Gonzalez [Mon, 9 Mar 2020 11:53:51 +0000 (11:53 +0000)]
Extend `add` command to allow adding cells for verification like $assert, $assume, etc.
Eddie Hung [Tue, 10 Mar 2020 17:29:24 +0000 (10:29 -0700)]
verilog: also set location for simple_behavioral_stmt
David Shah [Tue, 10 Mar 2020 13:51:59 +0000 (13:51 +0000)]
Merge pull request #1753 from YosysHQ/dave/abc9-speedup
Add ScriptPass::run_nocheck and use for abc9
David Shah [Tue, 10 Mar 2020 13:51:40 +0000 (13:51 +0000)]
Merge pull request #1721 from YosysHQ/dave/tribuf-unused
deminout: Don't demote inouts with unused bits
N. Engelhardt [Tue, 10 Mar 2020 12:10:50 +0000 (13:10 +0100)]
Merge pull request #1755 from boqwxp/add_cmd_cleanup
Clean up `passes/cmds/add.cc` code style.
Alberto Gonzalez [Tue, 10 Mar 2020 10:37:10 +0000 (10:37 +0000)]
Clean up passes/cmds/add.cc code style.
Alberto Gonzalez [Tue, 10 Mar 2020 00:43:03 +0000 (00:43 +0000)]
Set AST source locations in more parser rules.
Eddie Hung [Mon, 9 Mar 2020 18:51:57 +0000 (11:51 -0700)]
Merge pull request #1747 from YosysHQ/claire/partselfix
Fix partsel expr bit width handling and add test case
David Shah [Mon, 9 Mar 2020 14:34:22 +0000 (14:34 +0000)]
Add ScriptPass::run_nocheck and use for abc9
Signed-off-by: David Shah <dave@ds0.me>
N. Engelhardt [Mon, 9 Mar 2020 10:04:08 +0000 (11:04 +0100)]
Merge pull request #1716 from zeldin/ecp5_fix
ecp5: remove unused parameter from \$__ECP5_PDPW16KD
Claire Wolf [Sun, 8 Mar 2020 15:12:12 +0000 (16:12 +0100)]
Fix partsel expr bit width handling and add test case
Signed-off-by: Claire Wolf <claire@symbioticeda.com>
Eddie Hung [Fri, 6 Mar 2020 18:51:47 +0000 (10:51 -0800)]
xaiger: remove some unnecessary operations ...
... since they can not be triggered by (* keep *) anymore
(but could still be triggered by (* abc9_scc *) !?!)
Eddie Hung [Fri, 6 Mar 2020 18:32:48 +0000 (10:32 -0800)]
Bump ABCREV to receive fix for #1675
Eddie Hung [Fri, 6 Mar 2020 18:30:07 +0000 (10:30 -0800)]
abc9: for sccs, create a new wire instead of using entirety of existing
Eddie Hung [Fri, 6 Mar 2020 18:20:30 +0000 (10:20 -0800)]
abc9: (* keep *) wires to be PO only, not PI as well; fix scc handling
Eddie Hung [Fri, 6 Mar 2020 18:09:01 +0000 (10:09 -0800)]
abc: add abc.debug scratchpad option
N. Engelhardt [Fri, 6 Mar 2020 15:45:36 +0000 (16:45 +0100)]
remove unused parameters
Miodrag Milanović [Fri, 6 Mar 2020 15:06:54 +0000 (16:06 +0100)]
Merge pull request #1742 from nakengelhardt/rpc-test-again
More rpc test fixes
N. Engelhardt [Fri, 6 Mar 2020 14:29:01 +0000 (15:29 +0100)]
rpc test: make frontend listen before launching yosys & introduce safeguard if yosys errors