The drug Viagra, often referred to as the little pill, functions to increasing circulation to the penis , allowing an erection in men experiencing erectile dysfunction . Initially researched for managing chest pain, its unexpected side effect led to its use as a treatment for erectile dysfunction