machxo2: Fix place phase segfault. Placement suceeds with warning of no clock.

This commit is contained in:
William D. Jones 2020-12-07 02:15:51 -05:00 committed by gatecat
parent 8a94a3451f
commit 138519d820

View File

@ -86,6 +86,8 @@ Arch::Arch(ArchArgs args) : args(args)
} }
if (!package_info) if (!package_info)
log_error("Unsupported package '%s' for '%s'.\n", args.package.c_str(), getChipName().c_str()); 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; } bool Arch::isAvailable(ArchArgs::ArchArgsTypes chip) { return get_chip_info(chip) != nullptr; }