This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320C6670中TCP3D的软比特的输入格式转换?



您好

文件上指出TCP3d输入的软比特为是6bit幅度范围,也就是-31~31。

如果输入软比特资料如下,请问要如何做转换呢?

0.7014846981

-0.7152175462

0.7114425354

0.7219533884

-0.6976153058

0.6982835305

0.7129041081

  • TCP3D输入的是定点数,所以需要将输入数据进行定标将浮点转换为定点,需要根据具体的浮点数范围进行合理的定标保证转换后的定点数范围在-31~31之间。对应你给出的数据可以定标为Q5,即小数点后5位,所以讲你的数据直接乘上32向上取整后输入到TCP3d。