Forum Discussion
Altera_Forum
Honored Contributor
15 years agofor an 8 bit adder, try this code instead:
library ieee;
use ieee.numeric_std.all;
entity adder is
port (
A : in unsigned(7 downto 0);
D : in unsigned(7 downto 0);
result : out unsigned(8 downto 0)
);
architecture rtl of adder is
begin
result <= ('0' & A) + ('0' & D);
end rtl;