From f351e2bd1e0a0bb1ae5e5616a44e557a9b103c63 Mon Sep 17 00:00:00 2001 From: whitequark Date: Mon, 3 Jun 2019 15:03:34 +0000 Subject: [PATCH] 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. --- nmigen/vendor/ice40_hx1k_blink_evn.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) 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 + ] -- 2.30.2