gowin: Himbaechel. Fix IDES16/OSER16

Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
This commit is contained in:
YRabbit 2024-02-10 14:16:52 +10:00 committed by myrtle
parent 4e8436a1fc
commit ff96fc5af1
3 changed files with 4 additions and 3 deletions

View File

@ -797,6 +797,7 @@ X(IDES8)
X(IDES10) X(IDES10)
X(IVIDEO) X(IVIDEO)
X(IDES16) X(IDES16)
X(IOLOGIC)
X(IOLOGICI) X(IOLOGICI)
X(IOLOGICO) X(IOLOGICO)
X(IOLOGICA) X(IOLOGICA)

View File

@ -200,7 +200,7 @@ void GowinImpl::postRoute()
for (auto &cell : ctx->cells) { for (auto &cell : ctx->cells) {
auto ci = cell.second.get(); 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))) { ((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()) { if (visited_hclk_users.find(ci->name) == visited_hclk_users.end()) {
// mark FCLK<-HCLK connections // mark FCLK<-HCLK connections

View File

@ -741,7 +741,7 @@ struct GowinPacker
aux->setParam(ctx->id("UPDATE"), Property("SAME")); aux->setParam(ctx->id("UPDATE"), Property("SAME"));
// make cell in the next location // 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 = ctx->cells.at(main_name).get();
aux->setAttr(ctx->id("MAIN_CELL"), Property(main_name.str(ctx))); aux->setAttr(ctx->id("MAIN_CELL"), Property(main_name.str(ctx)));
@ -814,7 +814,7 @@ struct GowinPacker
ci.copyPortTo(id_CALIB, aux, id_CALIB); ci.copyPortTo(id_CALIB, aux, id_CALIB);
// make cell in the next location // 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 = ctx->cells.at(main_name).get();
aux->setAttr(ctx->id("MAIN_CELL"), Property(main_name.str(ctx))); aux->setAttr(ctx->id("MAIN_CELL"), Property(main_name.str(ctx)));