Updated HBLANK to fix cut off pixels.

Add 3 pixel clk delay to align HBKANK with RGB video.
This commit is contained in:
shodge12 committed 2021-12-28 22:12:10 -05:00
1 parent 4c9526079e
commit 0ec9e3d1c9
1 file changed
+11 -1
+11 -1
View File
@@ -4269,6 +4269,12 @@ assign PIX_CLK = CLK_14;
wire PIX_CLK_D; wire PIX_CLK_D;
// Add 3 pix_clks to HBLANK for the RGB output...
wire HBLANK_1;
reg [2:0] HBLANK_D;
assign HBLANK = HBLANK_D[0];
// Video DAC // Video DAC
always @ (negedge clk_sys) always @ (negedge clk_sys)
begin begin
@@ -4283,6 +4289,10 @@ begin
BLUE[3:0] <= 4'B0000; BLUE[3:0] <= 4'B0000;
VGA_SYNC_N <= 1'b1; VGA_SYNC_N <= 1'b1;
HBLANK_D[2] <= HBLANK_1;
HBLANK_D[1:0] <= HBLANK_D[2:1];
// Retrace Black // Retrace Black
// if(COLOR_BUF[9]) // if(COLOR_BUF[9])
// begin // begin
@@ -4498,7 +4508,7 @@ COCO3VIDEO MISTER_COCOVID(
.HSYNC_N(H_SYNC_N), .HSYNC_N(H_SYNC_N),
.SYNC_FLAG(H_FLAG), //Have to figure out this one... .SYNC_FLAG(H_FLAG), //Have to figure out this one...
.VSYNC_N(V_SYNC_N), .VSYNC_N(V_SYNC_N),
.HBLANKING(HBLANK), .HBLANKING(HBLANK_1),
.VBLANKING(VBLANK), .VBLANKING(VBLANK),
// RAM / Buffer // RAM / Buffer