From cd91349a0621d12ee4b0c44dbb2cb4cf87beb3e3 Mon Sep 17 00:00:00 2001 From: whitequark Date: Mon, 3 Jun 2019 15:03:43 +0000 Subject: [PATCH] vendor.icestick: add connectors. --- nmigen/vendor/icestick.py | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/nmigen/vendor/icestick.py b/nmigen/vendor/icestick.py index f2f2da6..917a363 100644 --- a/nmigen/vendor/icestick.py +++ b/nmigen/vendor/icestick.py @@ -6,12 +6,12 @@ __all__ = ["ICEStickPlatform"] class ICEStickPlatform(IceStormProgrammerMixin, LatticeICE40Platform): - device = "hx1k" - package = "tq144" - clocks = [ + device = "hx1k" + package = "tq144" + clocks = [ ("clk12", 12e6), ] - resources = [ + resources = [ Resource("clk12", 0, Pins("21", dir="i"), extras={"GLOBAL": "1", "IO_STANDARD": "SB_LVCMOS33"}), @@ -42,9 +42,15 @@ class ICEStickPlatform(IceStormProgrammerMixin, LatticeICE40Platform): Resource("spiflash", 0, Subsignal("cs_n", Pins("71", dir="o")), Subsignal("clk", Pins("70", dir="o")), - Subsignal("mosi", Pins("67", dir="io")), - Subsignal("miso", Pins("68", dir="io")), + Subsignal("mosi", Pins("67", dir="o")), + Subsignal("miso", Pins("68", dir="i")), extras={"IO_STANDARD": "SB_LVCMOS33"} ), ] - prog_mode = "flash" + connectors = [ + Connector("pmod", 0, "78 79 80 81 - - 87 88 90 91 - -"), # J2 + + Connector("j", 1, "- - 112 113 114 115 116 117 118 119"), # J1 + Connector("j", 3, "- - 62 61 60 56 48 47 45 44"), # J3 + ] + prog_mode = "flash" -- 2.30.2