• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pre divider in dff
#1
in some tutorial I saw a dff declared:

Code:
   dff counter[16+8]; // counter for delaying between steps. The +8 is the pre-divider

but the author states that the counter is still 16 bits. is the +8 some syntax for pre-divider on the dff? I can't find any reference to it..

thanks! 
and sorry if this is has a very obvious answer.
  Reply
#2
So saying the counter is still 16 bits is maybe a bit misleading. The dff is now 24 bits wide but only the top 16 bits are used for the counter. The first 8 bits act as a divider to make the top 16 bits count once every 256 cycles.

The 16+8 isn't any fancy syntax. It just evaluates to 24.
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)