diff options
author | gatecat <gatecat@ds0.me> | 2021-02-10 11:27:11 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-10 11:27:11 +0000 |
commit | e376f950fe683b9a744437301a9e09eae1895efa (patch) | |
tree | ccb065cf753546eaf3f55bbe8427d4c77a81ab63 /common/nextpnr.cc | |
parent | f67d474edc3f95e830ec23156a90327ae446ce6f (diff) | |
parent | 6bd3dba1e39780e52097533f7e89f823d7e72956 (diff) | |
download | nextpnr-e376f950fe683b9a744437301a9e09eae1895efa.tar.gz nextpnr-e376f950fe683b9a744437301a9e09eae1895efa.tar.bz2 nextpnr-e376f950fe683b9a744437301a9e09eae1895efa.zip |
Merge pull request #574 from YosysHQ/gatecat/belpin-1
Remove the unused CellInfo::pins field
Diffstat (limited to 'common/nextpnr.cc')
-rw-r--r-- | common/nextpnr.cc | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/common/nextpnr.cc b/common/nextpnr.cc index fc70465c..880e0344 100644 --- a/common/nextpnr.cc +++ b/common/nextpnr.cc @@ -355,11 +355,6 @@ WireId Context::getNetinfoSourceWire(const NetInfo *net_info) const return WireId(); IdString driver_port = net_info->driver.port; - - auto driver_port_it = net_info->driver.cell->pins.find(driver_port); - if (driver_port_it != net_info->driver.cell->pins.end()) - driver_port = driver_port_it->second; - return getBelPinWire(src_bel, driver_port); } @@ -371,12 +366,6 @@ WireId Context::getNetinfoSinkWire(const NetInfo *net_info, const PortRef &user_ return WireId(); IdString user_port = user_info.port; - - auto user_port_it = user_info.cell->pins.find(user_port); - - if (user_port_it != user_info.cell->pins.end()) - user_port = user_port_it->second; - return getBelPinWire(dst_bel, user_port); } @@ -516,15 +505,6 @@ uint32_t Context::checksum() const x = xorshift32(x + xorshift32(getBelChecksum(ci.bel))); x = xorshift32(x + xorshift32(ci.belStrength)); - uint32_t pin_x_sum = 0; - for (auto &a : ci.pins) { - uint32_t pin_x = 123456789; - pin_x = xorshift32(pin_x + xorshift32(a.first.index)); - pin_x = xorshift32(pin_x + xorshift32(a.second.index)); - pin_x_sum += pin_x; - } - x = xorshift32(x + xorshift32(pin_x_sum)); - cksum_cells_sum += x; } cksum = xorshift32(cksum + xorshift32(cksum_cells_sum)); |