From 664c46eb724aa624f6b889156e02bf771ed94b41 Mon Sep 17 00:00:00 2001 From: AndreiGrozav Date: Fri, 16 Feb 2018 19:21:46 +0200 Subject: [PATCH] ad_dds_sine_cordic: Ajust for rounding errors And fix comment typo --- library/common/ad_dds_sine_cordic.v | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/library/common/ad_dds_sine_cordic.v b/library/common/ad_dds_sine_cordic.v index e1752aeb48..72e120c2a9 100644 --- a/library/common/ad_dds_sine_cordic.v +++ b/library/common/ad_dds_sine_cordic.v @@ -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