Codpiece
The flap or bag that covered the crotch area in medieval male fashion as doublets grew shorter. It derives from cod an old English word, now obsolete, for bag or scrotum.