On Oct 11, 9:42*am, Andy <jonesa...@comcast.net> wrote:
> As has been mentioned, your code compares count to zero after it has
> been decremented, meaning both combinatorial circuits must settle in
> series before you get a valid answer, and that takes more time than
> would otherwise be necessary.
Right, this is obvious now that it has been pointed out to me.
To ask a question related to my OP, what is the preferred method (or
methods) of driving FFs at a rate derived from a master clock? For
example, suppose I want to clock some FFs at 1kHz from a 50MHz clock.
Is it to use the 1-clock-out-of-N enable as was discussed above? Are
there other "correct" ways as well? I guess the question is, do FFs
being updated at rates of MasterClock/N normally have their clock
inputs driven by MasterClock with suitable enables, or is it common to
actually derive other clocks from MasterClock?