File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 44#include " bmapWriter.h"
55
66#include < fstream>
7- #include < iostream>
87#include < string>
98
109#include " odb/db.h"
@@ -24,12 +23,18 @@ void BmapWriter::writeFile(const std::string& filename,
2423 std::ofstream bmap_file (complete_name);
2524 if (bmap_file.is_open ()) {
2625 for (auto bump : region->getChipBumps ()) {
26+ std::string line;
2727 const auto inst_name = bump->getInst ()->getName ();
2828 const auto cell_type = bump->getInst ()->getMaster ()->getName ();
2929 auto point = bump->getInst ()->getOrigin ();
30- bmap_file << inst_name + " " + cell_type + " "
31- + std::to_string (point.getX () / u) + " "
32- + std::to_string (point.getY () / u) + " - -\n " ;
30+ line.append (inst_name);
31+ line.append (" " );
32+ line.append (cell_type);
33+ line.append (" " );
34+ line.append (std::to_string (point.getX () / u));
35+ line.append (std::to_string (point.getY () / u));
36+ line.append (" - -\n " );
37+ bmap_file << line;
3338 }
3439 bmap_file.close ();
3540 } else {
You can’t perform that action at this time.
0 commit comments