Skip to content

Commit

Permalink
An attempt to fix strange clog2 error
Browse files Browse the repository at this point in the history
  • Loading branch information
rejunity committed Oct 26, 2024
1 parent 3154f20 commit 1117195
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vga_hvsync_generator.v
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ module vga_hvsync_generator #(
input reset;
output reg hsync, vsync;
output display_on;
output reg [$clog2(H_MAX)-1:0] hpos;
output reg [$clog2(V_MAX)-1:0] vpos;
output reg [$clog2((H_DISPLAY+H_BACK+H_FRONT+H_SYNC))-1:0] hpos;
output reg [$clog2((V_DISPLAY+V_TOP+V_BOTTOM+V_SYNC))-1:0] vpos;

// derived constants
parameter H_SYNC_START = H_DISPLAY + H_FRONT;
Expand Down

0 comments on commit 1117195

Please sign in to comment.