shaiko
Advanced Member level 5
Hello,
I'm trying to run the following test bench in Modelsim - I write: "run 1ms"
Modelsim freezes at 0 ns with no progress...
I'm trying to run the following test bench in Modelsim - I write: "run 1ms"
Modelsim freezes at 0 ns with no progress...
Code:
write_cpu <= '0' , '1' after 100 ns , '0' after 120 ns , '1' after 300 ns , '0' after 320 ns ;
read_cpu <= '0' , '1' after 700000 ns , '0' after 700020 ns ;
cpu_address <= X"000114" , X"000054" after 200 ns , X"000034" after 700000 ns ;
cpu_data <= "00000000000000000010000011100111" , "11101000000000000000000011011001" after 200 ns ;
cpu_transactions : process
begin
if write_cpu = '1' then
address_out <= cpu_address ;
data_out <= cpu_data ;
read_or_write <= '0' ;
wait for 40 ns ;
cs <= '0' ;
wait for 100 ns ;
address_out <= ( others => '0' ) ;
data_out <= ( others => 'Z' ) ;
read_or_write <= '1' ;
cs <= '1' ;
elsif read_cpu = '1' then
address_out <= cpu_address ;
data_out <= ( others => 'Z' ) ;
read_or_write <= '1' ;
wait for 40 ns ;
cs <= '0' ;
wait for 100 ns ;
address_out <= ( others => '0' ) ;
cs <= '1' ;
else
address_out <= ( others => '0' ) ;
data_out <= ( others => 'Z' ) ;
read_or_write <= '0' ;
cs <= '1' ;
end if ;
end process cpu_transactions ;