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/de0.py | |
| parent | 08b1b955b1fba1f776ff233a23eb98526a8d0c39 (diff) | |
[breaking-change] Factor out PS2Resource.
Diffstat (limited to 'nmigen_boards/de0.py')
| -rw-r--r-- | nmigen_boards/de0.py | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/nmigen_boards/de0.py b/nmigen_boards/de0.py index 0285499..719383c 100644 --- a/nmigen_boards/de0.py +++ b/nmigen_boards/de0.py @@ -64,16 +64,10 @@ class DE0Platform(IntelPlatform): hs="L21", vs="L22", attrs=Attrs(io_standard="3.3-V LVTTL")), - Resource("ps2_host", 0, # Keyboard - Subsignal("clk", Pins("P22", dir="i")), - Subsignal("dat", Pins("P21", dir="io")), - Attrs(io_standard="3.3-V LVTTL") - ), - Resource("ps2_host", 1, # Mouse - Subsignal("clk", Pins("R21", dir="i")), - Subsignal("dat", Pins("R22", dir="io")), - Attrs(io_standard="3.3-V LVTTL") - ), + PS2Resource(0, # Keyboard + clk="P22", dat="P21", attrs=Attrs(io_standard="3.3-V LVTTL")), + PS2Resource(1, # Mouse + clk="R21", dat="R22", attrs=Attrs(io_standard="3.3-V LVTTL")), *SDCardResources(0, clk="Y21", cmd="Y22", dat0="AA22", dat3="W21", wp_n="W20", |
