Skip to content

Commit 1825999

Browse files
committed
cts: update debug prints
Signed-off-by: arthurjolo <[email protected]>
1 parent b6f08ac commit 1825999

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

src/cts/src/TechChar.cpp

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
#include <string>
1818
#include <utility>
1919
#include <vector>
20-
#include <fstream>
21-
#include <iostream>
2220

2321
#include "db_sta/dbSta.hh"
2422
#include "odb/db.h"
@@ -952,7 +950,7 @@ std::vector<TechChar::SolutionData> TechChar::createPatterns(
952950
odb::dbNet* net = nullptr;
953951
// clang-format off
954952
debugPrint(logger_, CTS, "tech char", 1, "*createPatterns for #nodes = {}"
955-
" #topologies = {}", setupWirelength, numberOfNodes, numberOfTopologies);
953+
" #topologies = {}", numberOfNodes, numberOfTopologies);
956954
// clang-format on
957955
// For each possible topology...
958956
for (unsigned solutionCounterInt = 0; solutionCounterInt < numberOfTopologies;
@@ -1469,20 +1467,15 @@ std::vector<TechChar::ResultData> TechChar::characterizationPostProcess()
14691467
selectedSolutions.push_back(selectedResults);
14701468
}
14711469
}
1472-
std::ofstream arquivo("test_insetion_delay_techChar_tbl.csv");
14731470

1474-
if (!arquivo.is_open()) {
1475-
logger_->error(CTS, 2, "Erro ao criar o arquivo CSV");
1476-
}
14771471
// Creates variables to set the max and min values. These are normalized.
14781472
unsigned minResultWirelength = std::numeric_limits<unsigned>::max();
14791473
unsigned maxResultWirelength = 0;
14801474
unsigned minResultCapacitance = std::numeric_limits<unsigned>::max();
14811475
unsigned maxResultCapacitance = 0;
14821476
unsigned minResultSlew = std::numeric_limits<unsigned>::max();
14831477
unsigned maxResultSlew = 0;
1484-
// Cabeçalho
1485-
arquivo << "Wl,pinSlew,inSlew,totalcap,load,pinArrival,totalPower\n";
1478+
14861479
std::vector<ResultData> convertedSolutions;
14871480
for (ResultData solution : selectedSolutions) {
14881481
if (solution.pinSlew <= options_->getMaxCharSlew()) {
@@ -1515,7 +1508,6 @@ std::vector<TechChar::ResultData> TechChar::characterizationPostProcess()
15151508
// Add missing information.
15161509
convertedResult.totalPower = solution.totalPower;
15171510
convertedResult.isPureWire = solution.isPureWire;
1518-
arquivo << convertedResult.wirelength << "," << convertedResult.pinSlew << "," << convertedResult.inSlew << "," << convertedResult.totalcap << "," << convertedResult.load << "," << convertedResult.pinArrival << "," << convertedResult.totalPower << "\n";
15191511
std::vector<std::string> topologyResult;
15201512
for (int topologyIndex = 0; topologyIndex < solution.topology.size();
15211513
topologyIndex++) {
@@ -1536,7 +1528,7 @@ std::vector<TechChar::ResultData> TechChar::characterizationPostProcess()
15361528
convertedSolutions.push_back(convertedResult);
15371529
}
15381530
}
1539-
arquivo.close();
1531+
15401532
// Sets the min and max values and returns the result vector.
15411533
minSlew_ = minResultSlew;
15421534
maxSlew_ = maxResultSlew;

0 commit comments

Comments
 (0)