Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Verilog testbench question

Status
Not open for further replies.

adgjl40112

Newbie level 5
Joined
Mar 26, 2010
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,349
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.
 

Need help Plz.
Any comment will be appreciated
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top