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
commit 78926b31db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)