diff --git a/lib/VGA_ctrl/src/vga_frontend64.vhd b/lib/VGA_ctrl/src/vga_frontend64.vhd index 021e3d6..019dae3 100644 --- a/lib/VGA_ctrl/src/vga_frontend64.vhd +++ b/lib/VGA_ctrl/src/vga_frontend64.vhd @@ -233,7 +233,8 @@ proc_bufchg_irq: elsif bufchg = '1' then bufchg_flag <= '1'; end if; - INT_O <= bufchg_flag and bufchg_irq_en; + INT_O <= (bufchg_flag and bufchg_irq_en) + or (blit_complete and blit_complete_inten); end if; end process; @@ -257,9 +258,7 @@ proc_blit_complete_flag: process(CLK_I) begin if rising_edge(CLK_I) then - if RST_I = '1' then - blit_complete <= '0'; - elsif blit_complete_ack = '1' then + if pixel_cnt_rst = '1' or blit_request_set = '1' or blit_complete_ack = '1' then blit_complete <= '0'; elsif blit_dst_finish = '1' and blitfifo_empty = '1' then blit_complete <= '1';