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

Method writeComp

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

Source from the content-addressed store, hash-verified

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{
121 PlaceDB::coordinate_type xx = n.xl();
122 PlaceDB::coordinate_type yy = n.yl();
123 if (n.id() < m_db.numMovable())
124 {
125 if (x)
126 {
127 xx = x[n.id()];
128 }
129 if (y)
130 {
131 yy = y[n.id()];
132 }
133 }
134
135 fprintf(os, " - %s %s\n", m_db.nodeName(n).c_str(), m_db.macroName(n).c_str());
136 fprintf(os, " + %s ( %d %d ) %s ;\n",
137 std::string(PlaceStatus(n.status())).c_str(),
138 xx, yy,
139 std::string(Orient(n.orient())).c_str());
140}
141std::string DefWriter::ltrim(std::string const& s) const
142{
143 size_t start = s.find_first_not_of(" \n\r\t\f\v");

Callers

nothing calls this directly

Calls 5

PlaceStatusClass · 0.85
OrientClass · 0.85
xlMethod · 0.80
ylMethod · 0.80
numMovableMethod · 0.80

Tested by

no test coverage detected