In this paper,we introduce a generalization of the lopsided PMHSS iteration method and its inexact variant to solve the Sylvester equation.The convergence rate and properties of the two methods are studied by analyzing upper bounds of spectral radii of the corresponding iteration matrices.Numerical results show that the generalization of the lopsided PMHSS iteration method and its inexact variant are efficient for this class of Sylvester equation.