1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-04-17 00:36:08 +00:00

Merge pull request #1064 from YosysHQ/gatecat/ecp5-main-fix

ecp5: Only write bitstream if --textcfg passed
This commit is contained in:
myrtle
2022-12-17 12:22:36 +00:00
committed by GitHub

View File

@@ -111,11 +111,10 @@ void ECP5CommandHandler::customBitstream(Context *ctx)
log_error("bitstream generation is not available in out-of-context mode (use --write to create a post-PnR JSON "
"design)\n");
std::string textcfg;
if (vm.count("textcfg"))
textcfg = vm["textcfg"].as<std::string>();
write_bitstream(ctx, basecfg, textcfg);
if (vm.count("textcfg")) {
std::string textcfg = vm["textcfg"].as<std::string>();
write_bitstream(ctx, basecfg, textcfg);
}
}
static std::string speedString(ArchArgs::SpeedGrade speed)