Automatic code generation of SPWM for single phase inverter by model-based design | IEEE Conference Publication | IEEE Xplore