OSDN Git Service

nmi bug fix. still not displayed.
authorastoria-d <astoria-d@mail.goo.ne.jp>
Thu, 22 Sep 2016 07:55:38 +0000 (16:55 +0900)
committerastoria-d <astoria-d@mail.goo.ne.jp>
Thu, 22 Sep 2016 07:55:38 +0000 (16:55 +0900)
de0_cv_nes/ppu/ppu.vhd

index 16a83db..0014c89 100644 (file)
@@ -429,7 +429,7 @@ begin
         if (pi_rst_n = '0') then\r
             reg_vblank_n <= '1';\r
         elsif (rising_edge(pi_base_clk)) then\r
-            if (reg_ppu_mask(PPUNEN) = '1' and pi_ppu_status(ST_VBL) = '1') then\r
+            if (reg_ppu_ctrl(PPUNEN) = '1' and pi_ppu_status(ST_VBL) = '1') then\r
                 reg_vblank_n <= '0';\r
             else\r
                 reg_vblank_n <= '1';\r