Etymology
Today it means: A part of male dress in the 15th and 16th centuries, worn in front of the breeches to cover the male genitals. Full definition →
From cod (“bag, pouch, scrotum”) + piece.
Etymology from Wiktionary, CC BY-SA 4.0.