mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
boards/targets: improve presentation
This commit is contained in:
parent
a318343afb
commit
871b958f85
11 changed files with 82 additions and 40 deletions
|
@ -17,6 +17,7 @@ from litedram.phy import s7ddrphy
|
|||
from liteeth.phy.mii import LiteEthPHYMII
|
||||
from liteeth.core.mac import LiteEthMAC
|
||||
|
||||
# CRG ----------------------------------------------------------------------------------------------
|
||||
|
||||
class _CRG(Module):
|
||||
def __init__(self, platform, sys_clk_freq):
|
||||
|
@ -41,6 +42,7 @@ class _CRG(Module):
|
|||
Instance("BUFG", i_I=eth_clk, o_O=platform.request("eth_ref_clk")),
|
||||
]
|
||||
|
||||
# BaseSoC ------------------------------------------------------------------------------------------
|
||||
|
||||
class BaseSoC(SoCSDRAM):
|
||||
csr_map = {
|
||||
|
@ -64,6 +66,7 @@ class BaseSoC(SoCSDRAM):
|
|||
sdram_module.geom_settings,
|
||||
sdram_module.timing_settings)
|
||||
|
||||
# EthernetSoC --------------------------------------------------------------------------------------
|
||||
|
||||
class EthernetSoC(BaseSoC):
|
||||
csr_map = {
|
||||
|
@ -103,9 +106,10 @@ class EthernetSoC(BaseSoC):
|
|||
self.ethphy.crg.cd_eth_rx.clk,
|
||||
self.ethphy.crg.cd_eth_tx.clk)
|
||||
|
||||
# Build --------------------------------------------------------------------------------------------
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description="LiteX SoC port to Arty")
|
||||
parser = argparse.ArgumentParser(description="LiteX SoC on Arty")
|
||||
builder_args(parser)
|
||||
soc_sdram_args(parser)
|
||||
parser.add_argument("--with-ethernet", action="store_true",
|
||||
|
|
|
@ -12,6 +12,7 @@ from litex.soc.integration.builder import *
|
|||
from litedram.modules import IS42S16160
|
||||
from litedram.phy import GENSDRPHY
|
||||
|
||||
# CRG ----------------------------------------------------------------------------------------------
|
||||
|
||||
class _ALTPLL(Module):
|
||||
def __init__(self, period_in, name, phase_shift, operation_mode):
|
||||
|
@ -86,6 +87,7 @@ class _CRG(Module):
|
|||
|
||||
self.comb += platform.request("sdram_clock").eq(self.cd_sys_ps.clk)
|
||||
|
||||
# BaseSoC ------------------------------------------------------------------------------------------
|
||||
|
||||
class BaseSoC(SoCSDRAM):
|
||||
def __init__(self, **kwargs):
|
||||
|
@ -104,8 +106,10 @@ class BaseSoC(SoCSDRAM):
|
|||
sdram_module.geom_settings,
|
||||
sdram_module.timing_settings)
|
||||
|
||||
# Build --------------------------------------------------------------------------------------------
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description="LiteX SoC port to the Altera DE0 Nano")
|
||||
parser = argparse.ArgumentParser(description="LiteX SoC on DE0 Nano")
|
||||
builder_args(parser)
|
||||
soc_sdram_args(parser)
|
||||
args = parser.parse_args()
|
||||
|
|
|
@ -17,6 +17,7 @@ from litedram.phy import s7ddrphy
|
|||
from liteeth.phy.s7rgmii import LiteEthPHYRGMII
|
||||
from liteeth.core.mac import LiteEthMAC
|
||||
|
||||
# CRG ----------------------------------------------------------------------------------------------
|
||||
|
||||
class _CRG(Module):
|
||||
def __init__(self, platform, sys_clk_freq):
|
||||
|
@ -33,6 +34,7 @@ class _CRG(Module):
|
|||
|
||||
self.submodules.idelayctrl = S7IDELAYCTRL(self.cd_clk200)
|
||||
|
||||
# BaseSoC ------------------------------------------------------------------------------------------
|
||||
|
||||
class BaseSoC(SoCSDRAM):
|
||||
csr_map = {
|
||||
|
@ -56,6 +58,7 @@ class BaseSoC(SoCSDRAM):
|
|||
sdram_module.geom_settings,
|
||||
sdram_module.timing_settings)
|
||||
|
||||
# EthernetSoC ------------------------------------------------------------------------------------------
|
||||
|
||||
class EthernetSoC(BaseSoC):
|
||||
csr_map = {
|
||||
|
@ -95,9 +98,10 @@ class EthernetSoC(BaseSoC):
|
|||
self.ethphy.crg.cd_eth_rx.clk,
|
||||
self.ethphy.crg.cd_eth_tx.clk)
|
||||
|
||||
# Build --------------------------------------------------------------------------------------------
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description="LiteX SoC port to Genesys 2")
|
||||
parser = argparse.ArgumentParser(description="LiteX SoC on Genesys2")
|
||||
builder_args(parser)
|
||||
soc_sdram_args(parser)
|
||||
parser.add_argument("--with-ethernet", action="store_true",
|
||||
|
|
|
@ -17,6 +17,7 @@ from litedram.phy import s7ddrphy
|
|||
from liteeth.phy import LiteEthPHY
|
||||
from liteeth.core.mac import LiteEthMAC
|
||||
|
||||
# CRG ----------------------------------------------------------------------------------------------
|
||||
|
||||
class _CRG(Module):
|
||||
def __init__(self, platform, sys_clk_freq):
|
||||
|
@ -33,6 +34,7 @@ class _CRG(Module):
|
|||
|
||||
self.submodules.idelayctrl = S7IDELAYCTRL(self.cd_clk200)
|
||||
|
||||
# BaseSoC ------------------------------------------------------------------------------------------
|
||||
|
||||
class BaseSoC(SoCSDRAM):
|
||||
csr_map = {
|
||||
|
@ -56,6 +58,7 @@ class BaseSoC(SoCSDRAM):
|
|||
sdram_module.geom_settings,
|
||||
sdram_module.timing_settings)
|
||||
|
||||
# EthernetSoC ------------------------------------------------------------------------------------------
|
||||
|
||||
class EthernetSoC(BaseSoC):
|
||||
csr_map = {
|
||||
|
@ -95,9 +98,10 @@ class EthernetSoC(BaseSoC):
|
|||
self.ethphy.crg.cd_eth_rx.clk,
|
||||
self.ethphy.crg.cd_eth_tx.clk)
|
||||
|
||||
# Build --------------------------------------------------------------------------------------------
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description="LiteX SoC port to KC705")
|
||||
parser = argparse.ArgumentParser(description="LiteX SoC on KC705")
|
||||
builder_args(parser)
|
||||
soc_sdram_args(parser)
|
||||
parser.add_argument("--with-ethernet", action="store_true",
|
||||
|
|
|
@ -14,6 +14,7 @@ from litex.soc.integration.builder import *
|
|||
from litedram.modules import EDY4016A
|
||||
from litedram.phy import usddrphy
|
||||
|
||||
# CRG ----------------------------------------------------------------------------------------------
|
||||
|
||||
class _CRG(Module):
|
||||
def __init__(self, platform, sys_clk_freq):
|
||||
|
@ -66,6 +67,7 @@ class _CRG(Module):
|
|||
AsyncResetSynchronizer(self.cd_ic, ic_reset)
|
||||
]
|
||||
|
||||
# BaseSoC ------------------------------------------------------------------------------------------
|
||||
|
||||
class BaseSoC(SoCSDRAM):
|
||||
csr_map = {
|
||||
|
@ -90,9 +92,10 @@ class BaseSoC(SoCSDRAM):
|
|||
sdram_module.geom_settings,
|
||||
sdram_module.timing_settings)
|
||||
|
||||
# Build --------------------------------------------------------------------------------------------
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description="LiteX SoC port to KCU105")
|
||||
parser = argparse.ArgumentParser(description="LiteX SoC on KCU105")
|
||||
builder_args(parser)
|
||||
soc_sdram_args(parser)
|
||||
args = parser.parse_args()
|
||||
|
|
|
@ -14,6 +14,7 @@ from litex.soc.integration.builder import *
|
|||
from litedram.modules import AS4C16M16
|
||||
from litedram.phy import GENSDRPHY
|
||||
|
||||
# CRG ----------------------------------------------------------------------------------------------
|
||||
|
||||
class _CRG(Module):
|
||||
def __init__(self, platform, clk_freq):
|
||||
|
@ -65,6 +66,7 @@ class _CRG(Module):
|
|||
i_C0=self.cd_sys.clk, i_C1=~self.cd_sys.clk,
|
||||
o_Q=platform.request("sdram_clock"))
|
||||
|
||||
# BaseSoC ------------------------------------------------------------------------------------------
|
||||
|
||||
class BaseSoC(SoCSDRAM):
|
||||
def __init__(self, **kwargs):
|
||||
|
@ -83,9 +85,10 @@ class BaseSoC(SoCSDRAM):
|
|||
sdram_module.geom_settings,
|
||||
sdram_module.timing_settings)
|
||||
|
||||
# Build --------------------------------------------------------------------------------------------
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description="LiteX SoC port to the MiniSpartan6")
|
||||
parser = argparse.ArgumentParser(description="LiteX SoC on MiniSpartan6")
|
||||
builder_args(parser)
|
||||
soc_sdram_args(parser)
|
||||
args = parser.parse_args()
|
||||
|
|
|
@ -14,6 +14,8 @@ from litex.soc.integration.builder import *
|
|||
from litedram.modules import MT47H64M16
|
||||
from litedram.phy import s7ddrphy
|
||||
|
||||
# CRG ----------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
class _CRG(Module):
|
||||
def __init__(self, platform, sys_clk_freq):
|
||||
|
@ -34,6 +36,7 @@ class _CRG(Module):
|
|||
|
||||
self.submodules.idelayctrl = S7IDELAYCTRL(self.cd_clk200)
|
||||
|
||||
# BaseSoC ------------------------------------------------------------------------------------------
|
||||
|
||||
class BaseSoC(SoCSDRAM):
|
||||
csr_map = {
|
||||
|
@ -58,9 +61,10 @@ class BaseSoC(SoCSDRAM):
|
|||
sdram_module.timing_settings)
|
||||
self.add_constant("MEMTEST_ADDR_SIZE", 0) # FIXME
|
||||
|
||||
# Build --------------------------------------------------------------------------------------------
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description="LiteX SoC port to Nexys4DDR")
|
||||
parser = argparse.ArgumentParser(description="LiteX SoC on Nexys4DDR")
|
||||
builder_args(parser)
|
||||
soc_sdram_args(parser)
|
||||
args = parser.parse_args()
|
||||
|
|
|
@ -17,6 +17,7 @@ from litedram.phy import s7ddrphy
|
|||
from liteeth.phy.s7rgmii import LiteEthPHYRGMII
|
||||
from liteeth.core.mac import LiteEthMAC
|
||||
|
||||
# CRG ----------------------------------------------------------------------------------------------
|
||||
|
||||
class _CRG(Module):
|
||||
def __init__(self, platform, sys_clk_freq):
|
||||
|
@ -37,6 +38,7 @@ class _CRG(Module):
|
|||
|
||||
self.submodules.idelayctrl = S7IDELAYCTRL(self.cd_clk200)
|
||||
|
||||
# BaseSoC ------------------------------------------------------------------------------------------
|
||||
|
||||
class BaseSoC(SoCSDRAM):
|
||||
csr_map = {
|
||||
|
@ -60,6 +62,7 @@ class BaseSoC(SoCSDRAM):
|
|||
sdram_module.geom_settings,
|
||||
sdram_module.timing_settings)
|
||||
|
||||
# EthernetSoC --------------------------------------------------------------------------------------
|
||||
|
||||
class EthernetSoC(BaseSoC):
|
||||
csr_map = {
|
||||
|
@ -99,9 +102,10 @@ class EthernetSoC(BaseSoC):
|
|||
self.ethphy.crg.cd_eth_rx.clk,
|
||||
self.ethphy.crg.cd_eth_tx.clk)
|
||||
|
||||
# Build --------------------------------------------------------------------------------------------
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description="LiteX SoC port to Nexys Video")
|
||||
parser = argparse.ArgumentParser(description="LiteX SoC on Nexys Video")
|
||||
builder_args(parser)
|
||||
soc_sdram_args(parser)
|
||||
parser.add_argument("--with-ethernet", action="store_true",
|
||||
|
|
|
@ -12,6 +12,8 @@ from litex.soc.integration.builder import *
|
|||
from liteeth.phy import LiteEthPHY
|
||||
from liteeth.core.mac import LiteEthMAC
|
||||
|
||||
# BaseSoC ------------------------------------------------------------------------------------------
|
||||
|
||||
class BaseSoC(SoCCore):
|
||||
def __init__(self, platform, **kwargs):
|
||||
sys_clk_freq = int(1e9/platform.default_clk_period)
|
||||
|
@ -21,6 +23,7 @@ class BaseSoC(SoCCore):
|
|||
**kwargs)
|
||||
self.submodules.crg = CRG(platform.request(platform.default_clk_name))
|
||||
|
||||
# EthernetSoC --------------------------------------------------------------------------------------
|
||||
|
||||
class EthernetSoC(BaseSoC):
|
||||
csr_map = {
|
||||
|
@ -49,6 +52,7 @@ class EthernetSoC(BaseSoC):
|
|||
self.add_wb_slave(mem_decoder(self.mem_map["ethmac"]), self.ethmac.bus)
|
||||
self.add_memory_region("ethmac", self.mem_map["ethmac"] | self.shadow_base, 0x2000)
|
||||
|
||||
# Build --------------------------------------------------------------------------------------------
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description="Generic LiteX SoC")
|
||||
|
|
|
@ -14,6 +14,7 @@ from litex.soc.integration.builder import *
|
|||
from litedram.modules import MT48LC16M16
|
||||
from litedram.phy import GENSDRPHY
|
||||
|
||||
# CRG ----------------------------------------------------------------------------------------------
|
||||
|
||||
class _CRG(Module):
|
||||
def __init__(self, platform):
|
||||
|
@ -45,6 +46,7 @@ class _CRG(Module):
|
|||
wifi_gpio0 = platform.request("wifi_gpio0")
|
||||
self.comb += wifi_gpio0.eq(1)
|
||||
|
||||
# BaseSoC ------------------------------------------------------------------------------------------
|
||||
|
||||
class BaseSoC(SoCSDRAM):
|
||||
def __init__(self, **kwargs):
|
||||
|
@ -63,8 +65,10 @@ class BaseSoC(SoCSDRAM):
|
|||
sdram_module.geom_settings,
|
||||
sdram_module.timing_settings)
|
||||
|
||||
# Build --------------------------------------------------------------------------------------------
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description="LiteX SoC port to the ULX3S")
|
||||
parser = argparse.ArgumentParser(description="LiteX SoC on ULX3S")
|
||||
builder_args(parser)
|
||||
soc_sdram_args(parser)
|
||||
args = parser.parse_args()
|
||||
|
|
|
@ -14,6 +14,7 @@ from litex.soc.integration.builder import *
|
|||
from litedram.modules import AS4C32M16
|
||||
from litedram.phy import GENSDRPHY
|
||||
|
||||
# CRG ----------------------------------------------------------------------------------------------
|
||||
|
||||
class _CRG(Module):
|
||||
def __init__(self, platform):
|
||||
|
@ -41,6 +42,7 @@ class _CRG(Module):
|
|||
# sdram clock
|
||||
self.comb += platform.request("sdram_clock").eq(self.cd_sys_ps.clk)
|
||||
|
||||
# BaseSoC ------------------------------------------------------------------------------------------
|
||||
|
||||
class BaseSoC(SoCSDRAM):
|
||||
def __init__(self, **kwargs):
|
||||
|
@ -60,8 +62,10 @@ class BaseSoC(SoCSDRAM):
|
|||
sdram_module.geom_settings,
|
||||
sdram_module.timing_settings)
|
||||
|
||||
# Build --------------------------------------------------------------------------------------------
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description="LiteX SoC port to the Versa ECP5")
|
||||
parser = argparse.ArgumentParser(description="LiteX SoC on ECP5")
|
||||
builder_args(parser)
|
||||
soc_sdram_args(parser)
|
||||
args = parser.parse_args()
|
||||
|
|
Loading…
Reference in a new issue