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 <lars@metafoo.de>
main
Lars-Peter Clausen 2017-06-29 12:29:39 +02:00
parent 121e04e94e
commit 8755e6da44
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ module axi_logic_analyzer (
if (io_selection_s[i] == 1'b1) begin if (io_selection_s[i] == 1'b1) begin
io_selection[i] <= 1'b1; io_selection[i] <= 1'b1;
end else begin 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; io_selection[i] <= 1'b0;
end end
end end