examples,docs: ensure amaranth-boards is available as a dev dependency.

This commit is contained in:
Catherine 2023-09-25 13:46:14 +00:00
parent d27681b157
commit e6ec0be889
4 changed files with 6 additions and 3 deletions

View file

@ -18,7 +18,7 @@ class LEDBlinker(Elaboratable):
return m return m
# --- BUILD --- # --- BUILD ---
from amaranth_boards.icestick import * from amaranth_boards.icestick import ICEStickPlatform
ICEStickPlatform().build(LEDBlinker(), do_program=True) ICEStickPlatform().build(LEDBlinker(), do_program=True)

View file

@ -2,7 +2,7 @@
# using the platform default clock (and default reset, if any). # using the platform default clock (and default reset, if any).
from amaranth import * from amaranth import *
from amaranth_boards.ice40_hx1k_blink_evn import * from amaranth_boards.ice40_hx1k_blink_evn import ICE40HX1KBlinkEVNPlatform
class Blinky(Elaboratable): class Blinky(Elaboratable):

View file

@ -3,7 +3,7 @@
# independently created in addition to the main "sync" domain. # independently created in addition to the main "sync" domain.
from amaranth import * from amaranth import *
from amaranth_boards.ice40_hx1k_blink_evn import * from amaranth_boards.ice40_hx1k_blink_evn import ICE40HX1KBlinkEVNPlatform
class BlinkyWithDomain(Elaboratable): class BlinkyWithDomain(Elaboratable):

View file

@ -57,6 +57,9 @@ docs = [
"sphinx-rtd-theme~=1.2", "sphinx-rtd-theme~=1.2",
"sphinx-autobuild", "sphinx-autobuild",
] ]
examples = [
"amaranth-boards @ git+https://github.com/amaranth-lang/amaranth-boards.git"
]
[tool.pdm.scripts] [tool.pdm.scripts]
test.composite = ["test-code", "test-docs"] test.composite = ["test-code", "test-docs"]