mirror of https://github.com/YosysHQ/nextpnr.git
Gowin. Recognize GW5A family chips.
Construct chip base name for - GW5A-LV25MG121C1/l0 - TangPrimer 25k - GW5AT-LV60PG484A - TangMega 60k - GW5AST-LV138PG484A - TangMega 138k Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
This commit is contained in:
parent
52d2e805db
commit
50cd305d48
|
|
@ -129,8 +129,10 @@ void GowinImpl::init_database(Arch *arch)
|
|||
if (GW2) {
|
||||
log_error("For the GW2A series you need to specify --vopt family=GW2A-18 or --vopt family=GW2A-18C\n");
|
||||
} else {
|
||||
if (args.device.rfind("GW5A", 0) == 0) {
|
||||
family = "GW5A-25A";
|
||||
std::regex devicere = std::regex("GW5A(T|ST)?-LV(25|60|138)[A-Z]*.*");
|
||||
std::smatch match;
|
||||
if (std::regex_match(args.device, match, devicere)) {
|
||||
family = stringf("GW5A%s-%sA", match[1].str().c_str(), match[2].str().c_str());
|
||||
} else {
|
||||
std::regex devicere = std::regex("GW1N([SZ]?)[A-Z]*-(LV|UV|UX)([0-9])(C?).*");
|
||||
std::smatch match;
|
||||
|
|
|
|||
Loading…
Reference in New Issue