aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/bitstream.cc
diff options
context:
space:
mode:
authorSergiusz Bazanski <q3k@q3k.org>2018-07-24 02:05:30 +0100
committerSergiusz Bazanski <q3k@q3k.org>2018-07-24 02:55:40 +0100
commit65ceb20784ccd0e2be71c733dbc23dc61d83d653 (patch)
tree6c96b1246c5ecbc26c59227f81433dfb1bce8f8c /ice40/bitstream.cc
parentfae7994bc34b302dbd35c0793a9ce9f81234dbc1 (diff)
downloadnextpnr-65ceb20784ccd0e2be71c733dbc23dc61d83d653.tar.gz
nextpnr-65ceb20784ccd0e2be71c733dbc23dc61d83d653.tar.bz2
nextpnr-65ceb20784ccd0e2be71c733dbc23dc61d83d653.zip
ice40: emit list of upbels in chipdb
Diffstat (limited to 'ice40/bitstream.cc')
-rw-r--r--ice40/bitstream.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ice40/bitstream.cc b/ice40/bitstream.cc
index 1d799307..934cca0c 100644
--- a/ice40/bitstream.cc
+++ b/ice40/bitstream.cc
@@ -459,7 +459,7 @@ void write_asc(const Context *ctx, std::ostream &out)
auto wire = ctx->getBelPinWire(cell.second->bel, ctx->portPinFromId(port.second.name));
auto pips = ctx->getPipsDownhill(wire).begin();
auto driven_wire = ctx->getPipDstWire(*pips);
- auto io_bel = ctx->chip_info->wire_data[driven_wire.index].bel_uphill.bel_index;
+ auto io_bel = ctx->chip_info->wire_data[driven_wire.index].bels_uphill[0].bel_index;
auto io_beli = ctx->chip_info->bel_data[io_bel];
NPNR_ASSERT(io_beli.type == TYPE_SB_IO);