platforms/sipeed_tang_primer_20k: use replace _connectors.extend by add_connector

This commit is contained in:
Gwenhael Goavec-Merou 2022-09-06 20:19:37 +02:00
parent 0f242629ab
commit 4d72c75f49
1 changed files with 3 additions and 2 deletions

View File

@ -251,11 +251,12 @@ class Platform(GowinPlatform):
default_clk_period = 1e9/27e6 default_clk_period = 1e9/27e6
def __init__(self, dock="dock", toolchain="gowin"): def __init__(self, dock="dock", toolchain="gowin"):
if dock == "lite":
_connectors.extend(_dock_lite_connectors)
GowinPlatform.__init__(self, "GW2A-LV18PG256C8/I7", _io, _connectors, toolchain=toolchain, devicename="GW2A-18C") GowinPlatform.__init__(self, "GW2A-LV18PG256C8/I7", _io, _connectors, toolchain=toolchain, devicename="GW2A-18C")
self.add_extension(_dock_io if dock == "dock" else _dock_lite_io) self.add_extension(_dock_io if dock == "dock" else _dock_lite_io)
if dock == "lite":
self.add_connector(_dock_lite_connectors)
self.toolchain.options["use_mspi_as_gpio"] = 1 self.toolchain.options["use_mspi_as_gpio"] = 1
self.toolchain.options["use_sspi_as_gpio"] = 1 self.toolchain.options["use_sspi_as_gpio"] = 1
self.toolchain.options["use_ready_as_gpio"] = 1 self.toolchain.options["use_ready_as_gpio"] = 1