|
|
@@ -44,14 +44,15 @@ wire signed [13:0] sinAdd = (ncoSin1>>>1)+(ncoSin2>>>1);
|
|
|
// wire signed [13:0] sinAdd = ncoSin1;
|
|
|
|
|
|
|
|
|
-wire signed [13:0] singlePulse = (tbCnt==10)? 14'h1fff:14'h0;
|
|
|
+// wire signed [13:0] singlePulse = (tbCnt==10)? 14'h1fff:14'h0;
|
|
|
+wire signed [13:0] singlePulse = (tbCnt==10)? 14'h1:14'h0;
|
|
|
// wire signed [13:0] singlePulse = (tbCnt>=10&tbCnt<=12)? 14'h1fff:14'h0;
|
|
|
//==========================================================================================
|
|
|
//clocks gen
|
|
|
always #10 Clk50 = ~Clk50;
|
|
|
|
|
|
//==========================================================================================
|
|
|
-parameter N = 2;
|
|
|
+parameter N = 3;
|
|
|
parameter M = 1;
|
|
|
|
|
|
always @(posedge Clk50) begin
|
|
|
@@ -227,7 +228,7 @@ reg [31:0] testCnt;
|
|
|
wire [10:0] test = N*2+N*2+decimFactor;
|
|
|
wire [10:0] test1 = N*2+N*2+decimFactor-1;
|
|
|
// wire writeEn = (oscWindDelay[N*2+N*2+decimFactor-2]);
|
|
|
-wire writeEn = (tbCnt>= (startValue+(N*2*2)+decimFactor-6) & tbCnt <= (stopValue+(N*2*2)+decimFactor-6));
|
|
|
+wire writeEn = (tbCnt>= (startValue+(N*2)+1) & tbCnt <= (stopValue+(N*2)+1));
|
|
|
|
|
|
always @(posedge Clk50)begin
|
|
|
if (!Rst) begin
|