ecp5: Only write bitstream if --textcfg passed
Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
parent
0eb53d59d8
commit
bc18d18a95
@ -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 "
|
log_error("bitstream generation is not available in out-of-context mode (use --write to create a post-PnR JSON "
|
||||||
"design)\n");
|
"design)\n");
|
||||||
|
|
||||||
std::string textcfg;
|
if (vm.count("textcfg")) {
|
||||||
if (vm.count("textcfg"))
|
std::string textcfg = vm["textcfg"].as<std::string>();
|
||||||
textcfg = vm["textcfg"].as<std::string>();
|
write_bitstream(ctx, basecfg, textcfg);
|
||||||
|
}
|
||||||
write_bitstream(ctx, basecfg, textcfg);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static std::string speedString(ArchArgs::SpeedGrade speed)
|
static std::string speedString(ArchArgs::SpeedGrade speed)
|
||||||
|
Loading…
Reference in New Issue
Block a user