mirror of
https://github.com/steve-m/hsdaoh-fpga.git
synced 2025-12-10 07:44:45 +01:00
hdmi: fix DVI mode
must have been some mixup during importing the code.
This commit is contained in:
parent
5ce8b885a4
commit
8b9e1457ea
1 changed files with 1 additions and 6 deletions
|
|
@ -258,19 +258,14 @@ module hdmi (
|
|||
end
|
||||
end
|
||||
else begin : genblk2 // DVI_OUTPUT = 1
|
||||
reg video_guard = 1;
|
||||
reg video_preamble = 0;
|
||||
always @(posedge clk_pixel)
|
||||
if (reset) begin
|
||||
video_guard <= 1;
|
||||
mode <= 3'd0;
|
||||
video_data <= 24'd0;
|
||||
control_data <= 6'd0;
|
||||
end
|
||||
else begin
|
||||
video_guard <= ((cx >= (frame_width - 2)) && (cx < frame_width)) && ((cy == (frame_height - 1)) || (cy < (screen_height - 1)));
|
||||
video_preamble <= ((cx >= (frame_width - 10)) && (cx < (frame_width - 2))) && ((cy == (frame_height - 1)) || (cy < (screen_height - 1)));
|
||||
mode <= (video_data_period ? 3'd1 : (video_guard ? 3'd2 : 3'd0));
|
||||
mode <= (video_data_period ? 3'd1 : 3'd0);
|
||||
video_data <= rgb;
|
||||
control_data <= {4'b0000, vsync, hsync}; // ctrl3, ctrl2, ctrl1, ctrl0, vsync, hsync
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue