Fix IO_STANDARD on all iCE40 boards.
authorwhitequark <whitequark@whitequark.org>
Sat, 21 Sep 2019 14:30:14 +0000 (14:30 +0000)
committerwhitequark <whitequark@whitequark.org>
Sat, 21 Sep 2019 14:49:45 +0000 (14:49 +0000)
SB_LVCMOS33 is not recognized by vendor tools. Use SB_LVCMOS instead.

nmigen_boards/blackice.py
nmigen_boards/blackice_ii.py
nmigen_boards/fomu_hacker.py
nmigen_boards/ice40_hx1k_blink_evn.py
nmigen_boards/ice40_hx8k_b_evn.py
nmigen_boards/icebreaker.py
nmigen_boards/icestick.py
nmigen_boards/tinyfpga_bx.py

index 2bdb3d92b1719d916478c01c522ad0f5b4528b01..4e0bb5ce996368a07cee28dde821ad7bbec7b8e1 100644 (file)
@@ -15,37 +15,37 @@ class BlackIcePlatform(LatticeICE40Platform):
     default_clk = "clk100"
     resources   = [
         Resource("clk100", 0, Pins("129", dir="i"),
-            Clock(100e6), Attrs(GLOBAL=True, IO_STANDARD="SB_LVCMOS33")
+            Clock(100e6), Attrs(GLOBAL=True, IO_STANDARD="SB_LVCMOS")
         ),
 
-        Resource("user_led", 0, Pins("71", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")),
-        Resource("user_led", 1, Pins("67", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")),
-        Resource("user_led", 2, Pins("68", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")),
-        Resource("user_led", 3, Pins("70", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")),
+        Resource("user_led", 0, Pins("71", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")),
+        Resource("user_led", 1, Pins("67", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")),
+        Resource("user_led", 2, Pins("68", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")),
+        Resource("user_led", 3, Pins("70", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")),
         # Color aliases
-        Resource("user_ledb", 0, Pins("71", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")),
-        Resource("user_ledg", 0, Pins("67", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")),
-        Resource("user_ledo", 0, Pins("68", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")),
-        Resource("user_ledr", 0, Pins("70", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")),
+        Resource("user_ledb", 0, Pins("71", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")),
+        Resource("user_ledg", 0, Pins("67", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")),
+        Resource("user_ledo", 0, Pins("68", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")),
+        Resource("user_ledr", 0, Pins("70", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")),
 
-        Resource("user_btn", 0, PinsN("63", dir="i"), Attrs(IO_STANDARD="SB_LVCMOS33")),
-        Resource("user_btn", 1, PinsN("64", dir="i"), Attrs(IO_STANDARD="SB_LVCMOS33")),
+        Resource("user_btn", 0, PinsN("63", dir="i"), Attrs(IO_STANDARD="SB_LVCMOS")),
+        Resource("user_btn", 1, PinsN("64", dir="i"), Attrs(IO_STANDARD="SB_LVCMOS")),
 
-        Resource("user_sw", 0, PinsN("37", dir="i"), Attrs(IO_STANDARD="SB_LVCMOS33")),
-        Resource("user_sw", 1, PinsN("38", dir="i"), Attrs(IO_STANDARD="SB_LVCMOS33")),
-        Resource("user_sw", 2, PinsN("39", dir="i"), Attrs(IO_STANDARD="SB_LVCMOS33")),
-        Resource("user_sw", 3, PinsN("41", dir="i"), Attrs(IO_STANDARD="SB_LVCMOS33")),
+        Resource("user_sw", 0, PinsN("37", dir="i"), Attrs(IO_STANDARD="SB_LVCMOS")),
+        Resource("user_sw", 1, PinsN("38", dir="i"), Attrs(IO_STANDARD="SB_LVCMOS")),
+        Resource("user_sw", 2, PinsN("39", dir="i"), Attrs(IO_STANDARD="SB_LVCMOS")),
+        Resource("user_sw", 3, PinsN("41", dir="i"), Attrs(IO_STANDARD="SB_LVCMOS")),
 
         UARTResource(0,
             rx="88", tx="85", rts="91", cts="94",
-            attrs=Attrs(IO_STANDARD="SB_LVCMOS33", PULLUP=1)
+            attrs=Attrs(IO_STANDARD="SB_LVCMOS", PULLUP=1)
         ),
 
         SRAMResource(0,
             cs="136", oe="45", we="120",
             a="137 138 139 141 142 42 43 44 73 74 75 76 115 116 117 118 119 78",
             d="135 134 130 128 125 124 122 121 61 60 56 55 52 49 48 47",
-            attrs=Attrs(IO_STANDARD="SB_LVCMOS33"),
+            attrs=Attrs(IO_STANDARD="SB_LVCMOS"),
         ),
     ]
     connectors  = [
index 0d2f53462819f88e5c8502f034eaf4822734cf21..e74d85503ddff7cafdd7e069f20ce6efb346861e 100644 (file)
@@ -15,30 +15,30 @@ class BlackIceIIPlatform(LatticeICE40Platform):
     default_clk = "clk100"
     resources   = [
         Resource("clk100", 0, Pins("129", dir="i"),
-            Clock(100e6), Attrs(GLOBAL=True, IO_STANDARD="SB_LVCMOS33")
+            Clock(100e6), Attrs(GLOBAL=True, IO_STANDARD="SB_LVCMOS")
         ),
 
-        Resource("user_led", 0, Pins("71", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")),
-        Resource("user_led", 1, Pins("67", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")),
-        Resource("user_led", 2, Pins("68", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")),
-        Resource("user_led", 3, Pins("70", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")),
+        Resource("user_led", 0, Pins("71", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")),
+        Resource("user_led", 1, Pins("67", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")),
+        Resource("user_led", 2, Pins("68", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")),
+        Resource("user_led", 3, Pins("70", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")),
         # Color aliases
-        Resource("user_ledb", 0, Pins("71", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")),
-        Resource("user_ledg", 0, Pins("67", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")),
-        Resource("user_ledo", 0, Pins("68", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")),
-        Resource("user_ledr", 0, Pins("70", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")),
+        Resource("user_ledb", 0, Pins("71", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")),
+        Resource("user_ledg", 0, Pins("67", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")),
+        Resource("user_ledo", 0, Pins("68", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")),
+        Resource("user_ledr", 0, Pins("70", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")),
 
-        Resource("user_btn", 0, PinsN("63", dir="i"), Attrs(IO_STANDARD="SB_LVCMOS33")),
-        Resource("user_btn", 1, PinsN("64", dir="i"), Attrs(IO_STANDARD="SB_LVCMOS33")),
+        Resource("user_btn", 0, PinsN("63", dir="i"), Attrs(IO_STANDARD="SB_LVCMOS")),
+        Resource("user_btn", 1, PinsN("64", dir="i"), Attrs(IO_STANDARD="SB_LVCMOS")),
 
-        Resource("user_sw", 0, PinsN("37", dir="i"), Attrs(IO_STANDARD="SB_LVCMOS33")),
-        Resource("user_sw", 1, PinsN("38", dir="i"), Attrs(IO_STANDARD="SB_LVCMOS33")),
-        Resource("user_sw", 2, PinsN("39", dir="i"), Attrs(IO_STANDARD="SB_LVCMOS33")),
-        Resource("user_sw", 3, PinsN("41", dir="i"), Attrs(IO_STANDARD="SB_LVCMOS33")),
+        Resource("user_sw", 0, PinsN("37", dir="i"), Attrs(IO_STANDARD="SB_LVCMOS")),
+        Resource("user_sw", 1, PinsN("38", dir="i"), Attrs(IO_STANDARD="SB_LVCMOS")),
+        Resource("user_sw", 2, PinsN("39", dir="i"), Attrs(IO_STANDARD="SB_LVCMOS")),
+        Resource("user_sw", 3, PinsN("41", dir="i"), Attrs(IO_STANDARD="SB_LVCMOS")),
 
         UARTResource(0,
             rx="88", tx="85", rts="91", cts="94",
-            attrs=Attrs(IO_STANDARD="SB_LVCMOS33", PULLUP=1)
+            attrs=Attrs(IO_STANDARD="SB_LVCMOS", PULLUP=1)
         ),
 
         SRAMResource(0,
@@ -46,7 +46,7 @@ class BlackIceIIPlatform(LatticeICE40Platform):
             a="137 138 139 141 142 42 43 44 73 74 75 76 115 116 117 118 119 78",
             d="136 135 134 130 125 124 122 121 62 61 60 56 55 48 47 45",
             dm="24 28",
-            attrs=Attrs(IO_STANDARD="SB_LVCMOS33"),
+            attrs=Attrs(IO_STANDARD="SB_LVCMOS"),
         ),
     ]
     connectors  = [
index 34c6b8038f97076b0c830120f3739341f2165343..4a4e8533a62dcf04a112ad044ec83cd71d672e4a 100644 (file)
@@ -15,26 +15,26 @@ class FomuHackerPlatform(LatticeICE40Platform):
     default_clk = "clk48"
     resources   = [
         Resource("clk48", 0, Pins("F5", dir="i"),
-                 Clock(48e6), Attrs(GLOBAL=True, IO_STANDARD="SB_LVCMOS33")),
+                 Clock(48e6), Attrs(GLOBAL=True, IO_STANDARD="SB_LVCMOS")),
 
-        Resource("user_led", 0, PinsN("A5", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")),
+        Resource("user_led", 0, PinsN("A5", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")),
         Resource("rgb_led", 0,
             Subsignal("r", PinsN("C5")),
             Subsignal("g", PinsN("B5")),
             Subsignal("b", PinsN("A5")),
-            Attrs(IO_STANDARD="SB_LVCMOS33"),
+            Attrs(IO_STANDARD="SB_LVCMOS"),
         ),
 
         Resource("usb", 0,
             Subsignal("d_p", Pins("A4")),
             Subsignal("d_n", Pins("A2")),
             Subsignal("pullup", Pins("D5")),
-            Attrs(IO_STANDARD="SB_LVCMOS33"),
+            Attrs(IO_STANDARD="SB_LVCMOS"),
         ),
 
         *SPIFlashResources(0,
             cs="C1", clk="D1", mosi="F1", miso="E1",
-            attrs=Attrs(IO_STANDARD="SB_LVCMOS33"),
+            attrs=Attrs(IO_STANDARD="SB_LVCMOS"),
         ),
     ]
 
index 1504b15f389e90456b597a8402b048310eaf65d9..215e3103a25b703561868a3b8e46ae2a8cf4bada 100644 (file)
@@ -15,21 +15,21 @@ class ICE40HX1KBlinkEVNPlatform(LatticeICE40Platform):
     default_clk = "clk3p3"
     resources   = [
         Resource("clk3p3", 0, Pins("13", dir="i"), Clock(3.3e6),
-                 Attrs(GLOBAL=True, IO_STANDARD="SB_LVCMOS33")),
+                 Attrs(GLOBAL=True, IO_STANDARD="SB_LVCMOS")),
 
-        Resource("user_led", 0, Pins("59", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")),
-        Resource("user_led", 1, Pins("56", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")),
-        Resource("user_led", 2, Pins("53", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")),
-        Resource("user_led", 3, Pins("51", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")),
+        Resource("user_led", 0, Pins("59", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")),
+        Resource("user_led", 1, Pins("56", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")),
+        Resource("user_led", 2, Pins("53", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")),
+        Resource("user_led", 3, Pins("51", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")),
 
-        Resource("user_btn", 0, Pins("60"), Attrs(IO_STANDARD="SB_LVCMOS33")),
-        Resource("user_btn", 1, Pins("57"), Attrs(IO_STANDARD="SB_LVCMOS33")),
-        Resource("user_btn", 2, Pins("54"), Attrs(IO_STANDARD="SB_LVCMOS33")),
-        Resource("user_btn", 3, Pins("52"), Attrs(IO_STANDARD="SB_LVCMOS33")),
+        Resource("user_btn", 0, Pins("60"), Attrs(IO_STANDARD="SB_LVCMOS")),
+        Resource("user_btn", 1, Pins("57"), Attrs(IO_STANDARD="SB_LVCMOS")),
+        Resource("user_btn", 2, Pins("54"), Attrs(IO_STANDARD="SB_LVCMOS")),
+        Resource("user_btn", 3, Pins("52"), Attrs(IO_STANDARD="SB_LVCMOS")),
 
         *SPIFlashResources(0,
             cs="49", clk="48", mosi="45", miso="46",
-            attrs=Attrs(IO_STANDARD="SB_LVCMOS33")
+            attrs=Attrs(IO_STANDARD="SB_LVCMOS")
         ),
     ]
     connectors  = [
index bca53d087b2316ba74c26fce3124ff15155b429f..ffa00eea7ba71cafdfd8fd630e740c1a86ab3c1a 100644 (file)
@@ -15,25 +15,25 @@ class ICE40HX8KBEVNPlatform(LatticeICE40Platform):
     default_clk = "clk12"
     resources   = [
         Resource("clk12", 0, Pins("J3", dir="i"),
-                 Clock(12e6), Attrs(GLOBAL=True, IO_STANDARD="SB_LVCMOS33")),
+                 Clock(12e6), Attrs(GLOBAL=True, IO_STANDARD="SB_LVCMOS")),
 
-        Resource("user_led", 0, Pins("C3", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")), # D2
-        Resource("user_led", 1, Pins("B3", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")), # D3
-        Resource("user_led", 2, Pins("C4", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")), # D4
-        Resource("user_led", 3, Pins("C5", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")), # D5
-        Resource("user_led", 4, Pins("A1", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")), # D6
-        Resource("user_led", 5, Pins("A2", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")), # D7
-        Resource("user_led", 6, Pins("B4", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")), # D8
-        Resource("user_led", 7, Pins("B5", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")), # D9
+        Resource("user_led", 0, Pins("C3", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")), # D2
+        Resource("user_led", 1, Pins("B3", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")), # D3
+        Resource("user_led", 2, Pins("C4", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")), # D4
+        Resource("user_led", 3, Pins("C5", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")), # D5
+        Resource("user_led", 4, Pins("A1", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")), # D6
+        Resource("user_led", 5, Pins("A2", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")), # D7
+        Resource("user_led", 6, Pins("B4", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")), # D8
+        Resource("user_led", 7, Pins("B5", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")), # D9
 
         UARTResource(0,
             rx="B10", tx="B12", rts="B13", cts="A15", dtr="A16", dsr="B14", dcd="B15",
-            attrs=Attrs(IO_STANDARD="SB_LVCMOS33", PULLUP=1)
+            attrs=Attrs(IO_STANDARD="SB_LVCMOS", PULLUP=1)
         ),
 
         *SPIFlashResources(0,
             cs="R12", clk="R11", mosi="P12", miso="P11",
-            attrs=Attrs(IO_STANDARD="SB_LVCMOS33")
+            attrs=Attrs(IO_STANDARD="SB_LVCMOS")
         ),
     ]
     connectors  = [
index 9dfd950a80322e5aa99b3aaa211d740a049be8c6..ac4f23954d73d52fec0afce1c838f6b2e3a10eba 100644 (file)
@@ -15,15 +15,15 @@ class ICEBreakerPlatform(LatticeICE40Platform):
     default_clk = "clk12"
     resources   = [
         Resource("clk12", 0, Pins("35", dir="i"),
-                 Clock(12e6), Attrs(GLOBAL=True, IO_STANDARD="SB_LVCMOS33")),
+                 Clock(12e6), Attrs(GLOBAL=True, IO_STANDARD="SB_LVCMOS")),
 
-        Resource("user_led",  0, PinsN("11", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")),
-        Resource("user_led",  1, PinsN("37", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")),
+        Resource("user_led",  0, PinsN("11", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")),
+        Resource("user_led",  1, PinsN("37", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")),
         # Color-specific aliases
-        Resource("user_ledr", 0, PinsN("11", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")),
-        Resource("user_ledg", 0, PinsN("37", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")),
+        Resource("user_ledr", 0, PinsN("11", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")),
+        Resource("user_ledg", 0, PinsN("37", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")),
 
-        Resource("user_btn",  0, PinsN("10", dir="i"), Attrs(IO_STANDARD="SB_LVCMOS33")),
+        Resource("user_btn",  0, PinsN("10", dir="i"), Attrs(IO_STANDARD="SB_LVCMOS")),
 
         UARTResource(0,
             rx="6", tx="9",
@@ -32,7 +32,7 @@ class ICEBreakerPlatform(LatticeICE40Platform):
 
         *SPIFlashResources(0,
             cs="16", clk="15", mosi="14", miso="17", wp="12", hold="13",
-            attrs=Attrs(IO_STANDARD="SB_LVCMOS33")
+            attrs=Attrs(IO_STANDARD="SB_LVCMOS")
         ),
     ]
     connectors = [
@@ -46,34 +46,34 @@ class ICEBreakerPlatform(LatticeICE40Platform):
     # pmod_btn = plat.request("user_btn")
     break_off_pmod = [
          Resource("user_btn", 1, Pins("9", dir="i", conn=("pmod", 2)),
-                  Attrs(IO_STANDARD="SB_LVCMOS33")),
+                  Attrs(IO_STANDARD="SB_LVCMOS")),
          Resource("user_btn", 2, Pins("4", dir="i", conn=("pmod", 2)),
-                  Attrs(IO_STANDARD="SB_LVCMOS33")),
+                  Attrs(IO_STANDARD="SB_LVCMOS")),
          Resource("user_btn", 3, Pins("10", dir="i", conn=("pmod", 2)),
-                  Attrs(IO_STANDARD="SB_LVCMOS33")),
+                  Attrs(IO_STANDARD="SB_LVCMOS")),
 
          Resource("user_led", 2, Pins("7", dir="o", conn=("pmod", 2)),
-                  Attrs(IO_STANDARD="SB_LVCMOS33")),
+                  Attrs(IO_STANDARD="SB_LVCMOS")),
          Resource("user_led", 3, Pins("1", dir="o", conn=("pmod", 2)),
-                  Attrs(IO_STANDARD="SB_LVCMOS33")),
+                  Attrs(IO_STANDARD="SB_LVCMOS")),
          Resource("user_led", 4, Pins("2", dir="o", conn=("pmod", 2)),
-                  Attrs(IO_STANDARD="SB_LVCMOS33")),
+                  Attrs(IO_STANDARD="SB_LVCMOS")),
          Resource("user_led", 5, Pins("8", dir="o", conn=("pmod", 2)),
-                  Attrs(IO_STANDARD="SB_LVCMOS33")),
+                  Attrs(IO_STANDARD="SB_LVCMOS")),
          Resource("user_led", 6, Pins("3", dir="o", conn=("pmod", 2)),
-                  Attrs(IO_STANDARD="SB_LVCMOS33")),
+                  Attrs(IO_STANDARD="SB_LVCMOS")),
 
          # Color-specific aliases
          Resource("user_ledr", 1, Pins("7", dir="o", conn=("pmod", 2)),
-                  Attrs(IO_STANDARD="SB_LVCMOS33")),
+                  Attrs(IO_STANDARD="SB_LVCMOS")),
          Resource("user_ledg", 1, Pins("1", dir="o", conn=("pmod", 2)),
-                  Attrs(IO_STANDARD="SB_LVCMOS33")),
+                  Attrs(IO_STANDARD="SB_LVCMOS")),
          Resource("user_ledg", 2, Pins("2", dir="o", conn=("pmod", 2)),
-                  Attrs(IO_STANDARD="SB_LVCMOS33")),
+                  Attrs(IO_STANDARD="SB_LVCMOS")),
          Resource("user_ledg", 3, Pins("8", dir="o", conn=("pmod", 2)),
-                  Attrs(IO_STANDARD="SB_LVCMOS33")),
+                  Attrs(IO_STANDARD="SB_LVCMOS")),
          Resource("user_ledg", 4, Pins("3", dir="o", conn=("pmod", 2)),
-                  Attrs(IO_STANDARD="SB_LVCMOS33"))
+                  Attrs(IO_STANDARD="SB_LVCMOS"))
     ]
 
     def toolchain_program(self, products, name):
index f41006d64b14d7d1efda830af5f4417e29475f9f..bbcad5ee065275fca44be2168e4981b36818e452 100644 (file)
@@ -16,13 +16,13 @@ class ICEStickPlatform(LatticeICE40Platform):
     default_clk = "clk12"
     resources   = [
         Resource("clk12", 0, Pins("21", dir="i"),
-                 Clock(12e6), Attrs(GLOBAL=True, IO_STANDARD="SB_LVCMOS33")),
+                 Clock(12e6), Attrs(GLOBAL=True, IO_STANDARD="SB_LVCMOS")),
 
-        Resource("user_led", 0, Pins("99", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")),
-        Resource("user_led", 1, Pins("98", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")),
-        Resource("user_led", 2, Pins("97", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")),
-        Resource("user_led", 3, Pins("96", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")),
-        Resource("user_led", 4, Pins("95", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")),
+        Resource("user_led", 0, Pins("99", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")),
+        Resource("user_led", 1, Pins("98", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")),
+        Resource("user_led", 2, Pins("97", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")),
+        Resource("user_led", 3, Pins("96", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")),
+        Resource("user_led", 4, Pins("95", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")),
 
         UARTResource(0,
             rx="9", tx="8", rts="7", cts="4", dtr="3", dsr="2", dcd="1",
@@ -31,12 +31,12 @@ class ICEStickPlatform(LatticeICE40Platform):
 
         IrDAResource(0,
             rx="106", tx="105", sd="107",
-            attrs=Attrs(IO_STANDARD="SB_LVCMOS33")
+            attrs=Attrs(IO_STANDARD="SB_LVCMOS")
         ),
 
         *SPIFlashResources(0,
             cs="71", clk="70", mosi="67", miso="68",
-            attrs=Attrs(IO_STANDARD="SB_LVCMOS33")
+            attrs=Attrs(IO_STANDARD="SB_LVCMOS")
         ),
     ]
     connectors  = [
index 4eb6942fe783338db20958996b18d56a97553cf8..4e136a7055c0c588b1793214f9ab5d5d0dc21966 100644 (file)
@@ -15,20 +15,20 @@ class TinyFPGABXPlatform(LatticeICE40Platform):
     default_clk = "clk16"
     resources   = [
         Resource("clk16", 0, Pins("B2", dir="i"),
-                 Clock(16e6), Attrs(IO_STANDARD="SB_LVCMOS33")),
+                 Clock(16e6), Attrs(IO_STANDARD="SB_LVCMOS")),
 
-        Resource("user_led", 0, Pins("B3", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")),
+        Resource("user_led", 0, Pins("B3", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS")),
 
         Resource("usb", 0,
             Subsignal("d_p",    Pins("B4", dir="io")),
             Subsignal("d_n",    Pins("A4", dir="io")),
             Subsignal("pullup", Pins("A3", dir="o")),
-            Attrs(IO_STANDARD="SB_LVCMOS33")
+            Attrs(IO_STANDARD="SB_LVCMOS")
         ),
 
         *SPIFlashResources(0,
             cs="F7", clk="G7", mosi="G6", miso="H7", wp="H4", hold="J8",
-            attrs=Attrs(IO_STANDARD="SB_LVCMOS33")
+            attrs=Attrs(IO_STANDARD="SB_LVCMOS")
         ),
     ]
     connectors  = [