ecp5: Only write bitstream if --textcfg passed

Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
gatecat 2022-12-17 10:37:15 +00:00
parent 0eb53d59d8
commit bc18d18a95

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>();
if (vm.count("textcfg")) {
std::string textcfg = vm["textcfg"].as<std::string>();
write_bitstream(ctx, basecfg, textcfg);
}
}
static std::string speedString(ArchArgs::SpeedGrade speed)