From 3d8f4999d6d357bd0c12e39766ebe6be129c2f89 Mon Sep 17 00:00:00 2001 From: Stan Lee Date: Mon, 1 Jun 2026 19:20:47 -0700 Subject: [PATCH] selected cells and modules --- passes/silimate/annotate_ff_width.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/passes/silimate/annotate_ff_width.cc b/passes/silimate/annotate_ff_width.cc index 486bb51bd..1782fa5ad 100644 --- a/passes/silimate/annotate_ff_width.cc +++ b/passes/silimate/annotate_ff_width.cc @@ -42,8 +42,8 @@ struct AnnotateFfWidthPass : public Pass { // Loop through all flip-flops and annotate with their width int annotated = 0; - for (auto module : design->modules()) { - for (auto cell : module->cells()) { + for (auto module : design->selected_modules()) { + for (auto cell : module->selected_cells()) { if (!RTLIL::builtin_ff_cell_types().count(cell->type)) continue; int width;