aboutsummaryrefslogtreecommitdiff
path: root/nmigen_boards/upduino_v1.py
diff options
context:
space:
mode:
authorwhitequark <whitequark@whitequark.org>2021-12-10 07:38:00 +0000
committerwhitequark <whitequark@whitequark.org>2021-12-10 08:30:37 +0000
commitb968cfade961a329c26035ef8bfdf3058e95a9f1 (patch)
tree94891b950cb0547868877027230ff09b9cb56d4a /nmigen_boards/upduino_v1.py
parentbd7fdd379d8b28f8b542f251a11ca28297e8fd6f (diff)
Rename nMigen to Amaranth HDL.
Diffstat (limited to 'nmigen_boards/upduino_v1.py')
-rw-r--r--nmigen_boards/upduino_v1.py39
1 files changed, 5 insertions, 34 deletions
diff --git a/nmigen_boards/upduino_v1.py b/nmigen_boards/upduino_v1.py
index a24a7a7..eeb0995 100644
--- a/nmigen_boards/upduino_v1.py
+++ b/nmigen_boards/upduino_v1.py
@@ -1,36 +1,7 @@
-from nmigen.build import *
-from nmigen.vendor.lattice_ice40 import *
-from .resources import *
+from amaranth_boards.upduino_v1 import *
+from amaranth_boards.upduino_v1 import __all__
-__all__ = ["UpduinoV1Platform"]
-
-
-class UpduinoV1Platform(LatticeICE40Platform):
- device = "iCE40UP5K"
- package = "SG48"
- default_clk = "SB_HFOSC"
- hfosc_div = 0
- resources = [
- *LEDResources(pins="39 40 41", invert=True,
- attrs=Attrs(IO_STANDARD="SB_LVCMOS")),
- Resource("led_g", 0, PinsN("39", dir="o"),
- Attrs(IO_STANDARD="SB_LVCMOS")),
- Resource("led_b", 0, PinsN("40", dir="o"),
- Attrs(IO_STANDARD="SB_LVCMOS")),
- Resource("led_r", 0, PinsN("41", dir="o"),
- Attrs(IO_STANDARD="SB_LVCMOS")),
-
- *SPIFlashResources(0,
- cs_n="16", clk="15", cipo="17", copi="14",
- attrs=Attrs(IO_STANDARD="SB_LVCMOS")
- ),
- ]
- connectors = [
- # "Left" row of header pins (JP5 on the schematic)
- Connector("j", 0, "- - 23 25 26 27 32 35 31 37 34 43 36 42 38 28"),
- # "Right" row of header pins (JP6 on the schematic)
- Connector("j", 1, "12 21 13 19 18 11 9 6 44 4 3 48 45 47 46 2")
- ]
-
- # This board doesn't have an integrated programmer.
+import warnings
+warnings.warn("instead of nmigen_boards.upduino_v1, use amaranth_boards.upduino_v1",
+ DeprecationWarning, stacklevel=2)