aboutsummaryrefslogtreecommitdiffstats
path: root/fpga_interchange/fpga_interchange.cpp
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-06-11 11:36:42 +0100
committerGitHub <noreply@github.com>2021-06-11 11:36:42 +0100
commit1c7efdc02ce3e36558374e641ea07833cb3a1849 (patch)
treeb68e79f3e3972e913a0fba94ea7b654208199426 /fpga_interchange/fpga_interchange.cpp
parent7278d3c0edbc6f92ef4c69d7c5db66e811c7e9c4 (diff)
parentaa1784c5d9d0b5a3c26b0a148afa6b2de3dc68de (diff)
downloadnextpnr-1c7efdc02ce3e36558374e641ea07833cb3a1849.tar.gz
nextpnr-1c7efdc02ce3e36558374e641ea07833cb3a1849.tar.bz2
nextpnr-1c7efdc02ce3e36558374e641ea07833cb3a1849.zip
Merge pull request #720 from acomodi/interchange-clusters
interchange: enable clusters support
Diffstat (limited to 'fpga_interchange/fpga_interchange.cpp')
-rw-r--r--fpga_interchange/fpga_interchange.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/fpga_interchange/fpga_interchange.cpp b/fpga_interchange/fpga_interchange.cpp
index 1d08b128..ac2a7e96 100644
--- a/fpga_interchange/fpga_interchange.cpp
+++ b/fpga_interchange/fpga_interchange.cpp
@@ -539,10 +539,14 @@ void FpgaInterchange::write_physical_netlist(const Context * ctx, const std::str
auto net_iter = nets.begin();
for(auto & net_pair : ctx->nets) {
auto &net = *net_pair.second;
- auto net_out = *net_iter++;
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()) {
IdString gnd_net_name(ctx->chip_info->constants->gnd_net_name);