Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

wait statement

Altera_Forum
Honored Contributor II
1,108 Views

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.

0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
231 Views

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?
0 Kudos
Altera_Forum
Honored Contributor II
231 Views

 

--- 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
0 Kudos
Altera_Forum
Honored Contributor II
231 Views

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

0 Kudos
Reply