The dorsal artery provides for engorgement of the glans during erection, whereas the bulbourethral artery supplies the bulb and the corpus spongiosum. The cavernous artery effects tumescence of the corpus cavernosum and thus is principally responsible for erection. The cavernous artery gives off many helicine arteries, which supply the trabecular erectile tissue and the sinusoids. These helicine arteries are contracted and tortuous in the flaccid state and become dilated and straight during erection. 
Surgery: If neither drugs nor the vacuum pump works, your doctor may suggest surgery. With surgery, the doctor can place a device in your penis that will cause enough hardness for intercourse. In a few cases, infections may develop after the operation, and the doctor may have to remove the device. Another operation that may help you is rebuilding the blood vessels in the penis to increase blood flow into the penis or decrease blood flow out of the penis. These procedures can help you to get and maintain an erection.
The link between chronic disease and ED is most striking for diabetes. Men who have diabetes are two to three times more likely to have erectile dysfunction than men who do not have diabetes. Among men with erectile dysfunction, those with diabetes may experience the problem as much as 10 to 15 years earlier than men without diabetes. Yet evidence shows that good blood sugar control can minimize this risk. Other conditions that may cause ED include cardiovascular disease, atherosclerosis (hardening of the arteries), kidney disease, and multiple sclerosis. These illnesses can impair blood flow or nerve impulses throughout the body.
The Cancer of the Prostate Strategic Urologic Research Endeavor (CaPSURE) study, designed to determine whether an individual man’s sexual outcomes after most common treatments for early-stage prostate cancer could be accurately predicted on the basis of baseline characteristics and treatment plans, found that 2 years after treatment, 177 (35%) of 511 men who underwent prostatectomy reported the ability to attain functional erections suitable for intercourse. 
Vacuum devices for ED, also called pumps, offer an alternative to medication. The penis is placed inside a cylinder. A pump draws air out of the cylinder, creating a partial vacuum around the penis. This causes it to fill with blood, leading to an erection. An elastic band worn around the base of the penis maintains the erection during intercourse.
Treatment involves addressing the underlying causes, lifestyle modifications, and addressing psychosocial issues. In many cases, a trial of pharmacological therapy with a PDE5 inhibitor, such as sildenafil, can be attempted. In some cases, treatment can involve inserting prostaglandin pellets into the urethra, injecting smooth muscle relaxants and vasodilators into the penis, a penile prosthesis, a penis pump, or vascular reconstructive surgery.
The vascular processes that produce an erection are controlled by the nervous system and certain prescription medications may have the side effect of interfering with necessary nerve signals. Among the possible culprits are a variety of stimulants, sedatives, diuretics, antihistamines, and drugs to treat high blood pressure, cancer, or depression. But never stop a medication unless your doctor tells you to. In addition, alcohol, tobacco, and illegal drugs, such as marijuana, may contribute to the dysfunction.
• Medications: About 25 percent of ED cases are caused by drugs. Many medications, including common medicines prescribed for diabetes and its complications, can cause ED. The most common offenders are blood pressure drugs, antihistamines, antidepressants, tranquilizers, appetite suppressants, and cimetidine (an ulcer drug). In addition, over-the-counter medications, including certain eye drops and nose drops, have been associated with ED. That does not mean you should stop taking these medications! Rather, you should discuss them with your doctor to determine whether a different dosage, an alternate medicine, or additional treatments will resolve the ED.
There are relatively few contraindications to the use of vacuum devices. Some conditions can predispose to priapism or perhaps bleeding with constriction, such as sickle cell disease, polycythemia, and other blood dyscrasias. Patients taking anticoagulants can safely use vacuum constriction devices but need to accept a higher risk of bleeding (ecchymosis). Good manual dexterity is also needed to use the device; if manual dexterity is impaired, a willing sexual partner can learn to apply the device.
Erectile dysfunction (ED) is the inability to get an erection or to keep one that's firm enough or that lasts long enough for a man to have a satisfying sexual experience. Occasional bouts of ED aren't unusual. In fact, as many as one in five men deal with erectile dysfunction to some degree. Symptoms, of course, are rather obvious. And while age can be a risk factor, so can medication use, health conditions, lifestyle factors (like smoking), and other concerns. Treatment is available and may involve prescriptions, habit changes, or other options.
All NOS subtypes produce NO, but each may play a different biologic role in various tissues. nNOS and eNOS are considered constitutive forms because they share biochemical features: They are calcium-dependent, they require calmodulin and reduced nicotinamide adenine dinucleotide phosphate for catalytic activity, and they are competitively inhibited by arginine derivatives. nNOS is involved in the regulation of neurotransmission, and eNOS is involved in the regulation of blood flow.
Physical causes may include the narrowing of the blood vessels caused by hypertension (high blood pressure), nutritional deficiencies, certain prescription treatments and medications for enlarged prostate or prostate cancer, excess drinking, obesity, heavy smoking, kidney issues, thyroid problems, hormonal changes due to aging, injury, or surgery, diabetes, and high cholesterol levels.
There have been some studies to suggest that a placebo effect that improves ED may work for some men. One study found that men taking an oral placebo pill showed as much improvement in ED symptoms as men who took actual medication to improve ED. Conversely, men who were given therapeutic suggestions to improve ED did not see signs of symptom improvement.
Vascular damage may result from radiation therapy to the pelvis and prostate in the treatment of prostate cancer.  Both the blood vessels and the nerves to the penis may be affected. Radiation damage to the crura of the penis, which are highly susceptible to radiation damage, can induce ED. Data indicate that 50% of men undergoing radiation therapy lose erectile function within 5 years after completing therapy; fortunately, some respond to one of the PDE5 inhibitors.
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.