Merge pull request #280 from developandplay/master

Fix tang nano loopback and button
This commit is contained in:
enjoy-digital 2021-10-16 09:09:39 +02:00 committed by GitHub
commit a2261a1e9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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")