Maitry07
Full Member level 2
I am using Zynq ultra scale+ FPGA. In which I am using CORDIC IP cores to utilize the functionality of square root as well as Atan for measurement of amplitude and absolute phase from I and Q data.
From the absolute phase outputs , I am using subtraction to generate relative phase between 2 outputs. On the generated relative phase, I am applying moving average algorithm to increase accuracy in the measured relative phase.
During validation, One thing I observed as below.
When my measured relative phase is 0 deg or 360 deg. at that time , my moving average output is incorrect. after further debugging, I came to know that the measured relative phase output samples has approx. 0.28 to 359.6 deg variation in 1024 samples. due to which moving average output becomes incorrect for 0 deg or 360 deg.
How to mitigate this issue? what would be the suitable method.
because slight variation in the measured relative phase output samples will be there that's why we are using moving average.
Awaited your feedback and guidance.
From the absolute phase outputs , I am using subtraction to generate relative phase between 2 outputs. On the generated relative phase, I am applying moving average algorithm to increase accuracy in the measured relative phase.
During validation, One thing I observed as below.
When my measured relative phase is 0 deg or 360 deg. at that time , my moving average output is incorrect. after further debugging, I came to know that the measured relative phase output samples has approx. 0.28 to 359.6 deg variation in 1024 samples. due to which moving average output becomes incorrect for 0 deg or 360 deg.
How to mitigate this issue? what would be the suitable method.
because slight variation in the measured relative phase output samples will be there that's why we are using moving average.
Awaited your feedback and guidance.