永恆的等待

最簡單的 wait 語句形式很簡單:

wait;

每當程序執行此操作時,它將永久掛起。模擬排程程式永遠不會再次恢復它。例:

signal end_of_simulation: boolean := false;
...
process
begin
  clock <= '0';
  wait for 500 ps;
  clock <= '1';
  wait for 500 ps;
  if end_of_simulation then
    wait;
  end if;
end process;