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