3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-27 00:18:46 +00:00

write_json to not write contents (cells/wires) of whiteboxes

This commit is contained in:
Eddie Hung 2019-04-18 10:30:45 -07:00
parent 290a798cec
commit 4ef03e19a8

View file

@ -130,9 +130,10 @@ struct JsonWriter
f << stringf(" }");
first = false;
}
f << stringf("\n },\n");
f << stringf("\n }");
f << stringf(" \"cells\": {");
if (!module->get_blackbox_attribute()) {
f << stringf(",\n \"cells\": {");
first = true;
for (auto c : module->cells()) {
if (use_selection && !module->selected(c))
@ -195,7 +196,9 @@ struct JsonWriter
f << stringf(" }");
first = false;
}
f << stringf("\n }\n");
f << stringf("\n }");
}
f << stringf("\n");
f << stringf(" }");
}