File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,6 @@ module ad_dds_sine_cordic #(
55
55
localparam [17 :0 ] X_VALUE_18 = 79582 ; // ((18^2)/2)/1.647
56
56
localparam [15 :0 ] X_VALUE_16 = 19883 ; // ((16^2)/2)/1.647
57
57
localparam [13 :0 ] X_VALUE_14 = 4970 ; // ((14^2)/2)/1.647
58
- localparam Y_VALUE = 0 ;
59
58
60
59
// internal registers
61
60
@@ -166,20 +165,20 @@ module ad_dds_sine_cordic #(
166
165
2'b11 :
167
166
begin
168
167
x0 <= x_value;
169
- y0 <= Y_VALUE ;
168
+ y0 <= 0 ;
170
169
z0 <= angle;
171
170
end
172
171
173
172
2'b01 :
174
173
begin
175
- x0 <= Y_VALUE ;
174
+ x0 <= 0 ;
176
175
y0 <= x_value;
177
176
z0 <= {2'b00 , angle[CORDIC_DW- 3 :0 ]};
178
177
end
179
178
180
179
2'b10 :
181
180
begin
182
- x0 <= Y_VALUE ;
181
+ x0 <= 0 ;
183
182
y0 <= - x_value;
184
183
z0 <= {2'b11 ,angle[CORDIC_DW- 3 :0 ]};
185
184
end
You can’t perform that action at this time.
0 commit comments