aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorN. Engelhardt <nak@yosyshq.com>2023-01-11 16:41:44 +0100
committerGitHub <noreply@github.com>2023-01-11 16:41:44 +0100
commit4173daa70803ed6214eaf6d8e9b20ac8132cddbe (patch)
treef97a9ab9fd8680d14c9fbd1f54b2b4b5d8a1a36d
parent2e3c08adc41a8d1cc1ac383d3b048204a691672a (diff)
parent7971154e727cc4d7c4b8c62ad43a28645bb66795 (diff)
downloadyosys-4173daa70803ed6214eaf6d8e9b20ac8132cddbe.tar.gz
yosys-4173daa70803ed6214eaf6d8e9b20ac8132cddbe.tar.bz2
yosys-4173daa70803ed6214eaf6d8e9b20ac8132cddbe.zip
Merge pull request #3605 from gadfort/stat-json-area
-rw-r--r--passes/cmds/stat.cc3
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)