Skip to content

Commit 7c38595

Browse files
committed
Merge branch 'master' of https://github.com/The-OpenROAD-Project-private/OpenROAD into secure-refactor-insert-buffer
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
2 parents d09c709 + 73f5c05 commit 7c38595

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

.clang-tidy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Checks: >
1717
-readability-isolate-declaration,
1818
-readability-magic-numbers,
1919
-readability-make-member-function-const,
20+
-readability-math-missing-parentheses,
2021
-readability-named-parameter,
2122
-readability-qualified-auto,
2223
-readability-redundant-access-specifiers,

src/Design.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include "ord/OpenRoad.hh"
2121
#include "ord/Tech.h"
2222
#include "tcl.h"
23+
#include "tclDecls.h"
2324
#include "utl/Logger.h"
2425

2526
namespace ord {
@@ -136,6 +137,7 @@ std::string Design::evalTclString(const std::string& cmd)
136137
ord::OpenRoad::setOpenRoad(openroad, /* reinit_ok */ true);
137138
Tcl_Interp* tcl_interp = openroad->tclInterp();
138139
sta::Sta::setSta(openroad->getSta());
140+
Tcl_SetAssocData(tcl_interp, "design", nullptr, this);
139141
Tcl_Eval(tcl_interp, cmd.c_str());
140142
return std::string(Tcl_GetStringResult(tcl_interp));
141143
}

src/odb/src/db/dbNet.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,6 +1210,10 @@ dbBTerm* dbNet::get1stBTerm()
12101210

12111211
dbObject* dbNet::getFirstDriverTerm() const
12121212
{
1213+
if (getSigType().isSupply()) {
1214+
return nullptr;
1215+
}
1216+
12131217
for (dbITerm* iterm : getITerms()) {
12141218
if (iterm->getSigType().isSupply()) {
12151219
continue;
@@ -2472,6 +2476,10 @@ bool dbNet::findRelatedModNets(std::set<dbModNet*>& modnet_set) const
24722476
{
24732477
modnet_set.clear();
24742478

2479+
if (getSigType().isSupply()) {
2480+
return false;
2481+
}
2482+
24752483
boost::container::small_vector<dbModNet*, 16> modnets_to_visit;
24762484

24772485
// Helper to add a modnet to the result set and the visit queue if it's new.

0 commit comments

Comments
 (0)