You are chief of protocol for the embassy ball. The crown prince instructs you to either invite Peru or to exclude Qatar. The queen ask you to invite either Qatar or Romania or both. The king, in spiteful mood, wants to snub Peru or Romania or both. Is there a guest list that will satisfy the whims of the entire royal family?
Design a circuit that has three inputs (Peru, Qatar and Romania) and an output (acceptable). Each input represents the fact that a country is invited (1) or not invited (0). The output indicates whether the invitations satisfy the whims of the royal family.
Specification
module embassy_ball (Peru, Qatar, Romania, acceptable); input Peru, Qatar, Romania; output acceptable;
Input
Output