From 8755e6da44dca11dfab18765485f77bd516f9478 Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Thu, 29 Jun 2017 12:29:39 +0200 Subject: [PATCH] axi_logic_analyzer: Fix direction change in non-streaming mode In non-streaming mode we want direction changes to be applied immediately. The current code has a typo and checks the wrong signal. overwrite_data holds the configured output value of the pin, whereas overwrite_enable configures whether the pin is in streaming or manual mode. For correct operation the later signal should be used to decide whether a direction change should be applied. Otherwise the direction change will only be applied if the output value of the pin is set to logic high. Signed-off-by: Lars-Peter Clausen --- library/axi_logic_analyzer/axi_logic_analyzer.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/axi_logic_analyzer/axi_logic_analyzer.v b/library/axi_logic_analyzer/axi_logic_analyzer.v index fe2754f09..6537190ec 100644 --- a/library/axi_logic_analyzer/axi_logic_analyzer.v +++ b/library/axi_logic_analyzer/axi_logic_analyzer.v @@ -155,7 +155,7 @@ module axi_logic_analyzer ( if (io_selection_s[i] == 1'b1) begin io_selection[i] <= 1'b1; end else begin - if(dac_valid == 1'b1 || overwrite_data[i] == 1'b1) begin + if(dac_valid == 1'b1 || overwrite_enable[i] == 1'b1) begin io_selection[i] <= 1'b0; end end