MCPcopy Create free account
hub / github.com/NVlabs/AutoDMP / writeCompBlock

Method writeCompBlock

dreamplace/ops/place_io/src/DefWriter.cpp:108–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106 return true;
107}
108void DefWriter::writeCompBlock(FILE* os, std::vector<Node> const& vNode, std::vector<PlaceDB::index_type> const& vNodeIndex,
109 PlaceDB::coordinate_type const* x, PlaceDB::coordinate_type const* y) const
110{
111 fprintf(os, "COMPONENTS %lu ;\n", vNodeIndex.size());
112 for (auto node_id : vNodeIndex)
113 {
114 writeComp(os, vNode.at(node_id), x, y);
115 }
116 fprintf(os, "END COMPONENTS\n");
117}
118void DefWriter::writeComp(FILE* os, Node const& n,
119 PlaceDB::coordinate_type const* x, PlaceDB::coordinate_type const* y) const
120{

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.80
atMethod · 0.80

Tested by

no test coverage detected