diff options
| author | Catherine <whitequark@whitequark.org> | 2022-02-08 11:56:01 +0000 |
|---|---|---|
| committer | Catherine <whitequark@whitequark.org> | 2022-02-08 11:56:01 +0000 |
| commit | d3fb7331b2b15e5a0221ca7de63fb2ac544809b8 (patch) | |
| tree | 748b3c146fb1fab84f9ba62593f8dd27b9df9145 /amaranth_boards | |
| parent | aaf18252e457ff95257137da2a629820c0ff2bfa (diff) | |
genesys2: don't pass strings as resource numbers.
This was never supported, but was previously unchecked.
Diffstat (limited to 'amaranth_boards')
| -rw-r--r-- | amaranth_boards/genesys2.py | 10 |
1 files 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={ |
