Andy Yin:
您好,我在这个帖子(http://www.deyisupport.com/question_answer/f/53/t/2705.aspx)中看了scaling factor的设置还有几个问题不懂
(1)SUM (si) + sout– 3 + (LTE_FREQ_EN * SLTE)公式中的-3是怎么来的,我看了user guide Figure2-3,图中先把16 bit的输入左移6位变为22位,资料中说:
“The internal precision of the FFT engine is 22/19 bits—the inputs are first scaled to 22 bits by shifting left 6 bits, then 19 of the 22 bits are selected based on the shift factor. A shift of 0 bits means that the 19 LSBs are selected.”这是什么意思呢?
(2)公式中为什么没有Figure 2-3中的左移6位和最后右移10位的说明呢?右移10位是什么意思呢?
(3)你在上面帖子中提到的公式FFTC_Scaling_factor = 2^(-S) * sqrt(N) * outputScaling这里的outputScaling是figure 2-3中说的outputScaling吗?为什么你在上面那个帖子中说“outputscaling不是128,而是实际配置对应的浮点值,取值为[0,1]”呢?我参考了fftc_testcfg_16.h文件,其中的outputscaling是设置为128的啊?
(4)我把fftc_testcfg_16.h原文件的输入结果用matlab算了算出的结果和该文件的期望输出结果为什么差2倍啊(因为把.out文件在板子上运行没有报错,如果是这样的话,说明fftc输出的结果也是差2倍关系),难道是fftc_testcfg_16.h中的期望结果是错的?