From 138519d820cd25cdd6700fabf13e855d67030e1a Mon Sep 17 00:00:00 2001 From: "William D. Jones" Date: Mon, 7 Dec 2020 02:15:51 -0500 Subject: [PATCH] machxo2: Fix place phase segfault. Placement suceeds with warning of no clock. --- machxo2/arch.cc | 2 ++ 1 file changed, 2 insertions(+) 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; }