Skip to content

Commit

Permalink
gowin: Himbaechel. Fix IDES16/OSER16
Browse files Browse the repository at this point in the history
Signed-off-by: YRabbit <[email protected]>
  • Loading branch information
yrabbit authored and gatecat committed Mar 13, 2024
1 parent 4e8436a commit ff96fc5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions himbaechel/uarch/gowin/constids.inc
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,7 @@ X(IDES8)
X(IDES10)
X(IVIDEO)
X(IDES16)
X(IOLOGIC)
X(IOLOGICI)
X(IOLOGICO)
X(IOLOGICA)
Expand Down
2 changes: 1 addition & 1 deletion himbaechel/uarch/gowin/gowin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ void GowinImpl::postRoute()

for (auto &cell : ctx->cells) {
auto ci = cell.second.get();
if (ci->type.in(id_IOLOGICI, id_IOLOGICO) ||
if (ci->type.in(id_IOLOGICI, id_IOLOGICO, id_IOLOGIC) ||
((is_iologici(ci) || is_iologico(ci)) && !ci->type.in(id_ODDR, id_ODDRC, id_IDDR, id_IDDRC))) {
if (visited_hclk_users.find(ci->name) == visited_hclk_users.end()) {
// mark FCLK<-HCLK connections
Expand Down
4 changes: 2 additions & 2 deletions himbaechel/uarch/gowin/pack.cc
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ struct GowinPacker
aux->setParam(ctx->id("UPDATE"), Property("SAME"));

// make cell in the next location
ctx->createCell(main_name, id_IOLOGICO);
ctx->createCell(main_name, id_IOLOGIC);
aux = ctx->cells.at(main_name).get();

aux->setAttr(ctx->id("MAIN_CELL"), Property(main_name.str(ctx)));
Expand Down Expand Up @@ -814,7 +814,7 @@ struct GowinPacker
ci.copyPortTo(id_CALIB, aux, id_CALIB);

// make cell in the next location
ctx->createCell(main_name, id_IOLOGICI);
ctx->createCell(main_name, id_IOLOGIC);
aux = ctx->cells.at(main_name).get();

aux->setAttr(ctx->id("MAIN_CELL"), Property(main_name.str(ctx)));
Expand Down

0 comments on commit ff96fc5

Please sign in to comment.