Commit Graph

2033 Commits

Author SHA1 Message Date
Akash Levy 1b878af507
Merge branch 'YosysHQ:main' into main 2025-08-22 12:16:36 -07:00
Akash Levy e54fa487b8 Merge from upstream 2025-08-21 17:56:55 -07:00
github-actions[bot] 6fdcdd41de Bump version 2025-08-22 00:23:32 +00:00
github-actions[bot] 4926e846f6 Bump version 2025-08-21 00:22:37 +00:00
Akash Levy 037675663f Remove -lboost_system -lboost_filesystem for everything except CentOS 7 2025-08-20 10:28:30 -07:00
github-actions[bot] bfc9a322e2 Bump version 2025-08-19 00:24:35 +00:00
github-actions[bot] d73cd78001 Bump version 2025-08-18 00:27:23 +00:00
github-actions[bot] d10fdc0ec5 Bump version 2025-08-16 00:24:02 +00:00
github-actions[bot] bf625951d7 Bump version 2025-08-15 00:26:03 +00:00
Akash Levy 3cd1cc157a Bump Yosys to latest 2025-08-14 10:54:48 -07:00
github-actions[bot] a265b23ac0 Bump version 2025-08-14 00:25:16 +00:00
Akash Levy 56caf7cd84 Bump Yosys to latest 2025-08-13 13:37:37 -07:00
github-actions[bot] 8634d83320 Bump version 2025-08-13 00:25:15 +00:00
Krystine Sherwin f4016d96cc Makefile: Add flex lib/include for brew 2025-08-11 13:34:10 +02:00
Akash Levy d0ab898e88
Merge branch 'YosysHQ:main' into main 2025-08-10 22:46:15 -07:00
github-actions[bot] 0d4585dd5f Bump version 2025-08-09 00:24:43 +00:00
Neil Deo 88816e390e add clockgate to makefile, add Density to sim pass 2025-08-07 18:07:15 -07:00
Akash Levy c4b20f14ea
Merge branch 'YosysHQ:main' into main 2025-08-07 17:58:29 -07:00
github-actions[bot] c9558b3d4f Bump version 2025-08-08 00:26:50 +00:00
Akash Levy 77be4d7be7 Bump Yosys to latest 2025-08-07 17:22:25 -07:00
Miodrag Milanovic e6059d042d Next dev cycle 2025-08-07 09:20:45 +02:00
Miodrag Milanovic 9c447ad9d4 Release version 0.56 2025-08-07 07:59:29 +02:00
github-actions[bot] ab66d8b814 Bump version 2025-08-07 00:27:08 +00:00
Krystine Sherwin 891a907a30
Add and use ENABLE_HELP_SOURCE
Conditionally include help source tracking to preserve ABI.
Docs builds can (and should) use `ENABLE_HELP_SOURCE` so that the generated sphinx docs can perform default grouping and link to source files.
Regular user-builds don't need the source tracking.
2025-08-06 13:52:13 +12:00
Krystine Sherwin 3959d19291
Reapply "Add groups to command reference"
This reverts commit 81f87ce6ed.
2025-08-06 13:52:12 +12:00
github-actions[bot] 2ad3532a55 Bump version 2025-08-06 00:27:13 +00:00
github-actions[bot] f22fe91237 Bump version 2025-08-05 00:27:22 +00:00
Akash Levy 39671b0e05
Merge branch 'YosysHQ:main' into main 2025-08-03 13:25:07 -07:00
github-actions[bot] 15b4716d18 Bump version 2025-08-03 00:29:54 +00:00
Akash Levy cc733fd11b Merge from upstream 2025-07-30 22:50:14 -07:00
github-actions[bot] 262b00d5e5 Bump version 2025-07-31 00:26:33 +00:00
github-actions[bot] 6440499e57 Bump version 2025-07-30 00:26:56 +00:00
KrystalDelusion a18acaca82
Merge pull request #5068 from YosysHQ/krys/bugpoint_fixes
Updates to bugpoint
2025-07-30 10:05:22 +12:00
github-actions[bot] 8f6d7a3043 Bump version 2025-07-29 00:29:04 +00:00
Krystine Sherwin 93f7429f4f
tests: Add bugpoint to MK_TEST_DIRS
Also change `-err_grep` to `-err-grep` for consistency with `-expect-return`.
2025-07-29 11:39:51 +12:00
Akash Levy 721214c55b
Merge branch 'YosysHQ:main' into main 2025-07-27 03:39:36 -07:00
github-actions[bot] bf9aaac0fe Bump version 2025-07-25 00:26:42 +00:00
N. Engelhardt 81f87ce6ed
Revert "Add groups to command reference" 2025-07-23 14:41:49 +00:00
github-actions[bot] 2223d7848b Bump version 2025-07-22 00:26:35 +00:00
Krystine Sherwin 14a5cd6c4c
Makefile: Fix chformal.cc copy 2025-07-21 10:37:30 +12:00
Krystine Sherwin c92f200491
Drop <cmd>.rst dump 2025-07-21 10:37:30 +12:00
Krystine Sherwin d88688781d
Docs: Skeleton documentation for writing command help
Use `chformal` as example, comparing the `autocmd` output with `ChformalPass::formal_help()`, the json dump from the `ContentListing`, the command line output, and the RST generated (using `autocmd_rst`).
Includes bullet points on each step for more information.
Should eventually end up in `yosys_internals/extending_yosys/contributing.rst`, but it currently lives in `cmd/index_internal.rst` to avoid merge conflicts since cell help documentation is still WIP.
Also exports chformal source and help output to `docs/source/generated` during `make docs/prep`.
2025-07-21 10:35:57 +12:00
Krystine Sherwin 534163cf4b
source_location: Auto detect library
Drop `ENABLE_SOURCE_LOCATION` flag.
2025-07-21 10:34:54 +12:00
Krystine Sherwin 4722b07485
Docs: docs/source/cmd is source only
i.e. we don't need to clean it, and we don't need to include it in the docs artifact
2025-07-21 10:34:54 +12:00
Krystine Sherwin bab867f347
Makefile: Drop cmds rst from docs/prep 2025-07-21 10:34:13 +12:00
Krystine Sherwin ae3514adfd
log_help: Include source_location
Use `std::experimental::source_location` because clang support is `??`
Add `ENABLE_SOURCE_LOCATION` make variable and corresponding `YOSYS_ENABLE_SOURCE_LOCATION` define.
Dummy out the struct if disabled and check for null instead of using `#ifdef` blocks everywhere.
2025-07-21 10:34:12 +12:00
Krystine Sherwin 3bef122a3f
WIP docs: Proto log_help
Define `PrettyHelp` class with methods for declaring different parts of help message.
Currently able to produce standard help messages as expected.
Updates chformal to use (only) the new help_v2.
Currently makes use of a global static to track the current help context, allowing register.h to live in blissful ignorance and instead rely on help_v2 implementations calling `auto *help = PrettyHelp::get_current();` and `return true;` to minimise impact on rebuilds (i.e. not requiring every source file to be recompiled).
2025-07-21 10:34:11 +12:00
Krystine Sherwin 3718f916f3
Makefile: Add cmds.json to docs/prep 2025-07-21 10:33:31 +12:00
Krystine Sherwin 804e18e0c6
Docs: WIP dump_cmds_json 2025-07-21 10:32:51 +12:00
Krystine Sherwin fe3adfd960
Docs: Remove unused write_cell_rst function
The `help -write-rst-cells-manual` approach was made redundant by `help -dump-cells-json`.
2025-07-21 10:32:09 +12:00
Akash Levy 3cfbc0d7af
Merge branch 'YosysHQ:main' into main 2025-07-18 09:38:39 -07:00
github-actions[bot] aa1daa7023 Bump version 2025-07-18 00:25:48 +00:00
Akash Levy 37806d5ea7
Merge branch 'YosysHQ:main' into main 2025-07-16 14:59:29 -07:00
github-actions[bot] af0b263557 Bump version 2025-07-16 00:25:58 +00:00
Akash Levy 082adf8684
Merge branch 'YosysHQ:main' into main 2025-07-15 00:04:28 -04:00
Catherine 62c270a38b Allow installing headers and `yosys-config` without the rest.
This is useful to be able to build a plugin like `yosys-slang` without
having to build the entirety of Yosys, which can save a lot of time.
2025-07-15 01:28:09 +00:00
github-actions[bot] e57a2b9442 Bump version 2025-07-11 00:25:36 +00:00
Emil J 9334a5c275
Merge pull request #5216 from YosysHQ/emil/publish-libparse-header
Install libparse.h for use in plugins
2025-07-09 14:28:59 +02:00
github-actions[bot] 7566af4a4b Bump version 2025-07-09 00:25:57 +00:00
Emil J. Tywoniak ad80e2bd39 libparse: install headers for use in plugins 2025-07-08 13:39:03 +02:00
github-actions[bot] e60cf3e2fa Bump version 2025-07-08 00:25:06 +00:00
Miodrag Milanovic 8af60b7e17 Next dev cycle 2025-07-07 12:40:53 +02:00
Miodrag Milanovic 60f126cd00 Release version 0.55 2025-07-07 11:26:04 +02:00
Akash Levy ccb4c60116
Merge branch 'YosysHQ:main' into main 2025-07-05 06:33:29 -04:00
github-actions[bot] 99f7d79abb Bump version 2025-07-05 00:23:55 +00:00
Akash Levy 3d4bf57745 Merge from upstream 2025-07-02 11:25:18 -07:00
github-actions[bot] 67583fee48 Bump version 2025-06-30 00:27:10 +00:00
Akash Levy faaac21ec8 Merge from upstream 2025-06-25 22:11:00 -07:00
github-actions[bot] a0a77cd1d0 Bump version 2025-06-24 00:24:55 +00:00
Akash Levy 7e9e4c7afe
Merge branch 'YosysHQ:main' into main 2025-06-23 02:30:24 -07:00
github-actions[bot] 44aa313ba9 Bump version 2025-06-20 00:24:40 +00:00
Jiahui Xu 059228dd4e Makefile: remove hardcoded -soname for libyosys.so 2025-06-19 18:47:48 +02:00
Akash Levy 571a520d5d
Merge branch 'YosysHQ:main' into main 2025-06-17 15:51:55 -07:00
github-actions[bot] cd71f190cd Bump version 2025-06-14 00:24:06 +00:00
Akash Levy 958112bcb0
Merge branch 'YosysHQ:main' into main 2025-06-11 03:26:14 -07:00
github-actions[bot] c561ba84e3 Bump version 2025-06-10 00:24:41 +00:00
Akash Levy 447a73ea86
Merge branch 'YosysHQ:main' into main 2025-06-09 14:51:56 -07:00
Miodrag Milanovic c16cc539d4 Next dev cycle 2025-06-09 08:12:26 +02:00
Miodrag Milanovic db72ec3bde Release version 0.54 2025-06-09 07:23:54 +02:00
github-actions[bot] 2a25d92413 Bump version 2025-06-07 00:24:11 +00:00
Akash Levy 5745c6d5d9
Merge branch 'YosysHQ:main' into main 2025-06-05 14:49:20 -07:00
github-actions[bot] 50b63c6481 Bump version 2025-06-05 00:24:30 +00:00
Akash Levy e3a6b920d4
Merge branch 'YosysHQ:main' into main 2025-06-02 18:47:14 +02:00
github-actions[bot] 86282027c0 Bump version 2025-05-31 00:23:36 +00:00
Akash Levy c172eea61f
Merge branch 'YosysHQ:main' into main 2025-05-30 05:00:06 +02:00
github-actions[bot] e046e3cdbf Bump version 2025-05-28 00:24:34 +00:00
Akash Levy 3fc74be3e2
Merge branch 'YosysHQ:main' into main 2025-05-28 01:54:49 +02:00
github-actions[bot] 4f968c6695 Bump version 2025-05-27 00:24:03 +00:00
Emil J 4f7ea38b49
Merge pull request #5127 from RonxBulld/refine_strip
Disable STRIP operations when appropriate.
2025-05-26 15:03:34 +02:00
Akash Levy 3a23e772dd
Merge branch 'YosysHQ:main' into main 2025-05-24 12:11:52 -07:00
github-actions[bot] 209df95fb9 Bump version 2025-05-24 00:23:33 +00:00
github-actions[bot] 6c67b29bbb Bump version 2025-05-23 00:24:38 +00:00
Akash Levy c0e3ffa2da
Merge branch 'YosysHQ:main' into main 2025-05-20 00:58:47 -07:00
RonxBulld 64a115e6f0
Disable STRIP operations when appropriate. 2025-05-18 01:07:06 +08:00
github-actions[bot] 388955031f Bump version 2025-05-17 00:23:43 +00:00
Akash Levy 1f00bf0057 Bump yosys to latest 2025-05-15 14:44:26 -07:00
Emil J 3823157c25
Merge pull request #5080 from akashlevy/muldiv_c
Add `muldiv_c` peepopt
2025-05-15 11:03:25 +02:00
github-actions[bot] ae47c49af5 Bump version 2025-05-15 00:22:59 +00:00
Akash Levy 20d637697b Fix commit to be preqorsor commit 2025-05-13 20:43:03 -07:00
Akash Levy 55f7ebf921
Merge branch 'YosysHQ:main' into main 2025-05-13 20:03:28 -07:00
github-actions[bot] e3ae7b1400 Bump version 2025-05-13 00:24:04 +00:00
Akash Levy ccc2ba41f2
Merge branch 'YosysHQ:main' into main 2025-05-12 15:02:55 -07:00
KrystalDelusion c590c0c12c
Merge pull request #5111 from YosysHQ/krys/config_python
Makefile: Conditional assignment of python exe
2025-05-13 09:54:26 +12:00
Akash Levy aeed1ddb74 Update from upstream 2025-05-11 15:16:52 -07:00
github-actions[bot] 6900818105 Bump version 2025-05-10 00:22:55 +00:00
KrystalDelusion 1e2d6508d0
Makefile: Conditional assignment of python exe
Using `:=` while providing an override (either in Makefile.conf or on the command line) does not correctly apply the override in other simply expanded variables (using `:=`).  Instead, passing an explicit `PYTHON_EXECUTABLE=python3.15` while leaving `PYTHON_CONFIG` implicitly defined results in it being set to `python3-config` instead of the expected `python3.15-config`.
2025-05-10 09:09:30 +12:00
Akash Levy 3045e701d0 Remove wheel install_wheel 2025-05-08 18:05:07 -07:00
github-actions[bot] 55bd950af4 Bump version 2025-05-09 00:27:47 +00:00
Akash Levy e8fcbd7588 TCL is needed for yosys tests 2025-05-08 12:19:05 -07:00
Akash Levy 1b1cf08a09 Use main branch of verific (latest April_2025) and disable UPF 2025-05-08 12:11:27 -07:00
Akash Levy 36bd30d9eb Add recover_names into build and longloop_select 2025-05-06 18:58:07 -07:00
Akash Levy 291609dc0e
Merge branch 'YosysHQ:main' into main 2025-05-06 18:56:08 -07:00
github-actions[bot] 8da97d0044 Bump version 2025-05-07 00:24:00 +00:00
Akash Levy 978f1b240c
Merge branch 'YosysHQ:main' into main 2025-05-06 02:29:37 -07:00
Miodrag Milanovic 20921ad908 Next dev cycle 2025-05-06 08:26:46 +02:00
Miodrag Milanovic 53c22ab7c0 Release version 0.53 2025-05-06 07:45:16 +02:00
github-actions[bot] 5924f2de7b Bump version 2025-05-06 00:23:55 +00:00
Akash Levy 7191be492c
Merge branch 'YosysHQ:main' into main 2025-05-05 15:36:40 -07:00
github-actions[bot] 765485a375 Bump version 2025-05-04 00:26:28 +00:00
Akash Levy d2aa569d8f
Merge branch 'YosysHQ:main' into main 2025-05-01 08:40:31 -07:00
github-actions[bot] aa30589c12 Bump version 2025-05-01 00:26:28 +00:00
KrystalDelusion 4213f75caa
Merge pull request #4969 from YosysHQ/krys/check_yosys_git
Makefile: Test yosys git status in check-git-abc
2025-05-01 10:09:08 +12:00
Akash Levy 4bd91fbb11 Add `muldiv_c` peepopt pass 2025-04-30 08:06:59 -07:00
Akash Levy 94bc6937d3
Merge branch 'YosysHQ:main' into main 2025-04-27 15:24:30 -07:00
github-actions[bot] 58e7cfa559 Bump version 2025-04-27 00:25:27 +00:00
Krystine Sherwin 1e8adc6bd0
Makefile: Redirect all git output
For some platforms (Arch Linux, at least), `git status` reports errors on stdout instead of stderr, so we need to redirect that to `/dev/null` too.  This also prevents `git status` from logging output when the yosys directory is a git repo, but is missing the abc folder.
2025-04-26 10:59:24 +12:00
github-actions[bot] 94af24c801 Bump version 2025-04-25 00:23:50 +00:00
Akash Levy b8ee17e807
Merge branch 'YosysHQ:main' into main 2025-04-24 14:51:28 -07:00
github-actions[bot] c550c301dc Bump version 2025-04-24 00:23:08 +00:00
Akash Levy f67da2df2f
Merge branch 'YosysHQ:main' into main 2025-04-23 15:22:38 -07:00
github-actions[bot] bf20bc0848 Bump version 2025-04-23 00:23:08 +00:00
Akash Levy 3bec45a1ee
Merge branch 'YosysHQ:main' into main 2025-04-22 04:09:26 -07:00
Emil J a628f84ec0
Merge pull request #5044 from RonxBulld/main
Fixed the problem of not calling abc correctly when using libyosys.so
2025-04-22 12:38:07 +02:00
Akash Levy 5f5ed1b29e Merge upstream yosys 2025-04-21 17:36:24 -07:00
github-actions[bot] 1788ffcaf7 Bump version 2025-04-22 00:23:01 +00:00
RonxBulld a8ae6f05ea
Fixed the problem of not calling abc correctly when using libyosys.so library (it will try to call yosys-abc as command line instead of calling abc::Abc_RealMain) 2025-04-22 00:54:51 +08:00
Akash Levy 892ab99f40 Disable libedit 2025-04-18 11:40:52 -07:00
github-actions[bot] 08b3a9fc7b Bump version 2025-04-17 00:22:57 +00:00
github-actions[bot] c894685f26 Bump version 2025-04-16 00:23:21 +00:00
github-actions[bot] ea2c1e7ac7 Bump version 2025-04-15 00:23:32 +00:00
Miodrag Milanović 9f25f972dc
Merge pull request #5008 from donn/wheel_builds_fix
wheels: fix builds, add linux aarch64 to ci
2025-04-14 15:10:37 +02:00
Donn b7062143e1 hotfix: fix CHECK_BOOST_PYTHON missing libpython 2025-04-14 14:54:38 +02:00
Donn c18f1310a5 Revert #4901
Partially reverts commit 9c5bffcf93.

