Skip to content

Commit 8b9e145

Browse files
committed
hdmi: fix DVI mode
must have been some mixup during importing the code.
1 parent 5ce8b88 commit 8b9e145

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

common/hdmi/hdmi.v

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -258,19 +258,14 @@ module hdmi (
258258
end
259259
end
260260
else begin : genblk2 // DVI_OUTPUT = 1
261-
reg video_guard = 1;
262-
reg video_preamble = 0;
263261
always @(posedge clk_pixel)
264262
if (reset) begin
265-
video_guard <= 1;
266263
mode <= 3'd0;
267264
video_data <= 24'd0;
268265
control_data <= 6'd0;
269266
end
270267
else begin
271-
video_guard <= ((cx >= (frame_width - 2)) && (cx < frame_width)) && ((cy == (frame_height - 1)) || (cy < (screen_height - 1)));
272-
video_preamble <= ((cx >= (frame_width - 10)) && (cx < (frame_width - 2))) && ((cy == (frame_height - 1)) || (cy < (screen_height - 1)));
273-
mode <= (video_data_period ? 3'd1 : (video_guard ? 3'd2 : 3'd0));
268+
mode <= (video_data_period ? 3'd1 : 3'd0);
274269
video_data <= rgb;
275270
control_data <= {4'b0000, vsync, hsync}; // ctrl3, ctrl2, ctrl1, ctrl0, vsync, hsync
276271
end

0 commit comments

Comments
 (0)