diff options
| author | S.J.R. van Schaik <stephan@synkhronix.com> | 2021-06-03 10:53:08 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-03 14:53:08 +0000 |
| commit | dbde179dc53e6cc3bdde0b6b00b31446367f5451 (patch) | |
| tree | 2edad4a7a1db0d5f2c0736bb8d78bd8e1cf2323d /nmigen_boards/mercury.py | |
| parent | 08b1b955b1fba1f776ff233a23eb98526a8d0c39 (diff) | |
[breaking-change] Factor out PS2Resource.
Diffstat (limited to 'nmigen_boards/mercury.py')
| -rw-r--r-- | nmigen_boards/mercury.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/nmigen_boards/mercury.py b/nmigen_boards/mercury.py index b03bb88..2561a1d 100644 --- a/nmigen_boards/mercury.py +++ b/nmigen_boards/mercury.py @@ -185,11 +185,8 @@ class MercuryPlatform(XilinxSpartan3APlatform): ] _ps2 = [ - Resource("ps2", 0, - Subsignal("clk", Pins("2", dir="io", conn=("led", 0))), - Subsignal("data", Pins("1", dir="io", conn=("led", 0))), - Attrs(IOSTANDARD="LVTTL") - ) + PS2Resource(0, + clk="2", dat="1", conn=("led", 0), attrs=Attrs(IOSTANDARD="LVTTL")), ] _audio = [ |
