From a55c3db3847ad9d777a5a818b8b29dcf18ae8707 Mon Sep 17 00:00:00 2001 From: "N. Engelhardt" Date: Wed, 1 Jun 2022 14:38:28 +0200 Subject: [PATCH] have 'select -count' save the count to scratchpad entry 'select.count' --- passes/cmds/select.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/passes/cmds/select.cc b/passes/cmds/select.cc index d609c8d0f..b112b145c 100644 --- a/passes/cmds/select.cc +++ b/passes/cmds/select.cc @@ -1456,7 +1456,10 @@ struct SelectPass : public Pass { } } if (count_mode) + { + design->scratchpad_set_int("select.count", total_count); log("%d objects.\n", total_count); + } if (f != nullptr) fclose(f); #undef LOG_OBJECT -- 2.30.2