Browse Source

video_formatter: don't update sprite in the middle of a frame

hw-mouse-pointer
mntmn 2 months ago
parent
commit
4c503755ef
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      video_formatter.v

+ 4
- 2
video_formatter.v View File

@@ -310,8 +310,10 @@ always @(posedge dvi_clk) begin
vga_scale_x <= scale_x;
vga_colormode <= colormode;
vga_sync_polarity <= sync_polarity;
vga_sprite_x <= sprite_x;
vga_sprite_y <= sprite_y;
if (counter_y == 0) begin
vga_sprite_x <= sprite_x;
vga_sprite_y <= sprite_y;
end
// FIXME there is some non-determinism in the relationship
// between this process and the fetching process

Loading…
Cancel
Save