Merge pull request #34 from rhgndf/stgal

Support ST GAL16V8
This commit is contained in:
ole00 2023-09-18 20:37:39 +01:00 committed by GitHub
commit 5aaa1bdf8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -26,6 +26,7 @@ Supported GAL chips:
* Lattice GAL16V8A, GAL16V8B, GAL16V8D
* Lattice GAL22V10B, GAL22V10D
* National GAL16V8
* ST Microsystems GAL16V8
* Lattice GAL20V8B (no adapter needed)
* Lattice GAL20XV10B

View File

@ -1692,6 +1692,8 @@ static char checkGalTypeViaPes(void)
for (type = (sizeof(galinfo) / sizeof(galinfo[0])) - 1; type; type--) {
if (pes[2] == galinfo[type].id0 || pes[2] == galinfo[type].id1) break;
}
} else if (pes[3] == SGSTHOMSON && pes[2] == 0x00) {
type = GAL16V8;
}
return type;