Gowin. Registers in IO. Fix style.

Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
This commit is contained in:
YRabbit 2025-01-01 22:00:32 +10:00
parent 1c28394dbd
commit ddd2ba6715

View File

@ -763,7 +763,7 @@ struct GowinPacker
CellInfo *iologic_o = nullptr; CellInfo *iologic_o = nullptr;
if ((ci.type == id_OBUF && (ctx->settings.count(id_OREG_IN_IOB) || ci.attrs.count(id_IOBFF))) || 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)))) { (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) { if (ci.getPort(id_I) == nullptr) {
break; break;
} }
@ -858,12 +858,12 @@ struct GowinPacker
cells_to_remove.push_back(ff->name); cells_to_remove.push_back(ff->name);
} }
break; break;
} } while (false);
} }
// output enable reg in IO // output enable reg in IO
if (ci.type == id_IOBUF && (ctx->settings.count(id_IOREG_IN_IOB) || ci.attrs.count(id_IOBFF))) { 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) { if (ci.getPort(id_OEN) == nullptr) {
break; break;
} }
@ -965,7 +965,7 @@ struct GowinPacker
cells_to_remove.push_back(ff->name); cells_to_remove.push_back(ff->name);
} }
break; break;
} } while (false);
} }
} }