3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-07-23 07:32:32 +00:00

Added is_clock_gated attr to flops created via clockgate.cc pass

This commit is contained in:
AdvaySingh1 2026-02-20 11:34:08 -08:00
parent 84a03a6b9a
commit ec537b189f
2 changed files with 3 additions and 1 deletions

View file

@ -448,7 +448,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++;
}