From d3fb7331b2b15e5a0221ca7de63fb2ac544809b8 Mon Sep 17 00:00:00 2001 From: Catherine Date: Tue, 8 Feb 2022 11:56:01 +0000 Subject: genesys2: don't pass strings as resource numbers. This was never supported, but was previously unchecked. --- amaranth_boards/genesys2.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/amaranth_boards/genesys2.py b/amaranth_boards/genesys2.py index 008dced..31ac39d 100644 --- a/amaranth_boards/genesys2.py +++ b/amaranth_boards/genesys2.py @@ -34,11 +34,11 @@ class Genesys2Platform(Xilinx7SeriesPlatform): Resource("clk", 0, DiffPairs(p="AD12 ", n="AD11", dir="i"), Clock(200e6), Attrs(IOSTANDARD="LVDS")), *ButtonResources(pins={ - "w": "M20", - "e": "C19", - "n": "B19", - "s": "M19", - "c": "E18"}, attrs=Attrs(IOSTANDARD=bank15_16_17_iostandard)), + 0: "E18", + 1: "B19", + 2: "C19", + 3: "M19", + 4: "M20"}, attrs=Attrs(IOSTANDARD=bank15_16_17_iostandard)), *SwitchResources(pins="G19 G25 H24 K19 N19 P19", attrs=Attrs(IOSTANDARD=bank15_16_17_iostandard)), *SwitchResources(pins={ -- cgit v1.2.3