codpiece (n.)

mid-15c., "a bagged appendage to the front of the breeches; often conspicuous" [OED], from Old English codd "a bag, pouch, husk," in Middle English, "testicles" (cognate with Old Norse koddi "pillow, scrotum") + piece (n.).