From: whitequark Date: Mon, 3 Jun 2019 15:03:34 +0000 (+0000) Subject: vendor.ice40_hx1k_blink_evn: add (some) connectors. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=152ffff1bd051cc23b5bdbd6e91f85ed88e5c8d3;p=nmigen.git vendor.ice40_hx1k_blink_evn: add (some) connectors. I have no idea how to lay out the Arduino-like connectors best, so they're just missing. --- diff --git a/nmigen/vendor/ice40_hx1k_blink_evn.py b/nmigen/vendor/ice40_hx1k_blink_evn.py index cc6d5a5..9e2759d 100644 --- a/nmigen/vendor/ice40_hx1k_blink_evn.py +++ b/nmigen/vendor/ice40_hx1k_blink_evn.py @@ -6,12 +6,12 @@ __all__ = ["ICE40HX1KBlinkEVNPlatform"] class ICE40HX1KBlinkEVNPlatform(IceBurnProgrammerMixin, LatticeICE40Platform): - device = "hx1k" - package = "vq100" - clocks = [ + device = "hx1k" + package = "vq100" + clocks = [ ("clk3p3", 3.3e6), ] - resources = [ + resources = [ Resource("clk3p3", 0, Pins("13", dir="i"), extras={"GLOBAL": "1", "IO_STANDARD": "SB_LVCMOS33"}), @@ -25,3 +25,10 @@ class ICE40HX1KBlinkEVNPlatform(IceBurnProgrammerMixin, LatticeICE40Platform): Resource("user_btn", 2, Pins("54"), extras={"IO_STANDARD": "SB_LVCMOS33"}), Resource("user_btn", 3, Pins("52"), extras={"IO_STANDARD": "SB_LVCMOS33"}), ] + connectors = [ + Connector("pmod", 1, "10 9 8 7 - - 4 3 2 1 - -"), # J1 + Connector("pmod", 5, "40 42 62 64 - - 37 41 63 45 - -"), # J5 + Connector("pmod", 6, "25 24 21 20 - - 26 27 28 33 - -"), # J6 + Connector("pmod", 11, "49 45 46 48 - -"), # J11 + Connector("pmod", 12, "59 56 53 51 - -"), # J12 + ]