From: Sebastien Bourdeauducq Date: Fri, 14 Feb 2014 14:48:15 +0000 (+0100) Subject: targets/simple: use XIP from SPI flash X-Git-Tag: 24jan2021_ls180~2742 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e4273be51781f84d6fd0ebd2f1792f6ccb149119;p=litex.git targets/simple: use XIP from SPI flash --- diff --git a/targets/simple.py b/targets/simple.py index eb838a6a..592610b6 100644 --- a/targets/simple.py +++ b/targets/simple.py @@ -1,14 +1,13 @@ from migen.fhdl.std import * from misoclib import gpio, spiflash -from misoclib.gensoc import GenSoC, IntegratedBIOS +from misoclib.gensoc import GenSoC -class SimpleSoC(GenSoC, IntegratedBIOS): +class SimpleSoC(GenSoC): def __init__(self, platform): GenSoC.__init__(self, platform, clk_freq=32*1000000, - cpu_reset_address=0) - IntegratedBIOS.__init__(self) + cpu_reset_address=0x60000) # We can't use reset_less as LM32 does require a reset signal self.clock_domains.cd_sys = ClockDomain() @@ -17,10 +16,9 @@ class SimpleSoC(GenSoC, IntegratedBIOS): self.submodules.leds = gpio.GPIOOut(platform.request("user_led")) - # Map the SPI flash at 0xb0000000 for demo purposes. Later, we'll want to store the BIOS there. self.submodules.spiflash = spiflash.SpiFlash(platform.request("spiflash2x"), cmd=0xefef, cmd_width=16, addr_width=24, dummy=4) - self.add_wb_slave(lambda a: a[26:29] == 3, self.spiflash.bus) + self.register_rom(self.spiflash.bus) def get_default_subtarget(platform): return SimpleSoC