• Support PF! Buy your school textbooks, materials and every day products Here!

Beginners Verilog question

  • Thread starter BEEFCOPTER
  • Start date
  • #1
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!
 

Answers and Replies

  • #2
berkeman
Mentor
57,520
7,538
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.
 

Related Threads on Beginners Verilog question

  • Last Post
Replies
0
Views
1K
  • Last Post
Replies
1
Views
1K
  • Last Post
Replies
0
Views
2K
  • Last Post
Replies
7
Views
1K
  • Last Post
Replies
10
Views
2K
  • Last Post
Replies
8
Views
3K
  • Last Post
Replies
0
Views
2K
  • Last Post
Replies
1
Views
2K
Replies
0
Views
13K
  • Last Post
Replies
1
Views
13K
Top