Skip to content

Commit d3fb733

Browse files
committed
genesys2: don't pass strings as resource numbers.
This was never supported, but was previously unchecked.
1 parent aaf1825 commit d3fb733

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

amaranth_boards/genesys2.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ def bank15_16_17_iostandard(self):
3434
Resource("clk", 0, DiffPairs(p="AD12 ", n="AD11", dir="i"),
3535
Clock(200e6), Attrs(IOSTANDARD="LVDS")),
3636
*ButtonResources(pins={
37-
"w": "M20",
38-
"e": "C19",
39-
"n": "B19",
40-
"s": "M19",
41-
"c": "E18"}, attrs=Attrs(IOSTANDARD=bank15_16_17_iostandard)),
37+
0: "E18",
38+
1: "B19",
39+
2: "C19",
40+
3: "M19",
41+
4: "M20"}, attrs=Attrs(IOSTANDARD=bank15_16_17_iostandard)),
4242
*SwitchResources(pins="G19 G25 H24 K19 N19 P19",
4343
attrs=Attrs(IOSTANDARD=bank15_16_17_iostandard)),
4444
*SwitchResources(pins={

0 commit comments

Comments
 (0)