aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound.v4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound.v b/sound.v
index 6f8626c..ad3a0a7 100644
--- a/sound.v
+++ b/sound.v
@@ -36,9 +36,9 @@ module slf(
always @(posedge clk)
if ( clk_en )
begin
- if ( ctr[13:10] == `vco_max )
+ if ( ctr == `vco_max )
up <= 0;
- else if ( ctr[13:10] == `vco_min )
+ else if ( ctr == `vco_min )
up <= 1;
if ( up )