From b2941b1e458009c8f9d85e8011deafd4e6edf4fb Mon Sep 17 00:00:00 2001 From: Tobias Weber Date: Wed, 4 Sep 2013 15:32:12 +0200 Subject: [PATCH] Change Write Enable for DAC-SPI Interface (corrected) --- mupix/sources/spi_if.vhd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mupix/sources/spi_if.vhd b/mupix/sources/spi_if.vhd index 36d1ba1..d3c00d9 100644 --- a/mupix/sources/spi_if.vhd +++ b/mupix/sources/spi_if.vhd @@ -141,11 +141,9 @@ begin when x"0040" => SLV_DATA_OUT <= x"0000" & threshold_reg; SLV_ACK_OUT <= '1'; - wren <= '1'; when x"0041" => SLV_DATA_OUT <= injection2_reg & injection1_reg; SLV_ACK_OUT <= '1'; - wren <= '1'; when others => SLV_UNKNOWN_ADDR_OUT <= '1'; end case; @@ -156,10 +154,12 @@ begin when x"0040" => threshold_reg <= SLV_DATA_IN(15 downto 0); SLV_ACK_OUT <= '1'; + wren <= '1'; when x"0041" => injection2_reg <= SLV_DATA_IN(31 downto 16); injection1_reg <= SLV_DATA_IN(15 downto 0); SLV_ACK_OUT <= '1'; + wren <= '1'; when others => SLV_UNKNOWN_ADDR_OUT <= '1'; end case; -- 2.43.0