Re: 1ms delay in V5 FPGA



On Jul 16, 11:19 am, "RCIngham" <robert.ing...@xxxxxxxxx> wrote:
That should work. Make sure you clear the counter on entry to the waiting
state. It is good practice to exit on "greater than or equal to" rather
than "equal to" despite the former using slightly more combinatorial logic
resources.

Better yet, set the count to whatever period you need immediately
prior to entering the waiting state, and wait for it to go to zero by
checking the carry bit out of the decrementer (down counter).

Andy

.



Relevant Pages

  • Re: I need help please!
    ... wish to exit from the program. ... intended to be used on a single platform, ... It's never too early for the "newbies" to learn that valuable lesson ... It is good programming practice to write portable code when you can. ...
    (comp.lang.c)
  • Re: Python style guidelines
    ... It's that "resources acquired" part that messes people up. ... and then doesn't find all the subsequent exit points. ... Yep, those guidelines are useless. ...
    (comp.lang.python)
  • Re: Unexpected exit of pthread
    ... keep resources around even when functions return. ... TSD with a destructor. ... The only STANDARD ways defined by the POSIX STANDARD that a THREAD can exit are pthread_exit except in the initial thread where it's exit) and delivery of a cancellation request to the thread. ... POSIX once considered a "pthread_abort" interface that would force immediate termination of another thread; and while it was rejected by POSIX any vendor might choose to implement something like that. ...
    (comp.programming.threads)
  • Re: proper way to daemonize
    ... On Apr 24, 2009, at 12:11 PM, James Gray wrote: ... as it will call all "at_exit" handlers in the ... What resources are you talking about? ... By the time exit is called, ...
    (comp.lang.ruby)
  • Re: performance implications of releasing resources and context switches
    ... Ambrose Silk wrote: ... and closecalls and letting them be handled by _exit() instead. ... you risk tying up or running out of resources. ... of the program using mmap/munmap and about 1.3 seconds ...
    (comp.unix.programmer)