3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-24 01:25:33 +00:00

AigMaker refactoring

This commit is contained in:
Clifford Wolf 2015-06-10 23:00:12 +02:00
parent e534881794
commit 1ae360cf72
4 changed files with 165 additions and 90 deletions

View file

@ -225,7 +225,7 @@ struct JsonWriter
f << stringf("\"%sport\", \"%s\", %d", node.inverter ? "n" : "",
log_id(node.portname), node.portbit);
else if (node.left_parent < 0 && node.right_parent < 0)
f << stringf("\"%s\"", node.inverter ? "false" : "true");
f << stringf("\"%s\"", node.inverter ? "true" : "false");
else
f << stringf("\"%s\", %d, %d", node.inverter ? "nand" : "and", node.left_parent, node.right_parent);
for (auto &op : node.outports)