From 7fa22a494bae3b818dc96f4f87b4047c11622684 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 7 Sep 2021 15:04:38 +0200 Subject: [PATCH] arty: Switch SPI Flash rate to 1:2 (DDR) (Possible on Arty since SPI Flash's clk does not require use of STARTUPE2). On the Digilent Arty, the SPI Flash's clk is connected to CCLK (that can be driven through the STARTUPE2) but also to another generic IO that can be use to drive the clock through DDR primitives. --- litex_boards/targets/digilent_arty.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex_boards/targets/digilent_arty.py b/litex_boards/targets/digilent_arty.py index 9670ae07..d8d4e919 100755 --- a/litex_boards/targets/digilent_arty.py +++ b/litex_boards/targets/digilent_arty.py @@ -103,7 +103,7 @@ class BaseSoC(SoCCore): if with_spi_flash: from litespi.modules import S25FL128L from litespi.opcodes import SpiNorFlashOpCodes as Codes - self.add_spi_flash(mode="4x", module=S25FL128L(Codes.READ_1_1_4), with_master=True) + self.add_spi_flash(mode="4x", module=S25FL128L(Codes.READ_1_1_4), rate="1:2", with_master=True) # Leds ------------------------------------------------------------------------------------- if with_led_chaser: