From c64551ab8b84c78a22ce0fdc3983a9a9d7cd2371 Mon Sep 17 00:00:00 2001 From: Ingo Froehlich Date: Wed, 8 May 2019 17:44:05 +0200 Subject: [PATCH] small fix --- machxo3/flash/generic_flash_ctrl.vhd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/machxo3/flash/generic_flash_ctrl.vhd b/machxo3/flash/generic_flash_ctrl.vhd index 0e2bcc8..65fd8dd 100644 --- a/machxo3/flash/generic_flash_ctrl.vhd +++ b/machxo3/flash/generic_flash_ctrl.vhd @@ -324,7 +324,7 @@ PROC_SELECTOR : process begin reg_LOC_WRITE_OUT <= '0'; if SPI_DATA_IN(0) = '0' then enable_cfg_flash(2 downto 0) <= "000"; - elsif SPI_DATA_IN(2 downto 0) = "011" and enable_cfg_flash(2 downto 0) = "000" then --stage1 + elsif SPI_DATA_IN(2 downto 0) = "011" and (enable_cfg_flash(2 downto 0) = "000" or enable_cfg_flash(2 downto 0) = "001") then --stage1 enable_cfg_flash(2 downto 0) <= "010"; elsif SPI_DATA_IN(2 downto 0) = "101" and enable_cfg_flash(2 downto 0) = "010" then --stage2 enable_cfg_flash(2 downto 0) <= "100"; -- 2.43.0