Update iCE40 GLOBAL and PULLUP attribute to use correct types.
authorwhitequark <whitequark@whitequark.org>
Fri, 30 Aug 2019 08:39:30 +0000 (08:39 +0000)
committerwhitequark <whitequark@whitequark.org>
Fri, 30 Aug 2019 08:43:02 +0000 (08:43 +0000)
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

index 51d09e49e84571686e36e747c79176beccbf93d3..2bdb3d92b1719d916478c01c522ad0f5b4528b01 100644 (file)
@@ -15,7 +15,7 @@ class BlackIcePlatform(LatticeICE40Platform):
     default_clk = "clk100"
     resources   = [
         Resource("clk100", 0, Pins("129", dir="i"),
-            Clock(100e6), Attrs(GLOBAL="1", IO_STANDARD="SB_LVCMOS33")
+            Clock(100e6), Attrs(GLOBAL=True, IO_STANDARD="SB_LVCMOS33")
         ),
 
         Resource("user_led", 0, Pins("71", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")),
@@ -38,7 +38,7 @@ class BlackIcePlatform(LatticeICE40Platform):
 
         UARTResource(0,
             rx="88", tx="85", rts="91", cts="94",
-            attrs=Attrs(IO_STANDARD="SB_LVCMOS33", PULLUP="1")
+            attrs=Attrs(IO_STANDARD="SB_LVCMOS33", PULLUP=1)
         ),
 
         SRAMResource(0,
index 040a8f8c73db4d0714a78ef0ae36311ab8779c22..0d2f53462819f88e5c8502f034eaf4822734cf21 100644 (file)
@@ -15,7 +15,7 @@ class BlackIceIIPlatform(LatticeICE40Platform):
     default_clk = "clk100"
     resources   = [
         Resource("clk100", 0, Pins("129", dir="i"),
-            Clock(100e6), Attrs(GLOBAL="1", IO_STANDARD="SB_LVCMOS33")
+            Clock(100e6), Attrs(GLOBAL=True, IO_STANDARD="SB_LVCMOS33")
         ),
 
         Resource("user_led", 0, Pins("71", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")),
@@ -38,7 +38,7 @@ class BlackIceIIPlatform(LatticeICE40Platform):
 
         UARTResource(0,
             rx="88", tx="85", rts="91", cts="94",
-            attrs=Attrs(IO_STANDARD="SB_LVCMOS33", PULLUP="1")
+            attrs=Attrs(IO_STANDARD="SB_LVCMOS33", PULLUP=1)
         ),
 
         SRAMResource(0,
index 905262ded626a8e2f513c91261338e485661c40d..34c6b8038f97076b0c830120f3739341f2165343 100644 (file)
@@ -15,7 +15,7 @@ class FomuHackerPlatform(LatticeICE40Platform):
     default_clk = "clk48"
     resources   = [
         Resource("clk48", 0, Pins("F5", dir="i"),
-                 Clock(48e6), Attrs(GLOBAL="1", IO_STANDARD="SB_LVCMOS33")),
+                 Clock(48e6), Attrs(GLOBAL=True, IO_STANDARD="SB_LVCMOS33")),
 
         Resource("user_led", 0, PinsN("A5", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")),
         Resource("rgb_led", 0,
index a3233b934820e2f743ec3a1bfdd09f0f352648a7..1504b15f389e90456b597a8402b048310eaf65d9 100644 (file)
@@ -15,7 +15,7 @@ class ICE40HX1KBlinkEVNPlatform(LatticeICE40Platform):
     default_clk = "clk3p3"
     resources   = [
         Resource("clk3p3", 0, Pins("13", dir="i"), Clock(3.3e6),
-                 Attrs(GLOBAL="1", IO_STANDARD="SB_LVCMOS33")),
+                 Attrs(GLOBAL=True, IO_STANDARD="SB_LVCMOS33")),
 
         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")),
index cf0c8a5f451510fb7968063d37b6abbe266bf433..bca53d087b2316ba74c26fce3124ff15155b429f 100644 (file)
@@ -15,7 +15,7 @@ class ICE40HX8KBEVNPlatform(LatticeICE40Platform):
     default_clk = "clk12"
     resources   = [
         Resource("clk12", 0, Pins("J3", dir="i"),
-                 Clock(12e6), Attrs(GLOBAL="1", IO_STANDARD="SB_LVCMOS33")),
+                 Clock(12e6), Attrs(GLOBAL=True, IO_STANDARD="SB_LVCMOS33")),
 
         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
@@ -28,7 +28,7 @@ class ICE40HX8KBEVNPlatform(LatticeICE40Platform):
 
         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_LVCMOS33", PULLUP=1)
         ),
 
         *SPIFlashResources(0,
index 755a5217782e1eb4ae3da6ffa188deee10aeaaa6..9dfd950a80322e5aa99b3aaa211d740a049be8c6 100644 (file)
@@ -15,7 +15,7 @@ class ICEBreakerPlatform(LatticeICE40Platform):
     default_clk = "clk12"
     resources   = [
         Resource("clk12", 0, Pins("35", dir="i"),
-                 Clock(12e6), Attrs(GLOBAL="1", IO_STANDARD="SB_LVCMOS33")),
+                 Clock(12e6), Attrs(GLOBAL=True, IO_STANDARD="SB_LVCMOS33")),
 
         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")),
@@ -27,7 +27,7 @@ class ICEBreakerPlatform(LatticeICE40Platform):
 
         UARTResource(0,
             rx="6", tx="9",
-            attrs=Attrs(IO_STANDARD="SB_LVTTL", PULLUP="1")
+            attrs=Attrs(IO_STANDARD="SB_LVTTL", PULLUP=1)
         ),
 
         *SPIFlashResources(0,
index dccf34c1bdb240d97594d8d1546dd2511c02eac4..f41006d64b14d7d1efda830af5f4417e29475f9f 100644 (file)
@@ -16,7 +16,7 @@ class ICEStickPlatform(LatticeICE40Platform):
     default_clk = "clk12"
     resources   = [
         Resource("clk12", 0, Pins("21", dir="i"),
-                 Clock(12e6), Attrs(GLOBAL="1", IO_STANDARD="SB_LVCMOS33")),
+                 Clock(12e6), Attrs(GLOBAL=True, IO_STANDARD="SB_LVCMOS33")),
 
         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")),
@@ -26,7 +26,7 @@ class ICEStickPlatform(LatticeICE40Platform):
 
         UARTResource(0,
             rx="9", tx="8", rts="7", cts="4", dtr="3", dsr="2", dcd="1",
-            attrs=Attrs(IO_STANDARD="SB_LVTTL", PULLUP="1")
+            attrs=Attrs(IO_STANDARD="SB_LVTTL", PULLUP=1)
         ),
 
         IrDAResource(0,