add a register delay to the on_screen signal; fixes corruption in left hand pixel...
authormegacz <adam@megacz.com>
Mon, 6 Apr 2009 18:50:46 +0000 (11:50 -0700)
committermegacz <adam@megacz.com>
Mon, 6 Apr 2009 18:50:46 +0000 (11:50 -0700)
ships/Dvi.ship

index 0828426..2c925a2 100644 (file)
@@ -325,8 +325,9 @@ vga_timing_generator
 
   // Framebuffer is 544x478 -- yeah, I know that's completely weird.
 
-  wire on_screen;
-  assign on_screen = (x_coord >= 48) && (x_coord < 592);
+  wire on_screen_;
+  reg on_screen;
+  assign on_screen_ = (x_coord >= 48) && (x_coord < 592);
   wire [9:0] adjusted_x_coord;
   assign adjusted_x_coord = x_coord - 48;
 
@@ -343,6 +344,7 @@ vga_timing_generator
 
   always @(posedge pix_clk) begin
       vga_pixel_addr <= vga_pixel_addr_;
+      on_screen      <= on_screen_;
   end
 
   wire idle;