1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-04-29 13:22:05 +00:00

ice40: emit list of upbels in chipdb

This commit is contained in:
Sergiusz Bazanski
2018-07-24 02:05:30 +01:00
parent fae7994bc3
commit 65ceb20784
4 changed files with 22 additions and 16 deletions

View File

@@ -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);