From 9d389e15b160ef391790f2fc8378003325aa92fc Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Sat, 9 May 2020 15:52:23 +0200 Subject: [PATCH] fix handling of non-existing counters on bus --- base/code/input_statistics.vhd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/code/input_statistics.vhd b/base/code/input_statistics.vhd index 6aa0bbe..4ef7be8 100644 --- a/base/code/input_statistics.vhd +++ b/base/code/input_statistics.vhd @@ -139,7 +139,7 @@ begin fifo_read(to_integer(unsigned(ADDR_IN(4 downto 0)))) <= '1'; fifo_select <= to_integer(unsigned(ADDR_IN(4 downto 0))); fifo_wait <= '1'; - elsif ADDR_IN(6) = '1' and tmp < INPUTS then + elsif ADDR_IN(6) = '1' and to_integer(unsigned(ADDR_IN(5 downto 0))) < INPUTS then DATA_OUT(23 downto 0) <= std_logic_vector(cnt(to_integer(unsigned(ADDR_IN(5 downto 0))))); ACK_OUT <= '1'; else -- 2.43.0