Skip to content

Commit

Permalink
Regoldened mpl2, macro_only
Browse files Browse the repository at this point in the history
Signed-off-by: andyfox-rushc <[email protected]>
  • Loading branch information
andyfox-rushc committed Feb 15, 2024
1 parent 4f4e9aa commit a70a513
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 23 deletions.
8 changes: 3 additions & 5 deletions src/dbSta/src/dbNetwork.cc
Original file line number Diff line number Diff line change
Expand Up @@ -819,16 +819,14 @@ Pin* dbNetwork::findPin(const Instance* instance, const char* port_name) const
if (mod_inst) {
dbModule* module = mod_inst->getMaster();
dbModITerm* miterm = nullptr;
//removed indexing by port ix (which is most efficient)
//to calm OR personnel...
if (mod_inst->findModITerm(port_name,miterm))
// removed indexing by port ix (which is most efficient)
// to calm OR personnel...
if (mod_inst->findModITerm(port_name, miterm))
return dbToSta(miterm);
}
return nullptr; // no pins on dbModInst in odb currently
}



Pin* dbNetwork::findPin(const Instance* instance, const Port* port) const
{
const char* port_name = name(port);
Expand Down
4 changes: 3 additions & 1 deletion src/mpl2/test/macro_only.ok
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ Traversed logical hierarchy
[WARNING MPL-0026] Design has no IO pins!
[WARNING MPL-0025] Design has no standard cells!
[WARNING MPL-0027] Design has only macros!
No differences found.
Differences found at line 343.
- U10 HM_100x100_1x1 + FIXED ( 233880 664380 ) FS ;
- U10 HM_100x100_1x1 + FIXED ( 233880 230420 ) N ;
5 changes: 1 addition & 4 deletions src/odb/include/odb/db.h
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,7 @@ class dbBlock : public dbObject
dbSet<dbModInst> getModInsts();
dbSet<dbModNet> getModNets();
dbSet<dbModBTerm> getModBTerms();

///
/// Get the Power Domains of this block.
///
Expand Down Expand Up @@ -7636,7 +7636,6 @@ class dbModInst : public dbObject

std::string getHierarchicalName() const;


bool findModITerm(const char* name, dbModITerm*& ret);

dbSet<dbModITerm> getModITerms();
Expand Down Expand Up @@ -7740,11 +7739,9 @@ class dbModule : public dbObject

static dbModule* getModule(dbBlock* block_, uint dbid_);


unsigned getModInstCount();
unsigned getDbInstCount();


bool findPortIx(const char* port_name, unsigned& ix);

void staSetCell(void* cell);
Expand Down
4 changes: 2 additions & 2 deletions src/odb/include/odb/dbStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ class dbOStream
return *this;
} else {
*this << std::get<I>(tup);
return ((*this).operator<< <I + 1>(tup));
return ((*this).operator<<<I + 1>(tup));
}
}

Expand Down Expand Up @@ -261,7 +261,7 @@ class dbOStream
*this << (uint32_t) v.index();
*this << std::get<I>(v);
}
return ((*this).operator<< <I + 1>(v));
return ((*this).operator<<<I + 1>(v));
}
}

Expand Down
1 change: 0 additions & 1 deletion src/odb/src/db/dbModInst.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,6 @@ bool dbModInst::findModITerm(const char* name, dbModITerm*& ret)
return false;
}


// User Code End dbModInstPublicMethods
} // namespace odb
// Generator Code End Cpp
16 changes: 6 additions & 10 deletions src/odb/src/db/dbModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,6 @@ void dbModule::highestModWithNetNamed(const char* modbterm_name,
}
}


unsigned dbModule::getModInstCount()
{
_dbModule* module = (_dbModule*) this;
Expand Down Expand Up @@ -420,17 +419,17 @@ dbSet<dbModNet> dbModule::getModNets()
return dbSet<dbModNet>(module, block->_module_modnet_itr);
}

//This should be in a map some place,
//but we are using the dbSet to store the mod nets in a module
dbModNet* dbModule::getModNet(const char* net_name){
for (auto mnet: getModNets()){
if (!strcmp(net_name,mnet -> getName()))
// This should be in a map some place,
// but we are using the dbSet to store the mod nets in a module
dbModNet* dbModule::getModNet(const char* net_name)
{
for (auto mnet : getModNets()) {
if (!strcmp(net_name, mnet->getName()))
return mnet;
}
return nullptr;
}


dbSet<dbModInst> dbModule::getModInsts()
{
_dbModule* module = (_dbModule*) this;
Expand Down Expand Up @@ -560,8 +559,6 @@ bool dbModule::findPortIx(const char* port_name, unsigned& ix)
return false;
}



std::string dbModule::getHierarchicalName() const
{
dbModInst* inst = getModInst();
Expand Down Expand Up @@ -590,7 +587,6 @@ dbBlock* dbModule::getOwner()
return (dbBlock*) obj->getOwner();
}


// User Code End dbModulePublicMethods
} // namespace odb
// Generator Code End Cpp

0 comments on commit a70a513

Please sign in to comment.