Skip to content

Commit c58f4d1

Browse files
committed
genesys2: Fix test, amaranth-boards allows only integers as keys of pins dict.
1 parent 42cf3a2 commit c58f4d1

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

amaranth_boards/genesys2.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,12 @@ 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: "M20", # w, strings are not supported by amaranth-boards
38+
1: "C19", # e # Note: _SplitResources could be extended
39+
2: "B19", # n # to handle dicts and set default_name to
40+
3: "M19", # s # the string supplied here
41+
4: "E18"},# c
42+
attrs=Attrs(IOSTANDARD=bank15_16_17_iostandard)),
4243
*SwitchResources(pins="G19 G25 H24 K19 N19 P19",
4344
attrs=Attrs(IOSTANDARD=bank15_16_17_iostandard)),
4445
*SwitchResources(pins={

0 commit comments

Comments
 (0)