From 3a325d6195b55507d525d035cf22c5d5abb4b969 Mon Sep 17 00:00:00 2001 From: astoria-d Date: Wed, 18 Sep 2013 17:04:36 +0900 Subject: [PATCH] ppu scroll x display bug fix --- simulation/ppu/render.vhd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/simulation/ppu/render.vhd b/simulation/ppu/render.vhd index 2d4083c..e1f130e 100644 --- a/simulation/ppu/render.vhd +++ b/simulation/ppu/render.vhd @@ -707,7 +707,10 @@ end; end if; if (clk = '0' and - cur_x = conv_std_logic_vector(HSCAN - 1, X_SIZE)) then + ppu_scroll_x(0) = '0' and cur_x = conv_std_logic_vector(HSCAN, X_SIZE)) then + bg_cnt_res_n <= '0'; + elsif (clk = '0' and + ppu_scroll_x(0) = '1' and cur_x = conv_std_logic_vector(HSCAN - 1, X_SIZE)) then bg_cnt_res_n <= '0'; else bg_cnt_res_n <= '1'; -- 2.11.0