3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-06-01 22:57:54 +00:00

Merge pull request #5817 from YosysHQ/emil/clockgate-reject-sdffe

clockgate: reject $sdffe to fix priority handling
This commit is contained in:
Emil J 2026-05-08 18:38:51 +00:00 committed by GitHub
commit 1f02343268
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 113 additions and 100 deletions

View file

@ -337,6 +337,8 @@ struct ClockgatePass : public Pass {
FfData ff(nullptr, cell);
// It would be odd to get constants, but we better handle it
if (ff.has_ce) {
if (ff.has_srst && !ff.ce_over_srst)
continue;
if (!ff.sig_clk.is_bit() || !ff.sig_ce.is_bit())
continue;
if (!ff.sig_clk[0].is_wire() || !ff.sig_ce[0].is_wire())