| 116 | fprintf(os, "END COMPONENTS\n"); |
| 117 | } |
| 118 | void 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 | } |
| 141 | std::string DefWriter::ltrim(std::string const& s) const |
| 142 | { |
| 143 | size_t start = s.find_first_not_of(" \n\r\t\f\v"); |
nothing calls this directly
no test coverage detected