aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/bitstream.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ecp5/bitstream.cc')
-rw-r--r--ecp5/bitstream.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ecp5/bitstream.cc b/ecp5/bitstream.cc
index df9b12d5..bf580f44 100644
--- a/ecp5/bitstream.cc
+++ b/ecp5/bitstream.cc
@@ -306,8 +306,8 @@ void write_bitstream(Context *ctx, std::string base_config_file, std::string tex
}
// Configure chip
- Trellis::Chip cfg_chip = cc.to_chip();
if (!bitstream_file.empty()) {
+ Trellis::Chip cfg_chip = cc.to_chip();
Trellis::Bitstream::serialise_chip(cfg_chip).write_bit_py(bitstream_file);
}
if (!text_config_file.empty()) {