Skip to content

Commit

Permalink
Gowin. Registers in IO. Fix style.
Browse files Browse the repository at this point in the history
Signed-off-by: YRabbit <[email protected]>
  • Loading branch information
yrabbit committed Jan 1, 2025
1 parent 1c28394 commit ddd2ba6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions himbaechel/uarch/gowin/pack.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -965,7 +965,7 @@ struct GowinPacker
cells_to_remove.push_back(ff->name);
}
break;
}
} while (false);
}
}

Expand Down

0 comments on commit ddd2ba6

Please sign in to comment.