aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/bitstream.cc
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-06-17 12:38:21 +0200
committerDavid Shah <davey1576@gmail.com>2018-06-17 12:38:21 +0200
commit12818fb69479cd6a1908bcae37de2b817632d33c (patch)
tree614e6f40847ca9814f39f722b568771291179c9a /ice40/bitstream.cc
parent6a937e0b45ed9993d6cf4fd659693757c73b4f8f (diff)
downloadnextpnr-12818fb69479cd6a1908bcae37de2b817632d33c.tar.gz
nextpnr-12818fb69479cd6a1908bcae37de2b817632d33c.tar.bz2
nextpnr-12818fb69479cd6a1908bcae37de2b817632d33c.zip
ice40: Add symbol output to bitstream generation
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ice40/bitstream.cc')
-rw-r--r--ice40/bitstream.cc14
1 files changed, 8 insertions, 6 deletions
diff --git a/ice40/bitstream.cc b/ice40/bitstream.cc
index a0a32171..918eb01b 100644
--- a/ice40/bitstream.cc
+++ b/ice40/bitstream.cc
@@ -287,12 +287,6 @@ void write_asc(const Design &design, std::ostream &out)
TileType tile = tile_at(chip, x, y);
TileInfoPOD &ti = bi.tiles_nonrouting[tile];
- // disable RAM to stop icebox_vlog crashing (FIXME)
- if ((tile == TILE_RAMB) && (chip.args.type == ChipArgs::LP1K ||
- chip.args.type == ChipArgs::HX1K)) {
- set_config(ti, config.at(y).at(x), "RamConfig.PowerUp", true);
- }
-
// set all ColBufCtrl bits (FIXME)
bool setColBufCtrl = true;
if (chip.args.type == ChipArgs::LP1K ||
@@ -398,6 +392,14 @@ void write_asc(const Design &design, std::ostream &out)
}
}
}
+
+ // Write symbols
+ const bool write_symbols = 1;
+ for (auto wire : chip.getWires()) {
+ IdString net = chip.getWireNet(wire, false);
+ if (net != IdString())
+ out << ".sym " << wire.index << " net_" << net << std::endl;
+ }
}
NEXTPNR_NAMESPACE_END