diff options
author | N. Engelhardt <nak@yosyshq.com> | 2022-06-01 14:38:28 +0200 |
---|---|---|
committer | N. Engelhardt <nak@yosyshq.com> | 2022-06-01 14:39:33 +0200 |
commit | a55c3db3847ad9d777a5a818b8b29dcf18ae8707 (patch) | |
tree | b46990a81ef4638f763e02bbd8017f92d36f9f4b /passes | |
parent | 01cb02c81df14762cce117a823af742ed044a5c4 (diff) | |
download | yosys-a55c3db3847ad9d777a5a818b8b29dcf18ae8707.tar.gz yosys-a55c3db3847ad9d777a5a818b8b29dcf18ae8707.tar.bz2 yosys-a55c3db3847ad9d777a5a818b8b29dcf18ae8707.zip |
have 'select -count' save the count to scratchpad entry 'select.count'
Diffstat (limited to 'passes')
-rw-r--r-- | passes/cmds/select.cc | 3 |
1 files changed, 3 insertions, 0 deletions
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 |