Design & Simulate PMSM Real-Time FOC with MATLAB/Simulink — from PI control to DSP-based real-time EV & robotics systems