How to Introduce Delays Between Commands in Verilog?

  • Thread starter Thread starter BEEFCOPTER
  • Start date Start date
  • Tags Tags
    Beginners
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
BEEFCOPTER
Messages
5
Reaction score
0
Ok, I am extremely new at verilog and have a very basic question. forgive how elementary this is. I have about 5 commands between a "begin --- -- -- -- end" scenario, but what I need is for it to lag about 2 seconds between each command ie, execute a, wait 2 seconds, execute b, wait 2 seconds, execute c.. and so on. I am just wondering the easiest way to do this. Any general pointing in the right direction would be appreciated. Thanks!
 
Physics news on Phys.org
BEEFCOPTER said:
Ok, I am extremely new at verilog and have a very basic question. forgive how elementary this is. I have about 5 commands between a "begin --- -- -- -- end" scenario, but what I need is for it to lag about 2 seconds between each command ie, execute a, wait 2 seconds, execute b, wait 2 seconds, execute c.. and so on. I am just wondering the easiest way to do this. Any general pointing in the right direction would be appreciated. Thanks!

You need to define a counter with clock, and define the logic for the reset/start and terminal count detection.