Skip to content

Commit 9cd004e

Browse files
Merge pull request #702 from maass-hamburg/arty_fix_sdcard
platforms: digilent_arty: move slew setting
2 parents 6657cd8 + b22f5c1 commit 9cd004e

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
- name: Install Python dependencies
2626
run: |
27-
python3 -m pip install setuptools requests pexpect meson
27+
python3 -m pip install setuptools requests pexpect meson pytest
2828
2929
# Install (n)Migen / LiteX / Cores
3030
- name: Install LiteX
@@ -38,4 +38,4 @@ jobs:
3838

3939
# Test
4040
- name: Run Tests
41-
run: python3 setup.py test
41+
run: python3 -m pytest -v

litex_boards/platforms/digilent_arty.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -299,11 +299,10 @@ def sdcard_pmod_io(pmod):
299299
IOStandard("LVCMOS33"),
300300
),
301301
("sdcard", 0,
302-
Subsignal("data", Pins(f"{pmod}:2 {pmod}:4 {pmod}:5 {pmod}:0"), Misc("PULLUP True")),
303-
Subsignal("cmd", Pins(f"{pmod}:1"), Misc("PULLUP True")),
304-
Subsignal("clk", Pins(f"{pmod}:3")),
302+
Subsignal("data", Pins(f"{pmod}:2 {pmod}:4 {pmod}:5 {pmod}:0"), Misc("SLEW=FAST"), Misc("PULLUP True")),
303+
Subsignal("cmd", Pins(f"{pmod}:1"), Misc("SLEW=FAST"), Misc("PULLUP True")),
304+
Subsignal("clk", Pins(f"{pmod}:3"), Misc("SLEW=FAST")),
305305
Subsignal("cd", Pins(f"{pmod}:6")),
306-
Misc("SLEW=FAST"), #NOTE: this and all Misc() is not supported by yosys+nextprn toolchain
307306
IOStandard("LVCMOS33"),
308307
),
309308
]

0 commit comments

Comments
 (0)