Skip to content

Commit c80b453

Browse files
committed
Merge branch 'master' of https://github.com/The-OpenROAD-Project-private/OpenROAD into secure-fix-dbsta-for-read-vcd
2 parents 6928ef6 + 53af9e7 commit c80b453

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+3533
-2511
lines changed

src/gui/src/dbDescriptors.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4438,9 +4438,11 @@ Descriptor::Properties DbMarkerCategoryDescriptor::getDBProperties(
44384438

44394439
odb::dbObject* parent = category->getParent();
44404440
if (parent != top) {
4441-
if (parent->getObjectType() == odb::dbObjectType::dbBlockObj) {
4441+
if (parent->getObjectType() == odb::dbObjectType::dbChipObj) {
4442+
// TODO: fix this
44424443
props.push_back(
4443-
{"Parent", gui->makeSelected(static_cast<odb::dbBlock*>(parent))});
4444+
{"Parent",
4445+
gui->makeSelected(static_cast<odb::dbChip*>(parent)->getBlock())});
44444446
} else {
44454447
props.push_back(
44464448
{"Parent",

src/gui/src/gui.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,14 @@ static void message_handler(QtMsgType type,
9797
debugPrint(logger, utl::GUI, "qt", 1, print_msg);
9898
break;
9999
case QtInfoMsg:
100-
logger->info(utl::GUI, 75, print_msg);
100+
logger->info(utl::GUI, 75, "{}", print_msg);
101101
break;
102102
case QtWarningMsg:
103-
logger->warn(utl::GUI, 76, print_msg);
103+
logger->warn(utl::GUI, 76, "{}", print_msg);
104104
break;
105105
case QtCriticalMsg:
106106
case QtFatalMsg:
107-
logger->error(utl::GUI, 77, print_msg);
107+
logger->error(utl::GUI, 77, "{}", print_msg);
108108
break;
109109
}
110110
}
@@ -1553,7 +1553,7 @@ void Gui::gifEnd()
15531553

15541554
if (gif_->writer == nullptr) {
15551555
logger_->warn(utl::GUI,
1556-
75,
1556+
107,
15571557
"Nothing to save to {}. No frames added to gif.",
15581558
gif_->filename);
15591559
gif_ = nullptr;

src/gui/src/mainWindow.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1895,7 +1895,7 @@ void MainWindow::openDesign()
18951895
open_->setEnabled(false);
18961896
ord::OpenRoad::openRoad()->readDb(file.toStdString().c_str());
18971897
logger_->warn(utl::GUI,
1898-
77,
1898+
109,
18991899
"Timing data is not stored in {} and must be loaded "
19001900
"separately, if needed.",
19011901
file.toStdString());
@@ -1904,7 +1904,7 @@ void MainWindow::openDesign()
19041904
}
19051905
}
19061906
if (!found) {
1907-
logger_->error(utl::GUI, 76, "Unknown filetype: {}", file.toStdString());
1907+
logger_->error(utl::GUI, 108, "Unknown filetype: {}", file.toStdString());
19081908
}
19091909
} catch (const std::exception&) {
19101910
// restore option

src/mpl/src/SimulatedAnnealingCore.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -730,8 +730,8 @@ void SimulatedAnnealingCore<T>::fastSA()
730730
continue;
731731
}
732732

733-
const bool improved = cost < pre_cost || best_result_.empty();
734-
if ((!is_best_result_valid_ || is_valid) && improved) {
733+
const bool found_new_best_result = cost < best_result_.cost;
734+
if ((!is_best_result_valid_ || is_valid) && found_new_best_result) {
735735
updateBestResult(cost);
736736
is_best_result_valid_ = is_valid;
737737
}
@@ -766,9 +766,8 @@ void SimulatedAnnealingCore<T>::fastSA()
766766
calPenalty();
767767
cost = calNormCost();
768768

769-
const bool is_valid = isValid();
770-
const bool improved = cost < best_result_.cost || best_result_.empty();
771-
if ((is_best_result_valid_ && !is_valid) || !improved) {
769+
const bool found_new_best_result = cost < best_result_.cost;
770+
if ((is_best_result_valid_ && !isValid()) || !found_new_best_result) {
772771
useBestResult();
773772
}
774773
}

src/mpl/test/boundary_push1.defok

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,10 @@ TRACKS Y 140 DO 282 STEP 3200 LAYER metal9 ;
183183
TRACKS X 190 DO 282 STEP 3200 LAYER metal10 ;
184184
TRACKS Y 140 DO 282 STEP 3200 LAYER metal10 ;
185185
COMPONENTS 4 ;
186-
- MACRO_1 HM_100x100_1x1 + FIXED ( 239440 610 ) S ;
187-
- MACRO_2 HM_100x100_1x1 + FIXED ( 600 241970 ) S ;
186+
- MACRO_1 HM_100x100_1x1 + FIXED ( 239440 241970 ) S ;
187+
- MACRO_2 HM_100x100_1x1 + FIXED ( 239440 610 ) S ;
188188
- MACRO_3 HM_100x100_1x1 + FIXED ( 600 610 ) S ;
189-
- MACRO_4 HM_100x100_1x1 + FIXED ( 239440 241970 ) S ;
189+
- MACRO_4 HM_100x100_1x1 + FIXED ( 600 241970 ) S ;
190190
END COMPONENTS
191191
PINS 4 ;
192192
- io_1 + NET io_1 + DIRECTION INPUT + USE SIGNAL ;

src/mpl/test/boundary_push2.defok

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ TRACKS Y 140 DO 282 STEP 3200 LAYER metal9 ;
183183
TRACKS X 190 DO 282 STEP 3200 LAYER metal10 ;
184184
TRACKS Y 140 DO 282 STEP 3200 LAYER metal10 ;
185185
COMPONENTS 54 ;
186-
- MACRO_1 HM_100x100_1x1 + FIXED ( 239440 18530 ) S ;
187-
- MACRO_2 HM_100x100_1x1 + FIXED ( 600 219570 ) S ;
186+
- MACRO_1 HM_100x100_1x1 + FIXED ( 600 219570 ) S ;
187+
- MACRO_2 HM_100x100_1x1 + FIXED ( 239440 18530 ) S ;
188188
- MACRO_3 HM_100x100_1x1 + FIXED ( 600 18530 ) S ;
189189
- MACRO_4 HM_100x100_1x1 + FIXED ( 239440 219570 ) S ;
190190
- _001_ DFF_X1 + PLACED ( 197971 217497 ) N ;

src/mpl/test/boundary_push3.defok

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,10 @@ TRACKS Y 140 DO 282 STEP 3200 LAYER metal9 ;
183183
TRACKS X 190 DO 282 STEP 3200 LAYER metal10 ;
184184
TRACKS Y 140 DO 282 STEP 3200 LAYER metal10 ;
185185
COMPONENTS 54 ;
186-
- MACRO_1 HM_100x100_1x1 + FIXED ( 18200 610 ) S ;
187-
- MACRO_2 HM_100x100_1x1 + FIXED ( 18200 241970 ) S ;
188-
- MACRO_3 HM_100x100_1x1 + FIXED ( 219400 241970 ) S ;
189-
- MACRO_4 HM_100x100_1x1 + FIXED ( 219400 610 ) S ;
186+
- MACRO_1 HM_100x100_1x1 + FIXED ( 219400 610 ) S ;
187+
- MACRO_2 HM_100x100_1x1 + FIXED ( 219400 241970 ) S ;
188+
- MACRO_3 HM_100x100_1x1 + FIXED ( 18200 610 ) S ;
189+
- MACRO_4 HM_100x100_1x1 + FIXED ( 18200 241970 ) S ;
190190
- _001_ DFF_X1 + PLACED ( 215573 199801 ) N ;
191191
- _002_ DFF_X1 + PLACED ( 215573 199801 ) N ;
192192
- _003_ DFF_X1 + PLACED ( 215573 199801 ) N ;

0 commit comments

Comments
 (0)