diff --git a/lib/VGA_ctrl/src/vga_frontend64.vhd b/lib/VGA_ctrl/src/vga_frontend64.vhd index 39762b1..d91f09f 100644 --- a/lib/VGA_ctrl/src/vga_frontend64.vhd +++ b/lib/VGA_ctrl/src/vga_frontend64.vhd @@ -827,7 +827,7 @@ blitfifo_fill_src_0: elsif blit_request = '1' then if blit_fill_finish = '0' and blitfifo_write_en = '1' then fill_dbg.FIRST <= '0'; - if blit_fill_cnt_x_next = '0' & X"0000_0000" or blit_fill_cnt_x_next(32) = '1' then + if fill_dbg.LAST = '1' then if blit_fill_cnt_y < X"0000_0002" then blit_fill_finish <= '1'; else @@ -871,7 +871,7 @@ blit_request_addr_src: elsif blit_request = '1' then if blit_src_finish = '0' and (STB_O_blit_src = '1' and busout_fifo_rdy = '1') then src_dbg.FIRST <= '0'; - if blit_src_cnt_x_next = '0' & X"0000_0000" or blit_src_cnt_x_next(32) = '1' then + if src_dbg.LAST = '1' then if blit_src_cnt_y < X"0000_0002" then blit_src_finish <= '1'; else @@ -916,7 +916,7 @@ blit_request_addr_dst: elsif blit_request = '1' then if blit_dst_finish = '0' and (STB_O_blit_dst = '1' and busout_fifo_rdy = '1') then dst_dbg.FIRST <= '0'; - if blit_dst_cnt_x_next = '0' & X"0000_0000" or blit_dst_cnt_x_next(32) = '1' then + if dst_dbg.LAST = '1' then if blit_dst_cnt_y < X"0000_0002" then blit_dst_finish <= '1'; else