The document presents a modular approach for implementing model predictive control (MPC) on a three-phase voltage source inverter to enhance output current control. By utilizing signal flow graphs for estimation, prediction, and optimization, the approach simplifies real-time implementation compared to traditional coding methods. Simulation results demonstrate improved performance and flexibility in the implementation, emphasizing crucial factors like load inductance and sampling time for optimal control performance.