fix: shifted fetch

This commit is contained in:
Luca 2024-12-29 01:59:55 +01:00
parent a615feb504
commit b414b53571
1 changed files with 5 additions and 3 deletions

8
dvi.v
View File

@ -100,10 +100,12 @@ module dvi #(
if (y == V_DATA_START && (~ck && x == H_DATA_START-3 || x >= H_DATA_START-2) && x < H_DATA_START) fetch_en <= 1;
if (y >= V_DATA_START && y < V_DATA_END && x >= H_DATA_START && x < H_DATA_END) begin
d <= data[active_data][11:0];
if (y >= V_DATA_START && y < V_DATA_END) begin
if ((~ck && x == H_DATA_START-1 || x >= H_DATA_START) && (x <= H_DATA_END-2 || ck && x == H_DATA_END-1)) begin
d <= data[active_data][11:0];
fetch_en <= 1;
fetch_en <= 1;
end
end
if (x == H_BLANK_START-1) begin