platforms/tinyfpga_b: Move serial peripheral out of default I/O, make it

optional via `add_extension`.
This commit is contained in:
William D. Jones 2017-12-27 15:11:36 -05:00
parent c5be6e26be
commit e71593d67e
1 changed files with 10 additions and 6 deletions

View File

@ -9,12 +9,6 @@ _io = [
IOStandard("LVCMOS33") IOStandard("LVCMOS33")
), ),
("serial", 0,
Subsignal("tx", Pins("B2")),
Subsignal("rx", Pins("A2")),
IOStandard("LVCMOS33")
),
("spiflash", 0, ("spiflash", 0,
Subsignal("cs_n", Pins("F7"), IOStandard("LVCMOS33")), Subsignal("cs_n", Pins("F7"), IOStandard("LVCMOS33")),
Subsignal("clk", Pins("G7"), 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): class Platform(LatticePlatform):
default_clk_name = "clk16" default_clk_name = "clk16"
default_clk_period = 62.5 default_clk_period = 62.5