The condition is called "road chode." Like others have said:
Don't wear underwear under your bike shorts and find a saddle that is the right width to support your sit bones and is firm enough not to compress down to where there is pressure on your vitals.
Specialized's Body Geometry line of products for example has a very large selection of saddles in all shapes, sizes and firmness levels. I'm sure others do as well.