From ddd2ba6715125033be5b4cbb75fe07652555e104 Mon Sep 17 00:00:00 2001 From: YRabbit Date: Wed, 1 Jan 2025 22:00:32 +1000 Subject: [PATCH] Gowin. Registers in IO. Fix style. Signed-off-by: YRabbit --- himbaechel/uarch/gowin/pack.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/himbaechel/uarch/gowin/pack.cc b/himbaechel/uarch/gowin/pack.cc index 2b8e61a7..a1276d21 100644 --- a/himbaechel/uarch/gowin/pack.cc +++ b/himbaechel/uarch/gowin/pack.cc @@ -763,7 +763,7 @@ struct GowinPacker CellInfo *iologic_o = nullptr; if ((ci.type == id_OBUF && (ctx->settings.count(id_OREG_IN_IOB) || ci.attrs.count(id_IOBFF))) || (ci.type == id_IOBUF && (ctx->settings.count(id_IOREG_IN_IOB) || ci.attrs.count(id_IOBFF)))) { - while (1) { + do { if (ci.getPort(id_I) == nullptr) { break; } @@ -858,12 +858,12 @@ struct GowinPacker cells_to_remove.push_back(ff->name); } break; - } + } while (false); } // output enable reg in IO if (ci.type == id_IOBUF && (ctx->settings.count(id_IOREG_IN_IOB) || ci.attrs.count(id_IOBFF))) { - while (1) { + do { if (ci.getPort(id_OEN) == nullptr) { break; } @@ -965,7 +965,7 @@ struct GowinPacker cells_to_remove.push_back(ff->name); } break; - } + } while (false); } }