Hello,
It seems like you are asking how to implement an DC Voltage in simulink. The DC Voltage Source block implements an ideal DC voltage source. This example model of a DC Motor will give you some insight into how it can be implemented in simulink.
If you are asking about how to implement a PWM Converter, the following example maybe useful: AC/DC Three-Level PWM Converter