mirror of
https://github.com/YosysHQ/yosys
synced 2026-05-13 13:45:28 +00:00
clockgate: reject $sdffe for correct priority handling
This commit is contained in:
parent
a966d06524
commit
f4a10a4808
1 changed files with 2 additions and 0 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