de0: fix button polarity.
authorwhitequark <whitequark@whitequark.org>
Thu, 3 Oct 2019 09:51:27 +0000 (09:51 +0000)
committerwhitequark <whitequark@whitequark.org>
Thu, 3 Oct 2019 09:51:27 +0000 (09:51 +0000)
nmigen_boards/de0.py

index 047d010795ad41c6efac059c5db6df56c37d1ca5..7ecd4e07e40fee2097d7e4e933d9d0bea87b93a6 100644 (file)
@@ -24,7 +24,7 @@ class DE0Platform(AlteraPlatform):
             pins="J1 J2 J3 H1 F2 E1 C1 C2 B2 B1",
             attrs=Attrs(io_standard="3.3-V LVTTL")),
         *ButtonResources(
-            pins="H2 G3 F1",
+            pins="H2 G3 F1", invert=True,
             attrs=Attrs(io_standard="3.3-V LVTTL")),
         *SwitchResources(
             pins="J6 H5 H6 G4 G5 J7 H7 E3 E4 D2",