Skip to content

Commit 47c53a4

Browse files
committed
Adjusted constants for music recognition
1 parent 32ab8f6 commit 47c53a4

File tree

2 files changed

+4
-4
lines changed
  • day_2/lab_07_note_recognition
  • day_3/lab_09_music_recognition

2 files changed

+4
-4
lines changed

day_2/lab_07_note_recognition/top.sv

+2-2
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,13 @@ module top
156156
//------------------------------------------------------------------------
157157

158158
function [19:0] high_distance (input [18:0] freq_100);
159-
high_distance = clk_mhz * 1000 * 1000 / freq_100 * 102;
159+
high_distance = clk_mhz * 1000 * 1000 / freq_100 * 104;
160160
endfunction
161161

162162
//------------------------------------------------------------------------
163163

164164
function [19:0] low_distance (input [18:0] freq_100);
165-
low_distance = clk_mhz * 1000 * 1000 / freq_100 * 98;
165+
low_distance = clk_mhz * 1000 * 1000 / freq_100 * 96;
166166
endfunction
167167

168168
//------------------------------------------------------------------------

day_3/lab_09_music_recognition/top.sv

+2-2
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,13 @@ module top
128128
//------------------------------------------------------------------------
129129

130130
function [19:0] high_distance (input [18:0] freq_100);
131-
high_distance = clk_mhz * 1000 * 1000 / freq_100 * 102;
131+
high_distance = clk_mhz * 1000 * 1000 / freq_100 * 104;
132132
endfunction
133133

134134
//------------------------------------------------------------------------
135135

136136
function [19:0] low_distance (input [18:0] freq_100);
137-
low_distance = clk_mhz * 1000 * 1000 / freq_100 * 98;
137+
low_distance = clk_mhz * 1000 * 1000 / freq_100 * 96;
138138
endfunction
139139

140140
//------------------------------------------------------------------------

0 commit comments

Comments
 (0)