Skip to content

Commit

Permalink
Fixed noise multiply by 2 when noise is using frequency from tone 3
Browse files Browse the repository at this point in the history
  • Loading branch information
rejunity committed Sep 18, 2023
1 parent 6c1a9a6 commit 4e3d16f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/noise.v
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 4e3d16f

Please sign in to comment.