library IEEE; use IEEE.numeric_bit.all; entity Sim_RCA4 is end Sim_RCA4; architecture MySim_RCA4 of Sim_RCA4 is component RCA4 is Port (A,B: in bit_vector(3 downto 0); cin: in bit; S: out bit_vector(3 downto 0); cout: out bit); end component; signal IA,IB,OS: bit_vector(3 downto 0); signal Icin, Ocout: bit; begin CUT: RCA4 port map(IA,IB,Icin,OS,Ocout); process begin Icin <= '0'; for j in 0 to 15 loop for k in 0 to 15 loop IA <= bit_vector(to_signed(j,4)); IB <= bit_vector(to_signed(k,4)); wait for 10ns; end loop; end loop; Icin <= '1'; for j in 0 to 15 loop for k in 0 to 15 loop IA <= bit_vector(to_signed(j,4)); IB <= bit_vector(to_signed(k,4)); wait for 10ns; end loop; end loop; end process; end MySim_RCA4;