A CORDIC-based digital protective relay and its architecture