Gowin. Handle the WRITE_MODE.

Process the WRITE_MODE in the GW5A series in a more concise manner.

You can check it in the same way as in
https://github.com/YosysHQ/yosys/pull/5440

Signed-off-by: YRabbit <[email protected]>
This commit is contained in:
YRabbit
2025-10-25 23:15:23 +01:00
committed by Lofty
parent f5c9e122de
commit 3956f103a9
4 changed files with 9 additions and 75 deletions
+8 -4
View File
@@ -19,8 +19,10 @@ ram block $__GOWIN_SP_ {
portoption "WRITE_MODE" 1 {
rdwr new;
}
portoption "WRITE_MODE" 2 {
rdwr old;
ifndef gw5a {
portoption "WRITE_MODE" 2 {
rdwr old;
}
}
}
}
@@ -46,8 +48,10 @@ ram block $__GOWIN_DP_ {
portoption "WRITE_MODE" 1 {
rdwr new;
}
portoption "WRITE_MODE" 2 {
rdwr old;
ifndef gw5a {
portoption "WRITE_MODE" 2 {
rdwr old;
}
}
}
}