aboutsummaryrefslogtreecommitdiffstats
path: root/machxo2/arch.cc
diff options
context:
space:
mode:
authorWilliam D. Jones <thor0505@comcast.net>2020-12-07 02:15:51 -0500
committergatecat <gatecat@ds0.me>2021-02-12 10:36:59 +0000
commit138519d820cd25cdd6700fabf13e855d67030e1a (patch)
tree03f6fcad66e6347dc1ebf31f9a65ce19add8dc3c /machxo2/arch.cc
parent8a94a3451f88ca6632991ef3f2a61e4ed9a4ac5b (diff)
downloadnextpnr-138519d820cd25cdd6700fabf13e855d67030e1a.tar.gz
nextpnr-138519d820cd25cdd6700fabf13e855d67030e1a.tar.bz2
nextpnr-138519d820cd25cdd6700fabf13e855d67030e1a.zip
machxo2: Fix place phase segfault. Placement suceeds with warning of no clock.
Diffstat (limited to 'machxo2/arch.cc')
-rw-r--r--machxo2/arch.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/machxo2/arch.cc b/machxo2/arch.cc
index d9753528..6c7efbe5 100644
--- a/machxo2/arch.cc
+++ b/machxo2/arch.cc
@@ -86,6 +86,8 @@ Arch::Arch(ArchArgs args) : args(args)
}
if (!package_info)
log_error("Unsupported package '%s' for '%s'.\n", args.package.c_str(), getChipName().c_str());
+
+ bel_to_cell.resize(chip_info->height * chip_info->width * max_loc_bels, nullptr);
}
bool Arch::isAvailable(ArchArgs::ArchArgsTypes chip) { return get_chip_info(chip) != nullptr; }