The reasoning behind this is that setup.py is intended to strictly consume the Makefile and not be consumed by it. The attempt at using them recursively has caused a number of issues and has rendered Pyosys unusable to some users: See https://github.com/YosysHQ/yosys/issues/5012

Additionally, unlike the previous pyosys installation target, the wheel installation does not respect PREFIX=, only venvs.

For installation inside a venv, the intended method should remain a user manually executing `pip3 install .` instead of relying on the Makefile.
2025-04-14 14:45:41 +02:00
github-actions[bot] 9d3d0a4336 Bump version 2025-04-12 00:22:23 +00:00
Akash Levy e391707d0a Merge remote-tracking branch 'upstream/main' 2025-04-10 00:19:00 -07:00
github-actions[bot] 33c57937cd Bump version 2025-04-10 00:22:42 +00:00
Emil J a5e8f52ce5
Merge pull request #4976 from Logikable/main
Support array ranges for identifiers in the Liberty parser.
2025-04-09 22:49:52 +02:00
Donn 2bc2105d82 wheels: fix builds, add linux aarch64 to ci
Essentially, something is attempting to build the Yosys EXE when you build libyosys.so now. With `ENABLE_PYTHON_CONFIG_EMBED=0`, the Yosys EXE will always fail to build.

Furthermore, because `ENABLE_PYOSYS` now attempts to build a wheel, building a wheel has become recursive.

