diff --git a/kernel/constids.inc b/kernel/constids.inc index 59f7246e9..02dc64a12 100644 --- a/kernel/constids.inc +++ b/kernel/constids.inc @@ -909,6 +909,7 @@ X(interface_type) X(interfaces_replaced_in_module) X(invertible_pin) X(iopad_external_pin) +X(is_clock_gated) X(is_inferred) X(is_interface) X(it) diff --git a/passes/techmap/clockgate.cc b/passes/techmap/clockgate.cc index 01ab2e771..6a5f95d5b 100644 --- a/passes/techmap/clockgate.cc +++ b/passes/techmap/clockgate.cc @@ -428,7 +428,8 @@ struct ClockgatePass : public Pass { ff.sig_clk = (*it).second.new_net; // Rebuild the flop - (void)ff.emit(); + Cell *new_ff = ff.emit(); + new_ff->set_bool_attribute(ID::is_clock_gated); gated_flop_count++; }