3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-06-05 16:40:53 +00:00

Fix depth bug.

This commit is contained in:
nella 2026-06-03 14:54:19 +02:00
parent 4eee3e9e4f
commit 8a79cafc18

View file

@ -180,7 +180,7 @@ std::pair<SigSpec, SigSpec> reduce_scheduled(Module *module, std::vector<DepthSi
DepthSig d = ready[i + 3];
auto [sum, carry] = emit_compressor_42(module, a.sig, b.sig, c.sig, d.sig, width);
int dmax = std::max({a.depth, a.depth, a.depth, a.depth});
int dmax = std::max({a.depth, b.depth, c.depth, d.depth});
compressed.push_back({sum, dmax + 2});
compressed.push_back({carry, dmax + 2});