From: whitequark Date: Thu, 10 Oct 2019 15:38:03 +0000 (+0000) Subject: Add TinyFPGA AX{1,2} boards. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e56789903ea62204ec70c707df51962d963833e2;p=nmigen-boards.git Add TinyFPGA AX{1,2} boards. --- diff --git a/nmigen_boards/tinyfpga_ax1.py b/nmigen_boards/tinyfpga_ax1.py new file mode 100644 index 0000000..979245a --- /dev/null +++ b/nmigen_boards/tinyfpga_ax1.py @@ -0,0 +1,24 @@ +from nmigen.build import * +from nmigen.vendor.lattice_machxo2 import * +from .resources import * + + +__all__ = ["TinyFPGAAX1Platform"] + + +class TinyFPGAAX1Platform(LatticeMachXO2Platform): + device = "LCMXO2-256HC" + package = "SG32" + speed = "4" + connectors = [ + Connector("gpio", 0, + # Left side of the board + # 1 2 3 4 5 6 7 8 9 10 11 + "13 14 16 17 20 21 23 25 26 27 28 " + # Right side of the board + # 12 13 14 15 16 17 18 19 20 21 22 + "- - - - 4 5 8 9 10 11 12 " + ), + ] + + # This board doesn't have an integrated programmer. diff --git a/nmigen_boards/tinyfpga_ax2.py b/nmigen_boards/tinyfpga_ax2.py new file mode 100644 index 0000000..cd702ad --- /dev/null +++ b/nmigen_boards/tinyfpga_ax2.py @@ -0,0 +1,24 @@ +from nmigen.build import * +from nmigen.vendor.lattice_machxo2 import * +from .resources import * + + +__all__ = ["TinyFPGAAX2Platform"] + + +class TinyFPGAAX2Platform(LatticeMachXO2Platform): + device = "LCMXO2-1200HC" + package = "SG32" + speed = "4" + connectors = [ + Connector("gpio", 0, + # Left side of the board + # 1 2 3 4 5 6 7 8 9 10 11 + "13 14 16 17 20 21 23 25 26 27 28 " + # Right side of the board + # 12 13 14 15 16 17 18 19 20 21 22 + "- - - - 4 5 8 9 10 11 12 " + ), + ] + + # This board doesn't have an integrated programmer.