aboutsummaryrefslogtreecommitdiff
path: root/nmigen_boards/ebaz4205.py
diff options
context:
space:
mode:
Diffstat (limited to 'nmigen_boards/ebaz4205.py')
-rw-r--r--nmigen_boards/ebaz4205.py43
1 files changed, 5 insertions, 38 deletions
diff --git a/nmigen_boards/ebaz4205.py b/nmigen_boards/ebaz4205.py
index 062c7c7..2e3bdfd 100644
--- a/nmigen_boards/ebaz4205.py
+++ b/nmigen_boards/ebaz4205.py
@@ -1,40 +1,7 @@
-import os
-import subprocess
+from amaranth_boards.ebaz4205 import *
+from amaranth_boards.ebaz4205 import __all__
-from nmigen.build import *
-from nmigen.vendor.xilinx_7series import *
-from .resources import *
-
-__all__ = ["EBAZ4205Platform"]
-
-
-class EBAZ4205Platform(Xilinx7SeriesPlatform):
- device = "xc7z010"
- package = "clg400"
- speed = "1"
- default_clk = "clk33_333"
- resources = [
- Resource("clk33_333", 0,
- Pins("N18", dir="i"), Clock(33.333e6), Attrs(IOSTANDARD="LVCMOS33")),
-
- *LEDResources(
- pins="W14 W13",
- attrs=Attrs(IOSTANDARD="LVCMOS33")),
-
- UARTResource(0,
- rx="B19", tx="B20",
- attrs=Attrs(IOSTANDARD="LVCMOS33")),
- ]
- connectors = [
- ]
-
- def toolchain_program(self, products, name, **kwargs):
- xc3sprog = os.environ.get("XC3SPROG", "xc3sprog")
- with products.extract("{}.bit".format(name)) as bitstream_filename:
- subprocess.run([xc3sprog, "-c", "jtaghs1_fast", "-p", "1", bitstream_filename], check=True)
-
-
-if __name__ == "__main__":
- from .test.blinky import *
- EBAZ4205Platform().build(Blinky(), do_program=True)
+import warnings
+warnings.warn("instead of nmigen_boards.ebaz4205, use amaranth_boards.ebaz4205",
+ DeprecationWarning, stacklevel=2)