vhdl Wait Wait until condition

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Example

It is possible to omit the on <sensitivity_list> and the for <timeout> clauses, like in:

    wait until CONDITION;

which is equivalent to:

    wait on LIST until CONDITION;

where LIST is the list of all signals that appear in CONDITION. It is also equivalent to:

    loop
      wait on LIST;
      exit when CONDITION;
    end loop;

An important consequence is that if the CONDITION contains no signals, then:

    wait until CONDITION;

is equivalent to:

    wait;

A classical example of this is the famous:

    wait until now = 1 sec;

that does not do what one could think: as now is a function, not a signal, executing this statement suspends the process forever.



Got any vhdl Question?