FPGA Based Power Analyser and Matlab GUI: PART 2: CORDIC and Embedded Processor
Published at : 23 Dec 2025
In part 2 of 2 of this video series, we will finish the build of an FPGA based Power Analyser to measure the Voltage and Current Input at Power Frequency PLUS the Harmonics. I am using the Cyclone 5 starter kit, which has a Cyclone 5 FPGA and the LTC2308 ADC on board. To design a power analyser we will use a pair of FFT MegaFunctions in Quartus. The frequency domain outputs contain the fundamental 50 Hz PLUS the harmonics. We use the CORDIC algorithm to determine the other necessary component for Complex Power - the phase. A Nios embedded processor is added to the project to help us output the information as a UART message. A graphical user interface in Matlab will help visualise the power analyser output.
This is a complex project but it will help us understand how a full system can be pieced together using MegaFunctions and Verilog glue logic. The agenda for this video (part 2) is below.
1. Understand the real and imaginary outputs of the FFT
2. Use a pair of CORDIC blocks to convert from rectangular to phase
3. Use a NIOS embedded processor and write into its memoy scope using a memory mapped writer master.
4. Look at a simple piece of C code for PRINTF'ing the memory contents out of the UART
5. Use a GUI in Matlab to show the results in real time