Skip to content

Commit

Permalink
ad_dds_sine_cordic: Ajust for rounding errors
Browse files Browse the repository at this point in the history
And fix comment typo
  • Loading branch information
AndreiGrozav committed Jul 18, 2018
1 parent c617302 commit 664c46e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions library/common/ad_dds_sine_cordic.v
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ module ad_dds_sine_cordic #(
// Local Parameters

// 1.647 = gain of the system
localparam [19:0] X_VALUE_20 = 318327; // ((20^2)/2)/1.647
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 [19:0] X_VALUE_20 = 318327; // ((2^20)/2)/1.647
localparam [17:0] X_VALUE_18 = 79582; // ((2^18)/2)/1.647
localparam [15:0] X_VALUE_16 = 19891; // ((2^16)/2)/1.647
localparam [13:0] X_VALUE_14 = 4972; // ((2^14)/2)/1.647

// Registers Declarations

Expand Down

0 comments on commit 664c46e

Please sign in to comment.