Forum Discussion
Altera_Forum
Honored Contributor
8 years agoYour input is the phase error (either + or -)
The PI filter is just an accumultor of this error : accum <= accum + error (the result can lso be divided as a fraction=leaky accumulator) The Proportional term is just part of error sample added to accum, How much P is added is up to testing Note that you are mistaken about clock edge. The error is either + or - tested on same clock edge