Professional Documents
Culture Documents
use IEEE.STD_LOGIC_1164.ALL;
entity ripple_using_fulladder_16bec1046 is
c : in STD_LOGIC;
end ripple_using_fulladder_16bec1046;
component fulladder
port(a : in STD_LOGIC;
b : in STD_LOGIC;
c : in STD_LOGIC;
END COMPONENT;
signal C0,C1,C2:STD_LOGIC;
begin
end Behavioral;
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
entity fulladder is
Port ( a : in STD_LOGIC;
b : in STD_LOGIC;
c : in STD_LOGIC;
signal p,q,r:STD_LOGIC;
begin
p<= a and b;
q<= b and c ;
r<= a and c;
cout <= p or q or r;