mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 09:05:32 +00:00
clockgate: bail on constant signals
This commit is contained in:
parent
dc039d8be4
commit
7e473299bd
2 changed files with 48 additions and 1 deletions
|
@ -151,7 +151,8 @@ struct ClockgatePass : public Pass {
|
|||
continue;
|
||||
|
||||
FfData ff(&initvals, cell);
|
||||
if (ff.has_ce) {
|
||||
// It would be odd to get constants, but we better handle it
|
||||
if (ff.has_ce && ff.sig_clk.is_wire() && ff.sig_ce.is_wire()) {
|
||||
ce_ffs.insert(cell);
|
||||
|
||||
ClkNetInfo info = clk_info_from_ff(ff);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue