Skip to content

Commit

Permalink
Regression fixes: propagation of bus ports. Signed-off-by: Andy Fox <…
Browse files Browse the repository at this point in the history
[email protected]>

Signed-off-by: andyfox-rushc <[email protected]>
  • Loading branch information
andyfox-rushc committed May 2, 2024
1 parent 47c17a3 commit a930c60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
7 changes: 0 additions & 7 deletions src/dbSta/src/dbNetwork.cc
Original file line number Diff line number Diff line change
Expand Up @@ -502,12 +502,8 @@ void dbNetwork::makeVerilogCell(Library* library, dbModInst* mod_inst)
}
} else if (ccport->isBundle()) {
;
// printf("Bundle %s\n",
// reinterpret_cast<const ConcretePort*>(cport)->name());
} else if (ccport->isBusBit()) {
;
// printf("Busbit %s\n",
// reinterpret_cast<const ConcretePort*>(cport)->name());
} else {
dbModBTerm* modbterm = name2modbterm[port_name];
modbterm->staSetPort(cport);
Expand All @@ -530,9 +526,6 @@ Cell* dbNetwork::cell(const Instance* instance) const
}
if (mod_inst) {
dbModule* master = mod_inst->getMaster();
#ifdef DEBUG_DBNWK
printf("Mod inst Master is %s\n", master->getName());
#endif
// look up the cell in the verilog library.
return dbToSta(master);
}
Expand Down
3 changes: 2 additions & 1 deletion src/dbSta/src/dbReadVerilog.cc
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,11 @@ void Verilog2db::recordBusPortsOrder()
Port* port = bus_iter->next();
if (network_->isBus(port)) {
const char* port_name = network_->name(port);
const char* cell_name = network_->name(top_cell);
int from = network_->fromIndex(port);
int to = network_->toIndex(port);
string key = "bus_msb_first ";
key += port_name;
key = key + port_name + " " + cell_name;
odb::dbBoolProperty::create(block_, key.c_str(), from > to);
}
}
Expand Down

0 comments on commit a930c60

Please sign in to comment.