Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
library ieee;
use ieee.std_logic_1164.all;
entity adder is
port(a:in std_logic_vector(3 downto 0);
sum:out std_logic;carry:out std_logic);
end adder;
architecture behaviour of adder is
signal c0,s0:std_logic:='0';
begin
s0<=a(0) xor a(1) xor a(2);
c0<=(a(0) and a(1)) or (a(1) and a(2))or( a(2)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.