From 519d4e2af8d8e7d8e2d1d873b9cd9681ef83cc62 Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Sat, 17 Nov 2018 13:04:14 +0100 Subject: ice40: Add support for SB_GB_IO During packing we replace them by standard SB_IO cells and create the 'fake' SB_GB that matches that IO site global buffer connection. It's done in a separate pass because we need to make sure the nextpnr iob have been dealt first so we have our final Bel location on the SB_IO. Signed-off-by: Sylvain Munaut --- ice40/bitstream.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'ice40/bitstream.cc') diff --git a/ice40/bitstream.cc b/ice40/bitstream.cc index d2c2ac16..44d385e4 100644 --- a/ice40/bitstream.cc +++ b/ice40/bitstream.cc @@ -514,6 +514,7 @@ void write_asc(const Context *ctx, std::ostream &out) } input_en = (input_en & !used_by_pll_out) | used_by_pll_pad; + input_en |= cell.second->ioInfo.global; if (ctx->args.type == ArchArgs::LP1K || ctx->args.type == ArchArgs::HX1K) { set_config(ti, config.at(iey).at(iex), "IoCtrl.IE_" + std::to_string(iez), !input_en); -- cgit v1.2.3