vendor.tinyfpga_{b→bx}
authorwhitequark <whitequark@whitequark.org>
Sun, 2 Jun 2019 04:11:06 +0000 (04:11 +0000)
committerwhitequark <whitequark@whitequark.org>
Sun, 2 Jun 2019 04:11:28 +0000 (04:11 +0000)
nmigen/vendor/tinyfpga_b.py [deleted file]
nmigen/vendor/tinyfpga_bx.py [new file with mode: 0644]

diff --git a/nmigen/vendor/tinyfpga_b.py b/nmigen/vendor/tinyfpga_b.py
deleted file mode 100644 (file)
index 6960b84..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-from ..build import *
-from .fpga.lattice_ice40 import LatticeICE40Platform, TinyProgrammerMixin
-
-
-__all__ = ["TinyFPGABPlatform"]
-
-
-class TinyFPGABPlatform(TinyProgrammerMixin, LatticeICE40Platform):
-    device    = "lp8k"
-    package   = "cm81"
-    clocks    = [
-        ("clk16", 16e6),
-    ]
-    resources = [
-        Resource("clk16", 0, Pins("B2", dir="i"), extras=["IO_STANDARD=SB_LVCMOS33"]),
-
-        Resource("user_led", 0, Pins("B3", dir="o"), extras=["IO_STANDARD=SB_LVCMOS33"]),
-
-        Resource("usb", 0,
-            Subsignal("d_p", Pins("B4", dir="io")),
-            Subsignal("d_n", Pins("A4", dir="io")),
-            Subsignal("pull_up", Pins("A3", dir="o")),
-            extras=["IO_STANDARD=SB_LVCMOS33"]
-        ),
-
-        Resource("spiflash", 0,
-            Subsignal("cs_n", Pins("F7", dir="o")),
-            Subsignal("clk",  Pins("G7", dir="o")),
-            Subsignal("mosi", Pins("G6", dir="io")),
-            Subsignal("miso", Pins("H7", dir="io")),
-            extras=["IO_STANDARD=SB_LVCMOS33"]
-        ),
-    ]
diff --git a/nmigen/vendor/tinyfpga_bx.py b/nmigen/vendor/tinyfpga_bx.py
new file mode 100644 (file)
index 0000000..ccaa2b3
--- /dev/null
@@ -0,0 +1,33 @@
+from ..build import *
+from .fpga.lattice_ice40 import LatticeICE40Platform, TinyProgrammerMixin
+
+
+__all__ = ["TinyFPGABXPlatform"]
+
+
+class TinyFPGABXPlatform(TinyProgrammerMixin, LatticeICE40Platform):
+    device    = "lp8k"
+    package   = "cm81"
+    clocks    = [
+        ("clk16", 16e6),
+    ]
+    resources = [
+        Resource("clk16", 0, Pins("B2", dir="i"), extras=["IO_STANDARD=SB_LVCMOS33"]),
+
+        Resource("user_led", 0, Pins("B3", dir="o"), extras=["IO_STANDARD=SB_LVCMOS33"]),
+
+        Resource("usb", 0,
+            Subsignal("d_p", Pins("B4", dir="io")),
+            Subsignal("d_n", Pins("A4", dir="io")),
+            Subsignal("pull_up", Pins("A3", dir="o")),
+            extras=["IO_STANDARD=SB_LVCMOS33"]
+        ),
+
+        Resource("spiflash", 0,
+            Subsignal("cs_n", Pins("F7", dir="o")),
+            Subsignal("clk",  Pins("G7", dir="o")),
+            Subsignal("mosi", Pins("G6", dir="io")),
+            Subsignal("miso", Pins("H7", dir="io")),
+            extras=["IO_STANDARD=SB_LVCMOS33"]
+        ),
+    ]