efinix_trion_t20: Minor changes (move serial to platform, fix platform copyright).
This commit is contained in:
parent
0cf9793be5
commit
012c1d9705
|
@ -2,8 +2,6 @@
|
||||||
# This file is part of LiteX-Boards.
|
# This file is part of LiteX-Boards.
|
||||||
#
|
#
|
||||||
# Copyright (c) 2021 Miodrag Milanovic <mmicko@gmail.com>
|
# Copyright (c) 2021 Miodrag Milanovic <mmicko@gmail.com>
|
||||||
# Copyright (c) 2021 Franck Jullien <franck.jullien@collshade.fr>
|
|
||||||
# Copyright (c) 2021 Florent Kermarrec <florent@enjoy-digital.fr>
|
|
||||||
# SPDX-License-Identifier: BSD-2-Clause
|
# SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
|
||||||
from litex.build.generic_platform import *
|
from litex.build.generic_platform import *
|
||||||
|
@ -16,6 +14,13 @@ _io = [
|
||||||
# Clk
|
# Clk
|
||||||
("clk50", 0, Pins("L13"), IOStandard("3.3_V_LVTTL_/_LVCMOS")),
|
("clk50", 0, Pins("L13"), IOStandard("3.3_V_LVTTL_/_LVCMOS")),
|
||||||
|
|
||||||
|
# Serial
|
||||||
|
("serial", 0,
|
||||||
|
Subsignal("tx", Pins("H4:18")), # 27 on H4
|
||||||
|
Subsignal("rx", Pins("H4:19")), # 28 on H4
|
||||||
|
IOStandard("3.3_V_LVTTL_/_LVCMOS") , Misc("WEAK_PULLUP")
|
||||||
|
),
|
||||||
|
|
||||||
# Leds
|
# Leds
|
||||||
("user_led", 0, Pins("D14"), IOStandard("3.3_V_LVTTL_/_LVCMOS"), Misc("DRIVE_STRENGTH=3")),
|
("user_led", 0, Pins("D14"), IOStandard("3.3_V_LVTTL_/_LVCMOS"), Misc("DRIVE_STRENGTH=3")),
|
||||||
("user_led", 1, Pins("E13"), IOStandard("3.3_V_LVTTL_/_LVCMOS"), Misc("DRIVE_STRENGTH=3")),
|
("user_led", 1, Pins("E13"), IOStandard("3.3_V_LVTTL_/_LVCMOS"), Misc("DRIVE_STRENGTH=3")),
|
||||||
|
|
|
@ -39,21 +39,11 @@ class _CRG(Module):
|
||||||
pll.register_clkin(clk50, 50e6)
|
pll.register_clkin(clk50, 50e6)
|
||||||
pll.create_clkout(self.cd_sys, sys_clk_freq, with_reset=True)
|
pll.create_clkout(self.cd_sys, sys_clk_freq, with_reset=True)
|
||||||
|
|
||||||
# Default peripherals
|
|
||||||
serial = [
|
|
||||||
("serial", 0,
|
|
||||||
Subsignal("tx", Pins("H4:18")), # 27 on H4
|
|
||||||
Subsignal("rx", Pins("H4:19")), # 28 on H4
|
|
||||||
IOStandard("3.3_V_LVTTL_/_LVCMOS") , Misc("WEAK_PULLUP")
|
|
||||||
)
|
|
||||||
]
|
|
||||||
|
|
||||||
# BaseSoC ------------------------------------------------------------------------------------------
|
# BaseSoC ------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
class BaseSoC(SoCCore):
|
class BaseSoC(SoCCore):
|
||||||
def __init__(self, sys_clk_freq=int(100e6), with_spi_flash=False, with_led_chaser=True, **kwargs):
|
def __init__(self, sys_clk_freq=int(100e6), with_spi_flash=False, with_led_chaser=True, **kwargs):
|
||||||
platform = efinix_trion_t20_bga256_dev_kit.Platform()
|
platform = efinix_trion_t20_bga256_dev_kit.Platform()
|
||||||
platform.add_extension(serial)
|
|
||||||
|
|
||||||
# SoCCore ----------------------------------------------------------------------------------
|
# SoCCore ----------------------------------------------------------------------------------
|
||||||
SoCCore.__init__(self, platform, sys_clk_freq,
|
SoCCore.__init__(self, platform, sys_clk_freq,
|
||||||
|
|
Loading…
Reference in New Issue