Skip to content

Commit

Permalink
ad_dds_sine_cordic.v: Suppress warning
Browse files Browse the repository at this point in the history
Width mismatch warning from 32 to dynamic width.
  • Loading branch information
AndreiGrozav committed Jul 18, 2018
1 parent ad425de commit dc80048
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions library/common/ad_dds_sine_cordic.v
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ module ad_dds_sine_cordic #(
localparam [17:0] X_VALUE_18 = 79582; // ((18^2)/2)/1.647
localparam [15:0] X_VALUE_16 = 19883; // ((16^2)/2)/1.647
localparam [13:0] X_VALUE_14 = 4970; // ((14^2)/2)/1.647
localparam Y_VALUE = 0;

// internal registers

Expand Down Expand Up @@ -166,20 +165,20 @@ module ad_dds_sine_cordic #(
2'b11:
begin
x0 <= x_value;
y0 <= Y_VALUE;
y0 <= 0;
z0 <= angle;
end

2'b01:
begin
x0 <= Y_VALUE;
x0 <= 0;
y0 <= x_value;
z0 <= {2'b00, angle[CORDIC_DW-3:0]};
end

2'b10:
begin
x0 <= Y_VALUE;
x0 <= 0;
y0 <= -x_value;
z0 <= {2'b11 ,angle[CORDIC_DW-3:0]};
end
Expand Down

0 comments on commit dc80048

Please sign in to comment.