]> jspc29.x-matter.uni-frankfurt.de Git - trb3.git/commitdiff
Change Write Enable for DAC-SPI Interface (corrected)
authorTobias Weber <webert@kph.uni-mainz.de>
Wed, 4 Sep 2013 13:32:12 +0000 (15:32 +0200)
committerTobias Weber <webert@kph.uni-mainz.de>
Wed, 4 Sep 2013 13:32:12 +0000 (15:32 +0200)
mupix/sources/spi_if.vhd

index 36d1ba1e3eef27fd85f722b5a5b3efdcce470d63..d3c00d9add547ef321aad20ce34f06e14ef1f974 100644 (file)
@@ -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;