Professional Documents
Culture Documents
Parallel Adder
Parallel Adder
architecture Behavioral of ffr is signal c: std_logic_vector((n) downto 0 ); begin c(0)<=cin; g1: for i in 0 to(n-1)generate s(i)<=a(i)xor b(i)xor c(i); c(i+1)<=(a(i) and b(i)) or (c(i) and b(i)) or (a(i) and c(i)); end generate; cout<=c(n); end Behavioral;
Parallel adder:-