Gowin. Take the arch arguments directly. (#1592)

Since ctx->getArchArgs() no longer returns architecture-specific
arguments, we read the args field directly.

Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
This commit is contained in:
YRabbit 2025-10-23 15:58:01 +10:00 committed by GitHub
parent c7cfb0aa4b
commit c133d00e2e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -179,7 +179,7 @@ void GowinImpl::init(Context *ctx)
gwu.init(ctx);
const ArchArgs &args = ctx->getArchArgs();
const ArchArgs &args = ctx->args;
// package and speed class
std::regex speedre = std::regex("(.*)(C[0-9]/I[0-9])$");

View File

@ -2696,7 +2696,7 @@ struct GowinPacker
divide_sdp(ci, new_cells);
} else {
log_error("The fix for SDP when ports A and B have different bit widths has not yet been implemented. "
"Cell'%s'\n",
"Cell: '%s'\n",
ci->type.c_str(ctx));
}
}
@ -3934,7 +3934,7 @@ struct GowinPacker
pincfg_cell->connectPort(port, ctx->nets.at(ctx->id("$PACKER_VCC")).get());
}
const ArchArgs &args = ctx->getArchArgs();
const ArchArgs &args = ctx->args;
pincfg_cell->addInput(id_SSPI);
if (args.options.count("sspi_as_gpio")) {