make sector # configurable

This commit is contained in:
Romain Dolbeau
2023-12-02 10:00:34 +01:00
parent 92ff9831fe
commit 2bb274c058
2 changed files with 2 additions and 3 deletions

View File

@@ -115,7 +115,7 @@ class MacPeriphSoC(SoCCore):
#"END OF SLOT SPACE": 0xF0FFFFFF,
}
def mac_add_declrom(self, version, flash, config_flash):
def mac_add_declrom(self, version, flash, config_flash, sector = 40):
if ((not flash) and (not config_flash)): # so ROM is builtin
rom_file = "rom_{}.bin".format(version.replace(".", "_"))
rom_data = get_mem_data(filename_or_regions=rom_file, endianness="little") # "big"
@@ -134,7 +134,6 @@ class MacPeriphSoC(SoCCore):
if (config_flash):
sector = 40
from litespi.modules.generated_modules import S25FL128S
from litespi.opcodes import SpiNorFlashOpCodes as Codes
self.add_spi_flash(name="config_spiflash",

View File

@@ -31,7 +31,7 @@ class Ziscreen(Module, AutoCSR):
self.submodules.fsm = fsm = FSM(reset_state="Reset")
if (True):
if (False):
#saw_ongoing = Signal()
#saw_readable= Signal()
#self.sync += [