File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed
Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff 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,
Original file line number Diff line number Diff line change 2020#include " ord/OpenRoad.hh"
2121#include " ord/Tech.h"
2222#include " tcl.h"
23+ #include " tclDecls.h"
2324#include " utl/Logger.h"
2425
2526namespace 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}
Original file line number Diff line number Diff line change @@ -1210,6 +1210,10 @@ dbBTerm* dbNet::get1stBTerm()
12101210
12111211dbObject* 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.
You can’t perform that action at this time.
0 commit comments