Erection problem because of drugs?

Patient: I am currently taking phentermine and Trazadone. I have been taking them since May. A few weeks ago I started having troubles getting and maintaining an erection. I have never had this problem before. Could these drugs be causing the issue?

Doctor: