# BaseSoC ------------------------------------------------------------------------------------------
class BaseSoC(SoCSDRAM):
- def __init__(self, sys_clk_freq=int(100e6), integrated_rom_size=0x8000, **kwargs):
+ def __init__(self, sys_clk_freq=int(100e6), **kwargs):
platform = arty.Platform()
# SoCSDRAM ---------------------------------------------------------------------------------
- SoCSDRAM.__init__(self, platform, clk_freq=sys_clk_freq,
- integrated_rom_size=integrated_rom_size,
- integrated_sram_size=0x8000,
- **kwargs)
+ SoCSDRAM.__init__(self, platform, clk_freq=sys_clk_freq, **kwargs)
# CRG --------------------------------------------------------------------------------------
self.submodules.crg = _CRG(platform, sys_clk_freq)
mem_map.update(BaseSoC.mem_map)
def __init__(self, **kwargs):
- BaseSoC.__init__(self, integrated_rom_size=0x10000, **kwargs)
+ BaseSoC.__init__(self, **kwargs)
self.submodules.ethphy = LiteEthPHYMII(self.platform.request("eth_clocks"),
self.platform.request("eth"))
platform = de0nano.Platform()
# SoCSDRAM ---------------------------------------------------------------------------------
- SoCSDRAM.__init__(self, platform, clk_freq=sys_clk_freq,
- integrated_rom_size=0x8000,
- **kwargs)
+ SoCSDRAM.__init__(self, platform, clk_freq=sys_clk_freq, **kwargs)
# CRG --------------------------------------------------------------------------------------
self.submodules.crg = _CRG(platform)
# BaseSoC ------------------------------------------------------------------------------------------
class BaseSoC(SoCSDRAM):
- def __init__(self, sys_clk_freq=int(125e6), integrated_rom_size=0x8000, **kwargs):
+ def __init__(self, sys_clk_freq=int(125e6), **kwargs):
platform = genesys2.Platform()
# SoCSDRAM ---------------------------------------------------------------------------------
- SoCSDRAM.__init__(self, platform, clk_freq=sys_clk_freq,
- integrated_rom_size = integrated_rom_size,
- integrated_sram_size = 0x8000,
- **kwargs)
+ SoCSDRAM.__init__(self, platform, clk_freq=sys_clk_freq, **kwargs)
# CRG --------------------------------------------------------------------------------------
self.submodules.crg = _CRG(platform, sys_clk_freq)
mem_map.update(BaseSoC.mem_map)
def __init__(self, **kwargs):
- BaseSoC.__init__(self, integrated_rom_size=0x10000, **kwargs)
+ BaseSoC.__init__(self, **kwargs)
self.submodules.ethphy = LiteEthPHYRGMII(self.platform.request("eth_clocks"),
self.platform.request("eth"))
# BaseSoC ------------------------------------------------------------------------------------------
class BaseSoC(SoCSDRAM):
- def __init__(self, sys_clk_freq=int(125e6), integrated_rom_size=0x8000, **kwargs):
+ def __init__(self, sys_clk_freq=int(125e6), **kwargs):
platform = kc705.Platform()
# SoCSDRAM ---------------------------------------------------------------------------------
- SoCSDRAM.__init__(self, platform, clk_freq=sys_clk_freq,
- integrated_rom_size = integrated_rom_size,
- integrated_sram_size = 0x8000,
- **kwargs)
+ SoCSDRAM.__init__(self, platform, clk_freq=sys_clk_freq, **kwargs)
# CRG --------------------------------------------------------------------------------------
self.submodules.crg = _CRG(platform, sys_clk_freq)
mem_map.update(BaseSoC.mem_map)
def __init__(self, **kwargs):
- BaseSoC.__init__(self, integrated_rom_size=0x10000, **kwargs)
+ BaseSoC.__init__(self, **kwargs)
self.submodules.ethphy = LiteEthPHY(self.platform.request("eth_clocks"),
self.platform.request("eth"), clk_freq=self.clk_freq)
platform = kcu105.Platform()
# SoCSDRAM ---------------------------------------------------------------------------------
- SoCSDRAM.__init__(self, platform, clk_freq=sys_clk_freq,
- integrated_rom_size = integrated_rom_size,
- integrated_sram_size = 0x8000,
- **kwargs)
+ SoCSDRAM.__init__(self, platform, clk_freq=sys_clk_freq, **kwargs)
# CRG --------------------------------------------------------------------------------------
self.submodules.crg = _CRG(platform, sys_clk_freq)
mem_map.update(BaseSoC.mem_map)
def __init__(self, **kwargs):
- BaseSoC.__init__(self, integrated_rom_size=0x10000, **kwargs)
+ BaseSoC.__init__(self, **kwargs)
self.comb += self.platform.request("sfp_tx_disable_n", 0).eq(1)
self.submodules.ethphy = KU_1000BASEX(self.crg.cd_clk200.clk,
platform = minispartan6.Platform()
# SoCSDRAM ---------------------------------------------------------------------------------
- SoCSDRAM.__init__(self, platform, clk_freq=sys_clk_freq,
- integrated_rom_size = 0x8000,
- **kwargs)
+ SoCSDRAM.__init__(self, platform, clk_freq=sys_clk_freq, **kwargs)
# CRG --------------------------------------------------------------------------------------
self.submodules.crg = _CRG(platform, sys_clk_freq)
# BaseSoC ------------------------------------------------------------------------------------------
class BaseSoC(SoCSDRAM):
- def __init__(self, sys_clk_freq=int(100e6), integrated_rom_size=0x8000, **kwargs):
+ def __init__(self, sys_clk_freq=int(100e6), **kwargs):
platform = netv2.Platform()
# SoCSDRAM ---------------------------------------------------------------------------------
- SoCSDRAM.__init__(self, platform, clk_freq=sys_clk_freq,
- integrated_rom_size = integrated_rom_size,
- integrated_sram_size = 0x8000,
- **kwargs)
+ SoCSDRAM.__init__(self, platform, clk_freq=sys_clk_freq, **kwargs)
# CRG --------------------------------------------------------------------------------------
self.submodules.crg = _CRG(platform, sys_clk_freq)
mem_map.update(BaseSoC.mem_map)
def __init__(self, **kwargs):
- BaseSoC.__init__(self, integrated_rom_size=0x10000, **kwargs)
+ BaseSoC.__init__(self, **kwargs)
self.submodules.ethphy = LiteEthPHYRMII(self.platform.request("eth_clocks"),
self.platform.request("eth"))
# BaseSoC ------------------------------------------------------------------------------------------
class BaseSoC(SoCSDRAM):
- def __init__(self, sys_clk_freq=int(100e6), integrated_rom_size=0x8000, **kwargs):
+ def __init__(self, sys_clk_freq=int(100e6), **kwargs):
platform = nexys4ddr.Platform()
# SoCSDRAM ---------------------------------------------------------------------------------
- SoCSDRAM.__init__(self, platform, clk_freq=sys_clk_freq,
- integrated_rom_size = integrated_rom_size,
- integrated_sram_size = 0x8000,
- **kwargs)
+ SoCSDRAM.__init__(self, platform, clk_freq=sys_clk_freq, **kwargs)
# CRG --------------------------------------------------------------------------------------
self.submodules.crg = _CRG(platform, sys_clk_freq)
# BaseSoC ------------------------------------------------------------------------------------------
class BaseSoC(SoCSDRAM):
- def __init__(self, sys_clk_freq=int(100e6), integrated_rom_size=0x8000, **kwargs):
+ def __init__(self, sys_clk_freq=int(100e6), **kwargs):
platform = nexys_video.Platform()
# SoCSDRAM ---------------------------------------------------------------------------------
- SoCSDRAM.__init__(self, platform, clk_freq=sys_clk_freq,
- integrated_rom_size = integrated_rom_size,
- integrated_sram_size = 0x8000,
- **kwargs)
+ SoCSDRAM.__init__(self, platform, clk_freq=sys_clk_freq, **kwargs)
# CRG --------------------------------------------------------------------------------------
self.submodules.crg = _CRG(platform, sys_clk_freq)
mem_map.update(BaseSoC.mem_map)
def __init__(self, **kwargs):
- BaseSoC.__init__(self, integrated_rom_size=0x10000, **kwargs)
+ BaseSoC.__init__(self, **kwargs)
self.submodules.ethphy = LiteEthPHYRGMII(self.platform.request("eth_clocks"),
self.platform.request("eth"))
# BaseSoC ------------------------------------------------------------------------------------------
class BaseSoC(SoCSDRAM):
- def __init__(self, sys_clk_freq=int(100e6), integrated_rom_size=0x8000, **kwargs):
+ def __init__(self, sys_clk_freq=int(100e6), **kwargs):
platform = pcie_screamer.Platform()
# SoCSDRAM ---------------------------------------------------------------------------------
- SoCSDRAM.__init__(self, platform, clk_freq=sys_clk_freq,
- integrated_rom_size=integrated_rom_size,
- integrated_sram_size=0x8000,
- **kwargs)
+ SoCSDRAM.__init__(self, platform, clk_freq=sys_clk_freq, **kwargs)
# CRG --------------------------------------------------------------------------------------
self.submodules.crg = _CRG(platform, sys_clk_freq)
# BaseSoC ------------------------------------------------------------------------------------------
class BaseSoC(SoCCore):
- def __init__(self, platform, integrated_rom_size=0x8000, **kwargs):
+ def __init__(self, platform, **kwargs):
sys_clk_freq = int(1e9/platform.default_clk_period)
# SoCCore ----------------------------------------------------------------------------------
- SoCCore.__init__(self, platform, clk_freq=sys_clk_freq,
- integrated_rom_size=integrated_rom_size,
- integrated_main_ram_size=16*1024,
- **kwargs)
+ SoCCore.__init__(self, platform, clk_freq=sys_clk_freq, **kwargs)
+
# CRG --------------------------------------------------------------------------------------
self.submodules.crg = CRG(platform.request(platform.default_clk_name))
}
mem_map.update(BaseSoC.mem_map)
- def __init__(self, platform, integrated_rom_size=0x10000, **kwargs):
+ def __init__(self, platform, **kwargs):
BaseSoC.__init__(self, platform, **kwargs)
self.submodules.ethphy = LiteEthPHY(platform.request("eth_clocks"),
sys_clk_freq = int(50e6)
# SoCSDRAM ---------------------------------------------------------------------------------
- SoCSDRAM.__init__(self, platform, clk_freq=sys_clk_freq,
- integrated_rom_size=0x8000,
- **kwargs)
+ SoCSDRAM.__init__(self, platform, clk_freq=sys_clk_freq, **kwargs)
# CRG --------------------------------------------------------------------------------------
self.submodules.crg = _CRG(platform, sys_clk_freq)
# BaseSoC ------------------------------------------------------------------------------------------
class BaseSoC(SoCSDRAM):
- def __init__(self, sys_clk_freq=int(75e6), toolchain="diamond", integrated_rom_size=0x8000, **kwargs):
+ def __init__(self, sys_clk_freq=int(75e6), toolchain="diamond", **kwargs):
platform = versa_ecp5.Platform(toolchain=toolchain)
# SoCSDRAM ---------------------------------------------------------------------------------
- SoCSDRAM.__init__(self, platform, clk_freq=sys_clk_freq,
- integrated_rom_size=integrated_rom_size,
- **kwargs)
+ SoCSDRAM.__init__(self, platform, clk_freq=sys_clk_freq, **kwargs)
# CRG --------------------------------------------------------------------------------------
self.submodules.crg = _CRG(platform, sys_clk_freq)
mem_map.update(BaseSoC.mem_map)
def __init__(self, toolchain="diamond", **kwargs):
- BaseSoC.__init__(self, toolchain=toolchain, integrated_rom_size=0x10000, **kwargs)
+ BaseSoC.__init__(self, toolchain=toolchain, **kwargs)
self.submodules.ethphy = LiteEthPHYRGMII(
self.platform.request("eth_clocks"),
# CPU parameters
cpu_type="vexriscv", cpu_reset_address=0x00000000, cpu_variant=None,
# ROM parameters
- integrated_rom_size=0, integrated_rom_init=[],
+ integrated_rom_size=32768, integrated_rom_init=[],
# SRAM parameters
integrated_sram_size=4096, integrated_sram_init=[],
# MAIN_RAM parameters
parser.add_argument("--cpu-reset-address", default=None, type=int,
help="CPU reset address (default=0x00000000 or ROM)")
# ROM parameters
- parser.add_argument("--integrated-rom-size", default=None, type=int,
+ parser.add_argument("--integrated-rom-size", default=0x8000, type=int,
help="size/enable the integrated (BIOS) ROM")
parser.add_argument("--integrated-rom-file", default=None, type=str,
- help="integrated (BIOS) ROM binary file")
+ help="integrated (BIOS) ROM binary file (default=32KB)")
# SRAM parameters
- parser.add_argument("--integrated_sram_size", default=None,
- help="size/enable the integrated SRAM")
+ parser.add_argument("--integrated_sram_size", default=0x1000,
+ help="size/enable the integrated SRAM (default=4KB)")
# MAIN_RAM parameters
parser.add_argument("--integrated-main-ram-size", default=None, type=int,
help="size/enable the integrated main RAM")