From 4e3d16ff582d422a0f2883d6ce5da7155658f427 Mon Sep 17 00:00:00 2001 From: Renaldas Zioma Date: Mon, 18 Sep 2023 16:16:54 +0200 Subject: [PATCH] Fixed noise multiply by 2 when noise is using frequency from tone 3 --- src/noise.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/noise.v b/src/noise.v index 36e30ab..82a82de 100644 --- a/src/noise.v +++ b/src/noise.v @@ -54,7 +54,7 @@ module noise_control_decoder #( parameter COUNTER_BITS = 10 ) ( 2'b01: noise_freq = 64; // = 1024/16 2'b10: noise_freq = 128; // = 2048/16 2'b11: // = tone_freq*2 - noise_freq = {tone_freq[COUNTER_BITS-1:1], 1'b0}; + noise_freq = {tone_freq[COUNTER_BITS-2:0], 1'b0}; endcase // FB bit noise_type = control[2];