Majority Gate using process block and if statement
 
 
The entity declaration has been left out (same as before).
ARCHITECTURE ifstate of majority is
             Y <= '0';        -- default output assignment.
              if ((A = '1') and (B = '1')) then
              if ((A = '1') and (C = '1') ) then
              if ((B = '1') and (C = '1') ) then