From 7e2058e1240882aa9856f87142fadf7eba3915fc Mon Sep 17 00:00:00 2001 From: andyfox-rushc Date: Mon, 29 Apr 2024 16:46:15 -0700 Subject: [PATCH] Removed redundant pin name function. Signed-off-by: Andy Fox Signed-off-by: andyfox-rushc --- src/dbSta/src/dbReadVerilog.cc | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/src/dbSta/src/dbReadVerilog.cc b/src/dbSta/src/dbReadVerilog.cc index f94ae9c074c..5649a90f892 100644 --- a/src/dbSta/src/dbReadVerilog.cc +++ b/src/dbSta/src/dbReadVerilog.cc @@ -180,7 +180,6 @@ class Verilog2db std::map master_map_; std::map uniquify_id_; // key: module name private: - string makePinName(const std::string& name); bool hierarchy_ = false; }; @@ -209,16 +208,6 @@ Verilog2db::Verilog2db(Network* network, { } -std::string Verilog2db::makePinName(const std::string& port_name) -{ - std::string p_name = port_name; - size_t last_idx = p_name.find_last_of('/'); - if (last_idx != string::npos) { - p_name = p_name.substr(last_idx + 1); - } - return p_name; -} - void Verilog2db::makeBlock() { dbChip* chip = db_->getChip(); @@ -389,8 +378,7 @@ void Verilog2db::makeDbModule( InstancePinIterator* ip_iter = network_->pinIterator(inst); while (ip_iter->hasNext()) { Pin* cur_pin = ip_iter->next(); - std::string pin_name_string(network_->name(cur_pin)); - pin_name_string = makePinName(pin_name_string); + std::string pin_name_string = network_->portName(cur_pin); dbModITerm* moditerm = dbModITerm::create(modinst, pin_name_string.c_str()); (void) moditerm; @@ -471,7 +459,7 @@ bool Verilog2db::staToDb(dbModule* module, const char* port_name = network_->portName(pin); Instance* cur_inst = network_->instance(pin); - std::string pin_name = network_->name(pin); + std::string pin_name = network_->portName(pin); // // cases: All the things a pin could be: @@ -484,7 +472,6 @@ bool Verilog2db::staToDb(dbModule* module, if (module) { if (cur_inst) { - pin_name = makePinName(pin_name); std::string instance_name = network_->pathName(cur_inst); size_t last_idx = instance_name.find_last_of('/'); if (last_idx != string::npos) {