For F2806x DSP, how many clock periods are needed when performing +,-,*,/ math calculation or sin/cos/tan/cot math calculation respectively ?
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.
For F2806x DSP, how many clock periods are needed when performing +,-,*,/ math calculation or sin/cos/tan/cot math calculation respectively ?
Ronnie,
The basic operations of addition, subtraction, & multiplication will be very quick because they are single cycle FPU instructions.
For the division and trig functions, it depends how they are done. If you rely on the standard RTS library it will not be cycle efficient: expect several tens or a couple of hundred cycles. However, there is a "fastRTS" library in controlSUITE:
C:\ti\controlSUITE\libs\math\FPUfastRTS
Benchmarks for that are shown in the documentation on page 15.
You could also utilize the IQmath library for these functions:
C:\ti\controlSUITE\libs\math\IQmath\v160
The relevant benchmarks are on page 31 of that document.
I attach relevant pages from the documentation of each.
I mention in passing that the newer F28x7x devices have a hardware Trig Math Unit (TMU) which computes these functions in a very small number of cycles.
Regards,
Richard