BrushLess DC motor controller on FPGA