Fix tang nano loopback and button

This commit is contained in:
Martin Troiber 2021-10-16 04:34:45 +02:00
parent a4d330dd2c
commit a3c7446a2b
1 changed files with 2 additions and 1 deletions

View File

@ -27,7 +27,7 @@ _io = [
# Buttons. # Buttons.
("user_btn", 0, Pins("15"), IOStandard("LVCMOS33")), ("user_btn", 0, Pins("15"), IOStandard("LVCMOS33")),
("user_btn", 0, Pins("14"), IOStandard("LVCMOS33")), ("user_btn", 1, Pins("14"), IOStandard("LVCMOS33")),
# Serial # Serial
("serial", 0, ("serial", 0,
@ -50,6 +50,7 @@ class Platform(GowinPlatform):
def __init__(self): def __init__(self):
GowinPlatform.__init__(self, "GW1N-LV1QN48C6/I5", _io, _connectors, toolchain="gowin", devicename="GW1N-1") GowinPlatform.__init__(self, "GW1N-LV1QN48C6/I5", _io, _connectors, toolchain="gowin", devicename="GW1N-1")
self.toolchain.options["use_done_as_gpio"] = 1 self.toolchain.options["use_done_as_gpio"] = 1
self.toolchain.options["use_reconfign_as_gpio"] = 1
def create_programmer(self): def create_programmer(self):
return OpenFPGALoader("tangnano") return OpenFPGALoader("tangnano")