generate to pdm