From: N. Engelhardt Date: Wed, 1 Jun 2022 12:38:28 +0000 (+0200) Subject: have 'select -count' save the count to scratchpad entry 'select.count' X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a55c3db3847ad9d777a5a818b8b29dcf18ae8707;p=yosys.git have 'select -count' save the count to scratchpad entry 'select.count' --- 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