mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-13 04:28:18 +00:00
Merge pull request #3605 from gadfort/stat-json-area
This commit is contained in:
commit
4173daa708
|
@ -275,6 +275,9 @@ struct statdata_t
|
||||||
log(" \"num_memory_bits\": %u,\n", num_memory_bits);
|
log(" \"num_memory_bits\": %u,\n", num_memory_bits);
|
||||||
log(" \"num_processes\": %u,\n", num_processes);
|
log(" \"num_processes\": %u,\n", num_processes);
|
||||||
log(" \"num_cells\": %u,\n", num_cells);
|
log(" \"num_cells\": %u,\n", num_cells);
|
||||||
|
if (area != 0) {
|
||||||
|
log(" \"area\": %f,\n", area);
|
||||||
|
}
|
||||||
log(" \"num_cells_by_type\": {\n");
|
log(" \"num_cells_by_type\": {\n");
|
||||||
bool first_line = true;
|
bool first_line = true;
|
||||||
for (auto &it : num_cells_by_type)
|
for (auto &it : num_cells_by_type)
|
||||||
|
|
Loading…
Reference in a new issue