From 2bb274c05849fc336d992f71cad8b993915b82b3 Mon Sep 17 00:00:00 2001 From: Romain Dolbeau Date: Sat, 2 Dec 2023 10:00:34 +0100 Subject: [PATCH] =?UTF-8?q?make=20sector=20#=C2=A0configurable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MacPeriphSoC.py | 3 +-- Ziscreen.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/MacPeriphSoC.py b/MacPeriphSoC.py index 3b71e46..4ba4e75 100644 --- a/MacPeriphSoC.py +++ b/MacPeriphSoC.py @@ -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", diff --git a/Ziscreen.py b/Ziscreen.py index 1f30788..3bfc88b 100644 --- a/Ziscreen.py +++ b/Ziscreen.py @@ -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 += [