diff options
author | myrtle <gatecat@ds0.me> | 2022-12-17 12:22:36 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-17 12:22:36 +0000 |
commit | 78926b31db6dbfb465e2585ce0050bf93cb3e35c (patch) | |
tree | 25dadd6064c94d41021ae3ac233bf4e1a18123e6 | |
parent | 16ffd02a9d485c66707cc56bcd083cfe545a72f3 (diff) | |
parent | bc18d18a95d476b7d32bb5244a33fffaa637893f (diff) | |
download | nextpnr-78926b31db6dbfb465e2585ce0050bf93cb3e35c.tar.gz nextpnr-78926b31db6dbfb465e2585ce0050bf93cb3e35c.tar.bz2 nextpnr-78926b31db6dbfb465e2585ce0050bf93cb3e35c.zip |
Merge pull request #1064 from YosysHQ/gatecat/ecp5-main-fix
ecp5: Only write bitstream if --textcfg passed
-rw-r--r-- | ecp5/main.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/ecp5/main.cc b/ecp5/main.cc index f143d583..6abea4a9 100644 --- a/ecp5/main.cc +++ b/ecp5/main.cc @@ -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) |