1
\$\begingroup\$

I have a timing code, and on a trigger event,there is a 5 second countdown to activate a motor. Is it possible to add a delay of half a second in activating the output, or in the start of the countdown?

\$\endgroup\$
  • \$\begingroup\$ For synthesis or for a testbench? \$\endgroup\$ – The Photon Oct 20 '13 at 4:30
  • \$\begingroup\$ For running it on FPGA.An actual delay. \$\endgroup\$ – Sherby Oct 20 '13 at 4:55
5
\$\begingroup\$

How about a small state machine. When event triggers, go to state 1, start a counter and wait for it to overflow (or hit a certain number which equals to your desired time); after that go to state 2 which will activate your output.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.