/media/sda-magnetic/david/Extern-Magnetic-2022-06-29/Extern01/Dokumente-11-2021-07-05/informatik-math/vhdl-2021-07-16/q/halfadder.vhdl


entity halfadder is
port (
    X: in bit;
    y: in bit;
    sum: out bit;
    cout: out bit
);
end halfadder;

architecture behavioural of halfadder is
begin
    sum <= x xor y;
    cout <= x and y;
end behavioural;