Combinational Design
Move from a logic requirement to a truth table, a simplified expression and a VHDL implementation.
A combinational circuit calculates outputs from its current inputs. After a change, the result settles through gate propagation delay. Multiplexers, decoders, comparators, adders and flag computations follow this model.
Turn the requirement into VHDL
Define inputs and outputs, then describe the cases in a truth table. Derive the logic expression, simplify where that helps readability and write the VHDL. Simulation should then cover the important cases.
The synthesizer already performs simplifications. Manual work helps explain the circuit and remove ambiguity; prefer a readable expression over minimum size at any cost.
Detect a majority
Output Y must be 1 when at least two inputs among , and are :