0
Design a half adder using VHDL
0
0

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

enter image description here

0
Please log in to add an answer.

Continue reading

Find answer to specific questions by searching them here. It's the best way to discover useful content.

Find more