From 03b225a80238ed3c93730f99a44074e26a4af991 Mon Sep 17 00:00:00 2001 From: Adrian Costina Date: Fri, 9 Oct 2015 13:15:12 +0300 Subject: [PATCH] axi_ad9671: Fixed synchronization mechanism --- library/axi_ad9671/axi_ad9671_if.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/axi_ad9671/axi_ad9671_if.v b/library/axi_ad9671/axi_ad9671_if.v index eb1bb2717..4e838487f 100644 --- a/library/axi_ad9671/axi_ad9671_if.v +++ b/library/axi_ad9671/axi_ad9671_if.v @@ -201,12 +201,12 @@ module axi_ad9671_if ( adc_raddr_out <= 4'h8; adc_sync_status <= 1'b0; end else begin - if (adc_data_a_s == adc_start_code[15:0] && adc_sync_status == 1'b1) begin + if (adc_data_d_s == adc_start_code[15:0] && adc_sync_status == 1'b1) begin adc_sync_status <= 1'b0; end else if(adc_sync_s == 1'b1) begin adc_sync_status <= 1'b1; end - if (adc_data_a_s == adc_start_code[15:0] && adc_sync_status == 1'b1) begin + if (adc_data_d_s == adc_start_code[15:0] && adc_sync_status == 1'b1) begin adc_waddr <= 4'h0; adc_raddr_out <= 4'h8; end else if (int_valid == 1'b1) begin