|
2 | 2 | // Copyright (c) 2019-2025, The OpenROAD Authors |
3 | 3 |
|
4 | 4 | #include "TechChar.h" |
5 | | -#include <spdlog/spdlog.h> |
6 | 5 |
|
7 | 6 | #include <algorithm> |
8 | 7 | #include <bitset> |
@@ -956,7 +955,8 @@ std::vector<TechChar::SolutionData> TechChar::createPatterns( |
956 | 955 | // For each possible topology... |
957 | 956 | for (unsigned solutionCounterInt = 0; solutionCounterInt < numberOfTopologies; |
958 | 957 | solutionCounterInt++) { |
959 | | - debugPrint(logger_, CTS, "tech char", 1, "**topology {}", solutionCounterInt + 1); |
| 958 | + debugPrint( |
| 959 | + logger_, CTS, "tech char", 1, "**topology {}", solutionCounterInt + 1); |
960 | 960 | std::stringstream tmp; |
961 | 961 | tmp << "***IN "; |
962 | 962 | // Creates a bitset that represents the buffer locations. |
@@ -994,7 +994,7 @@ std::vector<TechChar::SolutionData> TechChar::createPatterns( |
994 | 994 | } else { |
995 | 995 | // Buffer, need to create the instance and a new net. |
996 | 996 | nodesWithoutBuf++; |
997 | | - for(auto i = 0; i < nodesWithoutBuf - 1; i++) { |
| 997 | + for (int i = 0; i < nodesWithoutBuf - 1; i++) { |
998 | 998 | tmp << "-- "; |
999 | 999 | } |
1000 | 1000 | tmp << "-> "; |
@@ -1045,7 +1045,7 @@ std::vector<TechChar::SolutionData> TechChar::createPatterns( |
1045 | 1045 | odb::dbBPin* outPortPin = odb::dbBPin::create(outPort); |
1046 | 1046 | // Updates the topology with the output port, old new, possible instances |
1047 | 1047 | // and other attributes. |
1048 | | - for(auto i = 0; i < nodesWithoutBuf; i++) { |
| 1048 | + for (int i = 0; i < nodesWithoutBuf; i++) { |
1049 | 1049 | tmp << "-- "; |
1050 | 1050 | } |
1051 | 1051 | tmp << "OUT"; |
@@ -1353,8 +1353,8 @@ void TechChar::updateBufferTopologies(TechChar::SolutionData& solution) |
1353 | 1353 |
|
1354 | 1354 | std::vector<size_t> TechChar::getCurrConfig(const SolutionData& solution) |
1355 | 1355 | { |
1356 | | - if(solution.isPureWire) { |
1357 | | - debugPrint(logger_, CTS, "tech char", 1,"**currConfig is a pure wire"); |
| 1356 | + if (solution.isPureWire) { |
| 1357 | + debugPrint(logger_, CTS, "tech char", 1, "**currConfig is a pure wire"); |
1358 | 1358 | return {}; |
1359 | 1359 | } |
1360 | 1360 | std::vector<size_t> config; |
@@ -1574,7 +1574,8 @@ void TechChar::create() |
1574 | 1574 | int64_t topologiesCreated = 0; |
1575 | 1575 | for (unsigned setupWirelength : wirelengthsToTest_) { |
1576 | 1576 | // Creates the topologies for the current wirelength. |
1577 | | - debugPrint(logger_, CTS, "tech char", 1, "Wirelength = {}", setupWirelength); |
| 1577 | + debugPrint( |
| 1578 | + logger_, CTS, "tech char", 1, "Wirelength = {}", setupWirelength); |
1578 | 1579 | std::vector<SolutionData> topologiesVector |
1579 | 1580 | = createPatterns(setupWirelength); |
1580 | 1581 | // Creates an OpenSTA instance. |
@@ -1623,7 +1624,7 @@ void TechChar::create() |
1623 | 1624 | r1, |
1624 | 1625 | c1, |
1625 | 1626 | piExists); |
1626 | | - |
| 1627 | + |
1627 | 1628 | // clang-format off |
1628 | 1629 | debugPrint(logger_, CTS, "tech char", 1, "*# bufs = {}; " |
1629 | 1630 | "# nodes with buf = {}", |
@@ -1753,7 +1754,12 @@ unsigned TechChar::getBufferingCombo(size_t numBuffers, size_t numNodes) |
1753 | 1754 | std::pair iPair(numBuffers, numNodes); |
1754 | 1755 | auto iter = bufferingComboTable_.find(iPair); |
1755 | 1756 | if (iter != bufferingComboTable_.end()) { |
1756 | | - debugPrint(logger_, CTS, "tech char", 1,"**Monotonic entries are already hashed: {}", iter->second); |
| 1757 | + debugPrint(logger_, |
| 1758 | + CTS, |
| 1759 | + "tech char", |
| 1760 | + 1, |
| 1761 | + "**Monotonic entries are already hashed: {}", |
| 1762 | + iter->second); |
1757 | 1763 | return iter->second; |
1758 | 1764 | } |
1759 | 1765 |
|
@@ -1786,7 +1792,8 @@ unsigned TechChar::getBufferingCombo(size_t numBuffers, size_t numNodes) |
1786 | 1792 | } |
1787 | 1793 | debugPrint(logger_, CTS, "tech char", 1, tmp.str()); |
1788 | 1794 | } |
1789 | | - debugPrint(logger_, CTS, "tech char", 1, "**Monotonic entries: {}", numMonotonic); |
| 1795 | + debugPrint( |
| 1796 | + logger_, CTS, "tech char", 1, "**Monotonic entries: {}", numMonotonic); |
1790 | 1797 | // insert new result into hash table |
1791 | 1798 | bufferingComboTable_[iPair] = numMonotonic; |
1792 | 1799 | return numMonotonic; |
|
0 commit comments