I am writing my first VHDL testbench. My clock line clk <= not clk after 5 ns; leaves clk at 'U' for the whole run. After I fixed that by trial and error, the simulation never ends, and my stimulus process seems to start again from the beginning after its last statement.
What is the correct way to generate a clock, apply stimulus in step with it, check results, and make the simulation stop by itself when the test is finished?




