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:
commit
1f02343268
6 changed files with 113 additions and 100 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue