From 477a9a7f1b8becfc586ae1d442caf12832c004bf Mon Sep 17 00:00:00 2001 From: Bruno Duarte Gouveia Date: Fri, 23 Nov 2018 00:15:04 +0000 Subject: [PATCH] SOUND: fix noi_lfsr initialized in noi trigger --- gbc_snd.vhd | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gbc_snd.vhd b/gbc_snd.vhd index f6b2608..1a5cbf2 100644 --- a/gbc_snd.vhd +++ b/gbc_snd.vhd @@ -750,7 +750,6 @@ begin if sq1_trigger = '1' then sq1_fr2 <= sq1_freq; sq1_fcnt := unsigned(sq1_freq); - noi_lfsr := (others => '1'); if not (sq1_svol = "00000" and sq1_envsgn = '0') then -- dac enabled sq1_playing <= '1'; end if; @@ -890,7 +889,7 @@ begin when "110" => noi_divisor := to_unsigned(2048 - 96, noi_divisor'length); when others => noi_divisor := to_unsigned(2048 - 112, noi_divisor'length); end case; - + noi_lfsr := (others => '1'); -- case noi_freqsh is -- when "000" => noi_freq := unsigned(noi_divisor); -- when "001" => noi_freq := '0' & unsigned(noi_divisor(10 downto 1));