From f027bc3cf98b471e7315c70c7fe2fbca1491786a Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sat, 21 Dec 2024 12:15:03 +0100 Subject: [PATCH] Cleanup --- himbaechel/uarch/gatemate/bitstream.cc | 3 ++- himbaechel/uarch/gatemate/gatemate.cc | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/himbaechel/uarch/gatemate/bitstream.cc b/himbaechel/uarch/gatemate/bitstream.cc index d36c6345..e1491fd5 100644 --- a/himbaechel/uarch/gatemate/bitstream.cc +++ b/himbaechel/uarch/gatemate/bitstream.cc @@ -133,7 +133,8 @@ struct BitstreamBackend } } break; default: - break; + log_error("Unhandled cell %s of type %s\n", cell.second.get()->name.c_str(ctx), + cell.second->type.c_str(ctx)); } } diff --git a/himbaechel/uarch/gatemate/gatemate.cc b/himbaechel/uarch/gatemate/gatemate.cc index e394d897..eec3be40 100644 --- a/himbaechel/uarch/gatemate/gatemate.cc +++ b/himbaechel/uarch/gatemate/gatemate.cc @@ -105,7 +105,8 @@ void GateMateImpl::setupArchContext() // Bel bucket functions IdString GateMateImpl::getBelBucketForCellType(IdString cell_type) const { - if (cell_type.in(id_CC_IBUF, id_CC_OBUF, id_CC_TOBUF, id_CC_IOBUF)) + if (cell_type.in(id_CC_IBUF, id_CC_OBUF, id_CC_TOBUF, id_CC_IOBUF, id_CC_LVDS_IBUF, id_CC_LVDS_TOBUF, + id_CC_LVDS_OBUF, id_CC_LVDS_IOBUF)) return id_GPIO; else return cell_type; @@ -115,7 +116,8 @@ bool GateMateImpl::isValidBelForCellType(IdString cell_type, BelId bel) const { IdString bel_type = ctx->getBelType(bel); if (bel_type == id_GPIO) - return cell_type.in(id_CC_IBUF, id_CC_OBUF, id_CC_TOBUF, id_CC_IOBUF); + return cell_type.in(id_CC_IBUF, id_CC_OBUF, id_CC_TOBUF, id_CC_IOBUF, id_CC_LVDS_IBUF, id_CC_LVDS_TOBUF, + id_CC_LVDS_OBUF, id_CC_LVDS_IOBUF); else return (bel_type == cell_type); }