def __init__(self, sys_clk_freq=int(100e6), with_led_chaser=True, **kwargs): platform = trenz_te0725.Platform() # SoCCore ---------------------------------------------------------------------------------- SoCCore.__init__(self, platform, sys_clk_freq, ident="LiteX SoC on Trenz TE0725 Board", **kwargs) # CRG -------------------------------------------------------------------------------------- self.submodules.crg = _CRG(platform, sys_clk_freq) # Use HyperRAM generic PHY as SRAM --------------------------------------------------------- size = int((64 * 1024 * 1024) / 8) hr_pads = platform.request("hyperram", 0) self.submodules.hyperram = HyperRAM(hr_pads) self.bus.add_slave("hyperram", slave=self.hyperram.bus, region=SoCRegion(origin=0x20000000, size=size)) # Leds ------------------------------------------------------------------------------------- if with_led_chaser: self.submodules.leds = LedChaser( pads=platform.request_all("user_led"), sys_clk_freq=sys_clk_freq) self.add_csr("leds")
def __init__(self, sys_clk_freq=int(100e6), **kwargs): platform = trenz_te0725.Platform() # SoCCore ---------------------------------------------------------------------------------- SoCCore.__init__(self, platform, sys_clk_freq, ident="LiteX SoC on Trenz TE0725 Board", ident_version=True, **kwargs) # CRG -------------------------------------------------------------------------------------- self.submodules.crg = _CRG(platform, sys_clk_freq) # Use HyperRAM generic PHY as SRAM --------------------------------------------------------- size = int((64 * 1024 * 1024) / 8) hr_pads = platform.request("hyperram", 0) self.submodules.hyperram = HyperRAM(hr_pads) self.register_mem("hyperram", self.mem_map["hyperram"], self.hyperram.bus, size) # Leds ------------------------------------------------------------------------------------- self.submodules.leds = LedChaser(pads=platform.request_all("user_led"), sys_clk_freq=sys_clk_freq) self.add_csr("leds")