adgjl40112
Newbie level 5
Hi, guys. I have a assignment about designing elevator system.
I've finished my RTL part and it can correctly synthesized.
However, I need help about how to apply adequate input pattern. That models action of people pressing the button in elevator just after walking into the lift.
For eg. for 3 Floor design, I think it should have F1up, F2up, Down2F, Down3F,
in each floor. And inside the lift there should be 1F, 2F, 3F button to select.
When I want to apply input pattern to show a person comes at 1F and his destination is 3F. If I give F1up = 1 and 3F = 1 at the same time, it's kind of weird for me. Because I think 3F button is on only after lift arrived 3F.
I solve this by using detecting the output floor condition and if (floor == 1F) 3F = 1; to make 3F = 1.
Yet, this results whenever I apply F1up =1, that person's destination is always 3F which is not I want. Any advice, also forgive my poor English.
I've finished my RTL part and it can correctly synthesized.
However, I need help about how to apply adequate input pattern. That models action of people pressing the button in elevator just after walking into the lift.
For eg. for 3 Floor design, I think it should have F1up, F2up, Down2F, Down3F,
in each floor. And inside the lift there should be 1F, 2F, 3F button to select.
When I want to apply input pattern to show a person comes at 1F and his destination is 3F. If I give F1up = 1 and 3F = 1 at the same time, it's kind of weird for me. Because I think 3F button is on only after lift arrived 3F.
I solve this by using detecting the output floor condition and if (floor == 1F) 3F = 1; to make 3F = 1.
Yet, this results whenever I apply F1up =1, that person's destination is always 3F which is not I want. Any advice, also forgive my poor English.