Viagra, generically referred to as sildenafil, is the treatment primarily intended to treat erectile impairment , a state where individuals have difficulty achieving or keeping an erection of the penis . Beyond this purpose, it has also utilized off-label in the treatment of pulmonary high blood pressure in the lungs and certain medical conditions