From: Tobias Weber Date: Wed, 4 Sep 2013 13:32:12 +0000 (+0200) Subject: Change Write Enable for DAC-SPI Interface (corrected) X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=b2941b1e458009c8f9d85e8011deafd4e6edf4fb;p=trb3.git Change Write Enable for DAC-SPI Interface (corrected) --- 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;