platforms/tinyfpga_b: Move serial peripheral out of default I/O, make it
authorWilliam D. Jones <thor0505@comcast.net>
Wed, 27 Dec 2017 20:11:36 +0000 (15:11 -0500)
committerWilliam D. Jones <thor0505@comcast.net>
Tue, 27 Feb 2018 23:41:35 +0000 (18:41 -0500)
optional via `add_extension`.

litex/boards/platforms/tinyfpga_b.py

index 544370ecf83674caad3608a66955017e0f9f840e..3bf1cb9994bfd1a4d6797128bb8b0474469442a9 100644 (file)
@@ -9,12 +9,6 @@ _io = [
         IOStandard("LVCMOS33")
     ),
 
-    ("serial", 0,
-        Subsignal("tx", Pins("B2")),
-        Subsignal("rx", Pins("A2")),
-        IOStandard("LVCMOS33")
-    ),
-
     ("spiflash", 0,
         Subsignal("cs_n", Pins("F7"), IOStandard("LVCMOS33")),
         Subsignal("clk", Pins("G7"), IOStandard("LVCMOS33")),
@@ -34,6 +28,16 @@ _connectors = [
 ]
 
 
+# Default peripherals
+serial = [
+    ("serial", 0,
+        Subsignal("tx", Pins("GPIO:0")),
+        Subsignal("rx", Pins("GPIO:1")),
+        IOStandard("LVCMOS33")
+    )
+]
+
+
 class Platform(LatticePlatform):
     default_clk_name = "clk16"
     default_clk_period = 62.5