aboutsummaryrefslogtreecommitdiffstats
path: root/fpga_interchange/arch.cc
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2022-03-01 16:38:48 +0000
committerGitHub <noreply@github.com>2022-03-01 16:38:48 +0000
commit0a70b9c992c06a7553725b3742052eb95abd5f20 (patch)
treed1d8436576bad3424031c5ce435d76717fef196e /fpga_interchange/arch.cc
parentd8bea3ccfc7b6e925a9fd63c9172748ea0420e88 (diff)
parent86699b42f619960bfefd4d0b479dd44a90527ea4 (diff)
downloadnextpnr-0a70b9c992c06a7553725b3742052eb95abd5f20.tar.gz
nextpnr-0a70b9c992c06a7553725b3742052eb95abd5f20.tar.bz2
nextpnr-0a70b9c992c06a7553725b3742052eb95abd5f20.zip
Merge pull request #925 from YosysHQ/gatecat/netlist-iv
Switch to potentially-sparse net users array
Diffstat (limited to 'fpga_interchange/arch.cc')
-rw-r--r--fpga_interchange/arch.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/fpga_interchange/arch.cc b/fpga_interchange/arch.cc
index 917af85e..a5e802d3 100644
--- a/fpga_interchange/arch.cc
+++ b/fpga_interchange/arch.cc
@@ -1377,7 +1377,7 @@ void Arch::merge_constant_nets()
}
NPNR_ASSERT(net->driver.port == gnd_cell_port);
- std::vector<PortRef> users_copy = net->users;
+ indexed_store<PortRef> users_copy = net->users;
for (const PortRef &port_ref : users_copy) {
IdString cell = port_ref.cell->name;
disconnectPort(cell, port_ref.port);
@@ -1400,7 +1400,7 @@ void Arch::merge_constant_nets()
}
NPNR_ASSERT(net->driver.port == vcc_cell_port);
- std::vector<PortRef> users_copy = net->users;
+ indexed_store<PortRef> users_copy = net->users;
for (const PortRef &port_ref : users_copy) {
IdString cell = port_ref.cell->name;
disconnectPort(cell, port_ref.port);