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:
parent
290a798cec
commit
4ef03e19a8
1 changed files with 59 additions and 56 deletions
|
@ -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(" }");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue