From 20941292ad06585524dd58afc57689ffb98297f3 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sat, 21 Jul 2018 09:22:09 +0200 Subject: [PATCH] fix introduced bug --- ice40/bitstream.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ice40/bitstream.cc b/ice40/bitstream.cc index 1acaad0e..924868b5 100644 --- a/ice40/bitstream.cc +++ b/ice40/bitstream.cc @@ -481,6 +481,8 @@ void write_asc(const Context *ctx, std::ostream &out) for (int y = 0; y < ci.height; y++) { for (int x = 0; x < ci.width; x++) { TileType tile = tile_at(ctx, x, y); + if (tile == TILE_NONE) + continue; out << tagTileType(tile); out << " " << x << " " << y << std::endl; for (auto row : config.at(y).at(x)) {