From e71593d67e7207e1f2ff892ecd49cbbcf955725e Mon Sep 17 00:00:00 2001 From: "William D. Jones" Date: Wed, 27 Dec 2017 15:11:36 -0500 Subject: [PATCH] platforms/tinyfpga_b: Move serial peripheral out of default I/O, make it optional via `add_extension`. --- litex/boards/platforms/tinyfpga_b.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/litex/boards/platforms/tinyfpga_b.py b/litex/boards/platforms/tinyfpga_b.py index 544370ecf..3bf1cb999 100644 --- a/litex/boards/platforms/tinyfpga_b.py +++ b/litex/boards/platforms/tinyfpga_b.py @@ -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