The Prostate Cancer Prevention Trial was a landmark study by Thompson et al that prospectively assessed the time to developing CVD after the diagnosis of ED. There were 4247 men with no ED at study entry; 2420 developed incident ED (defined as the first report of ED of any grade) over 5 years. Those men that developed ED had a 1.45-fold higher probability of experiencing a CV event compared with men who did not develop ED.27
Organic Impotence. Diabetes mellitus, thyroid disease, and dysfunction of the pituitary gland or testes can cause impotence, as can certain medications. Other organic causes include arterial ischemia associated with atherosclerosis of the aorta and common iliac arteries, extensive pelvic surgery such as radical prostatectomy, spinal cord injury and other neurologic disorders, and a history of cigarette smoking. Because certain medications can cause impotence, it is recommended that in cases of recent impotence it be determined whether the patient has started on a new drug. The most common offenders are diuretics, antihypertensives, and vasodilators. Alcohol, which sometimes is ignored as a drug, is often a contributor to the problem of impotence.
Watts and coworkers, in their review article, make several points about this ED/CAD nexus. Endothelial dysfunction is present in both CVD and ED, and is linked through the NO mechanism. The authors note that PDE5 inhibitors improve endothelial function and have a salutary effect on both CVD and ED. Both ED and cardiac disease respond to modifications in lifestyle as well as pharmacologic manipulation. These authors also report that the presence of ED gives the clinician an opportunity to assess CVD and prevention as well.20
The great majority of ED cases in diabetic men have a physical cause, such as neuropathy or circulatory problems. In some cases, however, the cause of ED is psychological, including depression, guilt, or anxiety. With a thorough exam, the doctor should be able to determine whether the ED is psychological or physical in nature. If the cause is psychological, your doctor may refer you to a psychiatrist, psychologist, sex therapist, or marital counselor. Do not view such a diagnosis as an insult. Most psychologically-based ED is easily and successfully treated.
In comparison, 37% of men who had received external radiotherapy as their primary therapy reported the ability to attain functional erections suitable for intercourse, along with 43% of men who had received brachytherapy as primary treatment. Pretreatment sexual health-related quality of life score, age, serum prostate-specific antigen (PSA) level, race or ethnicity, body mass index, and intended treatment details were associated with functional erections 2 years after treatment. 
A physical exam checks your total health. Examination focusing on your genitals (penis and testicles) is often done to check for ED. Based on your age and risk factors, the exam may also focus on your heart and blood system: heart, peripheral pulses and blood pressure. Based on your age and family history your doctor may do a rectal exam to check the prostate. These tests are not painful. Most patients do not need a lot of testing before starting treatment.