mirror of https://github.com/YosysHQ/nextpnr.git
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:
parent
c7cfb0aa4b
commit
c133d00e2e
|
|
@ -179,7 +179,7 @@ void GowinImpl::init(Context *ctx)
|
||||||
|
|
||||||
gwu.init(ctx);
|
gwu.init(ctx);
|
||||||
|
|
||||||
const ArchArgs &args = ctx->getArchArgs();
|
const ArchArgs &args = ctx->args;
|
||||||
|
|
||||||
// package and speed class
|
// package and speed class
|
||||||
std::regex speedre = std::regex("(.*)(C[0-9]/I[0-9])$");
|
std::regex speedre = std::regex("(.*)(C[0-9]/I[0-9])$");
|
||||||
|
|
|
||||||
|
|
@ -2696,7 +2696,7 @@ struct GowinPacker
|
||||||
divide_sdp(ci, new_cells);
|
divide_sdp(ci, new_cells);
|
||||||
} else {
|
} else {
|
||||||
log_error("The fix for SDP when ports A and B have different bit widths has not yet been implemented. "
|
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));
|
ci->type.c_str(ctx));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -3934,7 +3934,7 @@ struct GowinPacker
|
||||||
pincfg_cell->connectPort(port, ctx->nets.at(ctx->id("$PACKER_VCC")).get());
|
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);
|
pincfg_cell->addInput(id_SSPI);
|
||||||
if (args.options.count("sspi_as_gpio")) {
|
if (args.options.count("sspi_as_gpio")) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue