]> jspc29.x-matter.uni-frankfurt.de Git - trb3.git/commitdiff
ADC: correct address range to include invalid words as well
authorAndreas Neiser <neiser@kph.uni-mainz.de>
Fri, 28 Nov 2014 15:28:29 +0000 (16:28 +0100)
committerAndreas Neiser <neiser@kph.uni-mainz.de>
Fri, 28 Nov 2014 15:28:29 +0000 (16:28 +0100)
ADC/source/adc_handler.vhd

index e3f323dda6a64bd0d97985cd13fc5766e07f5858..fa004be545dc93ede54321e30b92e07002388760 100644 (file)
@@ -259,7 +259,7 @@ PROC_BUS : process begin
     elsif BUS_RX.addr >= x"0030" and BUS_RX.addr <= x"003b" then      
       BUS_TX.ack  <= '1';
       BUS_TX.data <= adc_debug(to_integer(unsigned(BUS_RX.addr(3 downto 0)))*32+31 downto to_integer(unsigned(BUS_RX.addr(3 downto 0)))*32);
-    elsif BUS_RX.addr >= x"0800" and BUS_RX.addr <= x"08bf" and BUS_RX.addr(5 downto 0) < std_logic_vector(to_unsigned(DEVICES*CHANNELS,6)) then
+    elsif BUS_RX.addr >= x"0800" and BUS_RX.addr <= x"08ff" and BUS_RX.addr(5 downto 0) < std_logic_vector(to_unsigned(DEVICES*CHANNELS,6)) then
       buffer_device <= to_integer(unsigned(BUS_RX.addr(5 downto 2)));
       buffer_addr   <= '0' & BUS_RX.addr(7 downto 6) & BUS_RX.addr(1 downto 0);
       buffer_read(to_integer(unsigned(BUS_RX.addr(5 downto 2))))   <= '1';