From f1a735cf3ea39e179c4627086d2e50ad0be2a4c3 Mon Sep 17 00:00:00 2001 From: Eddie Hung Date: Sun, 27 Jan 2019 12:14:14 -0800 Subject: [PATCH] Fix ecp5 --- ecp5/arch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecp5/arch.h b/ecp5/arch.h index 131e06bd..19fe1c4d 100644 --- a/ecp5/arch.h +++ b/ecp5/arch.h @@ -539,7 +539,7 @@ struct Arch : BaseCtx BelRange getBelsByTile(int x, int y) const; bool getBelGlobalBuf(BelId bel) const { return getBelType(bel) == id_DCCA; } - bool getBelIOB(BelId bel) const { return chip_info->bel_data[bel.index].type == ID_TRELLIS_IO; } + bool getBelIOB(BelId bel) const { return getBelType(bel) == ID_TRELLIS_IO; } bool checkBelAvail(BelId bel) const {