From c0dd80cceea019765df53111460428880241d1d4 Mon Sep 17 00:00:00 2001 From: Istvan Csomortani Date: Wed, 24 Jun 2015 12:43:22 +0300 Subject: [PATCH] axi_hdmi_rx: Fix alignment issue on packed formats Some cases, when software changed the image formats, the packed formats (24bit/pixel) lost alignment. (the first 32 bit after sof got lost) This commit fix that issue. --- library/axi_hdmi_rx/axi_hdmi_rx_core.v | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/library/axi_hdmi_rx/axi_hdmi_rx_core.v b/library/axi_hdmi_rx/axi_hdmi_rx_core.v index 11851b865..8e402bd97 100644 --- a/library/axi_hdmi_rx/axi_hdmi_rx_core.v +++ b/library/axi_hdmi_rx/axi_hdmi_rx_core.v @@ -88,7 +88,7 @@ module axi_hdmi_rx_core ( output hdmi_dma_sof; output hdmi_dma_de; - output [31:0] hdmi_dma_data; + output [63:0] hdmi_dma_data; // internal registers @@ -157,9 +157,15 @@ module axi_hdmi_rx_core ( end else if (hdmi_dma_de == 1'b1) begin hdmi_dma_sof <= 1'b0; end + + if(hdmi_dma_sof_int == 1'b1) begin + hdmi_dma_de_cnt <= 1'b0; + end else if (hdmi_dma_de_int == 1'b1) begin + hdmi_dma_de_cnt <= ~hdmi_dma_de_cnt; + end + hdmi_dma_de <= hdmi_dma_de_cnt & hdmi_dma_de_int; if (hdmi_dma_de_int == 1'b1) begin - hdmi_dma_de_cnt <= ~hdmi_dma_de_cnt; hdmi_dma_data[63:32] <= hdmi_dma_data_int; hdmi_dma_data[31: 0] <= hdmi_dma_data[63:32]; end