commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r10398 - gnuradio/branches/developers/pcreekmore/quant


From: pcreekmore
Subject: [Commit-gnuradio] r10398 - gnuradio/branches/developers/pcreekmore/quantization/usrp/fpga/sdr_lib
Date: Thu, 5 Feb 2009 14:24:25 -0700 (MST)

Author: pcreekmore
Date: 2009-02-05 14:24:24 -0700 (Thu, 05 Feb 2009)
New Revision: 10398

Modified:
   
gnuradio/branches/developers/pcreekmore/quantization/usrp/fpga/sdr_lib/rx_buffer.v
Log:
Validated version of FGPA configuration with 16, 8, 4, 2, and 1-bit 
quantization options.

Modified: 
gnuradio/branches/developers/pcreekmore/quantization/usrp/fpga/sdr_lib/rx_buffer.v
===================================================================
--- 
gnuradio/branches/developers/pcreekmore/quantization/usrp/fpga/sdr_lib/rx_buffer.v
  2009-02-05 21:04:05 UTC (rev 10397)
+++ 
gnuradio/branches/developers/pcreekmore/quantization/usrp/fpga/sdr_lib/rx_buffer.v
  2009-02-05 21:24:24 UTC (rev 10398)
@@ -468,26 +468,26 @@
    // Rounding (Quantization) functions
    function [7:0] round_8;
       input [15:0] in_val;
-      //round_8 = in_val[15:8] + (in_val[15] & |in_val[7:0]);
-      round_8 = in_val[7:0];
+      round_8 = in_val[15:8] + (in_val[15] & |in_val[7:0]);
+      //round_8 = in_val[7:0];
    endfunction // round_8
 
    function [3:0] round_4;
      input [15:0] in_val;
-     //round_4 = in_val[15:12] + (in_val[15] & |in_val[11:0]);
-     round_4 = in_val[3:0];
+     round_4 = in_val[15:12] + (in_val[15] & |in_val[11:0]);
+     //round_4 = in_val[3:0];
    endfunction // round_4
 
    function [1:0] round_2;
      input [15:0] in_val;
-     //round_2 = in_val[15:14] + (in_val[15] & |in_val[13:0]);
-     round_2 = in_val[1:0];
+     round_2 = in_val[15:14] + (in_val[15] & |in_val[13:0]);
+     //round_2 = in_val[1:0];
    endfunction // round_2
 
    function [0:0] round_1;
      input [15:0] in_val;
-     //round_1 = ~in_val[15];
-     round_1 = in_val[0];
+     round_1 = ~in_val[15];
+     //round_1 = in_val[0];
    endfunction // round_1
       
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]