diff options
author | N. Engelhardt <nak@yosyshq.com> | 2022-06-01 16:01:07 +0200 |
---|---|---|
committer | N. Engelhardt <nak@yosyshq.com> | 2022-06-01 16:01:07 +0200 |
commit | 61b05051e10e4a203eb13e67ccfc72520e8ca111 (patch) | |
tree | 6da93882606914ce59e816a07b8df89d6a3c80cd | |
parent | a55c3db3847ad9d777a5a818b8b29dcf18ae8707 (diff) | |
download | yosys-61b05051e10e4a203eb13e67ccfc72520e8ca111.tar.gz yosys-61b05051e10e4a203eb13e67ccfc72520e8ca111.tar.bz2 yosys-61b05051e10e4a203eb13e67ccfc72520e8ca111.zip |
also make 'stat' save counts to scratchpad
-rw-r--r-- | passes/cmds/stat.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/passes/cmds/stat.cc b/passes/cmds/stat.cc index fffdda48e..c858c8631 100644 --- a/passes/cmds/stat.cc +++ b/passes/cmds/stat.cc @@ -381,6 +381,15 @@ struct StatPass : public Pass { log("\n"); data.log_data(top_mod->name, true); + design->scratchpad_set_int("stat.num_wires", data.num_wires); + design->scratchpad_set_int("stat.num_wire_bits", data.num_wire_bits); + design->scratchpad_set_int("stat.num_pub_wires", data.num_pub_wires); + design->scratchpad_set_int("stat.num_pub_wire_bits", data.num_pub_wire_bits); + design->scratchpad_set_int("stat.num_memories", data.num_memories); + design->scratchpad_set_int("stat.num_memory_bits", data.num_memory_bits); + design->scratchpad_set_int("stat.num_processes", data.num_processes); + design->scratchpad_set_int("stat.num_cells", data.num_cells); + design->scratchpad_set_int("stat.area", data.area); } log("\n"); |