3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-07-24 16:12:33 +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 723ddd74cf
commit 8f5b8cb46c
2 changed files with 3 additions and 1 deletions

View file

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