aboutsummaryrefslogtreecommitdiffstats
path: root/fpga_interchange/site_arch.cc
diff options
context:
space:
mode:
Diffstat (limited to 'fpga_interchange/site_arch.cc')
-rw-r--r--fpga_interchange/site_arch.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/fpga_interchange/site_arch.cc b/fpga_interchange/site_arch.cc
index bb9c9a11..d0a5c48c 100644
--- a/fpga_interchange/site_arch.cc
+++ b/fpga_interchange/site_arch.cc
@@ -140,7 +140,12 @@ SiteArch::SiteArch(const SiteInformation *site_info)
IdString gnd_net_name(ctx->chip_info->constants->gnd_net_name);
IdString const_net_name(ctx->chip_info->constants->best_constant_net);
- NPNR_ASSERT(const_net_name == vcc_net_name || const_net_name == gnd_net_name);
+ NPNR_ASSERT(const_net_name == IdString() || const_net_name == vcc_net_name || const_net_name == gnd_net_name);
+
+ // FIXME: Use VCC if the architecture does not device the best constant
+ if (const_net_name == IdString()) {
+ const_net_name = vcc_net_name;
+ }
for (CellInfo *cell : site_info->cells_in_site) {
for (const auto &pin_pair : cell->cell_bel_pins) {