If the problem is vascular, as is the case in systemic diseases, corrective measures can include phosphodiesterase inhibitors, such as sildenafil (Viagra),
tadalafil (Cialis), etc.). These can be prescribed by your doctor after an evaluation including physical and laboratory exams.
Additionally, men with diabetes can develop varying degrees of hypogonadism which can result in testosterone levels being lower than usual.