Hello and welcome to this new lesson, and we are going to test the weight on and wait until statements
go and click, add to project select existing file.
Click, browse.
And select, wait on wait until click reference from current location click, OK.
Compile, compile all.
Zero, Fallujah.
Not at all.
So we are going to go.
Select the wait on wait until Idit.
Now you can see the code.
Simulate, start simulation.
It's like the last five, TV seven.
A.
Now simply run the simulation.
So here we have the executed court, as you can see here, we have this process and this process will
do the following.
It will.
Increase the count up and decrease the count down, then wait for 10 seconds and repeat itself.
Now, as you can see, count up as one count downs, nine, eight, seven, six, five, count of one,
two, three, four, five.
Now, once these two are equal, this will trigger the second process, which has the weight on line.
And as you can see, a weight on it will weight on count and count don't change.
And when any of these two change, it will bring their value, which did happen here.
Here.
And here.
It also happened here, but what triggers the inequal value is the third process here we have wait until
so the program will wait until count equals down.
And this did happen here.
And if it did happen, it will present equally.
So it did not equal.
So these three processes are working together.
The first one is increasing and decreasing the values.
The second one is planting the values when there is any change in the countable count down value, which
was happening here in the first five lines.
And the third process will print equal when these two values are equal, which have been years now.
After this, the first process did move on and proceed with the increasing and decreasing or the values.
So six, seven, eight, nine, 10, 11, four, three to one zero minus one.
And since we are only allowing this for 100 nanosecond, it did stop here.
This is how the weight on and wait until statements were used, and I think that it's very clear now
if you have any questions, please ask in the Q&A board.
This is Ashraf from Educational Engineering.