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.

TMS320C6713B: The calculation accuracy of CCS and MATLAB

Part Number: TMS320C6713B

English: Hello, I'm using CCS software to simulate TMS320C6713 chip recently. Now I have a problem and need help. Thank you. I need to make the simulation calculation results of my CCS completely consistent with the calculation results in MATLAB, and use matlab to evaluate the accuracy of the system algorithm. The main problems I encounter now are: when I use the division operation with / in the default library file of C6713 chip (for example, code: a = 2 / 3; it means that the result of dividing 2 by 3 is assigned to a) and cosine calculation with cos () function, The division and cosine calculation results in CCS are not completely consistent with those in MATLAB, that is, the accuracy of the two is different. I'd like to ask you whether you have any suggestions on the accuracy of the unified CCS and MATLAB operation I'm now doing, that is, using MATLAB to evaluate the accuracy of the algorithm I designed using CCS and TMS320C6713 chips, or whether you can provide me with matlab code that can simulate the calculation results of division with / and cosine operation with COS in the default library function of TMS320C6713 in MATLAB, That is, the matlab code that realizes the operation process completely consistent with the division and cosine calculation in the default library function of C6713 chip in CCS in MATLAB. Thank you for your help.

中文::您好,我最近在使用CCS软件进行tms320c6713芯片的仿真实验,我现在遇到了一个问题,需要寻求帮助,谢谢您。我需要使我的ccs的仿真计算结果与matlab中的计算结果完全一致,用matlab评估系统算法的精度,我现在遇到的主要问题是:我在使用c6713芯片默认库文件里自带的用 / 进行除法运算(例如:代码:a=2/3;表示将2除以3的结果赋值给a)和用cos()函数进行余弦计算时,在ccs里进行的除法和余弦计算结果与在matlab中进行除法和余弦计算的结果不能完全一致,即两者精度不同。我想向您咨询,是否对我现在所进行的这个统一ccs和matlab运算精度,即用matlab评估我所设计的使用到了ccs 和tms320c6713芯片的算法的精度工作有什么建议,或者您是否可以提供给我在matlab里可以仿真得到与tms320c6713默认库函数里的 用 / 进行除法运算和用cos进行余弦运算的计算结果一致的matlab代码,即在matlab里实现与ccs里的c6713芯片默认库函数里的除法和余弦计算完全一致的运算过程的matlab代码。感谢您的帮助。