There are two kinds of surgery for ED: one involves implantation of a penile prosthesis; the other attempts vascular reconstruction. Expert opinion about surgical implants has changed during recent years; today, surgery is no longer so widely recommended. There are many less-invasive and less-expensive options, and surgery should be considered only as a last resort.
ED usually has something physical behind it, particularly in older men. But psychological factors can be a factor in many cases of ED. Experts say stress, depression, poor self-esteem, and performance anxiety can short-circuit the process that leads to an erection. These factors can also make the problem worse in men whose ED stems from something physical.
To find studies on the link between meditation and erectile dysfunction (ED) you have to go way back. A 1977 study by Gerard V Sunnen at New York University on nine men with a mean age of 32 found that as little as two 15 minute sessions of meditation a day transformed the men so that all but two of them could achieve "erectile competence." The study worked by training the men how to deflect negative thought patterns from their mind through meditation.
Penile implants - are generally used if physical damage (like an accident) makes the anatomical parts needed for an erection not work. These are inserted by surgery and can provide a permanent treatment choice if others fail to work. The implants can be semi-rigid or inflatable. They can be pretty expensive and are not usually available on the NHS.
This is similar to magnetic resonance imaging. Magnetic resonance angiography uses magnetic fields and radio waves to provide detailed images of the blood vessels. Doctors may inject a "contrast agent" into the person's bloodstream that causes vascular tissues to stand out against other tissues. The contrast agent provides for enhanced information regarding blood supply and vascular anomalies.
The venous constriction device is a device designed to compress the veins that drain blood flow out of the penis to keep blood in the penis. These devices may help individuals who have a "venous leak." In these individuals, although blood flow is coming into the penis, it is draining out at the same time and this persistent drainage prevents a fully rigid erection. These devices may be used with other forms of medical therapy, such as medications, injection therapy, or the vacuum device.
The primary nerve fibers to the penis are from the dorsal nerve of the penis, a branch of the pudendal nerve. The cavernosal nerves are a part of the autonomic nervous system and incorporate both sympathetic and parasympathetic fibers. They travel posterolaterally along the prostate and enter the corpora cavernosa and corpus spongiosum to regulate blood flow during erection and detumescence. The dorsal somatic nerves are also branches of the pudendal nerves. They are primarily responsible for penile sensation. 
Sildenafil has been previously suggested as a treatment option for ED in men with epilepsy (77,78). However, Matos et al. warned that PDE5i are potentially pro-convulsant and should be used with great caution in men with epilepsy (79). Animal studies in rat and mice overwhelmingly suggest PDE5i can reduce seizure threshold. In human trials, seizures were rare but reported. PDE5i exerted their proconvulsive effect by lower seizure threshold possibly by worsening sleep or obstructive sleep apnea, causing cardiovascular changes, or leading to EEG changes specifically with tadalafil use.
Treatment depends on the underlying cause. In general, exercise, particularly of the aerobic type, is effective for preventing ED during midlife. Exercise as a treatment is under investigation.:6, 18–19 For tobacco smokers, cessation often results in a significant improvement. Oral pharmacotherapy and vacuum erection devices are first-line treatments,:20, 24 followed by injections of drugs into the penis, as well as penile implants.:25–26 Vascular reconstructive surgeries are beneficial in certain groups.
The device consists of an acrylic cylinder placed over the penis that uses a lubricant to achieve a good seal between the penile body and cylinder. An erection is then achieved by creating a vacuum inside the cylinder with a pump connected to the cylinder. Once an erection is achieved, a constriction band is applied to the base of the penis to maintain the erection. The cylinder can then be removed and the patient can engage in intercourse with the constriction band at the base of the penis maintaining the erection. The band can remain on for approximately 30 minutes and then must be removed. The erection produced by the device differs from a normal erection likely because of venous occlusion from the constriction band resulting in generalized swelling of the entire penis, with probable preservation of arterial inflow.
PDE5i use in PD has not been well studied; however its benefits have been shown. Raffaele performed an open label, prospective study evaluating the efficacy of sildenafil 50 mg on demand and depressive symptoms experienced by the PD patient (73). Erections were improved in approximately 85% of men and 75% noted improvements in their depressive symptoms as well. Sildenafil was well tolerated without significant side effects. Zesiewicz et al., performed a shorter study showing improvements in erectile function but no change in depression and parkinsonisms after ED treatment (74).
Then you have to be able to make the right diagnosis. What is the basis for their erectile dysfunction? Is it psychogenic? Is it some sort of neurological or blood vessel or hormonal issue? So you have to make a diagnosis. You have to be able to make an assessment. And then only after those things are done, then you start to think about medications.
Poor sleep patterns can be a contributing factor for erectile dysfunction, Mucher says. One review published in the journal Brain Research emphasized the intricate relationship between the level of sex hormones like testosterone, sexual function, and sleep, noting that testosterone levels increase with improved sleep, and lower levels are associated with sexual dysfunction. Hormone secretion is controlled by the body’s internal clock, and sleep patterns likely help the body determine when to release certain hormones.
Medication — When a medication is the cause of the dysfunction, a change in the medication may help. Men and women with hormone deficiencies may benefit from hormone shots, pills, or creams. For men, drugs, including sildenafil (Viagra®), tadalafil (Cialis®), vardenafil (Levitra®, Staxyn®), and avanafil (Stendra®) may help improve sexual function by increasing blood flow to the penis.
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