Skip to content

Commit

Permalink
Beta 0.2.1
Browse files Browse the repository at this point in the history
* Corrección del fallo que de la primera línea fantasma visible en modo texto
  • Loading branch information
spark2k06 committed Dec 27, 2021
1 parent d2f4e43 commit 39dbc84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions HW/common/crtc6845.v
Expand Up @@ -126,7 +126,7 @@ module crtc6845(
reg [3:0] h_synccount = 4'd1; // Must start at 1
reg [4:0] v_scancount = 5'd0;
reg [6:0] v_rowcount = 7'd0;
reg [3:0] v_synccount = 4'd0;
reg [5:0] v_synccount = 6'd0;
reg [4:0] cursor_counter = 5'd0; // Cursor blink


Expand Down Expand Up @@ -227,8 +227,8 @@ module crtc6845(
// Vertical sync pulse is fixed at 16 scan line times
// Vsync pulse turns off after 16 lines
if (vs) begin
if (v_synccount == 4'd15) begin
v_synccount <= 4'd0;
if (v_synccount == 6'd37) begin // 15
v_synccount <= 6'd0;
vs <= 0;
end else begin
v_synccount <= v_synccount + 1;
Expand Down

0 comments on commit 39dbc84

Please sign in to comment.