Commit Graph

17199 Commits

Author SHA1 Message Date
junyao 46f9f887f7 setundef: strip init attributes from undriven wires (fixes #5835)
When `setundef -undriven` connects an undriven wire to a replacement
value, the wire's \\init attribute (if present) is now removed. Previously,
the init attribute was left intact, causing downstream passes like
opt_merge to report "Conflicting init values" errors because the init
value contradicted the newly assigned constant.

For wires that are entirely undriven, the init attribute is removed
completely. For partially undriven wires (where only some bits are
undriven), only the corresponding init bits are cleared to x.

Wires driven by flip-flops or other cells are not affected, as they
are excluded from the undriven signal set before this code runs.
2026-05-31 00:18:49 +08:00
Miodrag Milanović e56c6a954c
Merge pull request #5915 from YosysHQ/emil/auto-lifetime-hotfix-nosync
genrtlil: don't avoid emitting flops for nosync
2026-05-29 14:08:45 +00:00
Miodrag Milanović b85777a6e6
Merge pull request #5914 from pu-cc/gatemate-scopename
gatemate: add option to create 'scopename' attributes when flattening netlist
2026-05-29 10:31:04 +00:00
Emil J. Tywoniak 80bdbaa010 genrtlil: don't avoid emitting flops for nosync 2026-05-29 11:37:08 +02:00
Patrick Urban 1d86b3cd6e gatemate: add option to create 'scopename' attributes when flattening the netlist 2026-05-28 14:46:25 +02:00
Miodrag Milanović 1801abf30a
Merge pull request #5913 from YosysHQ/abcexternal
Putting back some Makefile.conf
2026-05-28 09:49:16 +00:00
Miodrag Milanovic d8587f44f0 Putting back some Makefile.conf 2026-05-28 11:13:29 +02:00
KrystalDelusion 4230ebff71
Merge pull request #5912 from YosysHQ/krys/opt_clean_docs
opt_clean: Set group for docs gen
2026-05-28 08:35:52 +00:00
nella 715bc4d7d2
Merge pull request #5909 from YosysHQ/nella/fuse_dsp
Add matching for fused mac operations for Nexus (fix #5906).
2026-05-28 08:28:16 +00:00
nella 1414012676 Add sign and op checks. 2026-05-28 09:58:18 +02:00
nella 7fef67a141 Simplify nexus map. 2026-05-28 09:58:18 +02:00
nella d6106f141c Add matching for fused mac operations for Nexus (fix #5906). 2026-05-28 09:58:18 +02:00
Krystine Sherwin 680bb69d85
opt_clean: Set group for docs gen 2026-05-28 14:50:11 +12:00
Emil J 94ec78b6e8
Merge pull request #5907 from JesseDebuger/main
proc: ignore nosync temporaries in always_latch checks
2026-05-27 07:33:42 +00:00
junyao 6f111118de proc: ignore nosync temporaries in always_latch checks 2026-05-26 00:56:07 +08:00
Miodrag Milanović 9d0cdb8551
Merge pull request #5901 from YosysHQ/test_cleanup
Test out-of-tree build support
2026-05-20 10:55:28 +00:00
Miodrag Milanovic 4c8e61a52b Expose SBY binary location 2026-05-19 16:08:21 +02:00
Miodrag Milanovic 07924a3c62 Use common.mk for sva tests as well 2026-05-19 15:15:41 +02:00
Miodrag Milanovic 2b3f4c37f5 Fix functional tests 2026-05-19 14:42:08 +02:00
Miodrag Milanovic 15e09163cd Do not use Makefile.conf 2026-05-19 14:29:06 +02:00
Miodrag Milanovic c0779f488a Make out of tree build testing possible 2026-05-19 14:26:07 +02:00
Emil J 5c6de04467
Merge pull request #5875 from YosysHQ/emil/threading-fix-no-threads
threading: redirect locks to no-op on single-threaded builds
2026-05-18 19:22:19 +00:00
Miodrag Milanović ffa8618413
Merge pull request #5896 from YosysHQ/remove_file
Remove file added by mistake
2026-05-18 15:39:55 +00:00
Miodrag Milanovic 2159a0e634 Remove file added by mistake 2026-05-18 17:00:16 +02:00
Emil J. Tywoniak 0c2786be1f threading: make no-op locks specialized to Mutex instead of templates 2026-05-18 16:26:14 +02:00
Emil J. Tywoniak 1c831aa50d threading: whitespace 2026-05-18 16:26:14 +02:00
Emil J. Tywoniak d322e2fbe0 threading: redirect locks to no-op when ENABLE_THREADS=0 or undefined YOSYS_ENABLE_THREADS 2026-05-18 16:14:01 +02:00
Miodrag Milanović 7bcda9d304
Merge pull request #5893 from YosysHQ/update_log
Log infrastructure cleanup
2026-05-18 11:10:11 +00:00
Miodrag Milanović 8b68ac04f7
Merge pull request #5890 from strophy/fix-aiger-tests-abcexternal
Fix aiger tests when ABCEXTERNAL is set
2026-05-18 07:59:17 +00:00
Miodrag Milanovic 35d13e1c32 Update documentation/demos based on cleanup 2026-05-18 09:13:46 +02:00
Miodrag Milanovic 4a4c3a3be6 Make better validation 2026-05-18 08:50:38 +02:00
Miodrag Milanovic ef092e1f15 Include conf so individual test running works 2026-05-18 08:50:20 +02:00
Miodrag Milanovic 75dcbe03c6 Convert RTLIL::unescape_id of IdString to unescape() 2026-05-16 19:49:45 +02:00
Miodrag Milanovic 8bbc3c359c Remove id2cstr uses in our code base 2026-05-16 19:49:45 +02:00
Leon White 59c1bc35cb Fix aiger tests when ABCEXTERNAL is set 2026-05-16 09:12:20 +02:00
Emil J e87a9bd9a7
Merge pull request #5888 from mikesinouye/pmux
opt_muxtree: reuse knowledge_t and pass by reference
2026-05-15 16:21:33 +00:00
Miodrag Milanović 4b3165dd50
Merge pull request #5859 from YosysHQ/coverage
Generate coverage for tests
2026-05-15 15:37:58 +00:00
Miodrag Milanović 1d87cefd80
Merge pull request #5882 from YosysHQ/std_cpp20
Bump required standard to C++20
2026-05-15 13:13:43 +00:00
Miodrag Milanović 36eceed720
Merge pull request #5862 from codexplorer-fish/cleaning-up-log-id
Cleaning up log_id()
2026-05-15 11:07:43 +00:00
Miodrag Milanovic 992eceaaa0 Ignore configured location 2026-05-15 12:53:04 +02:00
Miodrag Milanovic e4a3b44e8e Fixed not intentional log_signal removal 2026-05-15 12:34:54 +02:00
Miodrag Milanovic 8022b5445b Convert to using LLVM code coverage 2026-05-15 11:59:22 +02:00
Miodrag Milanovic c16e0352f7 Bump to clang-22 on macOS as well 2026-05-15 11:13:59 +02:00
Martin Povišer b423cc3bd6
Merge pull request #5884 from jeras/main
documentation: updated description of 'abc' argument '-dont_use'
2026-05-15 01:13:07 +00:00
Miodrag Milanovic 965a3e67f0 Remove pmgen related users of log_id 2026-05-14 17:28:10 +02:00
Miodrag Milanovic 4a7878b17f Fixing couple more conversion errors 2026-05-14 15:58:58 +02:00
Miodrag Milanovic 9580ebabc5 log_id here was needed for unescaping 2026-05-14 12:35:01 +02:00
Miodrag Milanovic 58df27ce7c Refactor uses of log_id in pgm files 2026-05-14 12:21:32 +02:00
Miodrag Milanovic c6f53aec5f Fixed log_id instances used with fprintf 2026-05-14 11:28:16 +02:00
Miodrag Milanovic 70b17181b4 Bump gcc and clang versions 2026-05-14 10:51:40 +02:00