From: whitequark Date: Sun, 2 Jun 2019 04:11:06 +0000 (+0000) Subject: vendor.tinyfpga_{b→bx} X-Git-Tag: locally_working~232 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=37152c733ead304cbac245b39376c2ae708f85b9;p=nmigen.git vendor.tinyfpga_{b→bx} --- diff --git a/nmigen/vendor/tinyfpga_b.py b/nmigen/vendor/tinyfpga_b.py deleted file mode 100644 index 6960b84..0000000 --- a/nmigen/vendor/tinyfpga_b.py +++ /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 index 0000000..ccaa2b3 --- /dev/null +++ b/nmigen/vendor/tinyfpga_bx.py @@ -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"] + ), + ]