Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

wait statement

hii, can we use wait statement in vhdl for assigning values to a variable? if possible please give the syntax... thank you for spending your great time.

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    waits are not used for assigning anything to anything, they just wait for a specified length of time or until a specific event.

    What are you tying to do?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    hii, can we use wait statement in vhdl for assigning values to a variable? if possible please give the syntax... thank you for spending your great time.

    --- Quote End ---

    No. A wait statement does what it says it 'waits', it suspends that process. Variable are assigned with the variable assignment := like this

    x := 2;

    Kevin Jennings
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    ok thank you, here in my program i'm using wait statement so i got confused by the above thread......once again thank you