'Execution interrupted or reached maximum runtime in EDA Playground

I keep getting this error every time I run my code. Could you please help? I don't know if the problem is in the software itself or my code has some bugs that I have to fix what I want to get is a timing diagram.

Thank you very much in advance. Here is the VHDL code:

        `library ieee; 
    `use ieee.std_logic_1164.all; 

entity MaxLearning is 
port( 
    S1, S2, B1, B2: in std_logic; 
    C, J, R: out std_logic); 
end MaxLearning;

architecture Digital of MaxLearning is

begin
 J<= ((S2 and B2) and (S1 or not B1));
 C<= ((S1 or S2) and B1 and (S1 or not B2) and (S2 or not B2));
 R<= ((S1 or B1 or not B2) and (S1 or S2) and (S2 or not B1 or B2) and (not S1 or not S2 or not B1 or not B2));

end Digital;

And here is the testbench code:

    library IEEE;
use IEEE.std_logic_1164.all;

entity bonus is

end bonus;

architecture solid of bonus is

component MaxLearning is
port(
  S1, S2, B1, B2: in std_logic;
  J, C, R: out std_logic);
end component;

signal S1_in : std_logic :='0';
signal B1_in : std_logic :='0';
signal S2_in : std_logic :='0';
signal B2_in : std_logic :='0';

signal C_out, J_out, R_out: std_logic;

begin
  uut: MaxLearning port map(S1_in, S2_in, B1_in, B2_in, J_out, C_out, R_out);
  process
begin
S1_in <= '0';
S2_in <= '0';
B1_in <= '0';
B2_in <= '0';
wait for 10 ns;
  
S1_in <= '0';
S2_in <= '0';
B1_in <= '0';
B2_in <= '1';
wait for 10 ns;
  
S1_in <= '0';
S2_in <= '0';
B1_in <= '1';
B2_in <= '0';
wait for 10 ns;
  
S1_in <= '0';
S2_in <= '0';
B1_in <= '1';
B2_in <= '1';
wait for 10 ns;
  
S1_in <= '0';
S2_in <= '1';
B1_in <= '0';
B2_in <= '0';
wait for 10 ns; 
  
  
S1_in <= '0';
S2_in <= '1';
B1_in <= '0';
B2_in <= '1';
wait for 10 ns; 
  
  
S1_in <= '0';
S2_in <= '1';
B1_in <= '1';
B2_in <= '0';
wait for 10 ns;
  
  
S1_in <= '0';
S2_in <= '1';
B1_in <= '1';
B2_in <= '1';
wait for 10 ns; 
  
  
S1_in <= '1';
S2_in <= '0';
B1_in <= '0';
B2_in <= '0';
wait for 10 ns;

S1_in <= '1';
S2_in <= '0';
B1_in <= '0';
B2_in <= '1';
wait for 10 ns;

S1_in <= '1';
S2_in <= '0';
B1_in <= '1';
B2_in <= '0';
wait for 10 ns;


S1_in <= '1';
S2_in <= '0';
B1_in <= '1';
B2_in <= '1';
wait for 10 ns;

S1_in <= '1';
S2_in <= '1';
B1_in <= '0';
B2_in <= '0';
wait for 10 ns;

S1_in <= '1';
S2_in <= '1';
B1_in <= '0';
B2_in <= '1';
wait for 10 ns;

S1_in <= '1';
S2_in <= '1';
B1_in <= '1';
B2_in <= '0';
wait for 10 ns;

S1_in <= '1';
S2_in <= '1';
B1_in <= '1';
B2_in <= '1';
wait for 10 ns;

S1_in <= '0';
S2_in <= '0';
B1_in <= '0';
B2_in <= '0';
wait for 10 ns;

end process;
end solid;
eda


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source