Question: Write a VHDL code for full adder.
0

Mumbai University > Electronics Engineering > Sem 3 > Digital circuits and design

Marks: 10M

Year: May 2016

ADD COMMENTlink
modified 2.6 years ago  • written 2.6 years ago by gravatar for deepakkobe1014 deepakkobe10140
0

VHDL code:

Library :IEEE

Use IEEE.STD_LOGIC_1164_ALL ;

Entity full_adder_vdhl_code is

PORT (A: in STD_LOGIC;

B: in STD_LOGIC;

Cin :in STD_LOGIC;

Cout :in STD_LOGIC ;

end full_adder_vdhl_code ;

architectural behavioral of full_adder_vdhl_code is begin

S <= XOR B XOR Cin;

Cout <=(A AND B) OR (Cin AND A) OR (Cin AND B)

End behavioral;

ADD COMMENTlink
written 2.6 years ago by gravatar for deepakkobe1014 deepakkobe10140
Please log in to add an answer.