diff options
author | Peter Gadfort <peter.gadfort@gmail.com> | 2022-12-29 21:51:46 -0500 |
---|---|---|
committer | Peter Gadfort <peter.gadfort@gmail.com> | 2022-12-29 21:51:46 -0500 |
commit | 58cca9592d64178a097c6345a576b1df022cd50c (patch) | |
tree | dc5578f996f3bcc3c91e18c7c15c8d55a3bdfeb7 /passes/cmds | |
parent | 3ebc50dee4007f8cca4ffc0e850bc3e86f7641f4 (diff) | |
download | yosys-58cca9592d64178a097c6345a576b1df022cd50c.tar.gz yosys-58cca9592d64178a097c6345a576b1df022cd50c.tar.bz2 yosys-58cca9592d64178a097c6345a576b1df022cd50c.zip |
stat: ensure area is included in json output
Signed-off-by: Peter Gadfort <peter.gadfort@gmail.com>
Diffstat (limited to 'passes/cmds')
-rw-r--r-- | passes/cmds/stat.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/passes/cmds/stat.cc b/passes/cmds/stat.cc index 10e98952e..522957f39 100644 --- a/passes/cmds/stat.cc +++ b/passes/cmds/stat.cc @@ -275,6 +275,9 @@ struct statdata_t log(" \"num_memory_bits\": %u,\n", num_memory_bits); log(" \"num_processes\": %u,\n", num_processes); log(" \"num_cells\": %u,\n", num_cells); + if (area != 0) { + log(" \"area\": %f,\n", area); + } log(" \"num_cells_by_type\": {\n"); bool first_line = true; for (auto &it : num_cells_by_type) |