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.main
parent
15740a7d34
commit
c0dd80ccee
|
@ -88,7 +88,7 @@ module axi_hdmi_rx_core (
|
||||||
|
|
||||||
output hdmi_dma_sof;
|
output hdmi_dma_sof;
|
||||||
output hdmi_dma_de;
|
output hdmi_dma_de;
|
||||||
output [31:0] hdmi_dma_data;
|
output [63:0] hdmi_dma_data;
|
||||||
|
|
||||||
// internal registers
|
// internal registers
|
||||||
|
|
||||||
|
@ -157,9 +157,15 @@ module axi_hdmi_rx_core (
|
||||||
end else if (hdmi_dma_de == 1'b1) begin
|
end else if (hdmi_dma_de == 1'b1) begin
|
||||||
hdmi_dma_sof <= 1'b0;
|
hdmi_dma_sof <= 1'b0;
|
||||||
end
|
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;
|
hdmi_dma_de <= hdmi_dma_de_cnt & hdmi_dma_de_int;
|
||||||
if (hdmi_dma_de_int == 1'b1) begin
|
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[63:32] <= hdmi_dma_data_int;
|
||||||
hdmi_dma_data[31: 0] <= hdmi_dma_data[63:32];
|
hdmi_dma_data[31: 0] <= hdmi_dma_data[63:32];
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue