From 02ef4965d74bb6465b40f2a87826fcd889e809e8 Mon Sep 17 00:00:00 2001 From: Gyorgy Szombathelyi Date: Mon, 30 Mar 2020 20:10:45 +0200 Subject: [PATCH] C64: [VIC2] Load zero to the attribute when idle (regression) --- cores/c64/rtl/video_vicII_656x_a.vhd | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cores/c64/rtl/video_vicII_656x_a.vhd b/cores/c64/rtl/video_vicII_656x_a.vhd index 5f27a6c..ff6a3c1 100644 --- a/cores/c64/rtl/video_vicII_656x_a.vhd +++ b/cores/c64/rtl/video_vicII_656x_a.vhd @@ -161,9 +161,7 @@ architecture rtl of video_vicii_656x is signal nextChar : unsigned(11 downto 0); -- Char/Pixels pair waiting to be shifted signal waitingChar : unsigned(11 downto 0); - signal waitingChar_r : unsigned(11 downto 0); signal waitingPixels : unsigned(7 downto 0); - signal waitingPixels_r : unsigned(7 downto 0); -- Stores colorinfo and the Pixels that are currently in shift register signal shiftingChar : unsigned(11 downto 0); signal shiftingPixels : unsigned(7 downto 0); @@ -961,6 +959,7 @@ calcBitmap: process(clk) waitingPixels <= (others => '0'); if shiftChars then waitingPixels <= di; + waitingChar <= (others => '0'); if idle = '0' then waitingChar <= nextChar; end if;