aboutsummaryrefslogtreecommitdiffstats
path: root/gowin/cells.h
diff options
context:
space:
mode:
Diffstat (limited to 'gowin/cells.h')
-rw-r--r--gowin/cells.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gowin/cells.h b/gowin/cells.h
index 7aba4805..4cabe086 100644
--- a/gowin/cells.h
+++ b/gowin/cells.h
@@ -105,7 +105,7 @@ inline bool is_lc(const BaseCtx *ctx, const CellInfo *cell) { return cell->type
inline bool is_sram(const BaseCtx *ctx, const CellInfo *cell) { return cell->type == id_RAM16SDP4; }
-inline bool is_iob(const Context *ctx, const CellInfo *cell) { return (cell->type.index == ID_IOB); }
+inline bool is_iob(const Context *ctx, const CellInfo *cell) { return (cell->type == id_IOB || cell->type == id_IOBS); }
// Convert a LUT primitive to (part of) an GENERIC_SLICE, swapping ports
// as needed. Set no_dff if a DFF is not being used, so that the output