diff options
-rw-r--r-- | ice40/bitstream.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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)) {
|