Fpga controlled three phase inverter based bldc motor drive