0
1.9kviews
Design a half adder using VHDL
1 Answer
written 6.3 years ago by |
VHDL Code for a Half-Adder
VHDL Code:
Library ieee;
use ieee.std_logic_1164.all;
entity half_adder is
port(a,b:in bit; sum,carry:out bit);
end half_adder;
architecture data of half_adder is
begin
sum<= a xor b;
carry <= a and b;
end data;
Waveforms