In this paper, a time-domain simulation of the DC-DC converters' dynamic behavior is described. Corresponding to the state-space model for each possible operation mode of the circuit, an analytic solution is provided. Converter's regulator is discretized using the pole-zero placement technique based on its Laplace transfer function. An algorithm results in a very accurate simulation due to the exact solution of the circuit's equations.