This commit uses a supplementary set of libs for the EXE (EXE_LIBS) so it and libyosys.so can be built simultaneously, as well as a new Makefile flag, `ENABLE_WHEEL`, to prevent the aforementioned recursion.

I also enabled aarch64 Linux in the CI because it's publicly available now.
2025-04-09 10:42:40 +02:00
Miodrag Milanovic a2c0847667 Next dev cycle 2025-04-09 08:21:08 +02:00
Miodrag Milanovic fee39a3284 Release version 0.52 2025-04-09 07:38:42 +02:00
Akash Levy 3e24a3e248 Bump yosys to latest 2025-04-08 18:05:28 -07:00
github-actions[bot] f602248a2e Bump version 2025-04-09 00:22:49 +00:00
Miodrag Milanovic a9656455b1 Update to latest ABC 2025-04-08 17:39:41 +02:00
github-actions[bot] 857baf2031 Bump version 2025-04-08 00:22:31 +00:00
Akash Levy 0dab4308a3 Actual merge here 2025-04-06 18:53:43 -07:00
github-actions[bot] 331952f78d Bump version 2025-04-05 00:22:08 +00:00
KrystalDelusion 40c5694650
Merge pull request #4901 from akashlevy/pyosys_copy_abc
Copy `abc` stuff for pyosys to enable use of the `abc` pass
2025-04-05 10:57:02 +13:00
Akash Levy 9c0da98531 Updates 2025-04-03 17:47:48 -07:00
Akash Levy 439d859bba
Merge branch 'YosysHQ:main' into main 2025-04-03 10:48:42 -07:00
Sean Luchen bdcbbf2db6 Fix existing tests/liberty tests, and add them to Makefile. 2025-04-03 09:56:24 -07:00
KrystalDelusion 1cfe1e2813
Merge pull request #4974 from YosysHQ/micko/config_exitcode
yosys-config: Propagate exit code for help command
2025-04-03 09:56:13 +13:00
Akash Levy 4bd08ac362
Merge branch 'YosysHQ:main' into main 2025-04-01 22:10:43 -07:00
github-actions[bot] f03b44959b Bump version 2025-04-02 00:23:07 +00:00
Miodrag Milanovic 66d7ffb2c5 yosys-config: redirect to stderr/stdout depending of exit code 2025-04-01 08:39:11 +02:00
github-actions[bot] c08f72b806 Bump version 2025-04-01 00:26:08 +00:00
Akash Levy 027a4cec13
Merge branch 'YosysHQ:main' into main 2025-03-31 14:07:26 -07:00
github-actions[bot] 314842d2a0 Bump version 2025-03-29 00:22:03 +00:00
KrystalDelusion 80dc946499
Makefile: Test yosys git status in check-git-abc
As in #4986, `check-git-abc` is misleading if Yosys itself isn't a git repository.
So check `git status` before suggesting `git` based solutions, providing alternative suggestions for using ABCEXTERNAL (which bypasses `check-git-abc`), or downloading release tar (noting that the 'Source code' archives won't work, which is probably how they ended up in this situtation).
2025-03-29 12:29:55 +13:00
Akash Levy ca57e14819 Address review feedback 2025-03-27 15:53:50 -07:00
William Zhu cc4c9c4eba first tests for opt_expand 2025-03-27 12:31:37 -07:00
Akash Levy 3d13f7aae2 Bump to latest 2025-03-26 14:56:10 -07:00
github-actions[bot] d3aec12fe9 Bump version 2025-03-26 00:22:20 +00:00
github-actions[bot] 59602740ee Bump version 2025-03-25 00:23:05 +00:00
KrystalDelusion cce7aaedf7
Merge pull request #4939 from DanielG/rsync-fallback
mk: Fall back to cp if rsync is not available
2025-03-25 10:41:27 +13:00
Daniel Gröber 2b67ad78bf mk: Fall back to cp if rsync is not available 2025-03-24 18:06:17 +01:00
Akash Levy efadf5751d Fix pyosys install issues 2025-03-20 17:58:54 -07:00
Akash Levy 95f489beec Merge nice gzip refactor 2025-03-20 16:47:12 -07:00
KrystalDelusion 8bde6ac17c
Merge pull request #4940 from DanielG/fix-help-rebuild
mk: Avoid broken rebuild if program --help fails
2025-03-21 10:01:13 +13:00
KrystalDelusion b06a661913
Merge pull request #4834 from YosysHQ/emil/gzip-refactor
Memory-efficient zlib usage across Liberty file consumers
2025-03-21 10:01:00 +13:00
Akash Levy d1f0c38bac
Merge branch 'YosysHQ:main' into main 2025-03-19 19:32:42 -07:00
github-actions[bot] f92ad7d900 Bump version 2025-03-20 00:21:55 +00:00
Emil J. Tywoniak 813f909460 gzip: istream 2025-03-19 13:43:44 +01:00
Emil J. Tywoniak 4f3fdc8457 io: refactor string and file work into new unit 2025-03-19 13:43:42 +01:00
Akash Levy 9c5bffcf93 Use wheel 2025-03-17 17:56:02 -07:00
github-actions[bot] 0c689091e2 Bump version 2025-03-18 00:21:58 +00:00
Akash Levy 0abe8bfee8
Merge branch 'YosysHQ:main' into pyosys_copy_abc 2025-03-17 16:50:14 -07:00
Daniel Gröber de11624f42 mk: Avoid broken rebuild if program --help fails
Make will happily consider a target available if it's zero sized.

When writing output files with shell redirections for commands that usually
succeed we can apply the `|| rm $@` pattern.

For commands where --help exits with failure we always rerun the recipe
instead.
2025-03-16 10:53:55 +01:00
Alain Dargelas 517ea659b7 test branch protection 2025-03-13 16:33:25 -07:00
Alain Dargelas 355714ea66 test branch protection 2025-03-13 16:29:59 -07:00
Akash Levy e4066b784d Merge remote-tracking branch 'upstream/main' 2025-03-12 19:21:32 -07:00
github-actions[bot] e44d1d404a Bump version 2025-03-13 00:22:18 +00:00
Miodrag Milanovic 1b07d204bb Next dev cycle 2025-03-12 09:11:41 +01:00
Miodrag Milanovic c4b5190229 Release version 0.51 2025-03-12 08:31:37 +01:00
github-actions[bot] d1222c57af Bump version 2025-03-12 00:21:49 +00:00
github-actions[bot] 6462cd2167 Bump version 2025-03-11 00:22:03 +00:00
Akash Levy e360511339
Merge branch 'YosysHQ:main' into main 2025-03-10 14:21:49 -07:00
Emil J 7677a76fed
Merge pull request #4757 from YosysHQ/emil/yosys-config-version
Makefile: add YOSYS_VER and friends to CXXFLAGS for plugin compat che…
2025-03-10 17:43:55 +01:00
N. Engelhardt c74df780b7
Merge pull request #4884 from YosysHQ/docs-preview-functional_tutorial
Docs: More on FunctionalIR
2025-03-10 15:05:55 +00:00
Emil J. Tywoniak ecd8e4303d Makefile: add YOSYS_VER and friends to CXXFLAGS for plugin compat check fallback 2025-03-10 15:15:34 +01:00
Akash Levy 73417368b4 Add muxcover changes 2025-03-09 22:08:19 -07:00
Akash Levy 881080a827 Merge upstream 2025-03-05 07:54:26 -08:00
KrystalDelusion 9106d6b3bd
Merge pull request #4881 from YosysHQ/pmgen-pass-restructure
Move passes out of the passes/pmgen folder
2025-03-01 10:22:54 +13:00
Akash Levy 25c043ea16
Merge branch 'YosysHQ:main' into main 2025-02-27 14:13:29 -08:00
github-actions[bot] 78960292d0 Bump version 2025-02-27 00:21:40 +00:00
Akash Levy 9d3b7f7474
Merge branch 'YosysHQ:main' into main 2025-02-26 09:51:44 -08:00
Alain Dargelas 6971563ba9 Fix install path 2025-02-26 09:48:13 -08:00
github-actions[bot] 05c81b3f14 Bump version 2025-02-26 00:21:19 +00:00
Alain Dargelas 7e4f3a69c0 Make wheel 2025-02-25 15:39:50 -08:00
Akash Levy 92b8359e9c
Merge branch 'YosysHQ:main' into main 2025-02-24 18:36:15 -08:00
Krystine Sherwin c429aef60f
docs/rosette: More intro of SMT-LIB backend
As the intro paragraph (now) says:
> This section will introduce the SMT-LIB functional backend and what changes are needed...

The example is intended to be read without prior knowledge of the SMT-LIB backend, but the previous version glossed over a lot and instead focused on *just* what was changed.
This version should now be easier to follow without prior knowledge, while still being able to learn enough about the `Smt` version to adapt it to a different s-expression target that isn't Rosette.
Also adds a few `literalinclude`s of smtlib.cc, which is now copied to `docs/source/generated` along with producing the rosette diff on the fly (which now also has up to 20 lines of context, enabling the full `Module::write()` diff to be literal included).
2025-02-22 17:14:13 +13:00
KrystalDelusion 98f0ddd636
Merge pull request #4908 from YosysHQ/abc_warn_diff_commit
Cover all cases of submodule status in check-git-abc
2025-02-22 11:03:58 +13:00
Akash Levy 9d495737d2 Fix Makefile issues 2025-02-20 23:43:32 -08:00
Akash Levy 9db8145d25 Merge upstream 2025-02-20 23:10:48 -08:00
github-actions[bot] 0778195722 Bump version 2025-02-21 00:21:16 +00:00
KrystalDelusion 9d3ab964b2
Merge pull request #4903 from akashlevy/boost_python_fix_macos
Fix macOS boost-python issues
2025-02-20 15:17:34 +13:00
Krystine Sherwin 700b32bc38
Makefile: Fix CHECK_BOOST_PYTHON
`python-config --ldflag` includes output of `python-config --libs`; and the `$(CXX)` call in `CHECK_BOOST_PYTHON` still needs those libs.
Move all of the `$(shell $(PYTHON_CONFIG) ..` lines to the top of the block.
2025-02-20 14:38:50 +13:00
KrystalDelusion b0b53a22b1
Merge pull request #4880 from YosysHQ/clean_run-test
Makefile: Add run-test.mk to clean
2025-02-20 14:35:23 +13:00
Akash Levy f80107a4d5 Add opt_demorgan 2025-02-19 17:07:28 -08:00
Akash Levy c2a7a5f917 Add python ldflags to LINKFLAGS 2025-02-19 16:04:53 -08:00
Krystine Sherwin dc03e174af
fixup! Makefile: Warn if submodule status '+'-prefixed 2025-02-18 11:46:11 +13:00
Krystine Sherwin 03d9138744
Makefile: 'U'-prefixed submodule status
Covering all the bases, I guess?  '-'-prefix is already correctly handled by the base case message.
If the user somehow gets merge conflicts in abc, hopefully they know what they're doing.
2025-02-18 11:33:06 +13:00
Krystine Sherwin b8777d7893
Makefile: Warn if submodule status '+'-prefixed
A '+'-prefix means that the submodule is initialized and checked out, but a different commit is checked out.
If this is accidental then the user should run `git submodule update` to fix it.
If it is intentional (because e.g. the user is explicitly wanting to test Yosys with a different version of abc), then creating a new commit in Yosys to update the expected commit is also a valid solution.
2025-02-18 11:25:04 +13:00
Akash Levy 33c72b0f25
Merge branch 'YosysHQ:main' into main 2025-02-15 15:54:28 -08:00
Akash Levy d0016fed75 Smallfix 2025-02-14 16:44:43 -08:00
Akash Levy 8083d9b9da
Fix share copy 2025-02-14 16:43:58 -08:00
github-actions[bot] 38f858374c Bump version 2025-02-15 00:20:50 +00:00
Akash Levy f01bcddd9e Need wreduce in SMALL mode 2025-02-14 12:25:18 -08:00
Akash Levy 9397847959 Reenable UPF stuff for now 2025-02-14 12:21:43 -08:00
Akash Levy e5617883e1 Revert some stuff 2025-02-14 11:57:20 -08:00
Akash Levy 3bca4c10d8 Fix macOS boost-python issues 2025-02-14 11:43:00 -08:00
Akash Levy cf65cb2cf1 Copy abc stuff for pyosys 2025-02-14 10:41:16 -08:00
Akash Levy fb24decc64 Smallfixes 2025-02-14 10:38:19 -08:00
Akash Levy 7cc06ebaab Small fixes 2025-02-14 10:34:27 -08:00
Akash Levy fd811ddaee Cleanup 2025-02-14 08:48:27 -08:00
Akash Levy cefce37e59
Merge branch 'YosysHQ:main' into main 2025-02-12 09:01:46 -08:00
github-actions[bot] 359901a964 Bump version 2025-02-12 00:21:01 +00:00
Miodrag Milanovic 6f9c515a22 Next dev cycle 2025-02-11 08:40:50 +01:00
Miodrag Milanovic b5170e1394 Release version 0.50 2025-02-11 07:55:17 +01:00
Akash Levy 360a03da1d Yosys smallfix bump dep 2025-02-10 18:09:16 -08:00
github-actions[bot] ce5ad2a554 Bump version 2025-02-11 00:20:46 +00:00
Jason Xu 333588265c Remove obsolete Makefile docs/images clean call 2025-02-09 10:22:35 -05:00
Alain Dargelas bf96f94267 Annotate logic depth 2025-02-05 16:45:08 -08:00
Akash Levy 4a3dcc79c3
Merge branch 'YosysHQ:main' into main 2025-02-05 03:01:39 -08:00
github-actions[bot] ed5d9c8687 Bump version 2025-02-05 00:21:01 +00:00
Akash Levy 20c358bce2
Merge branch 'YosysHQ:main' into main 2025-02-04 10:27:16 -08:00
github-actions[bot] 77af7962af Bump version 2025-02-04 00:20:30 +00:00
Alain Dargelas 8213dd1dcf Code review 2025-01-31 15:29:33 -08:00
Alain Dargelas b4787c787f Calculate cell fanout (post-synthesis) 2025-01-31 10:17:34 -08:00
Akash Levy a96a433370
Merge branch 'YosysHQ:main' into main 2025-01-31 09:59:04 -08:00
Krystine Sherwin 0ec5f1b756
pmgen: Move passes out of pmgen folder
- Techlib pmgens are now in relevant techlibs/*.
- `peepopt` pmgens are now in passes/opt.
- `test_pmgen` is still in passes/pmgen.
- Update `Makefile.inc` and `.gitignore` file(s) to match new `*_pm.h` location,
  as well as the `#include`s.
- Change default `%_pm.h` make target to `techlibs/%_pm.h` and move it to the
  top level Makefile.
- Update pmgen target to use `$(notdir $*)` (where `$*` is the part of the file
  name that matched the '%' in the target) instead of `$(subst _pm.h,,$(notdir
  $@))`.
2025-01-31 15:18:28 +13:00