From 483b1536d775fbfbbc357630b60bead464d2097d Mon Sep 17 00:00:00 2001 From: Stan Lee Date: Mon, 1 Jun 2026 17:10:18 -0700 Subject: [PATCH] update pass --- passes/silimate/annotate_ff_width.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/passes/silimate/annotate_ff_width.cc b/passes/silimate/annotate_ff_width.cc index 19b674572..486bb51bd 100644 --- a/passes/silimate/annotate_ff_width.cc +++ b/passes/silimate/annotate_ff_width.cc @@ -42,9 +42,9 @@ struct AnnotateFfWidthPass : public Pass { // Loop through all flip-flops and annotate with their width int annotated = 0; - for (auto module : design->selected_modules()) { - for (auto cell : module->selected_cells()) { - if (!cell->is_builtin_ff()) + for (auto module : design->modules()) { + for (auto cell : module->cells()) { + if (!RTLIL::builtin_ff_cell_types().count(cell->type)) continue; int width; if (cell->hasParam(ID::WIDTH)) @@ -57,7 +57,7 @@ struct AnnotateFfWidthPass : public Pass { annotated++; } } - log("Annotated %d flip-flop / latch cells.\n", annotated); + log("Annotated %d flip-flops.\n", annotated); } } AnnotateFfWidthPass; PRIVATE_NAMESPACE_END