if condition in process without sensitivity list

Discussion in 'VHDL' started by ALuPin, Jul 3, 2008.

  1. ALuPin

    ALuPin Guest


    I have the following process without sensitivity list:

    p_trigger: process
    for i in 0 to 10 loop

    wait until ls_trigger='1';

    if ls_falling_edge_enable='1' then
    wait until ls_trigger='0';
    end if;

    end loop;
    end process p_trigger;

    Will the if branch be entered if "ls_falling_edge_enable" becomes
    '1' ?
    Thank you for your opinion.

    ALuPin, Jul 3, 2008
    1. Advertisements

  2. ALuPin

    KJ Guest

    Only if 'ls_falling_edge_enable' happens to be '1' at the time when
    ls_trigger *changes* to a '1'. If it is not then the if condition is false
    the loop goes back around and waits until ls_trigger changes to a '1' again.

    KJ, Jul 3, 2008
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.