This reminds me of the song detachable penis.... And I'm all nostalgic about the game Earthworm Jim now lol
But to answer your question, a dose of 500mg may further complicate things. At 500mg you may aromatize quite a bit of that test. If your hormones remain out of balance, you will continue to have erection issues.
Hit up the doctor, explain the situation and that viagra isn't the answer (trust me he'll try and script you and move you along). Demand blood work. You need total test, free test, E2 and what else guys????