gowin: add preliminary support for GW5AST-138

Arora V series is a new series of Gowin FPGA, in which the flashing
process has changed.

Add preliminary support by adding FS file line count and deal with the
SRAM writing process. Flash writing is not yet done.

Signed-off-by: Icenowy Zheng <[email protected]>
This commit is contained in:
Icenowy Zheng
2023-08-12 12:36:06 +08:00
parent 6a4e107e42
commit 0de2ea6b39
3 changed files with 32 additions and 0 deletions
+7
View File
@@ -180,6 +180,13 @@ int FsParser::parse()
case 0x0000281b: /* GW2A-55 */
nb_line = 2038;
break;
case 0x0001081b: /* GW5AST-138 */
/*
* FIXME: Lack of information,
* so just accept everything.
*/
nb_line = 65535;
break;
default:
printWarn("Warning: Unknown IDCODE");
nb_line = 0;