diff --git a/lib/VGA_ctrl/src/vga_frontend64.vhd b/lib/VGA_ctrl/src/vga_frontend64.vhd index 637b568..7d6a952 100644 --- a/lib/VGA_ctrl/src/vga_frontend64.vhd +++ b/lib/VGA_ctrl/src/vga_frontend64.vhd @@ -154,10 +154,10 @@ proc_bufchg_irq: process(CLK_I) begin if rising_edge(CLK_I) then - if RST_I = '1' or bufchg_flag_ack = '1' then + if pixel_cnt_rst = '1' or bufchg_flag_ack = '1' then bufchg_flag <= '0'; elsif bufchg = '1' then - bufchg_flag <= vga_master_en; + bufchg_flag <= '1'; end if; INT_O <= bufchg_flag and bufchg_irq_en; end if;