Majority Gate Example
The following is an example of a three input XOR gate (majority gate) implemented in VHDL
use ieee.std_logic_1164.all;
port ( A, B, C : in std_logic; -- two dashes is a COMMENT in VHDL
-- this is the architecture declaration, uses only one concurrent statement.
ARCHITECTURE concurrent of majority is
Y <= (A and B) or (A and C) or (B and C);