Skip to content

Commit dc80048

Browse files
committed
ad_dds_sine_cordic.v: Suppress warning
Width mismatch warning from 32 to dynamic width.
1 parent ad425de commit dc80048

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

library/common/ad_dds_sine_cordic.v

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ module ad_dds_sine_cordic #(
5555
localparam [17:0] X_VALUE_18 = 79582; // ((18^2)/2)/1.647
5656
localparam [15:0] X_VALUE_16 = 19883; // ((16^2)/2)/1.647
5757
localparam [13:0] X_VALUE_14 = 4970; // ((14^2)/2)/1.647
58-
localparam Y_VALUE = 0;
5958

6059
// internal registers
6160

@@ -166,20 +165,20 @@ module ad_dds_sine_cordic #(
166165
2'b11:
167166
begin
168167
x0 <= x_value;
169-
y0 <= Y_VALUE;
168+
y0 <= 0;
170169
z0 <= angle;
171170
end
172171

173172
2'b01:
174173
begin
175-
x0 <= Y_VALUE;
174+
x0 <= 0;
176175
y0 <= x_value;
177176
z0 <= {2'b00, angle[CORDIC_DW-3:0]};
178177
end
179178

180179
2'b10:
181180
begin
182-
x0 <= Y_VALUE;
181+
x0 <= 0;
183182
y0 <= -x_value;
184183
z0 <= {2'b11 ,angle[CORDIC_DW-3:0]};
185184
end

0 commit comments

Comments
 (0)