]> Joshua Wise's Git repositories - fpgaboy.git/commitdiff
More sound haqery
authorJoshua Wise <joshua@nyus.joshuawise.com>
Thu, 1 May 2008 06:41:14 +0000 (02:41 -0400)
committerJoshua Wise <joshua@nyus.joshuawise.com>
Thu, 1 May 2008 06:41:14 +0000 (02:41 -0400)
Soundcore.v

index b2c4d35288f8f87897115d36cad85a44418741ea..7752317f9e461e74f430c23cd7c37697a1146efd 100644 (file)
@@ -12,9 +12,9 @@ module Soundcore(
        output reg snd_data_r
        );
 
-       reg [7:0] nr50,nr51,nr52;
-       reg [3:0] pwmcnt;
-       reg [4:0] cntclk;
+       reg [7:0] nr50 = 8'h00, nr51 = 8'h00, nr52 = 8'hF0;
+       reg [3:0] pwmcnt = 4'b0000;
+       reg [4:0] cntclk = 5'b00000;
        reg [13:0] lenclk;
        wire [3:0] sndout1,sndout2,sndout3,sndout4;
        wire [3:0] right_snd =
@@ -47,8 +47,8 @@ module Soundcore(
                cntclk <= cntclk + 1;
                lenclk <= lenclk + 1;
                pwmcnt <= pwmcnt + 1; 
-               snd_data_l <= (pwmcnt <= left_snd) ? nr50[7] : 0;
-               snd_data_r <= (pwmcnt <= right_snd) ? nr50[3] : 0;
+               snd_data_l <= (pwmcnt <= left_snd) ? 1 : 0;
+               snd_data_r <= (pwmcnt <= right_snd) ? 1 : 0;
        end
 
        Sound1 s1(
This page took 0.0313 seconds and 4 git commands to generate.