Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

Counter in VHDL

Hi,

I want to design a 16 bit counter with 1uSec resulution.

I have only 40MHz clock and can't use neither PLL or frequency divider.

I can use only the 40MHz global clock.

Can somebody recommend for VHDL design for 16 bit counter with resulution adjustment?

THX

GUY.

5 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    run another counter at 40MHz. When it reaches a given number generate an enable that increases the main 16 bit counter.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thank you!

    I want to implement it in minimum hardware. You think this is the most minimized option?

    Guy.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Possibly.

    If you come up with other ideas, give them a go too and look at resource usages.