diff options
author | gatecat <gatecat@ds0.me> | 2021-06-15 15:45:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-15 15:45:09 +0100 |
commit | b77119e1a3c3b1fff8a62f38fc56900e10a4fa2e (patch) | |
tree | a002f6715a1a8ed706a6918b015e7e0114cfc755 | |
parent | f4bfc2af5b5fac1151a4f582b139d5add4467d9a (diff) | |
parent | f9054190fd70a8083a835a0be7a235f72616a94f (diff) | |
download | nextpnr-b77119e1a3c3b1fff8a62f38fc56900e10a4fa2e.tar.gz nextpnr-b77119e1a3c3b1fff8a62f38fc56900e10a4fa2e.tar.bz2 nextpnr-b77119e1a3c3b1fff8a62f38fc56900e10a4fa2e.zip |
Merge pull request #729 from acomodi/interchange-fix-phys-net-writer
interchange: fix phys net writer
-rw-r--r-- | fpga_interchange/fpga_interchange.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/fpga_interchange/fpga_interchange.cpp b/fpga_interchange/fpga_interchange.cpp index ac2a7e96..8d54335d 100644 --- a/fpga_interchange/fpga_interchange.cpp +++ b/fpga_interchange/fpga_interchange.cpp @@ -542,17 +542,14 @@ void FpgaInterchange::write_physical_netlist(const Context * ctx, const std::str const CellInfo *driver_cell = net.driver.cell; - if (driver_cell == nullptr) - continue; - auto net_out = *net_iter++; // Handle GND and VCC nets. - if(driver_cell->bel == ctx->get_gnd_bel()) { + if(driver_cell != nullptr && driver_cell->bel == ctx->get_gnd_bel()) { IdString gnd_net_name(ctx->chip_info->constants->gnd_net_name); net_out.setName(strings.get_index(gnd_net_name.str(ctx))); net_out.setType(PhysicalNetlist::PhysNetlist::NetType::GND); - } else if(driver_cell->bel == ctx->get_vcc_bel()) { + } else if(driver_cell != nullptr && driver_cell->bel == ctx->get_vcc_bel()) { IdString vcc_net_name(ctx->chip_info->constants->vcc_net_name); net_out.setName(strings.get_index(vcc_net_name.str(ctx))); net_out.setType(PhysicalNetlist::PhysNetlist::NetType::VCC); |