The symptoms you're experiencing are called heterogenesis, and they're generally not related to impotence, but it's a condition where you have difficulty in getting or retaining the erection during sexual activity.
Doctor, there's blood in your urine. What's the cause?