Akash Levy
241852eebd
Test merge from upstream
2026-02-04 02:07:01 -08:00
Akash Levy
af7e124c26
Merge pull request #101 from Silimate/yosys_abc_test1
...
Small abc update to see what happens
2026-02-04 01:45:56 -08:00
Akash Levy
dd08ba75bc
Merge pull request #100 from Silimate/negopt-pass-pr
...
Add negopt pass with comprehensive pattern matching
2026-02-04 01:44:45 -08:00
Akash Levy
715e062bcd
Merge branch 'main' into negopt-pass-pr
2026-02-04 00:15:53 -08:00
Akash Levy
33bcfe26dd
Merge branch 'main' into sim
2026-02-03 23:57:24 -08:00
Akash Levy
23ed2ef523
Small abc update to see what happens
2026-02-03 23:55:25 -08:00
Akash Levy
807df40422
Undo the weird abc changes
2026-02-03 23:21:48 -08:00
Robert O'Callahan
7326bb7d66
Only reuse ABC processes if we're using yosys-abc and it was built with ENABLE_READLINE
...
(cherry picked from commit 5054fd17d7b70f2df97360bb0f0cc1c92a6ffe72)
2026-02-04 17:19:10 +13:00
tondapusili
643427d9c9
Add negopt pass with comprehensive pattern matching
...
This commit introduces the negopt pass with pre/post optimization modes
for handling negation patterns in arithmetic circuits.
Pre-optimization patterns (expose for tree balancing):
- manual2sub: (a + ~b) + 1 → a - b
- sub2neg: a - b → a + (-b)
- negexpand: -(a + b) → (-a) + (-b) [with output width fix]
- negneg: -(-a) → a
- negmux: -(s ? a : b) → s ? (-a) : (-b)
Post-optimization patterns (cleanup/rebuild):
- negrebuild: (-a) + (-b) → -(a + b)
- muxneg: s ? (-a) : (-b) → -(s ? a : b)
- neg2sub: a + (-b) → a - b
All patterns use nusers() for fanout checking (standard Yosys style).
Comprehensive test coverage with positive/negative cases and formal
verification via equiv_opt.
2026-02-03 17:21:21 -08:00
Stan Lee
bea2a7d473
add few debug
2026-02-03 14:40:33 -08:00
Stan Lee
ce959ec1bb
fixes
2026-02-03 12:42:33 -08:00
Stan Lee
6620d098d4
lower verbosity
2026-02-03 12:05:14 -08:00
Akash Levy
8e5d24aa6b
Bump yosys to latest
2026-02-03 06:08:36 -08:00
KrystalDelusion
414b1b6019
Merge pull request #5651 from rocallahan/abc-error-nonfatal
...
Handle ABC nonfatal "Error:" messages
2026-02-03 08:55:05 +13:00
Akash Levy
bdc9ad9f53
Bump version
2026-01-30 19:29:00 -08:00
Miodrag Milanović
ac427a79b0
Merge pull request #5644 from nataliakokoromyti/upstream-linux-perf-unistd
...
Add unistd header for Linux
2026-01-30 08:17:43 +01:00
Robert O'Callahan
9c56c93632
Add missing newlines to some 'log_error's
2026-01-30 01:52:19 +00:00
Robert O'Callahan
6af1b5b19c
Don't treat ABC 'Error:' output as indicating a fatal error, since these messages aren't necessarily fatal
2026-01-30 01:52:19 +00:00
Akash Levy
a9cf998f9f
Merge from upstream
2026-01-29 17:46:44 -08:00
Emil J
a68fee1115
Merge pull request #5646 from rocallahan/debug-design_equal
...
Dump module details when `design_equal` fails
2026-01-29 18:57:24 +01:00
Akash Levy
1dd846022b
Fix opt_dff cell naming
2026-01-28 23:36:49 -08:00
Akash Levy
9f911e3d63
Reorder ff.remove in opt_dff
2026-01-28 20:58:01 -08:00
Akash Levy
4e937450b4
Merge pull request #97 from Silimate/reg-rename
...
Bug fix for reg_rename pass
2026-01-28 19:08:26 -08:00
Akash Levy
16087ae931
Merge from upstream
2026-01-28 18:17:50 -08:00
Stan Lee
c0a1529eb8
reduce verbosity
2026-01-28 18:05:21 -08:00
Akash Levy
e8d27892f0
Merge pull request #96 from Silimate/fanoutbuf_src_attr
...
Changed fanoutbuf.cc to include src attributes on buffers connected t…
2026-01-28 17:50:46 -08:00
Stan Lee
04faedd131
syntax err
2026-01-28 17:40:57 -08:00
Stan Lee
dfef18010d
shorter lines
2026-01-28 17:20:19 -08:00
Stan Lee
932c4452b5
better working implementation
2026-01-28 17:00:46 -08:00
AdvaySingh1
3ce57442de
Changed fanoutbuf.cc to include src attributes on buffers connected to input and output wires
2026-01-28 15:33:13 -08:00
Robert O'Callahan
139c38ecfa
Dump module details when design_equal fails
2026-01-28 18:32:12 +00:00
nella
8f6c4d40e4
Merge pull request #5623 from YosysHQ/nella/opt-dff-rewrite
...
opt_dff restructure.
2026-01-28 14:41:40 +01:00
Natalia
6a6e5f0f54
linux_perf: only include unistd on Linux
2026-01-28 03:44:33 -08:00
Natalia
fc2b7c317f
linux_perf: include unistd for POSIX I/O
2026-01-28 03:14:20 -08:00
Emil J
75008b70e5
Merge pull request #5638 from YosysHQ/emil/linux_perf-fix-help
...
linux_perf: mark internal, fix help formatting
2026-01-28 11:06:08 +01:00
Krystine Sherwin
8ed7ac04d8
linux_perf.cc: Fix overlength codeblock
2026-01-28 08:17:56 +13:00
Krystine Sherwin
4031310ebb
linux_perf.cc: Use formatted_help
...
Gets the codeblock formatting better.
Also fold the on|off into a single usage.
2026-01-28 08:10:31 +13:00
Akash Levy
b356c9ac3e
Add unistd header for Linux
2026-01-26 23:12:02 -08:00
Akash Levy
26f5ff3d74
Merge from upstream
2026-01-26 22:16:11 -08:00
Gus Smith
09ceadfde7
Merge pull request #4269 from povik/icells_not_derived
...
Avoid `module_not_derived` on internal cells in techmap result
2026-01-26 14:48:40 -08:00
Emil J. Tywoniak
ef3b2b0380
linux_perf: mark internal, fix help formatting
2026-01-26 22:59:20 +01:00
nella
9367090763
OptDff more accurate ctrl/pattern desc.
2026-01-26 22:19:36 +01:00
nella
5803461c24
opt_dff pattern extraction.
2026-01-26 22:10:10 +01:00
Emil J
29a9e42b64
Merge pull request #5628 from rocallahan/linux-perf-ctl
...
Add `linux_perf` command to turn Linux perf recording on and off.
2026-01-26 19:32:55 +01:00
nella
8576055dea
Fix tests.
2026-01-26 18:41:41 +01:00
Emil J
673c8d1ae7
Merge pull request #5615 from rocallahan/remove-used-signals-updates
...
Don't update `used_signals` for retained wires in `rmunused_module_signals`.
2026-01-26 15:47:25 +01:00
nella
a75e0b2e92
opt_dff minor cleanup, added tests for comp var.
2026-01-26 14:24:01 +01:00
Robert O'Callahan
32e96605d4
Don't update `used_signals` for retained wires in `rmunused_module_signals`.
...
These updates should not be necessary. In fact, if they were necessary, this code
would be buggy, because the results would depend on the order in which wires are traversed:
If wire A is retained, which causes an update to `used_signals`, which then causes wire B
to be retained when it otherwise wouldn't be, then we would get different results depending
on whether A is visited before B.
These updates will also make it difficult to process these wires in parallel.
2026-01-24 03:41:18 +00:00
Emil J
f5ea73eb97
Merge pull request #5557 from nataliakokoromyti/lut2mux-word
...
lut2mux: add -word option
2026-01-23 17:24:41 +01:00
nella
0e4282d442
Add more opt_dff documentation.
2026-01-23 09:17:14 +01:00