This commit is contained in:
Tommischiri
2026-10-24 17:18:17 +02:00
parent 86e83215ea
commit 5d92d66a7b
148 changed files with 48187 additions and 1 deletions
@@ -0,0 +1,37 @@
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;